pylerSM / YouTubeBackgroundPlayback

[Xposed module] Enable background playback in YouTube
http://repo.xposed.info/module/com.pyler.youtubebackgroundplayback
BSD 3-Clause "New" or "Revised" License
315 stars 81 forks source link

YouTube acts like it's in the background when in the app #297

Closed SirUltimateBass closed 7 years ago

SirUltimateBass commented 7 years ago

I'll get straight to the point. Update 2.0.1 shows the notification just like beta, but it also causes autoplay to be instant when you're in the app. Is there any code that can be modified so that the notification is only visible when YT is in the background? I personally keep autoplay enabled so music will automatically play when YT is in the background. But I haven't updated to 2.0.1 because the notification stays active when in the app which causes autoplay to start after I'm finished watching a video.[whilst in the app] Just asking if there's any code that can be modified to fix this issue. Any and all help is greatly appreciated

th3an7 commented 7 years ago

Actually there is - if you want to make notification visible only in background, build new module apk with changed link to json file to this one

https://raw.githubusercontent.com/th3an7/YouTubeBackgroundPlayback/th3an7-BACKGROUND-ONLY/assets/hooks-1.json

It's json from my fork and (as branch name says) it makes notification visible only in background (at least it should :P)

SirUltimateBass commented 7 years ago

@th3an7 Alright, I've recompiled the apk multiple times but to avail. As soon as I attempt to install it, I'm greeted with the wonderful "App not installed". I really don't mean to put more work on you, but is there a possibility that you can recompile it?

th3an7 commented 7 years ago

Oops, my bad, sorry... Forgot to tell you that you would probably have signature mismatch. Have you tried uninstalling old version before installing that newly compiled by you? Try that first - if it won't work, let me know so I can build it myself :P

On Sun, Jan 22, 2017, 20:08 SirUltimateBass notifications@github.com wrote:

@th3an7 https://github.com/th3an7 Alright, I've recompiled the apk multiple times but to avail. As soon as I attempt to install it, I'm greeted with the wonderful "App not installed". I really don't mean to put more work on you, but is there a possibility that you can recompile it?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/pylerSM/YouTubeBackgroundPlayback/issues/297#issuecomment-274351461, or mute the thread https://github.com/notifications/unsubscribe-auth/AMxxbCJpW36g0qNKqX70K7RPzrHjCJGKks5rU6kPgaJpZM4Lpxe6 .

SirUltimateBass commented 7 years ago

Yes, I have tried that, multiple times actually

SirUltimateBass commented 7 years ago

But no success

th3an7 commented 7 years ago

Try this one then - https://drive.google.com/file/d/0B8j7vCsf6RXcaUhlU09FRENOYVk/view?usp=sharing

SirUltimateBass commented 7 years ago

Thanks man, I owe you one!