youtube mix two iframe livestream and playlist - live-streaming

i have two iframes
iframe no.1 is livestream
<iframe allowfullscreen="0" frameborder="0" height="500" src="https://www.youtube.com/embed/live_stream?channel=UCSrZ3UV4jOidv8ppoVuvW9Q&autoplay=1&controls=1&loop=1&mute=01&width=640&height=500" width="100%"></iframe>
iframe no.2 is playlist
<iframe allowfullscreen="0" frameborder="0" weight=100% height="500" src="https://www.youtube.com/embed/videoseries?list=PL9tY0BWXOZFsN7SmajqI2TZ0WWzJYQVsI&autoplay=1&controls=1&loop=1&mute=0" width="100%"></iframe>enter code here
i want mix these two iframes in fact when youtube livestream activate
only show livestream at iframe
and when livestream finished iframe no2 start play automatically at the same iframe
how set condition between them

Related

Google docs iframe - not show every pdf file

I'm using in my site with Google docs iframe to preview PDF files and last 2 weeks I have problem preview some of them, really don't understand why some are ok.
I'm using it like this:
<iframe id="pdfviewer" src="http://docs.google.com/gview?embedded=true&key=AIzaSyAnlkbh2TXRyCQMMWj2LQ6EY1fdqxNHf14&url=http://s3.amazonaws.com/DvarMalchus/chumash/דברים/נצבים/6.pdf&embedded=true" frameborder="0" width="100%" height="100%"></iframe>
I got this error - "no preview available":

Using youtube API in asp.net mvc

I've a website built on asp.net mvc.I would like to include the videos from my youtube channels using youtube API.What's the best way to embed videos in a website from YOUTUBE using YOUTUBE API?
Since January 2015 Youtube recommends to embed the videos using an iframe: see doc here.
Once you get the api video list from https://www.googleapis.com/youtube/v3/videos, all the video ids are placed within the items object response.
From there you would do something as follows:
<iframe width="420" height="315"
src="http://www.youtube.com/embed/{{YOUR_VIDEO_ID_HERE}}?autoplay=1">
</iframe>

iFrame Facebook app to show it on Website

There is an app on Facebook which I want to show onto my Website. Is there a way which allow me to do that?
Here is a link to the Facebook app which I want embed onto my website
https://apps.facebook.com/quranic_verses/?fb_source=timeline
I have tried to iFrame the app but it is not working for me,
<iframe
src="https://apps.facebook.com/quranic_verses/"
width="100%"
height="310"
scrolling="no"
frameborder="0" align="center">
</iframe>
Thanks, appreciated!
Facebook doesn’t allow their pages to be displayed inside foreign frames.
You could of course embed the app’s URL, that gets displayed inside the canvas iframe on Facebook, directly (https://quran.io/facebook/tab/, or https://quran.io/ for a larger version).
But before you do so, you should check with the owner if they want you to do so or not.

API how to pull player with playlist - does Spotify API support playlists?

If you try to embed an individual link, like if you pull an individual link, it pulls the player in our post viewer- however, this is not possible with a playlist. How do I fix this so I am able to play a playlist as if it were an individual link
Yes, you can do it by embedding the Play-list:
<iframe src="https://embed.spotify.com/?uri=spotify:user:ficodelic:playlist:6KEI3T9dx1qgE3xQMSNtZV&view=coverart&" width="252" height="330" frameborder="0" allowtransparency="true" id="SpotifyId"></iframe>
FI

Attempting to use <iframe> tag to embed YouTube videos

I am using the following line of code to embed a YouTube player onto a new webpage. I've got over 200 videos online from 50 or so different performers. I'd like to create a page with all of the performers listed and then when you click on that performer's name their playlist will pop into a solo YouTube player. I can't seem to find a way to exchange the list=PLplaylist_ID to a variable that can be passed when the viewer clicks on a particular name. I need to use the tag due to the flash-not-playing-on-iPad-issue :)
iframe id="ytplayer" type="text/html" width="853" height="480"
src="http://www.youtube.com/embed/?listType=playlist&list=PLplaylist_ID&modestbranding=1&rel=0&autohide=1"
frameborder="0" />
Any help would be appreciated!
Ron
iframe never will play video for you.
It is just HTML container. What u need is launch html page inside iframe with YouTube player code inside.
For that You can try native Video TAG with fallback to flash (long way, reinvent bicycle ) or you can try to load in iframe : http://flowplayer.org. or http://videojs.com/