Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

How to add start time to a YouTube playlist that uses listType

$
0
0

As seen working here: https://jsfiddle.net/spqf729t/

This is the embed player, works here

<iframe width="442" height="261" src="https://www.youtube.com/embed?listType=playlist&list=TLGG9A81gaxbq3wwODEwMjAyMw&start=200" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

image

How do I have it work here? https://jsfiddle.net/n0rxfzag/

This is the javascript player, it's not working.

 function addPlayer(video) {const options = {  height: 360,  host: "https://www.youtube-nocookie.com",  width: 640,  start:200};options.playerVars = {  autoplay: 0,  cc_load_policy: 0,  controls: 1,  disablekb: 1,  fs: 0,  iv_load_policy: 3,  listType: "playlist",  list: "TLGG9A81gaxbq3wwODEwMjAyMw",};options.events = {"onReady": onPlayerReady};

image

I added start:200 to the javascript


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>