Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
Can anyone tell me,how we can autoplay YouTube video in sololearn html ???
I am not able to autoplay YouTube video https://code.sololearn.com/Wl5fMF21222h/?ref=app
13 Respostas
+ 2
YouTuber's can choose to have their content accessible out side of the YouTube platform or not.
You can try a different video and it should work if video is allowed.
However as Programmer mentioned autoplay is not supported.
Autoplay is disabled in some browsers to prevent unwanted video or audio from playing.
Chrome announced changes to its autoplay policy that took effect back in December of 2018.
Users must interact with a browser item before audio playback starts.
However there is a "hack" (work around) Though the video will be muted.
Works on browser.
https://code.sololearn.com/WMihx0npmN23
Edit: does not work in app unfortunately.
https://code.sololearn.com/WMihx0npmN23/?ref=app
+ 2
Alok I stated that it does not work in app but does on web.
+ 1
The video you are attempting display is unavailable.
+ 1
@alok the video does not display in the playground
+ 1
Chris Coder oooš£
0
a Wolf it's not workingš
And it only works when video is stored/downloaded & I think it doesn't work in sololearn
0
a Wolf meaning that autoplay is disabled šš„ŗš£
0
a Wolf not workingā¹ļøš
0
Chris Coder what do you mean by "unavailable" š??
0
Chris Coder but why??
0
In html 5 not support aoutoplay
0
Programmer ā¹ļøš
0
Chris Coder but not working autoplay in yours too