| 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 | **/ |
|---|
| 4 | package com.jeroenwijering.models { |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | import com.jeroenwijering.models.HTTPModel; |
|---|
| 8 | import com.jeroenwijering.player.Model; |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | public 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.