MediaPlayer sometimes stalls out but says it is playing


i have video player have been working on recently.   have working except 1 thing.   have buffering icon shows when player tells me buffering.  works.  problem having mediaplayer element doesn't tell me when stalls out buffering.   worse, doesn't start playing again in sort of situation.  determine going on player, creating event listener media_player_state_change event.  using determine if should show buffering icon or not.

 

on related note, seems mediaplayer element lying me has buffered.  first time play video, seems telling truth.   checking bufferlength, seem accurate view of when going stall out because (if going stall) time slider shows end of buffer staying @ same location the player stalls.   second time player plays, bufferlength consistantly reporting 5 seconds of buffered video can see network activity isn't downloading anything.     have set buffertime 5 seconds. 

 

my questions are:

 

* there way accurate representation of in buffer?

* how can determine going on player without resorting creating timer checks if player playing , if is, seeing if progressing determine if buffering icon should show up?

hi jack,

 

based on general presentation of problem, here answers:

 

1. bufferlength telling truth. it's netstream buffer it's presenting, not buffer might have @ level (in case, in browser)

2. use somehing like: mediaplayer.addeventlistener(bufferevent.buffering_change,onbufferchange);

 

please provide more detalis video , code you're using if need more detailed help.

 

s/



More discussions in Developers


adobe

Comments