AI-generated Key Takeaways
- 
          MediaFinishedEvent is an event data class for a cast.framework.events.EventType.MEDIA_FINISHEDevent.
- 
          The constructor for MediaFinishedEvent accepts optional currentMediaTime and endedReason parameters. 
- 
          The currentMediaTime property indicates the time in seconds when the media finished. 
- 
          The endedReason property specifies why the media finished. 
cast.framework.events.  MediaFinishedEvent
            Event data for a cast.framework.events.EventType.MEDIA_FINISHED event.
Constructor
MediaFinishedEvent
new MediaFinishedEvent(currentMediaTime, endedReason)
| Parameter | |
|---|---|
| currentMediaTime | Optional number | 
| endedReason | Optional cast.framework.events.EndedReason Value must not be null. | 
Properties
currentMediaTime
(number or undefined)
The time when the media finished (in seconds). For an item in a queue, this value represents the time in the currently-playing queue item ( where 0 means the queue item has just started).
endedReason
(non-null cast.framework.events.EndedReason or undefined)
The reason the media finished.