I’m playing a 5 second video clip through the “vod” application like so:
Then I wait for the “onStreamDestroy” event, but it doesn’t come ~5 seconds later when the video finishes playing on my client, like I expect. It happens 25 seconds after the end of the video.
In contrast, when I stream from vod over RTMP, the “destroy” and “disconnect” events are thrown right when I expect them to be thrown.
Is there anything I can do to listen for an event that says “the video has played to completion” when accessing a VOD HLS stream?
Perhaps as a work-around, I could read the duration of the video, start a timer, and then manually throw events when this timer is finished.