Why does updating a video's privacy status disable comments? - youtube

I noticed recently when updating a video's privacy setting via the YouTube API comments are disabled. I was able to reproduce the problem using the API Explorer here. I set an unlisted video to public and the comments are disabled.
I also tried the following combinations, all result in disabled comments
public -> private
private -> unlisted
unlisted -> public
public -> unlisted

Bug has been fixed on YT's end.

Related

OpenTok fragment Video publishing with MvvmCross

I'm trying to implement video streaming with OpenTok video streaming solution, based on MvvmCross architecture (Android app).
My video page is a MvxFragment, that is instantiated from MvxCachingFragmentCompatActivity. That activity manages a couple of fragments, and on custom command it shows my video fragment.
The problem is that i receive video and audio from subscriber, but unable to send the publisher data. Publisher view always shows black screen.
Here is my publisher creation block:
public void OnConnected(Session p0)
{
if (_publisher != null)
return;
_publisher = new Publisher(Activity, "publisher", true, true);
_publisher.SetPublisherListener(this);
AttachPublisherView(_publisher);
p0.Publish(_publisher);
}
But if i am not using mvvmcross, and implement OpenTok interfaces in FragmentActivity, instead of fragment, everything works fine.
I suppose that, the problem somehow depends on the provided context when i create Publisher, but cannot find the way to get it work.
Will be thankfull to any thoughts or help.
Finally i found what caused the problem. It was incompatible target android version. After i set it to "Use compile using SDK version" the problem is gone.

Youtube ?rel=0 tag no longer working

I was trying to share a Youtube link and wanted the person to just see that clip without any of the irrelevant suggestions that pop up next to it. I knew that adding ?rel=0 (or &rel=0) at the end of the URL used to achieve this, but this doesn't seem to be working anymore. After googling a bit, I found suggestions to use the youtu.be domain instead of youtube.com, but suggestions were shown nonetheless, or the URL gave an error. How else can I share this link and have no 'related' clips shown on the side? Thanks!
rel=0 is used to disable related videos shown at the end of a video, not to remove the suggested videos in the sidebars.
You can use the embed URL to access the video on it's own - http://youtube.com/embed/dQw4w9WgXcQ. Add ?rel=0 to disable the related videos at the end too.
Note, that rel=0 no longer works if you are signed into your Google account (YouTube, Gmail, etc).
&rel=0 only works when not signed in. However, you can get around this by using the enhanced privacy mode:
https://www.youtube-nocookie.com/embed/[id]?rel=0
As of August 23, 2018,
The behavior for the rel parameter is changing on or after September
25, 2018. The effect of the change is that you will not be able to
disable related videos. However, you will have the option of
specifying that the related videos shown in the player should be from
the same channel as the video that was just played.
To be more specific:
Prior to the change, if the parameter's value is set to 0, then the player does not show related videos.
After the change, if the rel parameter is set to 0, the player will show related videos that are from the same channel as the video that was just played.

Enable Content ID Matches via YouTube Partner API

I am using the YouTube Partner API to upload videos on the partner's behalf for monetization tracking and reporting.
The process is as follows:
User uploads video to website.
Video is pushed to channel owned by partner, asset is created, claim is created for the video uploaded to the partner channel.
Video is pushed to the user's public youtube channel
All of this is working, but I cannot figure out how to set the "Enable Content ID Matchs" option that is found in the YouTube CMS videos section. This needs to be enabled so the video that is uploaded to the user's public channel will be matched.
Anyone know if this is possible through the Partner API?
Edit: The Partner API, is actually called Content ID API, the classes are YouTubePartner.
Not sure if you're still looking for an answer to this question, but since I just ran into the same problem, I figured I'd share what I found.
Per the google developer docs:
Once you have uploaded the video and created an asset, you'll need to update the AssetMatchPolicy on the asset. The AssetMatchPolicy is where you specify what would constitute a match to your content. You can exclude certain territories, and also set required duration minimums for matches. The doc uses the following as an example of a request body for a policy that tracks videos worldwide and matches longer than 10 seconds:
{
'name': 'Track Everywhere 10s.',
'description': 'Track Everywhere matches longer than 10s.',
'rules': [{
'action': 'track',
'condition': {
'requiredTerritories': {'type': 'exclude', 'territories': []},
'requiredReferenceDuration': [{'low': 10}],
'contentMatchType': 'video'
}
}]
}
Once the AssetMatchPolicy is in place, you will need to upload a reference file. I don't know your exact use case, but for me, the reference was just the same mov file I used to create the initial youtube video. The AssetMatchPolicy uses this reference file for enforcing your policy rules.
After you've done all of that you can continue with creating the claim and pushing the video out to the public channel.

Is it possible to set the content rating using the YouTube .NET API w/ Direct Upload?

If I'm upload some items that should have a content rating, how can I set that via the API?
Here's some tidbits of the code:
Dim newVideo As Video = Nothing
newVideo = New Video()
newVideo.Title = title
That's a part of it, can we set the rating ourselves within the API or is that functionality not there yet?
Also, if a video is blocked or flagged worldwide, do YouTube provide that in the upload successfully response, if a video uploads okay, I can get the ID, but can I also check to see if there's any complaints? I will ignore the Duplicate response for now. But I am more worried about the flagged or block as you only get three strikes.
Setting content rating isn't supported via the API.
If a video is not playable for any reason, including the reasons you mention, it will have an explanation of the problem in yt:state:
https://developers.google.com/youtube/2.0/reference#youtube_data_api_tag_yt:state

YouTube API, Can I add a developer tag to an uploaded video?

My youtube videos have no developer tag and now I want to add one for them
I can get the videoEntry for those videos
I can add new developer tag as new MediaCategory
I can add MediaCategory as new Category to my video entry (displayed fine)
After I called VideoEntry.update() and use my own function to display the developer tag, it shows me the video has no dev tag. The function is working since I tested with my newly uploaded video(with dev tag during uploaing process)
My question is, Is it possible to add a developer tag after a video had been uploaded.
If possible, What's the essential steps? Do I use VideoEntry.update() ?
I currently have the same problem. According to this, you cannot add developer tags after the video has been uploaded. I do not know why Youtube has this restriction.

Resources