I have an android application for Android, using the youtube api for android, but I have this watching the video:
http://i.stack.imgur.com/HRCqN.png
When you tap on the wheel, the video title with those 2 icons, HQ and youtube shows, if I tap on youtube, I go to the youtube app, but I don't want that!
Looked in the code but im a bit newbie, any ideas how to remove it?
Thanks!
Related
I am developing an app for a client to get all the videos from a YouTube channel and I paint all of these videos into a table, showing the thumbnail and the description, so that when the user tap the row, the video will be played.
I am using the Titanium.Platform.openURL(...) but the client wants
the video to open inside the app like Twitter and other apps.
Is there any module to do it?
Any help would be appreciated.
iPhone | Android
Titanium Appcelerator SDK: 7.1.0
Thanks in advance.
Try the examples in this post: Embeded Youtube video to WebView (Appcelerator) doesn't show (black screen)
They use a webview solution. But you can also try to use Hyperloop and implement e.g. https://github.com/PierfrancescoSoffritti/Android-YouTube-Player on Android.
Yes, for iOS you can play in WebView and for Android there is a immersive module present.
I am planning on developing an app similar to Snaptube, where a user can search and stream videos on the app just like YouTube. The question is, does YouTube allow for such applications, and how would I go about it in terms of the searching functionality since most tutorials show how just to play videos embedded to the app through a link in methods such as recycler view or web view? Hope I am clear as can be, thanks.
Youtube as an API that is specifically designed to search Videos on their plattform. You can retrieve the found videos and embedd them in your app, so the user can watch the content. YouTube allows such applications.
See https://developers.google.com/youtube/v3/docs/search/list for an API (JAVA) Example of how to search Videos on Youtube. There are Android Libraries that help you with that. They can be found here https://developers.google.com/youtube/android/player/downloads/ and here https://developers.google.com/youtube/v3/quickstart/android.
I want to play multiple youtube video in single page, Youtube API not supporting this feature. So i decided to use WebView, but issue is that sometimes WebView showing comment, and share option showing other pages. How can i avoid this ? Can i use VideoView for this purpose ?
The Google Developer's channel on Youtube has an example of something like this. There is an example here called "Video Wall".
I'm building an application in which i want to search for videos related to a keyword like "World Cup 2014". and then a GridView showing the videos appears (Like in Search Result Screen) and when user clicks on any video(gridview item), particular video plays in next screen(Video Playing Screen).
Please suggest can I search using Youtube Android Player API? Or I will have to use Youtube Data API before playing the video using Youtube Android Player API?
Thanks in advance.
You may check this open source code, maybe it will help you understand how to search/play video. It's using JSON.
https://github.com/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Search.java
I used this code to play youtube video using native youtube app.
startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("vnd.youtube:zAhzo0JCbFY")).putExtra("force_fullscreen",true));
It works fine. But thing is its a clickable video like this:
http://www.youtube.com/watch?v=zAhzo0JCbFY
Youtube app doesn't allow the links to be clicked. Is there anything to be done(only with native youtube app)?
SORRY
The only thing you can do is to wait for the YouTube app to implement this.
BUT
You can find some alternative, including showing the video in a webview (if you manage), showing the links natively (if you have them), or just using the browser.
In all these cases, it is not the Youtube app.
You can do this by using <intent-filter>. I do not now the exact procedure but this explains it well.