| Revision 365,
670 bytes
checked in by zach, 4 years ago
(diff) |
|
Adding MediaSources Tests
|
| Line | |
|---|
| 1 | package tests.media { |
|---|
| 2 | import com.longtailvideo.jwplayer.media.SoundMediaProvider; |
|---|
| 3 | import com.longtailvideo.jwplayer.model.PlayerConfig; |
|---|
| 4 | import com.longtailvideo.jwplayer.model.Playlist; |
|---|
| 5 | |
|---|
| 6 | public class SoundMediaProviderTest extends BaseMediaProviderTest { |
|---|
| 7 | private var _mediaSources:Array = [new SoundMediaProvider(new PlayerConfig(new Playlist()))]; |
|---|
| 8 | private var _playlist:Array = [{'duration': 5, 'file':'http://developer.longtailvideo.com/svn/testing/files/bunny.mp3'}]; |
|---|
| 9 | |
|---|
| 10 | protected override function get mediaSources():Array { |
|---|
| 11 | return _mediaSources; |
|---|
| 12 | } |
|---|
| 13 | |
|---|
| 14 | protected override function get playlist():Array { |
|---|
| 15 | return _playlist; |
|---|
| 16 | } |
|---|
| 17 | } |
|---|
| 18 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.