Can we hack Flash player to work in the background? - Android Q&A, Help & Troubleshooting

Hello all,
As maybe some know, Adobe's Flash player in Android has a feature. The object doesn't activate if it is not in focus (or maybe touched?). This seems to be a security or battery performance related improvement as Adobe puts it.. However, it is really annoying.. Because;
You can't listen to most of the radio stations, or playlists even, if you send them to background. I love to listen to some of my favorite music while reading the daily news.. As many other have pointed out in the following threads:
Thread ID: 854896, 672639, 543354, 489142
I am writing this question here, as this is an Android Flash player implementation issue and this behaviour is by design. There may be many ways to modify the Flash player, or modify the browser to make the Flash Player act as if it is in the foreground even if it is not..
So can anyone work on this? Or maybe we can submit some kind of CR to CyanogenMod issue list? Better yet, how can we submit this problem to Adobe's developers/designers?
Or maybe a hacker has already read this and has solved it already
Thanks a lot..

Maybe this works on other (Sense?) phones, but I know this worked on my 3.29 stock rooted Evo. In the browser you can hit menu > windows and then open a new window, and then close the new window. Now you will still be in the windows view, but are "hovering" above the window you have your Flash content in. Now you should be able to hit the home button and do other things.

I would suggest just using a real music player/radio app.....

deathsled said:
I would suggest just using a real music player/radio app.....
Click to expand...
Click to collapse
x2... I think most, (if not all) standalone music/radio apps will run happily along in the background.

mik101 said:
x2... I think most, (if not all) standalone music/radio apps will run happily along in the background.
Click to expand...
Click to collapse
True, but most (if not all) standalone music/radio apps won't play arbitrary flash content online.
I know somebody who likes to listen to a particular TV program, and typically networks only make these available via flash. I'm sure if he works at it he can extract the audio on a computer or find it on a torrent or something, but it would be nice if this were at least an option.
Of course, compared to a normal app I imagine it would suck down a lot more power.

I've found a way to have a Flash webpage running on the background without needing to hack Flash Player on ICS. I stumbled across an unadvertised "feature" of the Dual Screen Browser app by Curry Cat v2.1.
All you have to do is launch the Dual Screen browser, do a google search for the flash web page you want, and once the audio starts playing just hit the OS Home button and the audio keeps playing in the background. It blew my mind.
The device I got this working on is a stock ASUS Transformer TF101 w/ ICS (v4.0.3)
Dual Screen Browser has a bunch of FC and seems to be heavily reliant on the stock browser some how. If you get FC when trying to launch it try the following:
Open stock Browser, press OS Home button, then relaunch Dual Screen Browser
Turn internet connection off, then relaunch Dual Screen Browser
Dual Screen Browser appears to be better optimized for flash/html5 video playback in portrait mode. I had two flash videos playing at the same time on each screen without much of a performance hit.
When in landscape mode pick the left most screen. It plays movies better without cutting off part of it.

Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Moving to Q&A

loganss said:
I've found a way to have a Flash webpage running on the background without needing to hack Flash Player on ICS. I stumbled across an unadvertised "feature" of the Dual Screen Browser app by Curry Cat v2.1.
All you have to do is launch the Dual Screen browser, do a google search for the flash web page you want, and once the audio starts playing just hit the OS Home button and the audio keeps playing in the background. It blew my mind.
The device I got this working on is a stock ASUS Transformer TF101 w/ ICS (v4.0.3)
Dual Screen Browser has a bunch of FC and seems to be heavily reliant on the stock browser some how. If you get FC when trying to launch it try the following:
Open stock Browser, press OS Home button, then relaunch Dual Screen Browser
Turn internet connection off, then relaunch Dual Screen Browser
Dual Screen Browser appears to be better optimized for flash/html5 video playback in portrait mode. I had two flash videos playing at the same time on each screen without much of a performance hit.
When in landscape mode pick the left most screen. It plays movies better without cutting off part of it.
Click to expand...
Click to collapse
Wow, I even forgot that I asked this question. But your solution seems very promising. Well, I'd still like to see HTML5 work in the background to (for the obvious reason that I want to play a youtube playlist while screen off ) Well if I'd have to install a separate app, I think there are other players that does this already.
Thanks anyways.. (Sorry for the late response)

