Exemplo n.º 1
0
 public void GetHlsUrl_Works_For_Files_Response()
 {
     UnityEngine.TestTools.LogAssert.NoUnexpectedReceived();
     video = new VimeoVideo(JSONNode.Parse(mockProductionJson));
     Assert.AreEqual(video.getHlsUrl(), "https://player.vimeo.com/external/xxx.m3u8?s=edab7a40157183128871d34b0794feb5f1534501&oauth2_token_id=...");
 }
Exemplo n.º 2
0
 // TODO somehow test different application platforms
 // Note: this fails (correctly) when testing on Mac
 public void GetAdaptiveVideoFileURL_Defaults_To_Hls_For_Files_Response()
 {
     UnityEngine.TestTools.LogAssert.Expect(LogType.Warning, "[Vimeo] No DASH manfiest found. Defaulting to HLS.");
     video = new VimeoVideo(JSONNode.Parse(mockProductionJson));
     Assert.AreEqual(video.GetAdaptiveVideoFileURL(), video.getHlsUrl());
 }
Exemplo n.º 3
0
 public void GetHlsUrl_Works_For_Play_Response()
 {
     UnityEngine.TestTools.LogAssert.NoUnexpectedReceived();
     Assert.AreEqual(video.getHlsUrl(), "https://player.vimeo.com/play/104610246,1046140239,1d140237,10461d0236,1046140235,1046140233/hls?s=279300468_1538085539_2e78157d9c236cc773328a5685b4dc65&context=Vimeo%5CController%5CApi%5CResources%5CVideoController.&logging=false");
 }