Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
Hi,
in one of my project i used editor to insert youtube link and embed a video. now the problem is src of the iframe is http://youtube.com....and when this page is load it do not run the video. if i change the src="https://youtube.com" it works fine. in other website where i use object tag it works well with or without https protocol. is there any solution to this issue ?
Posted
Comments
syed shanu 16-Apr-14 3:22am    
From where do you get the youtube URL.If for example you load from DB then replace http to https and then load .Hope this will solve your question.
ravikhoda 16-Apr-14 3:29am    
well yeah but my main concern is why it is not working on http. what i think that it should work with http and https both.

1 solution

YouTube API Team:
It’s very important to note that this is just a first step in enabling HTTPS for the entire YouTube viewing experience. In particular, only the YouTube player code is accessible via HTTPS at this time. The actual video bitstream, and some additional content loaded by the YouTube player may still be accessed via standard HTTP connections when you use an HTTPS URL in your embed code. Also note that HTTPS remains optional for YouTube embeds; we have no plans to turn off support for the HTTP URLs.

Please check for more info : HTTPS Support for YouTube Embeds
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900