PDA

View Full Version : How reload video after changing url?



Jaeger
9 Nov 2010, 6:23 AM
After changing url in video/audio component, how to reload resource? Is there a reload or stop/restart method?

And is it possible to post pictures in video component without set url for video resource? I am wondering if I can use video as the universal container for both image and media.

Jaeger
10 Nov 2010, 1:11 AM
Anyone knows?

Jaeger
10 Nov 2010, 5:59 AM
I changed the url value and do the play method. The strange thing is the resource of video component plays remains the same!

carmeloferrante
13 Dec 2010, 4:28 PM
Hi,
I solved by not using the Video object of Sencha.
Just used a panel and a tpl with the tag <video> inside and then just reloading data in the usual way.
Just to clarify, the code could be:


var Video = new Ext.Panel({
fullscreen: true,
layout: 'vbox',
scroll: 'vertical',
tpl: [
'<tpl for=".">',
'<div class="video">',
'<video preload="auto" controls="controls" loop="loop" src="{video_src}" />',
'</div>',
'</tpl>'
]
});

Video.update([{video_src: 'http://......'}]);


Hope this helps!

Have a nice day!

gkatz
13 Dec 2010, 10:37 PM
not sure if this is what you need but try this:
http://www.sencha.com/forum/showthread.php?118100-Ext.Video-object-won-t-re-render-after-changing-its-properties