Chevrons in live captions being sanitized to > - youtube-api

The company I work for makes a software for, among other things, providing real time captions which includes YouTube live event captions.
We're running into an issue where chevrons are being sanitized to >in the process of being handed to YouTube and displayed on the stream. We're assuming YouTube is looking to receive some other string or code to properly display chevrons in the captions, but I can't seem to find any information along those lines in the documentation we have.
If anyone has any insight as to what we can do to get chevrons to display properly, it would be greatly appreciated. Thanks!

Related

What algorithm does youtube use to generate a transcript for videos?

I am looking into developing an application to transcribe an audio file for me, then it gives me a document with words or phrases and times spoken, just like YouTube does. I could just upload files to YouTube and then get the transcript but I want to use it offline. Anyone to help? Where can I start?
Not sure about Youtube, but I would start with Google Cloud Speech API, and if you're not happy with it, then I'd go through these 5 as well.
Also, bear in mind that Chrome has Web Speech API built in (and most likely Firefox has something similar, but I never had a need to explore that), so if what you're doing is for web, you should check that out too.
Let us know if this helped.

differing numbers between YouTube Analytics API and what I see on the screen

So I was following the example of connecting to the YouTube Analytics API that can be found by clicking here.
When I run the above code I get the 52 views, however when I go to the page directly I see these numbers.
Why is it that I see such a large number when I go to the page directly but in the API its much smaller? Did YouTube Analytics start collecting data after a certain date?
Any help would be much appreciated!
I had the very same question. After a lot of research, finally I found the answer. According staff from Google, the views are measured from youtube page, where they can monetize your content, this is due a lot of advertisers use youtube to host videos and use them on ads on the hope to increase the views to show the "success" of the video on their campaigns, however this is not that smart since Google controls that number to prevent exactly that, would be too easy simply embed your video on a lot of pages and expect that to be counted to views without provide Google any chance to get money (while use their bandwidth and resources) :-/

Viewbix players count toward Youtube viewcounts. I can't find any others that do. Why, exactly

I've asked related questions, and no one seems to know anything about this. Answers on the net all say no custom player will count, but this is not true. Viewbix does, and I want to understand why. As near as I can tell, none of the views from jw, mediaelement.js, jplayer, voo, lead, covert, herocaster, or any of the others count toward yt view counts. Correct me if I'm wrong, but this is what I've been able to dig up.
Generally available info says play needs to be using yt's native play button and not auto-started
Is it that viewbix is simply wrapping the regular youtube player rather than accessing through js api? Is that what they're doing that is different than voo, jw, covert, lead, and any of the countless other players whose views do not count?
Their embed code looks like this:
which is different from what I see with other players in that it is referring to an html file (which has js on it) as opposed to referring to a js file hosted somewhere.
Anyone have insights here?

Interactive transcript for Youtube video

I am working on a Youtube video site and would like to implement interactive transcript feature like this one: http://demo.jwplayer.com/iframes/interactive-transcript/ (I have video transcript and caption files, in SRT and WebVTT format. I will not use Youtube's machine transcribed transcript.)
I did a research online. It appears that there is no free plug-in/module that can do this. There are some paid options, such as Captionbox (http://speakertext.com/captionbox) ,3rdMediea, SubPly (http://www.subply.com/en/Products/InterActiveTranscript.htm BTW: this is the best I have found so far. It loads transcript in different languages on the fly). I am reluctant to use these paid options, primarily because I do not want to rely on a single provider.
Can someone please advise me a better option?
Thank you.
You can always write your own solution:
Read YouTube API Dosc:
https://developers.google.com/youtube/js_api_reference?csw=1
Check getCurrentTime()
Read transcript from file/database/hiddendiv and display it if getCurrentTime == textTime from your transcript then just highlight it (like in captionbox example).

youtube direct lite playlists and auto-approval

After struggling with getting Ytd to work for a couple of days I'm about to dive into Youtube Direct Lite which looks much friendlier to set up.
My first question is about the playlist size limit. Once a playlist is full (200 videos?) what would happen with further video submissions? Would the oldest be dropped or is it just impossible to add any more, effectively breaking the widget for that playlist?
I expect I would need to use multiple playlists and manually make new playlists and widgets if there's a lot of videos, but is there a best practice kinda way to do this for a large number of videoslso?
Also, would it be possible to automate the submission approvals programmatically if there's a lot of videos or is this beyond the scope of ytd-lite.
Thought it's better to ask these questions now before starting the process of setting this up for my site. Ytd-lite looks like a great project.
thanks.
from the Doc:
https://developers.google.com/youtube/2.0/developers_guide_protocol_playlists#Adding_a_playlist
Note: Playlists contain a maximum of 200 videos. As such, you will not be able to add a video to a playlist that already contains that many videos.
I dont'n try to force this situation but I expect an error.
I believe that to automate the submission approvals programmatically you can modify the source code of YouTube Direct Lite, and with a little logic in the server side of your app you can do what you want.

Resources