question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

One video never player that having a problem of unavailable

See original GitHub issue

I am facing one problem while playing a video. if i hit same url play on browser but it doesn’t play in my apps. Unable to identify the exact problem.

Please help me.

   binding.youtubePlayerView.initialize(initializedYouTubePlayer -> initializedYouTubePlayer.addListener(
                new AbstractYouTubePlayerListener() {
                    @Override
                    public void onReady() {
                   /*     if (mFilePath.startsWith("https") || mFilePath.startsWith("http"))
                            initializedYouTubePlayer.loadVideo(Utils.extractYTId(mFilePath), bundle.getIntExtra(Constants.VIDEO_SEEK, 0));
                        else
                            initializedYouTubePlayer.loadVideo(mFilePath, bundle.getIntExtra(Constants.VIDEO_SEEK, 0));
                  */
                        initializedYouTubePlayer.loadVideo("o4Smy6aW5Ik", 0);

                    }
                }), true);


        binding.youtubePlayerView.enterFullScreen();

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
PierfrancescoSoffritticommented, Apr 30, 2019

Hard to tell from this, I suggest looking at the same app for examples.

0reactions
darshn-devcommented, Jul 5, 2020

@markeins the listener would trigger onError(youTubePlayer: YouTubePlayer, error: PlayerConstants.PlayerError) function and Error has this name “VIDEO_NOT_PLAYABLE_IN_EMBEDDED_PLAYER” . Using this you can provide alternate solution in your app

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot video errors, buffering, and freezing - Android
Troubleshoot video errors, buffering, and freezing ; An error has occurred. Playback error. Tap to retry. Connection to server lost. This video is...
Read more >
Videos Not Playing on Chrome: Fix It with 10 Methods
Videos are not playing or even loading on Google Chrome? Don't worry. This article will provide 10 methods you need to fix video...
Read more >
How to fix YouTube's “This video is unavailable on this device ...
Some of the factors that can make YouTube videos unavailable include: · You can try when your YouTube video is not available on...
Read more >
10 Ways to Fix "This Video Cannot Be Played" Error in Google ...
1. Check Your Internet Connection · 2. Ensure That the Video File Type Is Supported · 3. Avoid Pirated Videos · 4. Ensure...
Read more >
How to fix videos not playing on Mac - Setapp
Possible root causes could be malware or virus issues, file damage, network interruption while downloading the file, issues caused by wrong ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found