hi
I had embed some youtube videos in my app, and now youtube refuse to connect. Can I solve this?
hi
I had embed some youtube videos in my app, and now youtube refuse to connect. Can I solve this?
Hi @topotaman
Could you share the code of how you are embedding the videos?
I have encountered this similar issue before and this solution worked for me - html - Embed YouTube video - Refused to display in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' - Stack Overflow
hi
here it is:
html.Iframe(width="560", height="315", src="https://youtu.be/culopesicola", title="YouTube video player", allow="accelerometer, autoplay, clipboard-write, encrypted-media, gyroscope, picture-in-picture "),
Your above code is hard to read, use the code icon of the editor when typing your comment to format the code correctly.
Like this:
print("Hello world!")
Also check if the youtube video URL in your code is valid and working.
[quote=“topotaman, post:3, topic:69614, full:true”]
hi
here it is:
html.Iframe(width="560", height="315", src="https://youtu.be/culopesicola", title="YouTube video player", allow="accelerometer, autoplay, clipboard-write, encrypted-media, gyroscope, picture-in-picture "),`
[/
quote]
hi
here it is:
`html.Iframe(width="560", height="315", src="https://youtu.be/culopesicola", title="YouTube video player", allow="accelerometer, autoplay, clipboard-write, encrypted-media, gyroscope, picture-in-picture "),`
The youtube link in the src
does not seem to be working.
Make sure to use the youtube video link which we get from the embed code snippet from youtube (it contains the word ‘embed’ in the URL)
For eg -