I am using "nextvid" to play youtube videos on the backgroud, no need for hacking it does it by default( free app)
https://play.google.com/store/apps/details?id=Nextvid.mobile.player&hl=pt_PT

Related

Are there any *STABLE* YouTube-capable browsers??

The standard PIE on DCD's 2.10 ROM (or any stock ROM, for that matter) is horrendously unstable. The 'download' constantly stalls out when doing speed tests and other sites load formatted in ways that make everything unreadable.
Opera Mini (Beta 4v2) is the absolute opposite. 2.2Mbps+ on all speed tests, stable downloads, 110% flawless page formatting... it just can't play videos. Is there any middle ground available? I'd take a slightly less 'Opera' browser, as long as it was stable and played videos. Is there anything like this?
install HTC Streaming Media and/or Flash Video Bundle and youtube will work
gcincotta said:
install HTC Streaming Media and/or Flash Video Bundle and youtube will work
Click to expand...
Click to collapse
On Opera? I can play YouTube videos when I run PIE, but it's still so slow and choppy. Not the videos themselves, but any site I go to on PIE.
which opera you use? Because I use opera mini but cannot play you tune video.
I'm actually really happy with TCPMP (core media player) and the flashvideobundle plugin. youtube videos launch almost immediately and stream perfectly.
Not sure if it works with opera mini, but it works with PIE. Also, make sure your "view" settings on PIE are not set to "column". I found that "desktop" allows screen formating most like PC, but some sites do work well on "fit to screen"
mike-y said:
I'm actually really happy with TCPMP (core media player) and the flashvideobundle plugin. youtube videos launch almost immediately and stream perfectly.
Not sure if it works with opera mini, but it works with PIE. Also, make sure your "view" settings on PIE are not set to "column". I found that "desktop" allows screen formating most like PC, but some sites do work well on "fit to screen"
Click to expand...
Click to collapse
How can I make my ppc show me youtube's videos??
U could also try the program Vtap, works great for me on my mogul, and its free. I like it better than using PIE and TCPMP although they are both good solutions.
killerkhatiby009 said:
U could also try the program Vtap, works great for me on my mogul, and its free. I like it better than using PIE and TCPMP although they are both good solutions.
Click to expand...
Click to collapse
I need a player which play all my files, not only what it can find on the net...
skyfire is a new player that is said will play youtube as if you're working on a computer, but its still on beta version and its still not out yet but skyfire is sending some to testers... so its ur chance to try to get one
We are all stuck waiting for Skyfire for full browsing on a cell.
Vtap is Broken
I keep getting a Green Screen anytime I try to watch a video? Anyone have any idea whats going on??? Thanks.
sovrce said:
The standard PIE on DCD's 2.10 ROM (or any stock ROM, for that matter) is horrendously unstable. The 'download' constantly stalls out when doing speed tests and other sites load formatted in ways that make everything unreadable.
Opera Mini (Beta 4v2) is the absolute opposite. 2.2Mbps+ on all speed tests, stable downloads, 110% flawless page formatting... it just can't play videos. Is there any middle ground available? I'd take a slightly less 'Opera' browser, as long as it was stable and played videos. Is there anything like this?
Click to expand...
Click to collapse
When will you people learn...
You can't test your speed on Opera Mini! I promise you, you are NOT getting 2.2Mpbs+ speeds on your phone consistently.
Opera Mini is not a real web browser. The way it works is when you click on a web page, Opera downloads the page to its servers first. Then, it takes a look at the page, and takes a picture of it, taking note of where all the links appear. It then sends this "image" + link information to your phone which displays in the opera mini browser. This method is so much faster than a regular browser because your phone doesn't have to download all the information and doesn't have to do any of the processing to render the page. (This also, by the way, introduces all sorts of security questions because this is being rendered on someone else's computer before it comes to you. In other words, don't use opera mini to do your banking)
when you do a speed test, you're not seeing the speed of your phone's connection. You're seeing the speed in which Opera's server is connected to the internet, and then seeing that result as a picture sent to your phone!
In fact, the opera mini experience is the same on a high-end PDA phone as it is on a simple little nokia from 5 years ago (speed of the phone is irrelevant, its just viewing images).
Case and point- browsing on an GSM nokia 6230 using EDGE (non-3G) is not noticeably slower than browsing on a Mogul with EVDO Rev A, and both reported over 2MBps in speed tests (EDGE averages around 100kbps).
Basically, this system is ideal for web browsing like the desktop. However, it can't do any pages that require client-side processing, since your phone is not doing any of the processing. For example, pages with real-time interaction, javascript games, and especially flash animation and/or video (such as youtube) would not work under this model.
There ARE browsers that are capable of this, such as NetFront and the upcoming SkyFire, but you will most likely end up with the same laggy experience as IE because you are back to using the phone's CPU to process and render the data.
Bottom Line: What you are asking for is not out there because the concepts are worlds apart (opera mini + flash video). Using TCPMP and the flash video bundle work flawlessy for me, might want to check out the latest versions of that.
Generally, I've found that there is not perfect browser for everything (yet). I use Opera mini for regular browsing of large pages, Picsel for secure pages (such as sprint.com account information), IE for mobile-access pages (such as the mobile accuweather) and for flash video using the bundle. I used to use NetFront for pages with flash and java interaction, but I actually found it too slow and clunky for regular use. The tcpmp video bundle works much better, so I removed NetFront.
Good luck, I hope this helped someone understand the situation better!
::End of rant::
Look... IE is the only thing you can find atm that is close to being full featured. The problem is on some of these roms it just plain does not have the memory to operate. NexVisions is one of them. Open just about any page and is 1mg of ram left. Other then IE you are forced to mix it up with other browsers until Skiyfire comes out.
So has anyone tested the Skyfire beta?
mike-y said:
I'm actually really happy with TCPMP (core media player) and the flashvideobundle plugin. youtube videos launch almost immediately and stream perfectly.
Not sure if it works with opera mini, but it works with PIE. Also, make sure your "view" settings on PIE are not set to "column". I found that "desktop" allows screen formating most like PC, but some sites do work well on "fit to screen"
Click to expand...
Click to collapse
how are you getting this to work? i have tcpmp and the FlashVideoBundle.cab but youtube videos try to open in WMP, which gives an "unknown error" error
if i force it to open in tcpmp it says the rtsp protocal is not supported
using opera mobile reporting as a desktop browser youtube doesnt even open, it just crashes the browser, i cant get PIE to report itself as anything other than PIE (so it always goes to youtube mobile)
maskedlion said:
So has anyone tested the Skyfire beta?
Click to expand...
Click to collapse
I have it. It shows a lot of promise but it's still early (version # is .5). Video is pretty choppy even over WiFi. It's one of the things they're trying to polish before release.
Make sure you are using TCPMP version 0.72RC1, and make sure you don't have any other flash plugins installed except the flashvideobundle.
I have both installed to my device memory (not memory card).
that's it really. I can go to youtube.com in PIE, tap on a video, and a little menu pops up asking if you want to play or save the video. just tap "play" and the video starts playing within a couple of seconds, and its very smooth.

