gapu / google-cast-sdk

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

cast.player.api.Player#reload throws exception #473

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. provoke player error (cast.player.api.Host#onError) via shutting down stream 
url, temporarily
2. call cast.player.api.Player#reload for recovering from the network error 
multiple times

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

expected is player reloads and stream starts playing again when stream url is 
up again.
instead I see this exception after third call of reload():

NotFoundError: Failed to execute 'removeSourceBuffer' on 'MediaSource': The 
SourceBuffer provided is not contained in this MediaSource.

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

newest versions

Original issue reported on code.google.com by p...@zattoo.com on 5 Jan 2015 at 1:13

GoogleCodeExporter commented 9 years ago
MPL does not expect to be reloaded after host.onError is called.  When 
host.onError is called, the application needs to call player.unload() and then 
call player.load if it wants to start a new playback session.

Original comment by vadi...@google.com on 5 Jan 2015 at 5:13

GoogleCodeExporter commented 9 years ago
Closing this issue as this is intended behavior.

Original comment by jonathan...@google.com on 7 Jan 2015 at 6:38