-
29 Mar 2012 7:12 AM #1
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';
-
29 Mar 2012 8:10 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,634
- Vote Rating
- 435
- Answers
- 3106
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote