1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    3
    Vote Rating
    0
    deeno1975 is on a distinguished road

      0  

    Default Unanswered: Dynamically change the url of Ext.Video

    Unanswered: Dynamically change the url of Ext.Video


    Hi all,

    I'm new to Sencha Designer and am getting my head around it, getting there.

    I'm trying to dynamically set the url of the video control but it is not changing or refreshing.

    When I set the url statically it works fine but if I try and set it dynamically, even though the property seem set, the video does not play.

    Any hints or help greatly appreciated.

    Code:
        video = details.child('#video');
        video.url = 'images/' + record.get('id') +'.m4v';

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,212
    Answers
    3517
    Vote Rating
    858
    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

      0  

    Default


    You should use the getter and setter methods as much as you can. For instance, there is a setUrl method that you should use.
    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