PlaybackSession.SessionId 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.
A session ID is used to identify a unique playback and to tie together lower-level playback components.
public Android.Media.Metrics.LogSessionId SessionId { [Android.Runtime.Register("getSessionId", "()Landroid/media/metrics/LogSessionId;", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getSessionId", "()Landroid/media/metrics/LogSessionId;", "", ApiSince=31)>]
member this.SessionId : Android.Media.Metrics.LogSessionId
Property Value
- Attributes
Remarks
A session ID is used to identify a unique playback and to tie together lower-level playback components.
Associate this session with a MediaCodec
by passing the ID into MediaFormat
through MediaFormat#LOG_SESSION_ID
when creating the MediaCodec
.
Associate this session with an AudioTrack
by calling AudioTrack#setLogSessionId
.
Associate this session with MediaDrm
and MediaCrypto
by calling MediaDrm#getPlaybackComponent
and then calling PlaybackComponent#setLogSessionId
.
Java documentation for android.media.metrics.PlaybackSession.getSessionId()
.
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.