source: tags/mediaplayer-4.5/com/jeroenwijering/models/EdgeCastModel.as @ 221

Revision 221, 661 bytes checked in by jeroen, 4 years ago (diff)

tagged the 4.5 player

Line 
1/**
2* Manages playback of streaming video from the EdgeCast CDN.
3**/
4package com.jeroenwijering.models {
5
6
7import com.jeroenwijering.models.HTTPModel;
8import com.jeroenwijering.player.Model;
9
10
11public class EdgeCastModel extends HTTPModel {
12
13
14        /** Constructor. **/
15        public function EdgeCastModel(mod:Model):void {
16                super(mod);
17        };
18
19
20        /** Create the video request URL. **/
21        override protected function getURL():String {
22                var url:String = item['file'];
23                if(timeoffset > 0) {
24                        if(url.indexOf('?') > 0) {
25                                url += '&ec_seek='+timeoffset;
26                        } else {
27                                url += '?ec_seek='+timeoffset;
28                        }
29                }
30                return url;
31        };
32
33
34};
35
36
37}
Note: See TracBrowser for help on using the repository browser.