View Full Version : VIDEO QUESTION

9 Jun 2011, 2:48 PM
Hi there
I have a VIDEO playing inside an overlay.
When we want to click outside of the video to close it, the overlay closes and therefore the video disappears visually but doesn't actually stop the video from playing, so we can still hear audio
Where do we place the necessary code for this?



var video1 = {
html: '<img src="images/product.jpg" height="100" class="thumbnail" /><div class="thumbnailLabel">Matt</div>',
listeners: {
afterrender: function(c) {
c.el.on('click', function() {
if(!this.popup) {
this.popup = new Ext.Panel({
floating: true,
modal: true,
centered: true,
width: 682,
height: 402,
styleHtmlContent: true,
scroll: 'vertical',
items: [{
xtype: 'video',
url: 'video/video.mp4',
width: 640,
height: 360,
posterURL: 'video/screenshot.png'