@@ -75,7 +75,7 @@ public async Task ChapterDescriptions()
7575 [ Test ]
7676 public async Task Play ( )
7777 {
78- var media = new Media ( "http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4" , FromType . FromLocation ) ;
78+ var media = new Media ( new Uri ( LocalAudioFile ) ) ;
7979 var mp = new MediaPlayer ( _libVLC , media ) ;
8080 var called = false ;
8181 mp . Playing += ( sender , args ) =>
@@ -85,7 +85,6 @@ public async Task Play()
8585 mp . Play ( ) ;
8686 await Task . Delay ( 5000 ) ;
8787 Assert . True ( called ) ;
88- //Assert.True(mp.IsPlaying);
8988 }
9089
9190 int callCountRegisterOne = 0 ;
@@ -96,7 +95,7 @@ public async Task EventFireOnceForeachRegistration()
9695 {
9796 try
9897 {
99- var media = new Media ( "http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4" , FromType . FromLocation ) ;
98+ var media = new Media ( new Uri ( LocalAudioFile ) ) ;
10099 var mp = new MediaPlayer ( _libVLC , media ) ;
101100
102101
@@ -185,7 +184,7 @@ public async Task UpdateViewpoint()
185184 {
186185 var mp = new MediaPlayer ( _libVLC ) ;
187186
188- mp . Play ( new Media ( "https://streams.videolan.org/streams/360/eagle_360.mp4" , FromType . FromLocation ) ) ;
187+ mp . Play ( new Media ( new Uri ( "https://streams.videolan.org/streams/360/eagle_360.mp4" ) , ":no-video" ) ) ;
189188
190189 await Task . Delay ( 1000 ) ;
191190
@@ -204,17 +203,17 @@ public async Task UpdateViewpoint()
204203 public void GetMediaPlayerRole ( )
205204 {
206205 var mp = new MediaPlayer ( _libVLC ) ;
207- Assert . AreEqual ( MediaPlayerRole . None , mp . Role ) ;
206+ Assert . AreEqual ( MediaPlayerRole . Video , mp . Role ) ;
208207 }
209208
210209 [ Test ]
211210 public void SetMediaPlayerRole ( )
212211 {
213212 var mp = new MediaPlayer ( _libVLC ) ;
214- Assert . AreEqual ( MediaPlayerRole . None , mp . Role ) ;
215-
216- Assert . True ( mp . SetRole ( MediaPlayerRole . Video ) ) ;
217213 Assert . AreEqual ( MediaPlayerRole . Video , mp . Role ) ;
214+
215+ Assert . True ( mp . SetRole ( MediaPlayerRole . Music ) ) ;
216+ Assert . AreEqual ( MediaPlayerRole . Music , mp . Role ) ;
218217 }
219218
220219 [ Test ]
0 commit comments