source: Dev/trunk/src/client/dojox/mobile/Video.js @ 529

Last change on this file since 529 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1.2 KB
Line 
1define([
2        "dojo/_base/declare",
3        "dojo/sniff",
4        "./Audio"
5], function(declare, has, Audio){
6        // module:
7        //              dojox/mobile/Video
8
9        return declare("dojox.mobile.Video", Audio, {
10                // summary:
11                //              A thin wrapper around the HTML5 `<video>` element.
12                // description:
13                //              dojox/mobile/Video is a widget which plays video. If all sources cannot
14                //              be played (typically, in desktop browsers that do not support `<video>`),
15                //              dojox/mobile/Video automatically replaces `<video>` with `<embed>`, such
16                //              that the browser tries to play it with a suitable plug-in.
17               
18                // width: [const] String
19                //              The width of the embed element.
20                //              Note that changing the value of the property after the widget
21                //              creation has no effect.
22                width: "200px",
23
24                // height: [const] String
25                //              The height of the embed element.
26                //              Note that changing the value of the property after the widget
27                //              creation has no effect.
28                height: "150px",
29
30                // _tag: [private] String
31                //              The name of the tag ("video").
32                _tag: "video",
33
34                _getEmbedRegExp: function(){
35                        return has("ff") ? /video\/mp4/i :
36                                   has("ie") >= 9 ? /video\/webm/i :
37                                   //has("safari") ? /video\/webm/i : //Google is gooing to provide webm plugin for safari
38                                   null;
39                }
40        });
41});
Note: See TracBrowser for help on using the repository browser.