-
22 Jun 2010 7:52 AM #1
Video in Carousel
Video in Carousel
I've tried to put a video in the Carousel but it doesn't work, is it normal?
Here is my code :
Code:items: [{ title: 'Tab 1', html: <div><video width="640" height="360" src="http://www.youtube.com/demo/google_main.mp4" controls autobuffer> </video></div> }, { ...
-
22 Jun 2010 8:22 AM #2
-
23 Jun 2010 12:47 AM #3
It's just a copy and paste mistake, I had the '', so it doesn't come from here
-
23 Jun 2010 6:52 AM #4
you cant have newlines in a js string...
-
23 Jun 2010 7:05 AM #5
Oups, it's ok now, you were right I had a new line.
Thank you for your help, now I have to see how to stop the video when i go to the next slide in the carousel.
-
24 Jun 2010 10:42 AM #6Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
You can call the stop() method on the video tag inside the deactivate event fired on the card that contains the video.
-
29 Jul 2010 10:27 AM #7
Can you give a code example because mine does not seem to be working.
Code:listeners: { cardswitch: function(){ video.stop(); } },
-
30 Mar 2011 1:11 PM #8
Solution to stop a video after changing tab
Solution to stop a video after changing tab
Code:var myTab= new Ext.TabPanel({ cardSwitchAnimation : 'fade', items:[carrousel_4,videoPanel], listeners : { cardswitch : function() { // you have to put id="myVideo" in the <video><video/> element var mavideo = document.getElementById("myVideo"); mavideo.pause(); } }
Similar Threads
-
Will the EXT JS 4.0 get the video component?
By aw1zard2 in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 18 May 2010, 8:31 AM -
to open a video
By sakaext in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 2 Oct 2009, 12:39 AM -
video streming
By andryi in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 5 Aug 2009, 10:24 AM -
Displaying a Flash Video
By Dumas in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 8 Jun 2009, 8:43 AM


Reply With Quote


