youtube_queue_extension icon indicating copy to clipboard operation
youtube_queue_extension copied to clipboard

Try using iframe instead of opening a new tab

Open himanshub16 opened this issue 8 years ago • 3 comments

Open the playlist in an iframe and give a button to open in a new tab.

himanshub16 avatar Aug 12 '16 03:08 himanshub16

Right now, the idea doesn't sound good, although can give an option in next edition

adeora7 avatar Aug 13 '16 21:08 adeora7

I'd like to add to this idea, if you want to use an iframe, try using the embeded version of the video. The difference is quite small.

Here is an example (just in-case you didn't know, which I hope isn't true and you actually know already) : Opening in tab, would require the following url => https://www.youtube.com/watch?v=JGwWNGJdvx8 But adding an embeded version uses the url => https://www.youtube.com/embed/JGwWNGJdvx8

Basically its https://www.youtube.com/watch?v=[VIDEO_CODE] changed to https://www.youtube.com/embed/[VIDEO_CODE]

And I agree with this idea, because it doesn't add to the tab, and you could actually add the embed player on a div that you didn't show.

And adding more, since I believe you'd require the embed video to auto play, add ?autoplay=1 at the end of the url. (source:https://stackoverflow.com/questions/7281765/youtube-iframe-embed-auto-play)

hackedhacker avatar Jul 14 '17 12:07 hackedhacker

@hackedhacker the implementation isn't the question for now. I am not really sure if iframe should be used or not. Because I look at this extension as just a controller for youtube and not a youtube player. So I don't see the benefits of using iframe.

adeora7 avatar Jul 15 '17 07:07 adeora7