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

      0  

    Default Answered: xtype: video

    Answered: xtype: video


    Hi! There code

    Code:
    Ext.create('Ext.Panel', {                                                                fullscreen: true,                                
                                    items: [
                                        
                                        {
                                            xtype    : 'video',
                                            url      : "video/blablabla.webm",
                                            posterUrl: 'img/balbalbla.png'
                                            
                                        }
    });
    Why a posterurl not working? i mean.. i can't see the small pictures of video...

  2. already working =)

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

      0  

    Default


    already working =)

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    Noor.Amin is on a distinguished road

      0  

    Default I get uncaught TypeError.

    I get uncaught TypeError.


    I am using trial version of ExtJS 4.1. One of the requirement for my project is to see if we can do a decent amount of Video control/manipulation and as soon as create an item of xtype 'video', I get:

    Uncaught TypeError: Cannot call method 'substring' of undefined

    Here is my code (it's from Sencha docs: http://docs.sencha.com/touch/2-0/#!/api/Ext.Video) :

    Ext.onReady(function()
    {
    var panel = new Ext.Panel({
    fullscreen: true,
    items:
    [
    {
    xtype : 'video',
    x : 600,
    y : 300,
    width : 175,
    height : 98,
    url : "WeightLifting.wmv",
    posterUrl: 'ArrowRight.jpg'
    }
    ]
    });


    });

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

      0  

    Default


    ... you must use Sencha Touch 2! Not ExtJS

  6. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    Noor.Amin is on a distinguished road

      0  

    Default Ah, thank you...

    Ah, thank you...


    I now notice that I was under Sencha2 documentation. I have two questions then....

    1. I believe Sench Touch is for the touch/smart phones. That means, I can't or shouldn't use it for my regular web app development, right?

    2. Does ExtJS have any Video component? Or I will have to put it in my HTML code and use contentEl to add the HTML5 video component to my ExtJS panel?

    Thanks in advance.

  7. #6
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Vote Rating
    99
    Answers
    132
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    1) Sencha Touch is just optimized for mobile web pages or apps. You can certainly use it for web app development.

    2) I don't believe Ext.JS has a video player. Take a look at this: http://blog.nihilogic.dk/2008/04/mak...eo-player.html

  8. #7
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    Noor.Amin is on a distinguished road

      0  

    Default Thanks a lot....

    Thanks a lot....


    for the quick reply...I really appreciate it.

Thread Participants: 2

Tags for this Thread