View Full Version : How reload video after changing url?

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.

10 Nov 2010, 1:11 AM
Anyone knows?

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!

13 Dec 2010, 4:28 PM
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}" />',

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

Hope this helps!

Have a nice day!

13 Dec 2010, 10:37 PM
not sure if this is what you need but try this: