ImaServerSideAdInsertionMediaSource.StreamEventListener


@UnstableApi
public interface ImaServerSideAdInsertionMediaSource.StreamEventListener


A listener to be notified of stream events.

Summary

Public methods

abstract void
onStreamIdChanged(MediaItem mediaItem, String streamId)

Called when the stream ID provided by the IMA SDK changed.

Public methods

onStreamIdChanged

abstract void onStreamIdChanged(MediaItem mediaItem, String streamId)

Called when the stream ID provided by the IMA SDK changed.

This method is called on the main thread.

Parameters
MediaItem mediaItem

The media item that the source resolved to the given stream ID.

String streamId

The stream ID.