Results 1 to 4 of 4

Thread: xtype: video

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: xtype: video

    My view:

    Code:
    Ext.define('Dental.view.Myview', {
        extend: 'Ext.Panel',
        xtype: 'myview',
        
        
        config: {
            width: 134,
            height: 82,        
            margin: 10,
            items: [
        
                {
                    xtype: 'video',
                    url: "resources/video/myvideo.mp4",
                    posterUrl: 'resources/images/myimg.png'
                    
                } 
            ]
        }
    });


    how to do so by clicking on the video it was on the FULLscreen? I have a lot of videos on one page...

  2. On tap of the video, try to execute the webkitEnterFullScreen() method on the <video> dom element

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      1  

    Default

    You want the video to play fullscreen?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Yes, I want to on the same page was a lot of small posturl's - and when i clicked by the item (on posturl) video play to fullscreen...

    My one of the view's:


    Code:
    Ext.define('D.view.Ds', {	extend: 'Ext.Panel',
    	xtype: 'ds',
    		
    	config: {	
    		width: 134,
    		height: 82,
    		layout: 'hbox',
    		items: [
    		    {
    		    	xtype: 'video',
    		    	margin: 10,
    				url: "resources/video/Dt.webm",
    				posterUrl: 'resources/images/Dt.png'			
    		    },
    		    {
    		    	xtype: 'video',
    		    	margin: 10,
    				url: "resources/video/Dg.webm",
    				posterUrl: 'resources/images/Dg.png'				
    		    },
    		    {
    		    	xtype: 'video',
    		    	margin: 10,
    				url: "resources/video/Ds.webm",
    				posterUrl: 'resources/images/Ds.png'				
    		    }
    	    ]
    	}
    });

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      1  

    Default

    On tap of the video, try to execute the webkitEnterFullScreen() method on the <video> dom element
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •