closed-captions

Unable to download closed captions in Youtube API v3

自作多情 提交于 2019-12-06 08:43:12
问题 Im using the PHP example code given in Youtube API v3 : https://developers.google.com/youtube/v3/docs/captions/download , to download captions from 3rd party, publicly available YouTube videos in my webapp i.e. I have NOT uploaded the content on Youtube. I am able to get access to the list of caption tracks, but unable to download the caption using the caption track ID from the received list. The error that shows up upon attempting to DOWNLOAD is: Error calling GET https:// www.googleapis.com

HTML5 video doesn't play with crossOrigin=“anonymous”

给你一囗甜甜゛ 提交于 2019-12-06 05:32:52
问题 I am trying to integrate the HTML5 video player in my application. My video sources and the caption (for track tag) are coming from a different domain. When I use the <video crossOrigin="anonymous"> <source src="domain1Url"> ... </source> <track kind="captions" label="English Captions" src="domain2Url" srclang="en" default> </video> All of the above code works fine for me in Chrome insecure mode(disabled web security). With regular Chrome, if I don't specify the crossOrigin attribute, I get

Does AVPlayer support closed captions delivered in a separate text file?

。_饼干妹妹 提交于 2019-12-05 12:30:43
My team produces iOS apps that play video using AVPlayer. We've recently been told that we MUST allow display of closed captions for all videos... but that the closed captions would not be coming as a track within the video files (we already support closed captions that come in this way). Instead, we'll be getting them as a separate text file. I've seen a couple references to including the caption text file in the SMIL, but I've found nothing about how to incorporate this text file into the playback experience. Does anyone have any personal experience with this, or know of any online

HTML5 video doesn't play with crossOrigin=“anonymous”

寵の児 提交于 2019-12-04 09:29:11
I am trying to integrate the HTML5 video player in my application. My video sources and the caption (for track tag) are coming from a different domain. When I use the <video crossOrigin="anonymous"> <source src="domain1Url"> ... </source> <track kind="captions" label="English Captions" src="domain2Url" srclang="en" default> </video> All of the above code works fine for me in Chrome insecure mode(disabled web security). With regular Chrome, if I don't specify the crossOrigin attribute, I get an error saying Text track from origin '...' has been blocked from loading: Not at same origin as the

How to link youtube video without captions?

妖精的绣舞 提交于 2019-12-03 20:58:05
问题 Is it possible to link youtube videos in HTML code without showing it's captions (subtitles)? Let's say I have following video: http://www.youtube.com/watch?v=kTvHIDKLFqc . It has default english subtitles. However, when linking this video, I want to load it without them. Is there a possibility to do so with some kind of parameter in video? I found this link with description how to do it, but it doesn't seem to work. If I try to use following format of link, it shows captions anyway: http:/

Youtube-API: Upload binary captions file (ebu-stl)

守給你的承諾、 提交于 2019-12-02 05:30:13
问题 Youtube supports some binary caption file formats, such as ebu-stl. I've got an *.stl file that uploads and processes just fine when I upload it via the web interface. But when I try to upload it via the API v2 with a POST request, it does not seem to recognize the file format properly. The POST request looks like this: POST /feeds/api/videos/VIDEO_ID/captions HTTP/1.1 Host: gdata.youtube.com Content-Type: application/vnd.youtube.timedtext; charset=UTF-8 Content-Language: en Slug: Title of

Youtube-API: Upload binary captions file (ebu-stl)

耗尽温柔 提交于 2019-12-01 23:34:00
Youtube supports some binary caption file formats, such as ebu-stl. I've got an *.stl file that uploads and processes just fine when I upload it via the web interface. But when I try to upload it via the API v2 with a POST request, it does not seem to recognize the file format properly. The POST request looks like this : POST /feeds/api/videos/VIDEO_ID/captions HTTP/1.1 Host: gdata.youtube.com Content-Type: application/vnd.youtube.timedtext; charset=UTF-8 Content-Language: en Slug: Title of caption track Authorization: Bearer ACCESS_TOKEN GData-Version: 2 X-GData-Key: key=DEVELOPER_KEY

Closed Captions in YouTube API v3

自作多情 提交于 2019-11-30 12:09:32
问题 I need to read closed caption text from 3rd party, publicly available YouTube videos in my java webapp i.e. I have NOT uploaded the content. Whilst v2 of the YouTube Data API restricted access to the caption information to the person who uploaded the video it seems like a very odd restriction to give access to everything except this one piece of data. I expected to see this restriction removed in v3 of the API but now the only reference to closed caption is a boolean method to confirm if CC

Can't download video captions using youtube API v3 in python

旧巷老猫 提交于 2019-11-30 10:31:06
I am trying to download closed captions for this public youtube video (just for testing) https://www.youtube.com/watch?v=Txvud7wPbv4 I am using the code sample(captions.py) below that i got from this link https://developers.google.com/youtube/v3/docs/captions/download I have already stored the client-secrets.json(oauth2 authentification) and youtube-v3-api-captions.json in the same directory (asked in the sample code) I put this code line in cmd : python captions.py --videoid='Txvud7wPbv4' --action='download' I get this error: I don't know why it doesn't recognise the video id of this public

Toggling Closed Caption in HTML5 video and disabling default video controls

不羁岁月 提交于 2019-11-30 03:02:56
问题 I have two problems. As soon as I put the track tag within my video element the video's default controller shows up. I have custom controls so it's quite the problem. Second. I can't find a way to toggle closed caption on an off. HTML: <video id="trailers" poster="images/poster/poster.jpg"> <source src="media/vLast.mp4" type="video/mp4"> <source src="media/vLast.webm" type="video/webm"> <track id="mytrack" label="English Subtitles" src="subtitles.vtt" srclang="en" default /> </video> <button