How do I upload a video to a specific playlist? - brightcove

This is the first time I am working with Brightcove. I have been given access to an existing account with many playlists and videos.
I am looking at the create_video example. I don't see where I am supposed to specify the playlist for the video.
How do I upload a video to a specific playlist?

If you are using a tag-based "smart playlist", you just need to add the appropriate tag to the video.
{"method": "create_video", "params": {"video": {"name": "Name","tags": ["playlistTag"],"shortDescription": "...","itemState": ""},"token": "TOKEN","encode_to":"","create_multiple_renditions": ""}}
If the video is to be added to a manual playlist, use update_playlist after create_video.

Related

Parsing Youtube - Xpath to retrieve a Youtube Channel's Profile Picture and Description

I would like to import the profile picture of a number of Youtube Channels into a Google Sheets spreadsheet.
This is the information that I have been able to retrieve so far:
To retrieve the profile picture, I have used the following code using Social Blade's website:
=IMPORTXML(D2,"//img[#id='YouTubeUserTopInfoAvatar']")
However while it doesn't result in an erorr it doesn't retrieve the image from the src. Any idea how to make it work?
In regard to the description, I would like to use a code that can be consistently used using either the channel's id or Youtube's username. Other solutions that I have tried have allowed me to get a truncated description, not the full one.
Maybe there is a more cost-effective way of doing this task, but without much Javascript experience this is the easiest way I have found to retrieve the information. Ideally, I would like to find a solution that calls on the Youtube API and bypasses the 50-call limit.
Here's a sample Google Sheets template to work on a solution.
OK. I've edited your Google Sheet. You forgot the #src attribute for the image.
=IMAGE(IMPORTXML(E2;"//img[#id='YouTubeUserTopInfoAvatar']/#src"))
And I've added the XPath for the Youtube channel description (add "/about" at the end of the youtube channel links).
=IMPORTXML(C2,"//div[#class='about-description branded-page-box-padding']")
Note : You have to fix your "ChannelID" formula to extract the ID.

YouTube Video Topics/Categories

I'm working with YouTube videos and I noticed the field topicDetails.topicCategories (see in the API). It's not clear to me if this field is autogenerated by YouTube or if the user has to fill it. I tried to find some relevant field when editing the video but I didn't find it anywhere. So I guess YouTube fills this field based on tags, keywords etc. Is that correct?
google Api Explorer Check this site to see for which api you need which parameters.
I couldn't find a definitive answer for your question in the YouTube documentation for topicCategories, but I have some evidences that it is automatically calculated by YouTube.
First I couldn't find a way to set it in the configuration options of the channel I created.
Second, they used to have a (now deprecated) attribute called Guide Category they explicitly say:
A guideCategory resource identifies a category that YouTube algorithmically assigns based on a channel's content or other indicators, such as the channel's popularity. The list is similar to video categories, with the difference being that a video's uploader can assign a video category but only YouTube can assign a channel category.
So I believe that this Topic Category is automatically calculated by You Tube.

What HTML tags to display video preview in iMessage?

I'm trying to understand how Amazon does it to make this page play a video preview when its link is sent in iMessage:
https://www.amazon.com/Amazon-Fire-TV-Stick-With-Alexa-Voice-Remote-Streaming-Media-Player/dp/B00ZV9RDKK/ref=as_li_ss_tl?ie=UTF8&qid=1495387130&sr=8-2
After a bit of research, I've read multiple times that OGP og:video tags do the trick, however that page contains none.
The video that shows in iMessage is the one that appears as the last product image.
Any idea?

How to make the youtube video in Joomla article variable?

I have training material consisting of multiple lessons (= YouTube video’s).
I want these to be played within one and the same Joomla article, so that the comments of all students / viewers are shared over all lessons/video’s of that training.
For each lesson the student receives an email with the url, which is the same for all lessons, but with a variable to drive the correct video.
How to do this?
Are you looking for an extension or a way to develop a solution with javascript and PHP ??
In the first case you can try the media gallery extension supplied in the Joomla! extension directory, but I'm not sure that you find what you looking for...
In the second case you can building something with a little combinaison of javascript and PHP. One way that you can follow :
insert the id of the video in the url who's sent to the student then start the video by triggering a click on the player of the video.

Extract the number of views/revenue for a specific video (Youtube CMS)?

My friend works as a CMS admin for a Youtube Network and asked me if there is a way to automatically extract the number of views and the revenue for specific videos. Let me explain. If some people upload copyrighted material, as a CMS admin you have 2 options, either remove the video or claim it/add an asset so that ads appear on the video when being watched but the problem is that those videos are not connected to an partnered account so you can't see the revenue for that channel but have to check each video individually. So if I have a video (making it up) with the link: http://www.youtube.com/watch?v=123abcEFG56, you can take the code of the video, "123abcEFG56", paste it into the search-box of the Youtube CMS analytics and you get all the information for that video if you claimed it/added an asset to it (he tried to search by using words which are part of the video title (he tried even the exact title) in the YT CMS analytics but this works only for videos that are uploaded on a partnered channel/account so for videos uploaded on non-partnered channels, you can only view the statistics for that video if you put in the code of the video into the search box).
I came up with an idea, I visited some of the channels with the claimed videos, clicked on the video's tab and copied the html code. Then, by using a regular expression and PowerShell (Win7), I extracted all the video codes into a .txt file. Each line of the .txt file contains one video code, for example, it would look something like this:
123abcEFG56
123abcEFG57
123abcEFG58
...
So, this is not about a regular Youtube account but a CMS account and since analytics offers it, I would like to extract the data from the "Last Month" (default on Youtube is: "Last 30 days").
I am not familiar with the Youtube-API, so my question is, is it possible (and if yes, how) to make a batch script which would take one code per line and request the views and revenue made last month for the video with the corresponding code, and then "write" that info into another .txt or .csv file (ideally: "Video name", "Number of views", "Revenue")?
Thanks in advance for your answers!
You can use the Content ID API for this. Please reach to your partner manager for details.

Resources