[Q] youtube: problem with multitasking

seriously, and i mean it.. did you guys have trouble multitasking with youtube?
When you buffer anything inside youtube, and you switch to ANY other app for example browser or calendar or whatever, all the buffer you have done, will gone back to zero !! Wtf!
How stupid this is?? And i wonder why nobody has ever noticed this and complained about it somewhere over the net.
Yes, I have even basic problem with youtube. When I switch to another app, why does the video stop playing? Sometimes, I am only interested in the audio!
Osho
Hi, I'm having same prob and I don't think we can do anything to it ;/
Sent from my GT-I9003 using XDA App
oshogg said:
Yes, I have even basic problem with youtube. When I switch to another app, why does the video stop playing? Sometimes, I am only interested in the audio!
Osho
Click to expand...
Click to collapse
you mean the video stops playing but audio still play? I dont think so
denis_sianto said:
you mean the video stops playing but audio still play? I dont think so
Click to expand...
Click to collapse
No, the video can continue to play but in the background. For example, on a PC, if I have youtube video playing in a browser tab, and I switch to another browser tab - the video continues to play back. So, I can at least listen to audio (which is useful for music videos).
Thanks,
Osho
I have this problem and it annoys me, as I have very slow internet,so last thing I need is for it to restart again.
Sent from my GT-P1000 using XDA Premium App
oshogg said:
No, the video can continue to play but in the background. For example, on a PC, if I have youtube video playing in a browser tab, and I switch to another browser tab - the video continues to play back. So, I can at least listen to audio (which is useful for music videos).
Thanks,
Osho
Click to expand...
Click to collapse
Yea, i know that if in pc, you switch to another tab, youtube would still continue buffering. But this did not happen in tab's youtube. If I buffer any video, and then i switched to browser, then switch back again to youtube, all the buffers would have gone to zero.
Are you 100% sure you dont have this problem with your stock youtube app?
vauxhallastra said:
I have this problem and it annoys me, as I have very slow internet,so last thing I need is for it to restart again.
Sent from my GT-P1000 using XDA Premium App
Click to expand...
Click to collapse
Are you talking about p1000 or the new gt with honeycomb?
Don't be fooled into thinking that Android's multitasking is that much more robust than iOS. When you move away from an app, the system sleeps the VM that it is running in to devote clock cycles and memory to your current working application. The only way an app can continue to persist alive in the background is to specifically request to remain alive and working on something with background processes. The YouTube app doesn't do this, so when you move away from it the application sleeps.
The only advantage Android has over iOS in terms of multitasking is the easy ability for an app to run background processes if it so chooses. Fortunately no sane app developer is going to write an app that tries to stay completely active in a non-windowing OS.
sassafras
sassafras_ said:
Don't be fooled into thinking that Android's multitasking is that much more robust than iOS. When you move away from an app, the system sleeps the VM that it is running in to devote clock cycles and memory to your current working application. The only way an app can continue to persist alive in the background is to specifically request to remain alive and working on something with background processes. The YouTube app doesn't do this, so when you move away from it the application sleeps.
The only advantage Android has over iOS in terms of multitasking is the easy ability for an app to run background processes if it so chooses. Fortunately no sane app developer is going to write an app that tries to stay completely active in a non-windowing OS.
sassafras
Click to expand...
Click to collapse
Okay, i know it make sense to not write an app that tries to stay completely active in background. But wouldnt it make sense for an app such as youtube that needs a lot of buffer (since not all country in the world have fast mobile connection), to be partially active in background, such as the buffering ability?
I think that make sense! And i still wonder why wouldnt honeycomb developer realize this .
Sent from my GT-P7500 using XDA App
Be careful, Playbook owners might start feeling smug about their device if they see things like this
Sent from my GT-I9100 using XDA App
I would also like Youtube to be able to play in the background, just like on a PC. Why not? It can't be too hard to programme either.
Swedish national radio, Sveriges Radio, has a good app that allows you to listen to all their programmes and the app runs smoothly in the background while I surf or do other stuff on the tablet. You'll find it at Google Play (former Market) if you're interested.
An other thing that Youtube on Android does not do is to run playlists. Again, why not?
I can't really see the point in removing great features when you develop a new OS. The goal can't really be to make it worse compared to the PC, can it?
labovski said:
An other thing that Youtube on Android does not do is to run playlists. Again, why not?
If your mostly worried about the playlist feature, it works when running stock browser and you are signed in. All you have to do is tap on the bottom-right corner of the video's preveiw image, afterr tapping, the little '+' shows up
Sent from my GT-P7500R using XDA
Click to expand...
Click to collapse
A solution would be using OverSkreen (Browser) and just open youtube in a small window.

