PDA

View Full Version : Playing You tube video using sencha



anishkumar
18 Oct 2010, 2:42 AM
I try to play a you tube video in my site.for that i use the following code


var pnl = new Ext.Panel({
layout: {
type: 'vbox',
pack: 'center'
},
items: [{
xtype: 'video',
url: 'youtube url',
loop: true,
width: 500,
height: 400,
poster: 'Screenshot.png'
}],
fullscreen: true
})

But the above code not works.any idea to play the youtube video.i use html:'youtube url'. it works on browser but not works in iphone or android.Thanks

mitchellsimoens
18 Oct 2010, 4:09 AM
1) Don't number your code, just use the correct CODE tags.
2) Is it loading the HTML5 version or the flash?

Animal
18 Oct 2010, 4:35 AM
The micro devices on which Touch is usually run do not support Flash.

mitchellsimoens
18 Oct 2010, 4:45 AM
The micro devices on which Touch is usually run do not support Flash.

Which is why I asked. I would think YouTube would be smart enough to switch to HTML5 when required but I think you have to manually join the HTML5 beta in YouTube which is what may trip people up...? Not too sure, I really don't watch YouTube videos.

anishkumar
18 Oct 2010, 7:17 AM
it is not loading.

DarCas
6 Dec 2010, 9:14 AM
Use <embed> tag and you will be happy! :))

jay@moduscreate.com
6 Dec 2010, 9:32 AM
it is not loading.
Have you tried the HTML5 video tag???

mitchellsimoens
6 Dec 2010, 9:33 AM
I thought this was what the Video (http://dev.sencha.com/deploy/touch/docs/?class=Ext.Video) component was all about.

jay@moduscreate.com
6 Dec 2010, 9:35 AM
That's what i meant. <sigh>

DarCas
7 Dec 2010, 12:54 AM
Just don't use Video component ... only use embed tag ... you can use it without problems and you will interface your app at the YouTube player native on your iDevice