KirovBvulgaru / google-cast-sdk

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

Can't resume a paused Smooth Streaming movie. #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set up a receiver app using Media Player Library
2. load Smooth Streaming VOD media.
3. after playing a movie, pause it.
4. after some seconds, send 'PLAY' message to receiver.

What is the expected output? What do you see instead?

Instead resuming a video, the video element fires 'onstalled' message.

What version of the product are you using? On what operating system?

//www.gstatic.com/cast/sdk/libs/mediaplayer/0.3.0/media_player.js

Please provide any additional information below.

Original issue reported on code.google.com by happy...@gmail.com on 28 Feb 2014 at 5:39

GoogleCodeExporter commented 8 years ago
that event is fired by the MediaElement; you can ignore that. Is that causing 
an issue for you?

Original comment by anad...@google.com on 28 Feb 2014 at 6:09

GoogleCodeExporter commented 8 years ago
I copied and modified a receiver source from 
https://github.com/googlecast/Cast-Player-Sample/blob/master/player.js to 
support Smooth Streaming. 

sampleplayer.CastPlayer.prototype.onStalled_ = function() {
  console.log('onStalled');
  this.setState_(sampleplayer.State.BUFFERING, false);
  if (this.mediaElement_.currentTime) {
    this.mediaElement_.load();  // see if we can restart the process
  }
};

"mediaElement.load()" causes this issue. Removing it fixes this issue.

Please update " https://github.com/googlecast/Cast-Player-Sample " with 
supporting Media Player Library.

Original comment by happy...@gmail.com on 28 Feb 2014 at 6:30

GoogleCodeExporter commented 8 years ago
The goal for that sample is not to have Media Player Library, you are welcome 
to fork that and update that with that library.

Original comment by anad...@google.com on 28 Feb 2014 at 6:36