Add Css To Iframe Page?
In simple terms, I have uploaded a video to Google Drive that I wish to embed onto my website. I retrieved an embed code from the shared-video page for my video on Google drive: &l
Solution 1:
Have you tried directly embedding the video using HTML5's <video>
tag (which is what is inside your iframe anyway)?
<videoclass="video-stream html5-main-video"style="width: 640px; height: 480px; left: 0px; top: -480px; transform: none;"src="https://r10---sn-4g57kney.c.docs.google.com/videoplayback?requiressl=yes&shardbypass=yes&cmbypass=yes&id=951765eacbdee2ee&itag=18&source=webdrive&app=docs&ip=217.5.178.213&ipbits=0&expire=1432754244&sparams=requiressl,shardbypass,cmbypass,id,itag,source,ip,ipbits,expire&signature=691BAE82BA1FE4D4084DCCB9C1EBDA134AF4312B.A789605BB07CC90CBAE60AD24A9631022835B6DC&key=ck2&mm=30&ms=nxu&mt=1432750367&mv=u&nh=IgpwcjAxLmZyYTAzKgkxMjcuMC4wLjE&pl=23&cpn=jL7UCwA73YsFunXs&c=WEB&cver=html5"></video>
Edit:
I just tested this but it does not work since the src
does not directly point towards a video file but rather many POST
parameters which google works on to create the video when embedded in an iframe. Can you download the video file?
Solution 2:
There is a brutal way to do this:
<divclass="iframe_hide_poop"><divclass="magic"></div><iframesrc="...."></iframe></div>
then the css part is:
.iframe_hide_poop{
position:relative;
//add your stuff
}
.iframe_hide_poopiframe{
position:relative;
//add your stuff
}
.magic{
position:absolute;
width:80px;
height:80px;
top:20px; //adjust the valueright:20px;//adjust the valuebackground-color:#000;
}
In this way, there will be an 80X80 black area "above" the pop-up button preventing users seeing pop-up, or you can change the width of the .magic to be 100%, it will show as a thin banner if you think it looks better.
Post a Comment for "Add Css To Iframe Page?"