i am using the OSMF player to stream live events. When the stream ends or if the feed is turned off the player throws a BUFFER state change which my code catches and shows a loading spinner, but how do i detect if the stream has ended or turned off while the user is watching? Also will be helpfull if I want to post roll some ad or something. I could mickey mouse it i guess if it throws BUFFER EMPTY and set a timer but there has to be an easier way to do this.
it appears Akamais test player counts the bytes loaded when the buffer empties and sets a timer (what I thought! hey, im smart!) and then checks again and if the bytes are different it dispatches an event which backs the feed back to the start (or stops completely if FORCE LIVE is set)
now, how to know if the feed is live or memorex (ie- archived)
anybody? beuhler? beuhler?