docs/doc/reference/com/google/android/exoplayer2/source/dash/PlayerEmsgHandler.html
Package com.google.android.exoplayer2.source.dash
All Implemented Interfaces:Handler.Callback
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classPlayerEmsgHandlerextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Handler.Callback](https://developer.android.com/reference/android/os/Handler.Callback.html "class or interface in android.os")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Handles all emsg messages from all media tracks for the player.
This class will only respond to emsg messages which have schemeIdUri "urn:mpeg:dash:event:2012", and value "1"/"2"/"3". When it encounters one of these messages, it will handle the message according to Section 4.5.2.1 DASH -IF IOP Version 4.1:
In both cases, the DASH media source will be notified, and a manifest reload should be triggered.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static interface | PlayerEmsgHandler.PlayerEmsgCallback |
Deprecated.
Callbacks for player emsg events encountered during DASH live stream.
|
| class | PlayerEmsgHandler.PlayerTrackEmsgHandler |
Deprecated.
Handles emsg messages for a specific track for the player. |
Constructors | Constructor | Description |
| --- | --- |
| PlayerEmsgHandler(DashManifest manifest, PlayerEmsgHandler.PlayerEmsgCallback playerEmsgCallback, Allocator allocator) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | handleMessage(Message message) |
Deprecated.
|
| PlayerEmsgHandler.PlayerTrackEmsgHandler | newPlayerTrackEmsgHandler() |
Deprecated.
Returns a TrackOutput that emsg messages could be written to.
|
| void | release() |
Deprecated.
Release this emsg handler.
|
| void | updateManifest(DashManifest newManifest) |
Deprecated.
Updates the DashManifest that this handler works on.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public PlayerEmsgHandler([DashManifest](manifest/DashManifest.html "class in com.google.android.exoplayer2.source.dash.manifest")manifest,[PlayerEmsgHandler.PlayerEmsgCallback](PlayerEmsgHandler.PlayerEmsgCallback.html "interface in com.google.android.exoplayer2.source.dash")playerEmsgCallback,[Allocator](../../upstream/Allocator.html "interface in com.google.android.exoplayer2.upstream")allocator)
Deprecated.
Parameters:manifest - The initial manifest.playerEmsgCallback - The callback that this event handler can invoke when handling emsg messages that generate DASH media source events.allocator - An Allocator from which allocations can be obtained.
-
public void updateManifest([DashManifest](manifest/DashManifest.html "class in com.google.android.exoplayer2.source.dash.manifest")newManifest)
Deprecated.
Updates the DashManifest that this handler works on.
Parameters:newManifest - The updated manifest.
-
public[PlayerEmsgHandler.PlayerTrackEmsgHandler](PlayerEmsgHandler.PlayerTrackEmsgHandler.html "class in com.google.android.exoplayer2.source.dash")newPlayerTrackEmsgHandler()
Deprecated.
Returns a TrackOutput that emsg messages could be written to.
-
public void release()
Deprecated.
Release this emsg handler. It should not be reused after this call.
-
public boolean handleMessage([Message](https://developer.android.com/reference/android/os/Message.html "class or interface in android.os")message)
Deprecated.
Specified by:handleMessage in interface Handler.Callback