After countless wondering and trying various reasons....for those who have yet to figure out, the cause of the issue for YouTube background playback for this lgv20 anyway is Google Play Services being disabled and whitelist able. GSM dozing persay.
If Google play services are left alone, YouTube background playback will not have anymore issues during screen off. I just found this out ?. Hope this helps anyone with same issue.
Ok...well it started again...I apologise. It was working. Damn it!
I would advise you to check out the Vanced version of YouTube. It has flawless background playback. Just follow the instructions on the website, they have separate versions for both rooted and unrooted phones.
https://www.xda-developers.com/youtube-vanced-apk/
Tim3tripp3r said:
I would advise you to check out the Vanced version of YouTube. It has flawless background playback. Just follow the instructions on the website, they have separate versions for both rooted and unrooted phones.
https://www.xda-developers.com/youtube-vanced-apk/
Click to expand...
Click to collapse
That's what I using. I even tried other methods. This is bull**** lol. Worked then didn't work anymore. Seems like a nougat bug because Oreo didn't have issue.
So yeah...was working at work, then home for a few, then it would keep stopping after one song until I flashed screen on then would work again for a few. Once again this morning tho... background was flawlessly for like 4 songs in a row. So odd of an issue. It works...then don't work lol. This is referring to background playback with autoplay.
For issue: When YouTube goes to play next video while screen off..it will play a few seconds then stop until screen on even tho on lockscreen still. Don't even have to unlock and it starts playing again.
When good: it continues to autoplay in background without stopping screen on or off.
?working good again...same sinareo for Google play services...unmodified (greyed out for battery optimization). YouTube Vanced, YouTube white listed?
So as it did again...I remembered I also had app ops with Google framework and Google play services both set to NOT keep device awake. I set back to allow for both, rebooted. All is flawless so far. ?
Mysticblaze347 said:
That's what I using. I even tried other methods. This is bull**** lol. Worked then didn't work anymore. Seems like a nougat bug because Oreo didn't have issue.
So yeah...was working at work, then home for a few, then it would keep stopping after one song until I flashed screen on then would work again for a few. Once again this morning tho... background was flawlessly for like 4 songs in a row. So odd of an issue. It works...then don't work lol. This is referring to background playback with autoplay.
For issue: When YouTube goes to play next video while screen off..it will play a few seconds then stop until screen on even tho on lockscreen still. Don't even have to unlock and it starts playing again.
When good: it continues to autoplay in background without stopping screen on or off.
Click to expand...
Click to collapse
Mysticblaze347 said:
So as it did again...I remembered I also had app ops with Google framework and Google play services both set to NOT keep device awake. I set back to allow for both, rebooted. All is flawless so far. ?
Click to expand...
Click to collapse
Interesting observation about Nougat vs. Oreo. I don't use YouTube Vanced (older version 14.21.54 via Magisk) often, so I never noticed.
I wonder if various kernel tweaks play a role in this.
Here are my findings when going through a playlist with the screen off:
On stock-based Oreo (Alpha Omega) for both US996 USA and H918:
- Kernel tweaks: LKT 1.9.3, balanced profile
- No power saving exclusions for Google Play Services (turned off via Enable Doze for GMS Magisk module), Google Services Framework, YouTube
- Flawless continuous background playback
On stock-based Nougat (Classic Rom) for LS997:
- Kernel tweaks: AKT 1.6, Project Zhana Battery profile
- Battery optimizations are turned on for Google Play Services and Google Services Framework
- If I enable battery optimization for YouTube, then background playback stops after around 5 minutes. But once I disable/ignore the optimization for it, then continuous playback works perfectly.
So, at least in my case, power saving/battery optimization settings for Google Play Services and Framework don't seem to affect YouTube's background play.
C D said:
Interesting observation about Nougat vs. Oreo. I don't use YouTube Vanced (older version 14.21.54 via Magisk) often, so I never noticed.
I wonder if various kernel tweaks play a role in this.
Here are my findings when going through a playlist with the screen off:
On stock-based Oreo (Alpha Omega) for both US996 USA and H918:
- Kernel tweaks: LKT 1.9.3, balanced profile
- No power saving exclusions for Google Play Services (turned off via Enable Doze for GMS Magisk module), Google Services Framework, YouTube
- Flawless continuous background playback
On stock-based Nougat (Classic Rom) for LS997:
- Kernel tweaks: AKT 1.6, Project Zhana Battery profile
- Battery optimizations are turned on for Google Play Services and Google Services Framework
- If I enable battery optimization for YouTube, then background playback stops after around 5 minutes. But once I disable/ignore the optimization for it, then continuous playback works perfectly.
So, at least in my case, power saving/battery optimization settings for Google Play Services and Framework don't seem to affect YouTube's background play.
Click to expand...
Click to collapse
Yeah...it's hit and miss and varies day to day. I don't care anymore lol. Spotify has no issues at all. Google dozes or whitelisting don't matter. YouTube is just odd and figgity. Same setting for youtube and different results everytime. OREO OR nougat. Idk what's up lol.
Was fine, then acted up also on my temp root and my girlfriends non root Oreo. YouTube sucks lol
Related
I installed the rom from stock a couple of days ago, and the phone restarts whenever i try to watch any video from the gallery, or a youtube link with the player
What i did so far:
Disabled hwa for youtube, restarted. The app doesnt seem to be working properly, it doesnt seem to be applying changes, though it unchecks the apps.
Installed Adobe Flash Player downloaded from adobe's site. Youtube keeps restarting, aswell as the gallery video player.
Installed dolphin mini, chrome and played youtube videos from the navigator. Still restarting.
Installed MX Player, set it to sw only, seems to work for local videos, youtube still restarts the phone.
A couple of things i noticed from other posts:
People that installed the rom from another version dont seem to have the problem.
hwa aplication needs to be restarted a couple of times, never showed adobe flash for the support.
I guess the problem is in a particular library, that doesnt get step over when you upgrade roms, and the issue could be a memory leak of some sort because all the players play atleast a couple of seconds of the video.
I cant post on developers, it doesnt let me till i get 10+ posts.
Anyone has any idea of what to try? Maybe pinpoint me to the library that could be the issue, and where to get it / replace it
Thanks in advance!
In mxplayer settings sw decoder set it for both local and for network.I've set it for audio too be sure.
Sent from my MB526 using xda app-developers app
cyrusct82 said:
In mxplayer settings sw decoder set it for both local and for network.I've set it for audio too be sure.
Sent from my MB526 using xda app-developers app
Click to expand...
Click to collapse
Did that, but i cant get any youtube workaround
Any ideas about the libraries?
Well what i tried to get a workaround to this problem is this:
Uninstalled the youtube app, using a root uninstaller or whatever.
Set the browser as default to watch videos from the site, it works fine.
Downloaded MX Player, set everything to software, works fine, not great, but fine.
Another issue ive found is that the CPU governor or scalling freezes my settings whenever i try to change its type, i tried a couple of apps like setCPU, and the problem remains. I can live with that.
Ill post here any news i get from the phone, since i cant post on the devs thread yet
Workaround?
rm /system/lib/libstagefrighthw.so
(of course backup first )
This seems to provide a quick solution.
(With Deadline scheduler & HWA on...)
PS: By comparing 20130703 vs. 20130709 libstagefright.so as Quarx suggested few days back they are quite the same according to their sums. Differences are libstagefright_soft_aacdec.so, libstagefright_soft_aacenc.so, libstagefright_yuv.so, libstagefrighthw.so - on which *hw.so does for me...)
hi, thanks for your job, i've installed this rom on xperia U and the device now is great! i've installed also NANO MODULAR PACKAGE for gapps, and play store works. just i've two problem: youtube video don't works, the app starts, search the videos, but don't play,and the dialer is slow when i digit(solved with ex dialer). how can i fix youtube?
thanks again!
similar
peppeg85 said:
hi, thanks for your job, i've installed this rom on xperia U and the device now is great! i've installed also NANO MODULAR PACKAGE for gapps, and play store works. just i've two problem: youtube video don't works, the app starts, search the videos, but don't play,and the dialer is slow when i digit(solved with ex dialer). how can i fix youtube?
thanks again!
Click to expand...
Click to collapse
I have similar problem the video is divided in 3 parts and in black and white
i solved it by reinstall you tube app
youtube on PA 5.1
I'm having a similar problem, but it is not limited to youtube. I have tired plex too, and it also fails to play a video.
When I play a video youtube I just get "There was a problem while playing. Touch to retry"
In plex the video fails to play telling me to restart my plex media server and to reboot the phone.
I have rebooted the phone and it makes no difference.
Anybody have any ideas on how to fix that? Everything else seems to work properly on this rom so far, and the stock rom is getting more and more laggy which is why I'm trying different roms.
Anybody have any ideas?
**Update**
For some reason a video would start without video at times. When that happens if I change the quality to something lower than 480p, it actually works.
MX player works perfectly regardless of resolution.
Plex is completely broken, it will not work regardless of what I set the video to, it fails.
On a HTC One M8
After swapping a bunch of weird setting, I have come by trial and error, and stumbled upon an easy fix to Hulu Plus freeze during play back on my rooted device.
Though Hulu is not completely bug free, my odd work around allows pause, 10 second rewind, and slider usage. So that in its self is good enough.
Once you upgrade to the latest Hulu Plus, you should be able to run it and search through the listings normally.
Once you find and start a video, you should get commercial clips to play normally, but once the program or movie starts, it soon pauses. Have no fear, a simple press of the home button will minimize Hulu Plus into a background task. Once you have the home screen, just go back into the task manager and bring up Hulu Plus. Once Hulu Plus brings up the screen, playback is normal. WHOOOOOHOOO!
If by chance playback freezes during pause or any manual slider movement, just repeat the steps once more.
This works with Boeffla config running as well. Also I run my rom with 2D hardware acceleration enabled and 4x msaa enabled.
Enjoy!
Phone info: Rooted (Dirty Santa) VS99513A Security Patch Level December 1, 2016
Problem: Youtube App - almost all videos will initially show the static video preview screen, but will then go black as soon as ad and/or video starts. Audio is fine throughout.
I can play YT video from the Chrome browser on the phone (after disabling hardware acceleration).
I've cleared data/cache from YT app. I've uninstalled/reinstalled YT app. Reinstalled all YT updates, etc. Don't know what the issue is. Annoying.
Heyitsrick said:
Phone info: Rooted (Dirty Santa) VS99513A Security Patch Level December 1, 2016
Problem: Youtube App - almost all videos will initially show the static video preview screen, but will then go black as soon as ad and/or video starts. Audio is fine throughout.
I can play YT video from the Chrome browser on the phone (after disabling hardware acceleration).
I've cleared data/cache from YT app. I've uninstalled/reinstalled YT app. Reinstalled all YT updates, etc. Don't know what the issue is. Annoying.
Click to expand...
Click to collapse
Start playing video then swipe to dismiss it. Play the video again and it should work. Happens to me on a modded version I have and usually that fixes it.
I'm experiencing the same issue. It only works through swipping down with Youtube modded version.
Really miss the official YouTube app.
Any help .. ?
Suspects:
Magisk systemless root. No twrp.
Non-Root iYTBP Youtube (arm64 black)
Jan update stock oreo
Bug reproduction:
Play a youtube video
Switch to launcher so video plays in popup
Lock the phone
Unlock the phone (fingerprint)
My questions:
Fix?
Does this happen with root version ( I can't get it working using just magisk)
Does this happen with paid yt red?
IjazCI said:
Yes this happened to me also. In my case it will also trigger a reboot.
So, just switched back to normal YouTube.
Click to expand...
Click to collapse
It doesn't happen with background playback, you can just make the video a popup inside the iytbp app, just like on the normal yt app and then go to launcher, that doesn't cause the crash.