ImaServerSideAdInsertionMediaSource.StreamEventListener


@UnstableApi
interface ImaServerSideAdInsertionMediaSource.StreamEventListener


A listener to be notified of stream events.

Summary

Public functions

Unit
onStreamIdChanged(mediaItem: MediaItem!, streamId: String!)

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

Public functions

onStreamIdChanged

fun onStreamIdChanged(mediaItem: MediaItem!, streamId: String!): Unit

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.

streamId: String!

The stream ID.