in the video of Youtube app

Hello

I'm back with another problem. Good so this time, my problem is with the video to youtube. My application supports support android and fire (kindle devices) bones of api level 9 at the level of the api 19. I have the Youtube video that appear in my application using mainly the youtube api android. When the Youtube api cannot be used in circumstances where the Youtube app is not installed on a device (e.g. Kindle) I replace the Youtube player with a webview view and then load the video Youtube in an iframe using the below code (edited)

private static String loadIframe (String videoId) {}
iframe ="";
iframe += ""http://www.youtube.com/embed/ ' + videoId + '? ' " rel = 0 & fs = 0"frameborder =-'0' > ';
"iframe +=".";
return the iframe;
}

This approach works perfectly on all devices with or without the installed Youtube app android and it works on kindle devices as well, but fails with my playbook. When the application is run the device is correctly detected as a blackberry device and view the Youtube player is then replaced by the Web mode. But the video does not load and I'm greeted by the error message webview that the page cannot be loaded. If I can't use this approach to see the video for in my application which can do? I really don't want to use the intention to open the Youtube video in a web browser, because I want to keep my users within my application and to be honest that I do not know if I can use the intentions like this with Blackberry devices. How do deal with the guys in the Youtube video. Any advice?

Thank you

I should have! Once more, this isn't a question of BlackBerry it is a question of gingerbread. Once I realized this I solved the problem by changing the line of code that I use to load the iframe in loadData() to loadDataWithBaseUrl() Web view. Simple, now play my video on android devices, kindle devices and blackberry devices. Great!

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Watch the band material

    I recently ordered a sport Watch Gold and another in pink. I would get another sport and strips woven in the future. Is it possible to get these bands with loops and PIN to match the watch cases?

  • When I click on 'Options', the popup gives me a white screen for the latest updates of 4 or 5.

    Since 4 or 5 updates ago, I could not access the options on Firefox. It is for me an empty popup. It's strange to see just a screen empty and unable to do anything. All the other menus work. Addons option works, but I can't in my General options. I w

  • Utility to Format SD won't install correctly

    I installed the SD V.2.1.0.0A format utility on my Portege M200, but when I try to launch it I get the error message "unexpected error." Error code = 0x0034FF02"the utility opens, but the SD reader is not accessible. I uninstalled and reinstalled, bu

  • GigE Directshow or bus ethernet type Max camera

    I have the Imaging Source DMK 23G 445 GigE camera. MAX I could see it as Directshow camera camera ethernet either in 2 versions. It works without any problem as Directshow camera but as soon as I use it as a camera Ethernet, that problems appear I co

  • Communication Network RT problem

    Hi all I'm having a problem that I hope someone can help me with.  I'm trying to run a VI as an executable on a PXI chassis (8110) on RT.  I am able to run this VI, no problem when you run directly the VI through desktop (on the chassis).  However, w