MediaPlayer.AudioSessionId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the audio session ID. -or- Sets the audio session ID.
public virtual int AudioSessionId { [Android.Runtime.Register("getAudioSessionId", "()I", "GetGetAudioSessionIdHandler")] get; [Android.Runtime.Register("setAudioSessionId", "(I)V", "GetSetAudioSessionId_IHandler")] set; }
[<get: Android.Runtime.Register("getAudioSessionId", "()I", "GetGetAudioSessionIdHandler")>]
[<set: Android.Runtime.Register("setAudioSessionId", "(I)V", "GetSetAudioSessionId_IHandler")>]
member this.AudioSessionId : int with get, set
Property Value
the audio session ID. #setAudioSessionId(int)
Note that the audio session ID is 0 only if a problem occured when the MediaPlayer was contructed.
- Attributes
Exceptions
if it is called in an invalid state
Remarks
Property getter documentation:
Returns the audio session ID.
Java documentation for android.media.MediaPlayer.getAudioSessionId()
.
Property setter documentation:
Sets the audio session ID.
Java documentation for android.media.MediaPlayer.setAudioSessionId(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.