Android : Searching youtube video from my app - java

I am developing an android app in which I am integrating youtube videos, what I want is user can search any youtube video from my app and that video can be played from my app only without opening youtube app, I am using youtube API but doesn't seems to find a solution for it

What I want is user can search any YouTube Video from my app
To search videos on youtube from your Android App you need to integrate YouTube Data API in your Android App . Using this API you can search by using a keyword/topic . Go through this link
Play YouTube videos in Android App :
You can do this task using YouTube Android Player API . Here is the working example

Related

How to overlay Google Play app page on the top of my app?

I want to show Google play app page on the top of my app but cannot find a way. Google play app linking page does not say anything about it. Linking to Google Play.
I have not found anything like this on Google Play Core library.
Few suggested me, it is just a custom bottom sheet.
But check the images below.
Image 1 : Google app on Android showing BBC app's google play page on the top of GOOGLE app.
Image 2: Facebook in app ad shows advertiser's Google Play page after clicking the ad.
How can I implement it ?

Play YouTube Videos in Android app using Exoplayer with Firebase Database

I want to play a YouTube video in my android app and I need to add new videos everyday. So I would like to access the YouTube video link from firebase database everyday. I would like to use Exoplayer. Is that possible? I am new to android development and a beginner. Please help me.
yes you can play youtube video in exoplayer for this you have to extract dash-url from video link.
https://github.com/nhCoder/YouTubeExtractor
this link will help you to extract dash url working perfectly fine for me.

Posted on Facebook Java Android

I am a Android app developer
I want to share a photo on facebook with some explanation like the picture I have uploaded
What I want is a card that contains a picture and a description and when I click on it, I transfer it to Google Play
I need share on Facebook like this image

YouTube Android Player API how to enable captions?

I have a little android app that uses the YouTube Android Player API
for playing youtube videos and I would like to enable the captions from the youtube video. I don't see anything in the api that could help me achieve this. Even with close captioning enabled in system settings the captions are not displayed.Is it possible to display the captions?
Just enable them in Youtube Player within your app, by pressing the CC button.

Youtube videos in webView using Youtube API

My current problem: I am using a webView to show web content in my app. In one link (which I need to show in webView) there is nothing more but just 3 youtube videos from 1 channel.
Question: How to use youtube API that it would automatically detect these videos and play correctly when the mentioned link is being opened?
I tried to use only webView to show youtube content but I am facing many problems with it - youtube video sometimes doesn't play at all, there is problems with Android version compatibility, etc. And as I read in general in forums - webView itself is not recommended to be used as html5 youtube video player. Most people suggests to use "new Youtube API". So how exactly implement this youtube API in my case?
Any examples? Suggestions?
Google release Youtube Android player api so that you can import this library to use
it's a good video player for watch YouTube video and playlist
YouTube Android Player API

Categories