New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player is playing automatically #75
Comments
Hi, are you suspending the playback of the video in your onPause/onStop method? |
Yes I did ... or I wait the end of the video |
I have just tried to replicate the issue using the sample app. Nothing happened. I have:
Nothing happened. Are you facing the issue with the sample app or your own app? |
I'm using Android 6 for test .... i'll try on sample app. |
Ok, I've tried on 8.1. |
I had no time yet to reproduce on the sample yet, but in the buggy app, the activity is opened, load the video and start playing automatically the video. Maybe the problem is there.... So now, how can i load the video without start playing it ? |
If you want to load a video without playing it you have to use |
OK. cueVideo seems to fix the problem. but when the screen goes off, and back on , the video restart from the begining when you start playing the video.... it should resume it, not restart |
The sample app doesn't have this problem. Unfortunately I can't say much about the behavior of your app.
|
Check the lifecycle methods of your Activity, maybe you're doing something there. |
yeah... i checked. Ok let's try the sample app. what about the declaration of the activity in the manifest. Should i specify a launchmode ? |
No, as far as the player is concerned. |
Hi, i did the sample app, but i still have the issue. `
} ` |
I have just tried the sample app: no restart issue for me. You said you've been able to replicate the restarting issue in the sample app, how? send me the steps I have to follow on Android 6 in order to replicate the issue in the sample app. Otherwise I won't be able to help you. Also I have tried the sample app on Android 6, on that version of Android the playback wasn't stopping when the Activity was being paused, because I was not calling the pause method on the YouTubePlayer. I have updated the sample app, now the playback is paused as expected. |
Things to consider**** As far as I know, playing videos in lock screen violates YouTube's Terms of Use. But as of using WebView this player can run videos even if you lock the phone screen. |
Yeah, it can. That's good. It's up to the developer to decide what do with it. |
Thats ok, But if I do that, google gonna ban my app? :( what do you think ? |
Yes, if you do that and publish the app on the Play Store they're going to remove it, sooner or later! |
what about If I publish app with removing YouTube logo from the player and using my own controls as the way you did in here . |
No, the player is still using YouTube, therefore you have to respect their terms of service. |
I suggest you just pause the video when the player is not visible |
I am trying to design the player with putting all controls outside of the playerview. Where Should I put the logo then ? any suggestion ? |
That's outside the scope of this issue. If you want help not related to this library feel free to send me an email, I'll be happy to offer suggestions. Good luck :) |
oh! sorry for that. Check the mail please :) |
Hi, i'm using this awesome library, but i'm facing an issue.
To reproduce the problem, play a video in the youtubeplayer. in the middle or the end, don't touch the screen, donc close the activity. Let your phone screen goes off, and after a few seconds or minute, the video start playing, and you can hear the song of the video.
Sorry for bad english.
The text was updated successfully, but these errors were encountered: