08-10-2011 01:12 PM
Hi!
I'm developing a web application using webworks (html, javaScript ) and I need to know how I can play a video from a youtube url in my web page, I have tried using:
<object>,
<embed>,
<iframe src='url'>,
<script> location.href = 'url'
youtube api
and I don't have had success, I would greatly appreciate your help
09-23-2011 05:40 AM
hi,
Did u get an output, I'm also in the same situation to integrate a video in webworks application. If you have one please post it...
04-06-2012 12:06 PM
facing same problem..
04-07-2012 06:55 AM
The mobile youtube site uses rtsp. And in webworks we wont able to play an rtsp video within the application but possible to push it to the browser and showing it. In BBOS7 you can play http video within the application.
04-09-2012 08:27 AM
Here is a working example of how to embed a YouTube video in a WebWorks application:
http://blackberry.github.com/WebWorks-Samples/kitc
Here is the snippet being used to display this video:
<object width="640" height="385" style="border: dotted 1px black"> <param name="movie" value="http://www.youtube.com/v/eAaez_4m9mQ?fs=1&hl=en_US"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/eAaez_4m9mQ?fs=1&hl=e n_US" type="application/x-shockwave-flash" allowscriptaccess="always" width="640" height="385"></embed> </object>
Reminder: you need to properly whitelist any external domains you will be accessing in your config.xml document.
04-09-2012 10:15 AM
I use launch BlackBerry Browser with the YouTube url, but the last code is useful.
08-06-2012 08:56 PM - edited 08-06-2012 08:56 PM
Hello how should I to configure the access to youtube in the config.xml ? thanks
08-07-2012 02:31 AM
panchopepe wrote:
Hello how should I to configure the access to youtube in the config.xml ? thanks
I would shuggest to use this one in the config.xml
<access subdomains="true" uri="*" />
since the video URL of youtube may be somehow different if you only use
<access subdomains="true" uri="http://www.youtube.com" />
but you may also give this a try. BTW: documentation for the access tag is here for some further reading.
12-14-2012 02:25 AM
Nothing seem to be working on BB10 webworks. Tried both <object as well as <iframe embed codes. I do have all urls allowed in config xml.
Suggestions?
12-14-2012 09:02 AM
Hi.
Make sure you are adding the right feature-tag to your config.xml like described in the documentation:
<feature id="enable-flash">