Results 1 to 2 of 2

Thread: How to render video in layout panels

  1. #1
    Sencha User
    Join Date
    Aug 2010

    Question How to render video in layout panels


    I hv problem in rendering youtube video.

    1. I use border layout, I hv rendered a tree panel to d west & 2 empty panels in center(panel1 & panel2)
    2. When I click trees leaf, I rendered a template with youtube URL, in panel1

    Now what I need is

    When I click d youtube link in panel1, I should get a youtube video on panel2

    could anyone help me with dis...............

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007


    Youtube shows you how to do it.

    You just need to convert their suggested markup into the bodyCfg of a Panel:

    new Ext.Window({
        title: 'Truck hitting my arm',
        width: 650, height: 400,
        bodyCfg: {
            tag: 'object',
            cn: [{
                tag: 'param',
                name: 'movie',
                value: ''
            }, {
                tag: 'embed',
                src: '',
                type: 'application/x-shockwave-flash'
        onBodyResize: function(w, h) {
            this.constructor.prototype.onBodyResize.apply(this, arguments);
            var size = { width: w, height: h };
            Ext.apply(this.body.dom, size);
            Ext.apply(this.body.dom.childNodes[1], size);

Similar Threads

  1. Can I play a YouTube video in Ext.Video component?
    By eDissideNT in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 27 Sep 2010, 11:00 AM
  2. Render every cell of Column Grid with panels
    By akuen in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 28 Apr 2010, 8:59 AM
  3. Incomplete render of nested panels
    By kgmoney in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 31 Jan 2008, 6:41 AM
  4. [2.0.1][CLOSED] wrong render with many panels ...
    By njeudy in forum Ext 2.x: Bugs
    Replies: 1
    Last Post: 26 Jan 2008, 5:53 AM

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