Compare commits
No commits in common. "42e98ae3d869678fb0ffa7d41e29d64b3a24b503" and "958f87624b8199645a7c8afe9f7f98aabe60f54d" have entirely different histories.
42e98ae3d8
...
958f87624b
@ -75,7 +75,7 @@ Tree("10_SBB_Zugabteil_Intro") {
|
||||
Composite(Selector) {
|
||||
Composite(Sequence) {
|
||||
BTC.NoStoriesVisited()
|
||||
BTC.Wait(5)
|
||||
BTC.Wait(8)
|
||||
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle1")
|
||||
|
||||
// --- Zugabteil - Exposition ---
|
||||
|
@ -84,7 +84,7 @@ public class NamedAVProMediaPlayer : ComponentHandler
|
||||
case NodeState.FirstRun:
|
||||
_videoActor.SetActive(true);
|
||||
_mediaPlayer.PlatformOptionsAndroid.videoApi = Android.VideoApi.ExoPlayer;
|
||||
//_mediaPlayer.PlatformOptionsAndroid.preferSoftwareDecoder = true;
|
||||
_mediaPlayer.PlatformOptionsAndroid.preferSoftwareDecoder = true;
|
||||
|
||||
_mediaPlayer.OpenMedia(new MediaPath(videoPath, MediaPathType.RelativeToPersistentDataFolder));
|
||||
break;
|
||||
|
@ -15,7 +15,7 @@ public class PlayAVProVideo : MonoBehaviour
|
||||
_mediaPlayer = GetComponent<MediaPlayer>();
|
||||
if (_mediaPlayer != null)
|
||||
{
|
||||
_mediaPlayer.PlatformOptionsAndroid.videoApi = Android.VideoApi.ExoPlayer;
|
||||
Debug.Log("Panorama is loading");
|
||||
_mediaPlayer.OpenMedia(new MediaPath(videoPath, MediaPathType.RelativeToPersistentDataFolder), autoPlay: true);
|
||||
}
|
||||
}
|
||||
@ -24,7 +24,7 @@ public class PlayAVProVideo : MonoBehaviour
|
||||
{
|
||||
if (_mediaPlayer != null)
|
||||
{
|
||||
_mediaPlayer.Stop();
|
||||
Debug.Log("Panorama is closing");
|
||||
_mediaPlayer.CloseMedia();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user