1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    436820 is on a distinguished road

      0  

    Default Answered: xtype: video

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,206
    Answers
    3517
    Vote Rating
    856
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    You want the video to play fullscreen?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    436820 is on a distinguished road

      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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,206
    Answers
    3517
    Vote Rating
    856
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    On tap of the video, try to execute the webkitEnterFullScreen() method on the <video> dom element
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread