AlmaR
Lost but trying
Profile
Posts: 73
Reg: Jun 13, 2011
location unknow...
5,630
10/27/12 05:18 PM (13 years ago)

Wheel of Death on Youtube

Hey guys! I'm getting the Wheel of Death on links to youtube from custom html files (url). I have downloaded the project about 2 weeks ago, I'm on BT V2.0 and using BT servers. I have tried the Wheel of Death fix from myskylla.com Comment out line XXX in Source Code > src > com.(your package name) > BT_screen_customHTML.java (line 132) in my case is 131 (//showProgress(null, null);) BT_screen_customURL.java (line 133) in my case is 132 (//showProgress(null, null);) But unfortunately it didn't work for me. Any ideas how can I solve this problem? I am getting this error while I launch the emulator but I guess it doesnt matter because I tested it on a Galaxy S II and still get the wheel of death. <Error>: The function `CGSFlushWindow' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance. Please use `CGSFlushWindowContentRegion' instead. emulator screenshot: https://dl.dropbox.com/u/41877462/Imagenes/wheel-of-death.png
 
Intrege
Veteran developer
Profile
Posts: 196
Reg: Sep 12, 2011
Philadelphia, P...
3,160
like
10/29/12 02:29 AM (13 years ago)
Use the other screen which is "Launch Native App" to achieve this. Normally the commenting out of that line should have worked. But this screen is the best work around.
 
AlmaR
Lost but trying
Profile
Posts: 73
Reg: Jun 13, 2011
location unknow...
5,630
like
10/30/12 04:47 AM (13 years ago)
Thanks for tip Yousicc! I've just realized that I'm having other issues as my app is not refreshing. I'm gonna work on that now and try the line commenting fix again for Wheel of Death and see if it works. If not I will try your solution and let you know.
 
Simon the Aspiring...
Aspiring developer
Profile
Posts: 18
Reg: Oct 12, 2012
Frankfurt am ma...
3,080
like
11/01/12 01:56 PM (13 years ago)
Any update Alma? I also had the Wheel of Death which I've managed to get rid off by following the guide and commenting out the showProgress/ unfortunatelzx i don't know how to see the line number, so I just did it on every occasion that I saw a ShowProgress (used the find function). Anyway I don't have the Wheel of Death now, but the YouTube video still doesn@t load. The page does but the video itself is just black and doesn@t play. Any ideas?
 
EDSE447
Apple Fan
Profile
Posts: 3
Reg: Nov 11, 2012
Edmonton
5,330
like
11/15/12 10:20 PM (13 years ago)
Hi Simon, did you ever get a fix to this? Like you, I no longer have the wheel of death but still can't load anything but empty, black YouTube videos...
 
Simon the Aspiring...
Aspiring developer
Profile
Posts: 18
Reg: Oct 12, 2012
Frankfurt am ma...
3,080
like
11/16/12 12:54 AM (13 years ago)
Unfortunately not, and as a result this has essentially ended my BuzzTouch experience. I have no idea how to fix this, nobody else seems to know, and I therefore just have an App which cannot be accessed. If anybody has fixed this successfully, would be good to hear, so I could start again with Buzz Touch. Thanks.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
11/16/12 06:29 PM (13 years ago)
Are you embedding yt videos? If so, try enabling hardware acceleration in the manifest. Add the activity to which plugin you're using - customURL or customHTML so for a custom url the manifest entry would be: <activity android:name=".BT_screen_customURL" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:hardwareAccelerated="true"></activity> Also in the relevent java file there are some things you could try. Using the customURL example, open BT_screen_customURL.java, go to around line 113 and have a dabble with these settings: //reference to the webview in the layout file. webView = (WebView) thisScreensView.findViewById(R.id.webView); webView.setBackgroundColor(0); webView.setInitialScale(0); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setSupportZoom(true); webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setPluginsEnabled(true); webView.getSettings().setPluginState(WebSettings.PluginState.ON); webView.getSettings().setAllowFileAccess(true); webView.setPictureListener(new MyPictureListener()); webView.setWebViewClient(new WebViewClient(){ You might not need all the settings, but I find these work well with video embed codes. Another issue, may be that the video you're trying to use isn't mobile compatible. There's a yt user setting when uploading videos to make them available for mobile, or not. To see if it's compatible, try this: Get the url in your browser, for example: http://www.youtube.com/watch?v=0iHCnDwEzo4 change the www to m, so it's: http://m.youtube.com/watch?v=0iHCnDwEzo4 If you see an active (not greyed out) 'watch video' link under the vid it should be ok. (btw, if you right click the 'watch video' and 'copy link location' (firefox) you've got the direct link to the .3gp video file! You could use that in a customURL ;))
 
AlmaR
Lost but trying
Profile
Posts: 73
Reg: Jun 13, 2011
location unknow...
5,630
like
12/05/12 05:36 AM (13 years ago)
Hi raveyd! Thanks for your help. I finally get rid of the Wheel of Death by commenting out all the showProgress() in BT_screen_customURL.java & BT_screen_customHTML.java but I'm still not able to watch the videos. The video shows up but once you click it it does nothing or turn black. I tried what you suggested and got these errors: 1: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android' AndroidManifest.xml /com.APPNAME.BT_activity_root line 45 Android AAPT Problem What I did then was changed the Build Project to API Level 11 (instead of API Level 8) but the problem with this is that it doesnt support devices with 2.2 (just 3.0 and up). I tried the fix the same to check if I can play the videos. Then... 2: When I added: webView.getSettings().setPluginState(WebSettings.PluginState.ON); webView.getSettings().setAllowFileAccess(true); I got this error: WebSettings cannot be resolved to a variable BT_screen_customHTML.java /com.APPNAME.BT_activity_root/src/com/appname line 118 Java Problem I didnt find how to fix it so I deleted whose lines and compile with hardwareAccelerated (Android 3.0 API Level 11) and this is what logcat showed while playing the videos: 12-04 19:08:08.590: V/webview(18265): singleCursorHandlerTouchEvent -getEditableSupport FASLE 12-04 20:38:50.962: D/PhoneWindow(308): couldn't save which view has focus because the focused view com.android.internal.policy.impl.PhoneWindow$DecorView@44f2c168 has no id. I have no idea what to do! Any suggestions? I am also asking for help in this thread (using API Level 8 and 2.2 that is what I want) where you can see other things that I tried to make it work: http://www.buzztouch.com/forum/thread.php?tid=1D40B14FF5018F8A35579F2&fid=1A0BC2DCA1F04DB67238B9A&sortColumn=FT.id&sortUpDown=DESC&currentPage=1
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
12/05/12 05:54 AM (13 years ago)
Hi AlmaR - you can build to api level 16 if you want to, it won't hurt. Right click your project > Properties > Android and select the highest api level. Don't change the manifest entry (minsdk) and it'll be ok for 2.2 devices. Are you using customHTML? I assumed customURL... The code I posted above works fine for me in customURL. Sorry!
 
AlmaR
Lost but trying
Profile
Posts: 73
Reg: Jun 13, 2011
location unknow...
5,630
like
12/06/12 04:36 AM (13 years ago)
Thanks for your reply raveyd! I didn't know what you can change the API Level of the project and still be compatible with devices running old OS. This is the error that my customHTML/customURL screens were showing: https://dl.dropbox.com/u/41877462/Imagenes/websettings.jpg I fixed the problem (at least it doesn't show anymore) clicking on Fix Project Setup. Now I don't have any error in the logcat but the video is still not showing (now at least it shows the play button). I tested it on emulator and old device running 2.2. Any new ideas? I feel that I'm so close to fix it! Are your videos embbed? Or is a link to youtube? I have tried both from customHTML and customURL screens but didnt work.
 
AlmaR
Lost but trying
Profile
Posts: 73
Reg: Jun 13, 2011
location unknow...
5,630
like
03/01/13 02:57 PM (12 years ago)
Below is a workaround from @perrytheweaver: In the Eclipse BZ project force html links to load in mobile phone's native browser: /src/com/nameofyourprogramapp/BT_act_controller.java canLoadDocumentInWebView() Add a file type (or url snippet) to: doNotLoadList.add("youtube.com"); doNotLoadList.add("youtu.be");
 
AlmaR
Lost but trying
Profile
Posts: 73
Reg: Jun 13, 2011
location unknow...
5,630
like
01/20/14 10:34 AM (12 years ago)
Hey guys! Any ideas where is BT_act_controller.java on BT V3.0? Or where to add the doNotLoadList.add("youtube.com"); / doNotLoadList.add("youtu.be"); lines in BT's new version? Thanks!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.