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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •