YouTube red video discovery

Is it possible to determine if a Youtube video is a Red video using Youtube Data Api? The "kind" property on these videos is "youtube # video", like all other videos, and I cannot find a way to distinguish them.

+4
source share
1 answer

Not an ideal solution, but you can listen to state changes through an event onStateChange. When a Youtube Red video is uploaded, it goes from 3 (buffering) to -1 (not launched). It was a good enough indication for me to skip the video and play something else.

if (prevState === 3 && nextState === -1) {
  // Skip
}
0
source

All Articles