[Q] Two Major Problems with the S3 (Help)

Ok so I've had the S3 since yesterday and needless to say its a pretty incredible piece of kit.
However I've encountered two problems I can't get around;
1. I can't seem to get my music player onto the lock screen to easily change track, I've tried a variety of players but none seem to take over the lock screen no matter what settings are used? Anyone know a fix?
2. Whenever I use the internet on my phone using desktop mode or any internet browser, when trying to watch videos other than on Youtube I always get the "You need Flash" instead of the video, I never had this problem on my Note...
Are there any quick fixes to this? I don't want to root my device...
For 2) it's probably a case of you needing to go the Play Store and downloading Adobe Flash
Sent from my CM9 TouchPad
Haha
I would have thought by the fact i'd posted here it would have been assumed Id already downloaded Flash .
I have Adobe Flash Player 11 with the fix for ICS, however playing videos I could on my Note just isn't happening on the S3 and i'm not sure why!
Mikeashford20 said:
I would have thought by the fact i'd posted here it would have been assumed Id already downloaded Flash .
I have Adobe Flash Player 11 with the fix for ICS, however playing videos I could on my Note just isn't happening on the S3 and i'm not sure why!
Click to expand...
Click to collapse
If there are videos with commercials, it can be that the popup blocker of the browser blocks them.
It happened to me too just because the website I tried, needed to have the commercials downloaded first before it could start the playback.
Are you using the same browser on both phones?
About the first problem it works ok for me so i really dont know. (stock music player)
the above two problems are not major!! i will tell you a major problem and that is an auto focus issue while recording video looses its focus and moves too and fro awkwardly video help help!
I have the same problem as number 1: The stock music player on the galaxy s3 does not appear to have any control on the lockscreen. It's strange because on my Galaxy S it works perfectly.. Anybody have ideas on how to resolve the issue, without going to 3rd party apps/widgets?
It's annoying but at least you can pull down the notification bar and get it there.
Also the headphones do volume but not tracks... F'n annoying.
I find the music player a bit ****, wish I had access to Google Play Music from 4.0.
The only way is pull down the notification bar
Mikeashford20 said:
Ok so I've had the S3 since yesterday and needless to say its a pretty incredible piece of kit.
However I've encountered two problems I can't get around;
2. Whenever I use the internet on my phone using desktop mode or any internet browser, when trying to watch videos other than on Youtube I always get the "You need Flash" instead of the video, I never had this problem on my Note...
Are there any quick fixes to this? I don't want to root my device...
Click to expand...
Click to collapse
In order for you to play the videos using the browser, you need to switch back to android mode(phone mode), the flash player, especially the adobe one, do not support desktop mode.
To sort it, you need a flash player that supports desktop mode which i don't know if there is already existing app like that.
So, there is no way to get it working properly, only notification bar? That's weak..
Btw. I have also problems with flash. Youtube works fine but sometimes it just keeps loading and doesn't play ( from the internet browser). What's the deal with all these issues, I thought SG3 will be flawless..
I wanted to follow up on this, I find the music player extremely annoying. The headphones not changing track I can live with for the time being.
Any solution on how to access the on screen music player besides the notification bar from the lock screen?

