YouTube new video notification Android - android

I everyone I’m currently in the process of creating an Android application for my YouTube channel. I was wondering if anyone knew if there was any way to check for a new video uploads so I could use it to trigger a notification within my application.
Thank you for any help.

You may want to use the Youtube API. Although im not sure how well the GData-API for YouTube is supported on Android (or if it supports checking for videos at all, never used it myself).
Take a look here and see if you can find something.
Or you could load and parse the RSS-Feed at
http://www.youtube.com/rss/user/YOURCHANNELNAME/videos.rss.
Since RSS is XML based, that is certainly possible.

Related

Can I access the youtube player from external android app and get currently playing video ID and exact playing position?

Do you know, whether it is possible to access the YouTube player on a mobile phone from a self-developed android/iPhone App? In order to get the information, which video the user currently watches, and also the exact time-stamp of the played video at that moment? Is this possible?
Of course, assuming that the user would have explicitly allowed accessing this information before.
Or is Youtube running too much in its own “sandbox” and not accessible from other apps?
I was reading e.g.
Programmatically get Current Playing YouTube Video
including the answers, and am afraid that this is not possible - since I would need even more: the playing position.
If such external access of the youtube player is not possible, what could be an alternative? To provide an own, newly programmed, standalone youtube player within our app, which then would have no problems accessing such information? If so, does any one have a recommendation for a tool / tutorial that could show me, how to build such an app?
I appreciate any hints and comments!
Best regards,
Matthias

Android mediaplayer setdatasource

I have a tricky question regarding the MediaPlayer class.
I would like to find a way to play MORE than ONE online song. I though of doing it with soundcloud, but clearly the website of a playlist will not work out.
Therefore I thought of adding several string referring to single songs on soundcloud by deploying the ".setDataSource" but the app crashes, aka I cant have more than one string.
Hence, I tried with only one, but the single song's page from SoundCloud does not work either. Apparently it only works with online mp3.
Now, getting online .mp3 lawfully is rather hard nowadays and I was looking for a way to play mp3 (or m3u) from an authorised website or possibly even a playlist.
Any ideas?
Use the Google's ExoPlayer , its powerful, flexible and supports adaptive streaming. You can get to know more about it in here, also the github page.

Cast Youtube videos inside my Android app directly to Youtube (in chromecast or roku or tv)

I am building an Android app with my youtube videos. I want to add casting support to these videos within my app. I don't want to build separate receiver app in chromecast but want to just use the existing youtube receiver app in chromecast/Roku..etc.
I am currently using 'Youtube Android Player' API to embed videos in my app but I can't find the cast support in-built. I am willing to move to just HTML5 youtube embedding if casting support works that way.
Would greatly appreciate if someone can suggest a way if they are able build such cast'ing support of youtube videos in their android app?
(I have researched internet and some of the 2013 & early '14 posts suggest it's not possible. Would like to know if anything has changed since then)
There is currently no support in the Cast SDK to cast YT videos; some folks have used a custom receiver and have used embedded iframe to show YT videos but that is not a perfect solution and has issues; for example you cannot skip ads, etc.

retrive only mobile-supported video from YouTube API

I'm using the YouTube API to retrieve videos for and Android client.
The program works well but sometimes I get an error like "this video is not allowed to run on smartphones".
So, there is a way to filter that videos? I read this doc but did not find a solution.
There are two concepts embeddable and syndicated.
iOS devices use iframe so they basically embed.
Android devices that use player API can check syndicated.
When you do a search->list, you can set videoEmbeddable and videoSyndicated to true.
For Android, you should check videoSyndicated.
Or if you are iterating through videos, for each video, you can do a video->list call with video id and check status.embeddable in the response.
Here is a blog post about this topic, even though examples are in v2, information is still relevant.

Uploading a YouTube video from an Android application

I have a doubt about the ability to integrate youtube to my mobile application.
The mobile application should have a button for loading (by the user) video directly on youtube, on a dedicated channel. This channel will be created from my client. There is the possibility, through the bees, to integrate video upload directly to a specific youtube channel?
it's for android application.
Thanks a lot for the answer.
The most straightforward way to upload a video to YouTube in an Android application is to use the Intent exposed by the YouTube application. There's examples of doing this in other Stack Overflow questions, e.g. android youtube upload using intent
That being said, I wanted to point out that uploading videos into a single "master" account (which you seem to want to do, based on your question) isn't a good idea. This blog post explains why that is in more detail: http://apiblog.youtube.com/2012/02/video-uploads-from-your-sites-community.html

Categories

Resources