mmeitine / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
1 stars 0 forks source link

Stalled and waiting events don't fire on receiver page but sender app gets them fine #675

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The reference receiver has the following code:

     this.mediaElement_.addEventListener('stalled', this.bufferingHandler_,
            false);
        this.mediaElement_.addEventListener('waiting', this.bufferingHandler_,
            false);

and that bufferingHandler fires just fine when you seek on the video and it 
buffers for a second or so but if the video buffers during normal playback that 
bufferingHandler never fires. 

I tested this by putting a breakpoint inside the function of bufferingHandler 
while debugging on Chrome, and then I made my video server stop sending bytes 
to the video player. This caused the video player to freeze the video, my 
sender app got a buffering state, but the bufferingHandler function never got a 
call. The reference receiver 
(https://github.com/googlecast/CastReferencePlayer) also has some <div> which 
show up when buffering and they didn't show up. 

Original issue reported on code.google.com by car...@instantbits.com on 22 Oct 2015 at 4:15

GoogleCodeExporter commented 8 years ago
What media format are you using?

Original comment by jonathan...@google.com on 22 Oct 2015 at 9:11

GoogleCodeExporter commented 8 years ago
I tested mostly mp4 videos. 

Original comment by car...@instantbits.com on 22 Oct 2015 at 10:35