
Changing source/file from hosted video to youtube video results in 'no suitable providers' error.
Good afternoon,
I have been using a local installation of JWPlayer for a site I am working on that requires the ability to swap video sources dynamically.
The project requires the ability to set both the initial video source (inside .setup()) or the new video source (inside .load()) to be either locally hosted videos (e.g. .mp4) or a youtube link.
When the initial source is set as a hosted video, and the .load() method is called with a youtube video as the file/source, the player errors, printing "no suitable provider found" in the JS console.
I have managed to narrow down the issue to the fact that when the player is initiated (.setup()) with a locally hosted video, the list of suitable providers does not include youtube as a provider.
However, when attempting to swap the source for a youtube video, the list of suitable providers is not changed/updated to account for the new source, and thus does not include 'youtube', causing the error and the player to not play the new source.
Is there a way to define a list of suitable providers myself?
Thanks a lot, I can provide more details if needed.