Results 1 to 2 of 2

Thread: Dynamically change the url of Ext.Video

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •