-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught (in promise) Error: Failed to load file://connect.facebook.net/en_US/sdk.js #728
Comments
The Facebook player loads the SDK from here: which will load it based on the protocol of the page you are currently on. If you are loading the player on a local file it will attempt to use Try manually loading the SDK yourself before the player, by adding the SDK before the standalone script, eg: <script src='https://connect.facebook.net/en_US/sdk.js'></script>
<script src='https://unpkg.com/react-player/dist/ReactPlayer.standalone.js'></script> See if that helps? |
Hello, thank you for your answer. Your solution works, but why not force loading the SDK directly from https instead of the local page protocol?
|
Current Behavior
When trying to use the standalone version of ReactPlayer to play a Facebook video, I get the following error:
Uncaught (in promise) Error: Failed to load file://connect.facebook.net/en_US/sdk.js
Expected Behavior
I expected the player to play correctly the video as it does with Youtube videos.
Steps to Reproduce
Just try to create this index.html file and open with browser:
Environment
Other Information
The text was updated successfully, but these errors were encountered: