One video never player that having a problem of unavailable
See original GitHub issueI 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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hard to tell from this, I suggest looking at the same app for examples.
@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