PDA

View Full Version : Ext.Video - EnableControls Loads Before Video URL



steveaxelrad
9 Mar 2012, 10:43 PM
The following Code is generated by Designer:



Ext.define('MyApp.view.MyVideo', {
extend: 'Ext.Video',


config: {
height: 500,
itemId: 'SliderVideo',
minWidth: '(none)',
width: 800,
enableControls: false,
url: 'Freeway.m4v'
}


});


"EnableControls: false," is ignored because it comes before the url. Reversing them solves the problem as follows:

url: 'Freeway.m4v',
enableControls: false

The checkboxes in Designer 2 which generated this code are in the wrong order.

bharatn
10 Mar 2012, 6:02 PM
Hi,

There is no ordering of configs. Which device are you seeing this behavior on?

Regards