Пример #1
0
 public void loadBrief(Configuration configuration)
 {
     videoPlayer.videoURL = "jar:file://${Application.dataPath}!/assets/brief" + configuration.climate + ".mp4";
     videoPlayer.SetOnExceptionCallback((type, message) => {
         Debug.LogError("GvrVideoPlayerTexture threw Exception of type: " + type + ": " + message);
     });
     if (!videoPlayer.Init())
     {
         Debug.LogError("Failed to init GvrVideoPlayerTexture with video: " + videoPlayer.videoURL);
     }
 }