• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.
    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript Iframe playlist

Adjehss

New Coder
Im trying to load a playlist of videos and music into Iframe but i cant find any info on that subject on google.
Does anyone know how?
 

Malcolm

Administrator
Administrator
Staff Team
Hi there,

Welcome to Code Forum!

Something I would like to point out is to think of an iframe like a window. A window where you are looking into something. When you set up an iframe you are looking into another webpage or document without leaving the page you are on. Now you're trying to load a playlist of music and videos, could you provide more info on how you want to do this and the source?
 

Thomasss

Coder
Staff Team
Guardian
I think I’m a bit confused still. You say you want to load a playlist - where is said playlist hosted? Is this through Spotify or YouTube? Or is it on your local host? Knowing where the playlist you want to embed is located will help us get you the right code! :)
 

Adjehss

New Coder
I think I’m a bit confused still. You say you want to load a playlist - where is said playlist hosted? Is this through Spotify or YouTube? Or is it on your local host? Knowing where the playlist you want to embed is located will help us get you the right code! :)
the playlist would be located at localhost
 

Adjehss

New Coder
Hi there,
Welcome to Code Forum!

Something I would like to point out is to think of an iframe like a window. A window where you are looking into something. When you set up an iframe you are looking into another webpage or document without leaving the page you are on. Now you're trying to load a playlist of music and videos, could you provide more info on how you want to do this and the source?
Thanks.. thats what im trying to find out i know its possible.

I agree with @LTomy - it might be easier for you to upload them to YouTube and them directly embed through YouTube's services, or use an iframe from there.
not what im trying im trying to embed both youtube embed urls and soundcloud embed urls for examble with a playlist i create
 

LTomy

Active Coder
Staff Team
Guardian
I do not think there are 'plug-and-play' options. I think you have to create the playlist by changing the content of the iframe using Javascript. Maybe other people know other options?
 

LTomy

Active Coder
Staff Team
Guardian
It must be possible, the question is more 'how'. As I said, the only way is probably to do it manually using JS. The problem is that it is not as simple as making a playlist from one source like Youtube.
 

Cumulus

Coder
Staff Team
Guardian
Do you have a snippet of code from the way yout want to create the playlist display on your local-host? There might be a way to frame that directly, otherwise I think it'd have to be implemented manually with JS
 
Top