Questions tagged [youtubeplayer]

88 questions
0
votes
2 answers

How to get title of youtube video from the id of the video for our android app?

I have been developing a simple app for practicing. The app includes fetching of youtube videos. I am using this https://github.com/PierfrancescoSoffritti/android-youtube-player (using this for editing the Youtube Player View, as youtube official…
0
votes
0 answers

Leaked ServiceConnection problem in com.google.android.youtube.player

I want to launch a YouTubePlayer in a new activity, I'm passing the choice in intent but the player thorws this error: E/ActivityThread: Activity com.vjava.ar.VideoPlayer has leaked ServiceConnection…
Vittore
  • 25
  • 5
0
votes
1 answer

how to set width and height of YouTube API?

we are using YouTube API for showing YouTube videos in our apps , it is working fine and we have done some customisation with it .we are using YouTubePlayer.PlayerStyle.CHROMELESS to hide every control and have created our own control which works…
0
votes
1 answer

initialize youtube player fragment within a fragment

I am trying to initialize youtubeplayer fragment within a fragment. I successfully implemented the fragment within an activity but getting problem to initialize it in a fragment. the code snippet for activity is as below public class MainActivity…
summyia haris
  • 121
  • 1
  • 15
0
votes
0 answers

youtube video player fullscreen crashes

I am using this flutter plugin - youtube_player_flutter v7.0.0+7. The player works fine on portrait mode but on clicking the full-screen icon it crashes. Please see the below code: return YoutubePlayerBuilder( onExitFullScreen: () { …
nick_k
  • 107
  • 1
  • 8
0
votes
1 answer

There is a way to run a embeded youtube player on TVs like Tizen or WebOS?

There is a way to run a embeded youtube player on TVs like Tizen or WebOS? And use it like a TV player, where the user can play and pause? I'm developing a TV app to share my videos, and I don't to use advanced feature sof the TV player, I just wnat…
0
votes
1 answer

Flutter - Different click actions for Web and Android in single project

I wanna implement YoutubePlayer in my Flutter project which runs in web and android platforms. I'm using youtube_player_flutter package for Android and embedded YouTube player view in web. How to separate both codes in single project?
Subair K
  • 1,760
  • 1
  • 11
  • 31
0
votes
1 answer

YouTubePlayerSupportFragment: 'There was a problem while playing' error after some time

I'm getting this error after destroying and recreating the activity three times: "There was a problem while playing (Playback ID: ....) Tap to retry" The following are the details and steps to reproduce the issue: My app for Android…
Pablo Alfonso
  • 2,317
  • 1
  • 18
  • 24
0
votes
1 answer

Not playing youtube videos swift 5

Embedding the YouTubePlayerView to play youtube videos but not working as nothing happens. Below is the code i am using: @IBOutlet weak var youtubePlayerView: YouTubePlayerView! @IBAction func playYoutube(_ sender: Any) { btnYoutube.isHidden =…
iPhone 7
  • 1,731
  • 1
  • 27
  • 63
0
votes
1 answer

Android YouTubePlayer with an overlay screen on FrameLayout

I am trying Custom youtupeplayerView in android. I am using FrameLayout inside android YouTubePlayerView. For purpose youtube control(play/pause, SeekBar forward/backward) customization. Youtubeplayerview video is loading but suddenly the player has…
0
votes
1 answer

Youtube Player video not loading when returning to Fragment

I have set up a YouTubePlayerView which works perfectly but I face a weird problem. When I go to another Fragment and then go back, YouTubePlayerView can't load the video, even if the exact code is executed. private String currentVideoID…
stavros.3p
  • 2,244
  • 6
  • 20
  • 37
0
votes
1 answer

video not playing in YoutubePlayer

I have a youtubePlayer instance com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView . when I try to start this video by the mobile network I got the error VIDEO_NOT_PLAYABLE_IN_EMBEDDED_PLAYER Here's the code: …
Areyen
  • 13
  • 6
0
votes
0 answers

Multiple YouTubePlayer in a RecyclerView

I am trying for a couple of days to create a RecyclerView which contains multiple YouTube videos using the YouTube API. I tried ExoPlayer before which didnt work out. ChromeWebView works but that is not what I want. The App runs, but there are no…
0
votes
0 answers

Android YouTubePlayer should start video with mute sound

I am using YouTubeAndroidPlayerApi-1.2.2 and showing a youtube video for some marketing tasks. I need the video to autostart on loading but has to be muted initially and after user interaction, it will get unmuted. I have explored all the available…
AabidMulani
  • 2,325
  • 1
  • 28
  • 47
0
votes
1 answer

Android App won't play YouTube video when button is pushed YouTube player won't start?

I have a similar app with very similar code that plays YouTube Videos but this one won't. I tried to get a different API KEY from google but it didn't make a difference. The app just crashes when I click the button that starts the YouTube…
user3814312
  • 691
  • 2
  • 7
  • 16