minshikshin / google-cast-sdk

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

Seeking in live smooth #379

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When seeking backwards in live smooth streaming the player get stalled and 
never start playing again. (It is working if you seek within the buffer but 
that is only a few minutes and user expect same seeking functionality as with 
recorded media.)  
Steps to reproduce: 
a)  Start a live stream session and set opt_initialTime to Infinity (the way to 
start at live position).  
mediaProtocol = cast.player.api.CreateSmoothStreamingProtocol(mediaHost);
mediaPlayer = new cast.player.api.Player(mediaHost);
mediaPlayer.load(mediaProtocol, Infinity);

b)  Seek backwards 5 minutes (currentTime - 300).  
c)  Player stall.

Expected function:
Chromecast players should seek directly and start playing from the demand 
seeking position.
This should work even if the fragment for the seek process have never be played 
before (not in any buffer).

When seeking forward in live smooth streaming the player stop and picture 
freeze, when time has caught up, it start to play again from correct position.

Steps to reproduce: 
a)  Start a live stream session and set opt_initialTime to something before live 
position e.g. 10 minutes before live position.  
mediaProtocol = cast.player.api.CreateSmoothStreamingProtocol(mediaHost);
mediaPlayer = new cast.player.api.Player(mediaHost);
mediaPlayer.load(mediaProtocol, yourLivepos-600);

b)  Seek forward 5 minutes (currentTime + 300). 
c)  Wait 5 minutes to see that it start playing again.

Expected function:
Chromecast players should seek directly and start playing from the demand 
seeking position.

We are using Media Player Library version 0.9.0

Original issue reported on code.google.com by patrik.c...@magine.com on 12 Sep 2014 at 8:00

GoogleCodeExporter commented 8 years ago
MPL 0.9.0 does not support seeking for live streams, except for being able to 
pass in Infinity as initialTime to player.load. However, we may add support for 
seeking for live streams in the next media player library update.

Original comment by vadi...@google.com on 16 Sep 2014 at 6:18

GoogleCodeExporter commented 8 years ago
OK you can close this issue.

Original comment by patrik.c...@magine.com on 16 Sep 2014 at 7:38

GoogleCodeExporter commented 8 years ago

Original comment by ahug...@google.com on 16 Sep 2014 at 7:55

GoogleCodeExporter commented 8 years ago

Original comment by anad...@google.com on 17 Sep 2014 at 7:15