Android Youtube Apps Stops Playing Music If Screen is Off or Going To Background

When playing music with the stock Music Player application on my phone and turning the phone screen off or multitasking, the music is still able to play in the background. Is it possible to do the same with the stock YouTube app? I want to let the audio of the YouTube video I am watching to keep playing when I either exit out of the app or when I press the power button on my phone to turn off the screen to save battery. Although I can just set my phone screen to not go off when idle for a certain amount of time, but then again, that is battery consuming.
Phone information:
-Samsung Galaxy S Relay 4G from T-Mobile
-Ice Cream Sandwich 4.0.4
-Rooted
-No Custom Rom Installed
I dont think you can achieve this via the stock Youtube app.. But you can do this if you are browsing youtube via browser.. Have a look at the below guide..
http://androidforums.com/lg-esteem/...ckground-multitask-out-stopping-playback.html
amith007 said:
I dont think you can achieve this via the stock Youtube app.. But you can do this if you are browsing youtube via browser.. Have a look at the below guide..
http://androidforums.com/lg-esteem/...ckground-multitask-out-stopping-playback.html
Click to expand...
Click to collapse
True .
Sent from MOON......
Moonguy75 said:
True .
Sent from MOON......
Click to expand...
Click to collapse
Not true.
Even when I view a youtube video in the browsrer and turn off the screen (or even do as much as press the menu button) it stops playing.
Please I need this as I want to listen to youtube at work, where I can't have the distraction of a video in the corner of my eye, or pssibly nsfw videos.
I don't want to try one of the gazillion market apps or get biased suggestions of such app. I want an official or at least semi-official (i.e. widely used) solution.

[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.

Categories

Resources