Forums

Accessing Youtube using HTTPS

I'm developping a web sute for a video club, with Web2py,.

I want to reference some videos on Youtube in my pages like this, for instance : <video id="ba" class="ba" height="100%" width="100%" controls preload="none"> <source id="bavideo" type="video/mp4" src="https://www.youtube.com/watch?v=AELNPQcR6lE"> </video>

.. and it does not work .:

I think it could be an HTTPS (vs HTTP) problem ...

Is there any configuraiton to do for that ?

Thanks for your answer.

Pulling in https content from an http site shouldn't usually be a problem... What's actually happening? Are there any errros in your browser debug console? (you can usually bring it up with ctrl+shift+i)

Here is my HTML File : <!DOCTYPE html> <!--[if HTML5]><![endif]--> <!--[if lt IE 7]><html class="ie ie6 ie-lte9 ie-lte8 ie-lte7 no-js" lang="fr"> <![endif]--> <!--[if IE 7]><html class="ie ie7 ie-lte9 ie-lte8 ie-lte7 no-js" lang="fr"> <![endif]--> <!--[if IE 8]><html class="ie ie8 ie-lte9 ie-lte8 no-js" lang="fr"> <![endif]--> <!--[if IE 9]><html class="ie9 ie-lte9 no-js" lang="fr"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="fr"> <!--<![endif]--> <head> <title>Fiche de La French</title> </head> <body> <video id="ba" class="ba" height="100%" width="100%" controls preload="none">
<!--- source id="bavideo" src="https://www.youtube.com/watch?v=AELNPQcR6lE" ---> <!--- source id="bavideo" type="video/mp4" src="https://www.youtube.com/watch?v=AELNPQcR6lE" ---> <source id="bavideo" src="https://youtu.be/AELNPQcR6lE"> </video>
</body> </html>

I've got an incorrect MIME Type message

There is no pb to see the video directly with my browser (Firefox 40.x)

I've found ! When you referenced a YouTube Video in a html page , you have to call the video like this (/embed/ ) : <iframe width="100%" height="100%" src="http://www.youtube.com/embed/AELNPQcR6lE" frameborder="0" allowfullscreen> </iframe>

Thanks to : http://www.w3schools.com/HTML/html_youtube.asp

glad you figured it out! :)