Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Youtube player

Hello. I'm trying to reproduce a video from youtube. This is my code:

var youTubeVideoID = 'r70UpNT_ZUc';
var embedCode = '<html><center><object width="310" height="240">
<param name="movie" value="http://www.youtube.com/v/' + youTubeVideoID + 
'&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/' + youTubeVideoID + '&hl=en_US&fs=1&" 
type="application/x-shockwave-flash"allowscriptaccess="always"
 allowfullscreen="true" width="310" height="240">
</embed></object></center></html>';
var webview = Ti.UI.createWebView({
   title:'Videos1',
   html: embedCode,
   height:300,
   width:350,
   top:5,
   left:5,
   backgroundColor: '#336699'
});
win.add(webview);

I only see the color 336699 but no any video or any player… what's wrong? I'm trying this in a HTC Desire with 2.2 version of android

The HTML code is in one line

regards

— asked October 6th 2010 by Leandro Vidal
  • android
  • player
  • video
  • youtube
0 Comments

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.