From 4fd3670a52e86c0948d9f686c607d61445299426 Mon Sep 17 00:00:00 2001 From: Nadine Ganz Date: Thu, 14 Aug 2025 19:34:00 +0200 Subject: [PATCH] Fixes --- Viagg-io/Assets/BehaviourTrees/1.0-SBB.bt.txt | 2 +- .../Packages/MyBT/BTC/Handlers/NamedAVProMediaPlayer.cs | 2 +- Viagg-io/Assets/Scripts/PlayAVProVideo.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Viagg-io/Assets/BehaviourTrees/1.0-SBB.bt.txt b/Viagg-io/Assets/BehaviourTrees/1.0-SBB.bt.txt index 6ff1e63c..eee45d83 100644 --- a/Viagg-io/Assets/BehaviourTrees/1.0-SBB.bt.txt +++ b/Viagg-io/Assets/BehaviourTrees/1.0-SBB.bt.txt @@ -75,7 +75,7 @@ Tree("10_SBB_Zugabteil_Intro") { Composite(Selector) { Composite(Sequence) { BTC.NoStoriesVisited() - BTC.Wait(8) + BTC.Wait(5) BTC.Hide("MediaPlayer.VIDEOS.IntroFidle1") // --- Zugabteil - Exposition --- diff --git a/Viagg-io/Assets/Packages/MyBT/BTC/Handlers/NamedAVProMediaPlayer.cs b/Viagg-io/Assets/Packages/MyBT/BTC/Handlers/NamedAVProMediaPlayer.cs index 4d167127..77a3566d 100644 --- a/Viagg-io/Assets/Packages/MyBT/BTC/Handlers/NamedAVProMediaPlayer.cs +++ b/Viagg-io/Assets/Packages/MyBT/BTC/Handlers/NamedAVProMediaPlayer.cs @@ -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; diff --git a/Viagg-io/Assets/Scripts/PlayAVProVideo.cs b/Viagg-io/Assets/Scripts/PlayAVProVideo.cs index 0cff758d..39d53887 100644 --- a/Viagg-io/Assets/Scripts/PlayAVProVideo.cs +++ b/Viagg-io/Assets/Scripts/PlayAVProVideo.cs @@ -15,7 +15,7 @@ public class PlayAVProVideo : MonoBehaviour _mediaPlayer = GetComponent(); if (_mediaPlayer != null) { - Debug.Log("Panorama is loading"); + _mediaPlayer.PlatformOptionsAndroid.videoApi = Android.VideoApi.ExoPlayer; _mediaPlayer.OpenMedia(new MediaPath(videoPath, MediaPathType.RelativeToPersistentDataFolder), autoPlay: true); } } @@ -24,7 +24,7 @@ public class PlayAVProVideo : MonoBehaviour { if (_mediaPlayer != null) { - Debug.Log("Panorama is closing"); + _mediaPlayer.Stop(); _mediaPlayer.CloseMedia(); } }