Questions tagged [youtubeplayer]

88 questions
1
vote
1 answer

Incompatible fragment type with the Youtube Player for Publishers

I tried to add in our androidx app the last Youtube Player for Publishers v2.1.2. To add this player we must create a new instance of YoutubeEmbedFragment extends Fragment. The problem here is that this Fragment extends android.app.Fragment and in…
Emmanuel Loisance
  • 706
  • 1
  • 12
  • 22
1
vote
0 answers

NativeScript cant play multiple different videos on same page

I have Angular Nativescript app with listview page that holds multiple YoutubePlayer videos on page. When have multiple Youtube Player instances, player has its own videourl and the same api key as input. All videos are the same. I think it takes…
Ali Moh'd
  • 11
  • 1
1
vote
0 answers

Any video player library in android which can play both youtube videos and normal videos other than YoutubePlayer API?

I am using two players and two different views to play youtube and normal videos. when one player is playing and visible other is hidden.. but i m having conflict in views. is there any video player library in android that can play both type videos…
1
vote
1 answer

How do i use the androidyoutubeplayer lib to display player on template?

I have successfully implemented com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.3 in the app.gradle but i dont know how to use the lib to add a YoutubePlayerView in the html I have tried to implement it programmatically but without any…
1
vote
0 answers

YTSwiftyPlayer in CollectionViewCell

I have used YTSwiftyPlayer in custom UICollectionViewCell. When I am playing youtube video with video id in the cell it's playing as fullscreen. var parameters = ["width": "100%", "height": "100%", …
yugesh m
  • 11
  • 1
1
vote
1 answer

Why does my YouTube Player keep pausing when I tilt my device from portrait to landscape mode?

I am incorporating YoutubePlayerView in my app. It works perfectly fine in portrait mode but doesn't work in landscape mode. I am attaching the XML as well as java code for it. Please provide a valid solution for the same. xml code…
1
vote
2 answers

YouTubePlayerView stops on screen rotate

I am using YouTubePlayerView to load the video.The video plays successfully, but when the screen is rotated, the it stops playing.How do I overcome this problem?It may be a simple thing.I googled but didn't get help but your help is needed... Below…
jobin
  • 1,489
  • 5
  • 27
  • 52
1
vote
1 answer

Playing Youtube DASH Url in Exo Player

We are building an android app to play youtube videos in exo player. We generate a DASH URL and play it using exo player I have following concerns Is it allowed by play store to play youtube URLs without using Youtube player e.g, using Exo…
Onkar Kore
  • 75
  • 1
  • 7
1
vote
1 answer

Android - YouTube Api player on floating window using service

I like to implement YouTube Player as a floating window (on top all apps) on Android. I saw many apps that do the same like this one And I try to Understand how to implement it. I tried this : wm = (WindowManager)…
yarin
  • 543
  • 1
  • 5
  • 18
0
votes
0 answers

YouTube player initialization error in my android app

I have an Android app, which uses YouTube videos as a data source and delivers to the users via firebase as a realtime database but from last few days it is showing an error having the following error message when opened to play the content. an…
0
votes
0 answers

Youtube video player issue

I'm trying to implement a youtube player in an application that will pull the video url from the mysql database. First I added to gradle //Android youtube player implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5' After…
Lord V
  • 29
  • 3
0
votes
1 answer
0
votes
0 answers

YouTube Player API fails on 2th div/ iframe

I'm trying to find a way to get the YouTube Player API to work multible times on a single page, for eq: the div and the player gets loaded (works fine), then removed, then readded (only loads the player, it returns an object/ sets player to an…
HandyGold75
  • 53
  • 1
  • 5
0
votes
0 answers

Can I scale YouTubePlayerView on Android to fit screen width when playing vertical videos?

I am using YouTubePlayerView for Android from official YouTube API and I am looking to scale video to remove black bars on the sides. Is there are any ways to achieve this? Using android:scaleType="centerCrop" on the view in XML does not do…
CookieMonsta
  • 25
  • 1
  • 7
0
votes
0 answers

How to play a private video from youtube using flutter?

youtube_player_iframe I have been using the youtube_player_iframe plugin for playing videos from youtube. I am playing videos from video-id but I could not play private videos from video-id. Is there is any other way to play private video from…
Yuva
  • 121
  • 9