Comments (4)
Hi, try to remove the if statement.
onPause() {
youtubePlayer.pause();
}
from android-youtube-player.
Hi @PierfrancescoSoffritti
Thanks for your support.
I'm testing.
Sometime I see that function pause in YoutubePlayer class have crash nullpointerexception:
protected void pause() {
mainThreadHandler.post(new Runnable() {
@Override
public void run() {
loadUrl("javascript:pauseVideo()");
}
});
}
webview have been destroy before loadUrl call.
from android-youtube-player.
Are you calling release
on your YouTubePlayerView before destroying the Activity?
@Override
public void onDestroy() {
super.onDestroy();
youTubePlayerView.release();
}
from android-youtube-player.
I called youTubePlayerView.release() on onDestroyView of fragment.
from android-youtube-player.
Related Issues (20)
- how can i add auto play next video from list in my app ??? HOT 1
- Add API to set arbitrary playback speed HOT 3
- leakcary of 12.1.0 HOT 2
- Full screen has margin from the screen HOT 3
- Video Unavailable on Android 13
- Bottom Bar Time is Not Show and Popup is Cut HOT 12
- Why this library want access to device camera and bluethooth permissions? HOT 7
- Regarding the problem of dual-screen video display, use Presentation to implement it HOT 5
- Automatic Video Playback Issue While Scrolling Videos HOT 1
- cueVideo after a cueVideo HOT 2
- override fun onEnterFullScreen(fullScreenView: View, exitFullScreen: Function0<Unit>) in this method how we can hide MenuButton or their click event is disable from fullscreenview object HOT 3
- Method does not override method from its superclass HOT 1
- How to use Java to load playlist with PierfrancescoSoffritti / android-youtube-player 12.1.0? HOT 8
- How for Youtube Playlists Make autoplay and redirect it to Native Installed YouTube App
- The issue arises when the first video in the playlist is scheduled, then freeze (even with Latest) Library as I would prefer it to automatically skip the scheduled video and proceed to the next one HOT 1
- Continue PlayList from the last seen unless there is a new video on PlayList HOT 4
- Following playList Works On Youtube PC but not with this library (with this library only the first Video plays) HOT 5
- EMBEDDED PLAYER NOT AVILABLE HOT 1
- Remove Player Menu and only show Iframe menu HOT 4
- Security Contact Information HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-youtube-player.