Open obber opened 2 months ago
I am experiencing the same issue.
We have a set of 5 videos. Intermittently, one of the videos will load and not start streaming any data.
The issue with .loadVideo() seems to be related to the background & autoplay options. If you leave the controls visible, you will see the video loads ahead but does not play.
A crude fix to this for the time being:
player
.loadVideo({video_options})
.then(
setTimeout(() => {
player.play();
}, 1000)
)
.catch((error) => {
console.error(error);
});
I have a similar issue that might be related to loadVideo
function.
I also have a set of videos.
The problem on my website is as follows: after switching between videos and clicking the back button in the browser, I always get:
Hey There! To play your video here, change its privacy settings so it can be embedded on: player.vimeo.com
orSorry Because of its privacy settings, this video cannot be played here.
You can also see that type of error on the video that is provided in the issue description as well.
If you try to replicate it with the code provided in the issue, you can see that after the error appears, the player also doesn't load any other video by clicking next or previous buttons.
Also, I see this library error in the console (I haven't seen this error last week, seems to be new one):
I tried to add "player.vimeo.com" to allowed domains and the privacy errors disappears, but hitting the browser's back button still blocks loading any different video on the website. The behavior is as follows:
Some of my thoughts:
loadVideo
functionOur project uses the latest version of the library @vimeo/player": "2.23.0".
One more comment that might be useful in the investigation - here is a healthy request example when there is no problem with loading a video:
and here is a request when the privacy error happens:
You can see that Content-Security-Policy part is different.
Expected Behavior
I expect
player.loadVideo(ID)
to playID
without issue once it's loaded.Actual Behavior
Video
ID
will begin playing but freeze in the middle of playback.Steps to Reproduce
I've recorded a loom of me reproducing this with a bit more context here: https://www.loom.com/share/e13b15c651d549e884d7c41db83c305f
npm i
npm start
Thanks for investigating! Any direction or guidance would be really appreciated :)