src/widgets/AutoPlayer.js
changeset 979 ff62016e051d
parent 976 4b9ec475026a
child 980 9ee8c00ae5b7
equal deleted inserted replaced
977:934a7b13a2ca 979:ff62016e051d
    44         ],
    44         ],
    45         _rtmprgx = /^rtmp:\/\//;
    45         _rtmprgx = /^rtmp:\/\//;
    46     
    46     
    47     for (var i = 0; i < _types.length; i++) {
    47     for (var i = 0; i < _types.length; i++) {
    48         if (_types[i].regexp.test(this.video)) {
    48         if (_types[i].regexp.test(this.video)) {
    49             _opts.type =  _types[i].type
    49             _opts.type =  _types[i].type;
       
    50             break;
    50         }
    51         }
    51     }
    52     }
    52     
    53     
    53     if (typeof _opts.type === "undefined") {
    54     if (typeof _opts.type === "undefined") {
    54         _opts.type = this.default_type
    55         _opts.type = this.default_type