Start YouTube embed playlist at a specific video/index - youtube

My app generates the first YouTube url below and embed it. I would like to start the playlist at a specific video. It is possible to do so on non-embed link with the parameter index (see 2nd link below) but this parameter does not work for my embed link.
https://www.youtube.com/embed/uNDfgnWN2G0?rel=0&enablejsapi=1&playlist=IJrwmIQqj5s,uNDfgnWN2G0,pDf46hYF4CE
https://www.youtube.com/watch_videos?video_ids=uNDfgnWN2G0,IJrwmIQqj5s,uNDfgnWN2G0,pDf46hYF4CE&index=2
Is there an alternative url parameter I could use?
I tried the parameter start as well but it doesn't work with my playlist link if I want to go beyond the second video.
https://developers.google.com/youtube/player_parameters

Related

show youtube playlist titles on web page

Using iframe a youtube playlist embed displays the first video
playlist opens with this view
I want the view to open like this
This is my preferred default view (I would really like to open with titles, not thumbnails
It seems is not possible using YouTube Data API.
You'll have to use YouTube Data API for retrieve the videos from a given playlist, then, use custom code HTML, CSS, javascript, etc, for create a similar result as you need.

pull playlists/video from youtube by scraping or parsing the video id

my job has a youtube channel were we put our tutorials on. However we want to also put the tutorials on our company website. I know we can use the embed and embed every single one, but we don't want to have to do that every time we make a video. Is there a way that when you create a video on youtube that another website can automatically pull that video onto our website?

For YouTube video, how to automatically display interactive transcript?

YouTube supports interactive-transcripts, using both machine-generated and user-uploaded transcripts. This is very useful for hearings, lectures, speeches, and educational videos where a visitor might want to read along or jump around. For example in this video:
https://www.youtube.com/watch?v=IY3U2GXhz44
The visitor can click on "...More" and then "Transcript" to view the interactive-transcript.
How does a video owner make that hidden feature automatically open for visitors? I cannot find any documented method for doing that through the API for either embed or linked videos. Is there an undocumented method in the API, or a URL parameter like "&action-panel-transcript=true" that works the way I'd expect it to?
As for url parameter, you can try adding &cc_load_policy=1 behind the rel=0 if it's an embedded video or &yt:cc=on at the end of the url if it's a link to the video.
Source: https://www.makeuseof.com/tag/force-subtitles-embedded-youtube-video/

Is it possible to search YouTube subtitles?

Suppose I want to find list of videos which have the phrase "French presidential election" in its subtitle.
Can I do this using YouTube API?
It will be perfect if it can even search within both human-generated and auto-generated subtitles. But it will be good enough if it can search either of the two types of subtitles.
You may refer with this documentation. You can use Captions: list which returns a list of caption tracks that are associated with a specified video.
Note that the API response does not contain the actual captions and that the captions.download method provides the ability to retrieve a caption track.
You need to provide the videoId parameter that specifies the YouTube video ID of the video for which the API should return caption tracks.
Here's a related thread: How to add Subtitles to Youtube video using Youtube API?
If you want to just search the subtitles from a particular video that is open on youtube.com you can view all the subtitles by selecting 'Open Transcript' from the ... button which is displayed below the main video window and to the right of the title (to the right of SAVE) - then you can just search them using the browser's page search functionality (i.e. Mac: ⌘+F, Win: Ctrl+F)

YouTube API Search by Tags

I'm trying to add videos to an existing ASP.NET MVC site, and I'd like to show videos from our YouTube channel.
I have added a tag to each video to indicate what page it should appear on. I had thought that I could search our channel by tag on each page to render the relevant video on that page.
I'm trying to exclusively use the API v3, but it seems I can't do this.
I can't use developer tags, because videos are uploaded by multiple users using the standard YouTube front end. This seems like basic functionality, so I'm assuming it's my inexperience with this API.
As an example, our YouTube channel is ChillinWithCharlie. During development, one video is tagged 20141213Cheneys.
I can get all videos in our channel, but is there a way to query the v3 API to retrieve just this video?
I've seen one suggestion here that I retrieve all videos, and filter in code. This feels inefficient, so I'd rather not do this, but I can't even see where the tag is returned with all channel videos, that I could interrogate in code.
It's not just you. There seems to be no specific query parameter to search by tag with API v3.
I would recommend doing a search with your tag in the 'q' (search) parameter, then checking the results to see if the tag exists in the returned snippet->tags property to verify the exact video.
Note YouTube tags are only visible to the video's uploader.
https://developers.google.com/youtube/v3/docs/videos#snippet.tags[]

Resources