]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Provides access to the audio and video capture capabilities of the device.\r | |
3 | *\r | |
4 | * @mixins Ext.device.capture.Abstract\r | |
5 | */\r | |
6 | Ext.define('Ext.device.Capture', {\r | |
7 | singleton: true,\r | |
8 | \r | |
9 | requires: [\r | |
10 | 'Ext.device.Communicator',\r | |
11 | 'Ext.device.capture.Cordova',\r | |
12 | 'Ext.device.capture.Simulator'\r | |
13 | ],\r | |
14 | \r | |
15 | constructor: function() {\r | |
16 | var browserEnv = Ext.browser.is;\r | |
17 | \r | |
18 | if (browserEnv.WebView && browserEnv.Cordova) {\r | |
19 | return Ext.create('Ext.device.capture.Cordova');\r | |
20 | }\r | |
21 | \r | |
22 | return Ext.create('Ext.device.capture.Simulator');\r | |
23 | }\r | |
24 | });\r |