How to play the youtube video without youtube logo in android - android

I am working on android > API 8 , the problem is I would like to play the youtube video without showing the youtube logo on either info bar, control bar or bottom right corner.
I tried using webview and the embedd link , it turnes out there is logo on it even using modestbranding. Then I tried using video view, it is actually with the logo but the problem is the the rtsp video is very low quality
How to fix the problem? Thanks

Check the Android Youtube API!
The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications. The API defines methods for loading and playing YouTube videos (and playlists) and for customizing and controlling the video playback experience.

Related

YouTube Embedded video views aren't counted in android app

I (actually my app team) embed my YouTube videos on the app.
The videos are played well in the app, but video views aren't counted.
We use YouTube IFrame API and android webview.
We checked the views are counted in PC and mobile, so we think IFrame API is okay.
We think the view-count problem is from Android webview.
Doesn't Android webview count YouTube video views originally?
I don't set autoplay for video watching.
Thank you.
You need to disable autoplay and let users play the video through the native play button since: "YouTube only counts playbacks that are initiated through the native play button." REF

How to play a youtube video in side-by-side view on Android WebView

I'm trying to make an Android App and I need help.
Do you have any idea how to play a online video (like a video on Youtube) in side-by-side view at the very same time by using Android WebView?
so, when I watch a Youtube video, I want to be able to have two views on left and right side on My Android SmartPhone Screen, and play and control the same video both on left and right views at the very same time.
Regards.
----2nd Feb, edited----
following things I've tried and failed.
・using Youtube API, get 3gp address, and try to play it with VideoView
・Using draw method and getDrawingCache method of WebView
・using onShowCustomView of WebView
Look at using a html5 video player like Video.js or Sublime Video. You will need to create some javascript with each of these that fires the left and right video at the same time.
You can also look at what this guys did for some more inspiration.
http://html5demos.com/two-videos
The trick is getting the videos to fire at the same time if you need them in sync. It's not easy to achieve if you don't control the source video and server as you are relying on an outside party to do this. YouTube is NOT a good choice for serving your videos if you need them to be in sync as you can't guarantee the video load and launch times, or control if an ad will get injected into the video stream.

Play videos inside and android app

I am trying to play a video inside my app. Now as a source I only have the public URL of the video, e.g
www.youtube.com/watch?v=0OnPN6YxPuc
Can i use this to play the video inside the app, like using the videoView or MediaPlayer or something like that? The video can be from any provider, not specifically from Youtube e.g Vimeo, Dailymotion etc.
Currently i am using intent on click and it opens the browser or some app if installed and plays the video there. I want it to play inline. Webview is an option but the problem is Android v 4 > has good HTML5 support n bad Flash support, and <4 have good flash and bad HTMl5.
Is it the only option i have? Any pointers would be a great help.

Removing full screen button for embedded youtube video in Android

I'm embedding a youtube video in Android app. All is going fine:
frameWebview.loadUrl("http://www.youtube.com/embed/"
+ Util.getYoutubeVideoId(artist.getVideoLinks().get(iterator)) + "?fs=0");
The issue is i don't want full screen button appears. I have set fs=0 but it doesn't goes. Any idea?
You cannot disable the full-screen in embed video from youtube, better consider using youtube API. Refer this post Is it possible to disable full screen for youtube api in android?

Launch YouTube App by pushing play button in an embedded YouTube clip in webview

I'm looking for a solution about YouTube in Android.
When my WebView in app connects an webpage, some pages may have embedded YouTube clip.
When I press the RED play button in the center of embedded clip, it plays well. Yes I set enabled JavaScript , plugins, hardware acceleration etc. But it ONLY plays in the WebView internal media player.
I've tried with several libraries such like YouTube API that provided by Google, but It just provides Views and interfaces, and cannot convert a YouTube clip in WebView to a YouTubeView (If you know how to convert, let me know).
All I want is simple. Hit a red play button in embedded YouTube, then my app launches YouTube App (or stock media player) so play the YouTube clip.
iPhone can do this very simply with the stock player, but I can't understand why Android can't do so.
Please check whether "YouTube" application is install on your device? If yes then just update it.And most of the time you tube application not working properly on emulator..

Categories

Resources