Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Error on ending cast #60

Open
sdahdaah opened this issue Mar 21, 2018 · 6 comments
Open

Error on ending cast #60

sdahdaah opened this issue Mar 21, 2018 · 6 comments

Comments

@sdahdaah
Copy link

sdahdaah commented Mar 21, 2018

Hello,

When ending cast we have an error no media found.

We are casting using HLS stream.

player erro player.error()r
MediaError {code: 4, message: "No compatible source was found for this media."}
code
:
4
message
:
"No compatible source was found for this media."
proto
:
Object

Regards,

@amohiy
Copy link

amohiy commented Mar 26, 2018

I have the same issue did you find any solution?

@sdahdaah
Copy link
Author

Hi,

i started using another plugin that solved the issue.

@amohiy
Copy link

amohiy commented Mar 27, 2018

a plugin working with video.js

@sdahdaah
Copy link
Author

yes the one of silverline

@amohiy
Copy link

amohiy commented Mar 27, 2018

thanks a lot.

@SondreBakken
Copy link

I am having the same issue. And I think the reason is that inonStopAppSuccess()
this.src(this.player_.options_['sources']);

this.player_.options_['sources'] is an empty array. If changing this line to

this.src(this.cache_.src);

it works, but this is a bit of a workaround, and Id like to understand why this happens.

So on loadTech it passes in
this.loadTech_('Chromecast', { type: 'cast', apiMedia: media, apiSession: this.apiSession, });

and

loadTech_(techName, source)
so the source is never passed in through the constructor for the Tech when loaded.
Instead its passed to the chromecast in a success callback

const source = this.cache_.src; this.mediaInfo = new chrome.cast.media.MediaInfo(source, type); this.loadRequest = new chrome.cast.media.LoadRequest(this.mediaInfo);

Could this be why the source played is not set to options_.source and then not passed back when ending the cast session?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants