Modifying SmartTubeNext for no user input seamless playback like in YoutubeTV. - Android Q&A, Help & Troubleshooting

Hi,
I need a ad free youtube expereince on Fire TV 4k. For this, I installed SmartTubeNext. It does the job fine, but I have one big issue with it.
Its autoplay behavior is different from that of the original Youtube app or Youtbe TV.
I need SmartTube to automatically always be playing some video from the suggestions and not wait for any user input.
Right now SmartTube starts and waits for userinput on what to play.
While I can open SmartTubeNext via intent and tell it to play some specific video. it will play it and then just stop when the que is finished and wait for userinput again.
I do not want SmartTubeNext to wait for any userinput and if not specifically instructed by the user to play any suggested video, unless the user specifically selects a specific video to play.
This is exactly how YouTube TV behaves. You switch it on and it will start playing a video from suggestions right away and play the next suggested video once the first ends indefinitely. Or if you cast a specific video to YoutubeTV, it will automatically play a suggested video after the video that you casted ends. But the downside is that the stock apps show annoying ads.
What I have tried so far:
1. Posted an issue on github and asked for this suggestion to be implemented. Unfortunately there are also others, who want the opposite. They want every video to play only when they want. SO the suggestion has not been implemented yet.
2. I tried compiling the code on linux with the hope to modify code like "onSuggestedItemClicked" or "onFinish" to set the player to keep playing a suggested video. But as the compiling fails with error "buildStorigDebug" does not exist, I failed in compiling. Also on the github there are amny who struggle to compile STN.
3. I tried decompiling and modifiying the code, with dex but fail as I'm totally lost in the code.
Anyone can help me and tell me how to implement this simple feature into SmartTubenext?
Any help would be appreciated.

Related

TFP Review, tips, apps, test videos

Hey all.
Just wanted to share with you a series of youtube videos I'm doing covering all aspects of the TFP. I'm well aware that many of you in this forum are far more knowledgable than me about getting the best out of the prime but it's thanks to little help posts and stuff that I've learned the things I've learned so I thought I'd share my knowledge as I learn more and more and enjoy what the prime has to offer. I've tried using the youtube link button but it doesn't seem to set them up as videos so I guess you'll have to use the links. I'll update this thread as and when I make more videos. Thanks for watching and commenting in advance
Thanks
THANKS. AS I ran out of them. YouTube button is easy to use. Just press it. Then add the YouTube video code in the middle. Make sure no spaces are in-between. I had a hard time at first figuring it out. The spaces are what messed me up. Now its very easy to do and works. It would be better for you to convert links to embedded videos. To keep everything centralized and within this thread. If I get a chance, I might look into converting them for you. It is alot of videos though..lmfao. or I might make you a little how to on it.
Will be checking these out soon.
Thanks for your efforts.
Setting up a bluetooth mouse
Here's another one
https://www.youtube.com/watch?v=jethnymDlmY - Setting up a bluetooth mouse
And here's an attempt with the youtube button. Still doesn't seem to work for me
See only this part " jethnymDlmY" needs to go in-between [YOUTUBE]exAmplecode[YOUTUBE] Best way is go to desktop YouTube site. Then on video page, click share that's underneath video. A code will pop up like the one you just tried to post. Instead of the whole thing, only grab the last part of code /last part. Then come back here. Make your post. Press YouTube button. Then paste code exactly in the middle. Make sure no spaces. Then press OK or whatever and video should be embedded. That's exactly what I did with what I saw you try to post. Put last part of code in between both [YOUTUBE][YOUTUBE] And here's the embedded video
Awesome. Thanks for that. I've worked out how to fix it - done one video. I'll do the rest soon.
Videos now fixed and embedded. Thanks to demandarin. More videos coming soon
A video review about google currents
A highlight reel of the videos I've done so far
Fixed the above one which was showing the wrong video. Today's video is about my cloud storage.
One I'm sure most of you are aware of but a useful demonstration of the volume difference using your right hand.
Putting Snesdroid through its paces.
Hi there, not to disrupt the cleanliness of your thread here, but:
Did you happen to catch the app that would let us stream chosen content (say YouTube as the most obvious) over other apps? I'm pretty sure I remember just such an app being named at some point and have since lost the thread.
Don't know to be honest. Sorry
This is a two-parter. Things didn't go quite as planned because of the tablet and applications. That's why I did it though; to show if it could be done, how difficult it could be to do and what the final end product would look like. It shows how, productivity wise, tablets just still aren't up to the task.
The first video is actually the final product of me recording stuff with the Prime tablet and editing it together using the Movie Studio app.
The second video is of me editing the first video together.
This is a look at the BBC iplayer application/website.
A look at the ASUS exclusive widget: myzine
A pretty cool news app here for you. News Republic.
MX Video and Swipepad
Two vids today. One about MX Video
The second is about an application I came across after it being mentioned on here actually: Swipe pad - a very cool task switcher/app launcher app.
Today's video is a look at a variant of the News Republic app I did a few days ago. This one is called Appy Geek.
might be time to make vids of newer apps n stuff. like overskreen, stickit, etc...more hardcore apps that'll gain interest. also, how come you just don't organize all your videos into the OP? instead of being spread throughout the thread where posts integrate with them and vids will be lost in the pages.
just a tip. good work regardless

[Q] Variable Speed YouTube Playback?

Ok. I just got through searching the forums and the net and came up empty handed so I am going to guess that this is not possible right now. But just in case I'm wrong, I thought I would post my question here where the experts live. Here's the question:
Q. Shy of downloading the video and playing it back with a different application, is there any way to change the playback speed of a YouTube or embedded video upon first launch in Android?
I have explored the html5 route and no Android browser I found can do this.
I also explored some different applications claiming to offer this but none were actually able to change the video playback speed without first downloading the video.
I have something like this for my PC now. It would be very nice for my GN3.
Thanks.
jamesmuir said:
Ok. I just got through searching the forums and the net and came up empty handed so I am going to guess that this is not possible right now. But just in case I'm wrong, I thought I would post my question here where the experts live. Here's the question:
Q. Shy of downloading the video and playing it back with a different application, is there any way to change the playback speed of a YouTube or embedded video upon first launch in Android?
I have explored the html5 route and no Android browser I found can do this.
I also explored some different applications claiming to offer this but none were actually able to change the video playback speed without first downloading the video.
I have something like this for my PC now. It would be very nice for my GN3.
Thanks.
Click to expand...
Click to collapse
I really want to know this too. Surely a solution exists now?
The latest Firefox for Android supports variable speed playback on pluralsight.com. Nothing else I tried would.

Clone and netflix issue

I have a new 1.5g dual sim clone s4. It is running Jellybean 4.2.1. Everything works well except for Netflix. Youtube runs great, video capture is good. I read the forums and did a search, most of the info is before this type of chip is used. I need help fixing the phone. netflix will only do audio, and it will show the captions. We can use the tool bar to fast froward the movie and it will show the movie clips, yet when it buffers to that point in the movie it will buffer and the screen goes dark (video won't play at all) but my question is this, WHY? what had occurred in the chinese making these knockoffs that this would happen? I have tried older versions of Netflix, called netflix, troubleshot the phone with them and no luck.
I have rooted my kindle, I have rooted my HP pad, but this seems to be a minor issue with the phone and 4.2?
Simply reloading a new rom or "here's a new download" doesn't answer the question of why is this happening???? Is it a simple fix I am not seeing? These phones are unlocked and supposedly rooted already, what am I missing? Thanks from a father who wants to learn............

[Q] The best way to stream music from youtube in background on any android device

Hi,
I have been a silent reader/observer of xda forums for a long time now and I thank everyone of the awesome developers out there for giving such good ROMs.
I've been meaning to ask this question for a long time but I was delaying it hoping I can get an answer for it myself. But today after spending close to 5 hrs on this with no answer I decided to ask it here.
I'm a music fan and I'd like to listen to it on my phone as well. I have an HTC One XL with the latest Viper ROM.
I have tried the following options.
1. Downloaded numerous apps (PVStar, NextVid and the likes). Some worked but not to my satisfaction. They're either very laggy or buggy or have unattractive UI to use.
2. Visited sites like youtify.com and tried on various browsers. (Chrome, firefox, UC, Dolphin, Opera etc.) hoping it won't stop playing audio when switched to another app or screen locked. On chrome and all the others it just stops playing audio when you switch to another app. On firefox it works but when screen is locked, audio becomes choppy (app's priority gets lower I think slowly). I tried to search for apps which can keep an app's priority higher but in no vain.
3. I also tried to find alternatives to Youtube like grooveshark app but it just keeps crashing whenever other apps are launched. I also tried Radio apps like TuneIn radio or pandora but you can't search for specific songs there.
P.S: Also some YouTube videos are specifically blocked by Google itself to not stream it to other apps/sites I think. How can we avoid this?
So, basically my problem is I need to be able to search and stream Youtube videos (Preferably have my own saved playlists) on my android phone while the screen is locked or in background while accessing other apps. (I know google is trying to bring 'play in background' feature to YouTube app itself but we can't create playlists there if I'm not wrong). Please suggest me a solution.
Thanks.
http://www.makeuseof.com/tag/play-youtube-videos-background-even-screen/
or
http://forum.xda-developers.com/showthread.php?t=2213945
es0tericcha0s said:
http://www.makeuseof.com/tag/play-youtube-videos-background-even-screen/
or
http://forum.xda-developers.com/showthread.php?t=2213945
Click to expand...
Click to collapse
Thanks for a lot for the links. Tried both but the first one (Viral) is not so stable. It crashes often and a pain to use. However the second option (Modded youtube APK) seems to be the best option. I can have my own playlists saved in my youtube account and play them using this modded youtube app. The music will continue to play even when screen is locked but the app must be in the foreground. The moment you switch to another app or press home button or even pressing "back" within youtube, it stops.
It's a solution I can live with for now, but I would love to have something which can run even when in background. Suggestions welcome.
Thanks.
[BUMP] Any youtube modded APK?
Trying to bump up this as I wasn't able to find a modded youtube APK which can continue to run in background (i.e. even after pressing home button and accessing other apps). Right now the modded APK only allows screen to be locked but the app should remain in foreground.
And the youtube APK also doesn't play all files in playlist. It plays just one file that we select and stops after that even though there are other items in the playlist.

LGV30+ video playback problem

I'm looking for a solution for a video playback problem my LG-H930DS (SEA) has after the 8.0 Oreo update. When I start the phone everything is working well, but after a few minutes of normal usage the built-in videoplayer cannot play video recordings made by the phone itself. It says "Cannot play video - This file type is not supported" Then I have to restart the phone to get it working again. But it fails nearly every day. I wouldn't mind this failing because I can choose a different app to play the gallery videos, but the problem is that Snap-chat videos fail to play as well when this happens, until next restart. That's the bug I cannot have. Also when the phone gets into the state of not playing videos, the ringtones and alarm clock make no sound.
To start the problem I only have to open a few random web pages in chrome, open the gallery a few times, play some videos , and in a few minutes of this usage video playback crashes. MX player, VLC and youtube still work though.
I have done a lot of troubleshooting for this problem:
Full restore of the phone
Flashed different firmwares, H930DS20b, H930DS20d, and the european variant H93020d
Tried with no apps installed, other then preinstalled ones
Tried it in safe mode
But the problem always remains.
I always use the same google account. And after upgrading to 8.0 the problem does not seem to start until I restart the phone for the first time, after that it's constantly failing. Don't know if it starts when the memory gets close to full or not, but nothing else is failing on the phone.
I have now downgraded my phone to the Android Nougat 7.1.2 (H930DS10d) and this problem is not there, no matter how hard I try to replicate it.
I can only find one link on google where this problem is reported. (problem #6)
I have contacted LG Support, and they had never heard about this, and wanted me to send my phone in for repairs. But I'm not willing to pay for shipping from Europe to Asia, if this is just a software problem.
Is someone else getting this problem, or does know a fix or a workaround for it? Or is there a way for me to view the errors the phone is running into?
Sorry for the long post, hope someone is willing to read it and give me a little help
I finally found out what the problem is. It's actually just media files in the storage I use every day. These files only contain audio, but have the extension .ts. Video playback on the phone fails because the gallery is trying to create thumbnails of them to display. The workaround for the problem was to place a .nomedia file in the folder containing those files, to hide them from the gallery. After that the problem stopped. I've been using these files for years, and it has never been a problem until Android 8.
have you tried some other video player?
stock one is quite basic and thin.
Hi, yes I do use another players, but the gallery is failing video plaback in snapchat and stopping ringtones and alarms from working aswell, without using the stock player.
Same problem here with LG V30
I have the same problem with my phone I have the T-Mobile V30 and I have the same issue. I figured out not to take videos in 4k [email protected] works fine. But the moment I create a video at 4k it either starts playing and stops midway with sound continuing to play with frozen picture or it just says it doesn't support the video.
I've been using LG phones ever since the G2 and never had any other phone or any problems with them. This one though is getting really annoying.
I hate these Q&A format threads with a passion. I wish people would just open regular threads...
Jopson said:
I have the same problem with my phone I have the T-Mobile V30 and I have the same issue. I figured out not to take videos in 4k [email protected] works fine. But the moment I create a video at 4k it either starts playing and stops midway with sound continuing to play with frozen picture or it just says it doesn't support the video.
Click to expand...
Click to collapse
Have you tried other video players like VLC, MXPlayer?
Yes sir I did many players and VLC is always on all my devices and it also gets stuck. I'll try the .nomedia file and see how that works
And I have a problem with the smoothness of video playback in gallery, whether it's a bluray movie in mp4/mkv FHD format, or from camera in FHD or in 4k is always on Android 8.0 I have a delicate jam, how would he lose single frames every 0.7sec ~ 0 , 25sec. I came back for testing on 7.1.2 and it is perfectly smooth always, as soon as I updated to 8.0 version 20d or the latest 21h there are jam ... how b was an oreo error, quite a few friends did not catch up with this problem, I'm a perfectionist and I look at every detail whether it's a video or sound, that's why I chose the highest model of the phone.
LG releases more patches (already 4) and as soon as it appears oreo are staples. You can see that this is a pfroblem with support for video caps because MX Player also has micro jams on the hardware codec.
Interestingly, youtube is fluid.
I only hope that the Android Pie will be improved.
I'm having the same problem as well please let me know when you will find the solution to this problem of smoothness of video
At first it was running smooth AF but after some time i noticed the problem after 1 day of use.
Reseting the phone didnt work.

Categories

Resources