How to play video on the github page #23522
-
Hi guys. I have a one minute video that I want to show in github page… My HTML file works well on my computer but it does not work on github page… what should I do? |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 1 reply
-
I cannot see it at your public repos if you can make a test repo for that, so we can see it, or more details about that problem usually it’s URL problem |
Beta Was this translation helpful? Give feedback.
-
I have a test project.
I uploaded a one-minute movie in the box on the right (the movie file is in the “asset” folder). When I run this project on my computer, the movie is played automatically (according to the code) but there is only a movie poster on the github. |
Beta Was this translation helpful? Give feedback.
-
I access directly both files of the video, they are both playing, so we are sure, it’s accessible no errors at the Developers Tool, maybe I need to fork that, to test it, we’ll see |
Beta Was this translation helpful? Give feedback.
-
finally, it’s not just auto-play on GitHub and there is the warning at the Developer Tools, if you did not reload it, the warning will not show
and you may want to check this out
why am I getting this error “Error with Permissions-Policy header: Unrecognized feature: ‘interest-cohort’.” but if you right click the video and click |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help 🤩 What do you think I should do to ensure that it does not have control and is played automatically? |
Beta Was this translation helpful? Give feedback.
-
Mr-MRF-Dev:
there are suggestions at the thread, you can try them |
Beta Was this translation helpful? Give feedback.
-
using Edge, there is already the controls unfortunately, it’s still not auto-play, |
Beta Was this translation helpful? Give feedback.
-
I tried it locally, it’s not auto-play, even without being hosted on GitHub Pages, then I separate another local test just for the auto-play, still it’s not auto-play and even the examples at w3schools, |
Beta Was this translation helpful? Give feedback.
-
I used this tag from site W3, it works in the site it self, it may not work sometimes, I do not know why it does not work, but the syntax is correct (in my opinion) |
Beta Was this translation helpful? Give feedback.
-
yup, that’s exactly what I tried now, at that sample it will run, but if you try it even at local, then it will not |
Beta Was this translation helpful? Give feedback.
-
Part of the description of the W3 site: (Read the Note)
|
Beta Was this translation helpful? Give feedback.
-
yup, I tried it out too, mute it,
unfortunately, the sound is important too 🤣 |
Beta Was this translation helpful? Give feedback.
-
The sound of this video is more important than the video itself. 😕 🥲 Anyway, thank you for helping me 🤩 |
Beta Was this translation helpful? Give feedback.
-
I’m finding out why, and it might be this article
Autoplay policy in Chrome - Chrome DevelopersLearn best practices for good user experiences with the new autoplay policies in Chrome. but yes, I’m turning off autoplay even in Twitter 🤣 |
Beta Was this translation helpful? Give feedback.
Part of the description of the W3 site: (Read the Note)