Misleading documentation of Dailymotion events - dailymotion-api

I recently tried to add an event listener to the Dailymotion player from the javascript API by following the documentation.
As I was not receiving any events, I discovered the list by doing dailymotion.events. This one returns me an object whose keys are in caps but not the values... the documentation shows us by an example that the events are in caps:
player.on("YOUR_EVENT", (state)).
Now that I’ve put the values in lowercase, I can hear the events of the Dailymotion player.

We’ve recently released a new library and the API naming construction did get updated.
If you are using the latest library: https://geo.dailymotion.com/libs/player.js, you can benefit from the new Player API and the list of events can be seen here: https://developers.dailymotion.com/player/#events
Please see example code: https://codepen.io/team/dailymotion-developer/pen/VwzpLXq
If you are using the legacy SDK, https://api.dmcdn.net/all.js please be aware we are in the process of discontinuing support for this product and advise you to adapt our newer technology.
However, in the meantime, the list of legacy events can be found here. https://developers.dailymotion.com/player/#player-api-events

Related

YouTube API V3 - How to get normalized game title?

I am trying to get the normalized game name using youtube API for a video if it is in Gaming category.
For example: https://www.youtube.com/watch?v=qIvWgSpy31k, for this video I can see its normalized game name is the description:
But when I use the videos.list method, I can not see this returned. After checking all the properties for the video, I can not find it either.
Is there any way to fetch the game name?
That information isn't exposed by the YouTube API. You can see that by checking the documentation for Videos.list which returns a list of videos resources this is the information available about a video.
You can request it as a new feature here gdata-issues why they are using a gdata forum for issues I have no idea.
I've encountered the same problem, so far in 2020 they haven't implemented it yet. It looks more like business issue. The only way to get game title bound to video is webscraping. I've used headless browser library for Java called HtmlUnit. When you go to the direct url of the video you want to scrape just get html from it and use the regex listed below to acquire game title.
(?<=,"title":\{"simpleText":").*?(?="},"subtitle")

YouTube Cards API

I am wondering if anybody has any information or news regarding the API (if it exists yet?) of the new YouTube Cards (replacing the old annotations).
Is there any beta api information out yet?
I'm referring to this:
Thank you for your help
You can track the YouTube Developer Blog and also subscribe to the revision history of YouTube Data API v3, in order to get the latest info on the API, as soon as it is available. Currently (as of the last version of the API - April 27, 2015) there is no way to manage Cards, and I suspect that there would not be, at least not anytime soon.
I think so because currently even annotations are not fully supported by YouTube Data API v3 (they only added support for setting invideo annotations in v3). I suppose there is a specific reason that this feature has been missing for so long- maybe they don't want to unleash it because they foresee some problems that may arise if they do. It has been requested numerous times in the past by the community (See the last posts in this thread, where a YouTube representative has answered, also this question).
I'll investigate further to see if I can find any more info on future revisions of the API and will update my answer. Meanwhile, you can submit a feature request for Card Management API here. Good luck!

How to filter spotlight tracks in soundcloud API

I'm currently working on an iOS app using the Soundcloud API, and it's working great so far. Something that I haven't been able to figure out, however, is how to construct an URL in order to get only the tracks pinned as spotlight tracks from a certain user.
For example, let's say I'm using the following URL:
http://api.soundcloud.com/users/username/tracks.json?client_id=mySecretId
I've carefully gone through the API documentation at developers.soundcloud.com/docs/api/, but it feels like there's a subresource I'm missing.
I'm aware that I can use the created_at filter to show the most recently added tracks, but if I'm understanding the platform correctly, a spotlight track does not necessarily have to be one of the most recently added?
I would be ever so grateful for feedback on this subject!
Cheers
/Anders
Spotlight is not available via public API, sorry.

Manage YouTube annotations through YouTube API

Is there a way to manage (create, update) annotations using the YouTube API?
I have a few hundred videos on YouTube that I would like to add annotations to.
There's an existing feature request for API access to annotations tracked at https://code.google.com/p/gdata-issues/issues/detail?id=558
I'd recommend "star"ing that feature request to be notified of any updates.
Update: It is possible to update InVideo programming annotations, but only those types. See http://www.youtube.com/watch?v=rqtuSRe3QLo
No, this is not supported.
The YouTube Data API v3 does allow you to create Invideo programming annotations and watermarks.
Unless it's just come out, there isn't a documented way of doing anything with annotations via the API yet. I'd be surprised if that kind of support doesn't appear soon, though.
Some time Annotation makes irritate users but sometimes useful to instruct redirect to other topics.
Note: YouTube Discontinued Annotations because it's not working on mobile & second reason is that 70 % user watch YouTube videos on mobile so for better serve youtube took this type of decision.
Please Watch This Video for full clarity: https://youtu.be/Awl1TTUSY78

Listing all comments for a video in YouTube API 3.0

Is it possible to get all comments for a video with the new (experimental) YouTube API v 3.0?
I only found how to get "activities" (in their terminology comment is a kind of activity) originating from a given account.
The api page says the api is not feature complete, so it is quite possible that functionality is not yet made available. Although I might've just missed it.
There's no support for retrieving comments using v3 of the API. We can't make any commitments to add in support for reading/writing comments at this time, so if your application depends on them, using v2 is required.

Resources