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,323
    Answers
    3884
    Vote Rating
    1294
      1  

    Default

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

    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
      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,323
    Answers
    3884
    Vote Rating
    1294
      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!

    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.

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
  •