This commit is contained in:
Nadine Ganz 2025-08-14 19:34:00 +02:00
parent 79cbcc5a08
commit 4fd3670a52
3 changed files with 4 additions and 4 deletions

View File

@ -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 ---

View File

@ -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;

View File

@ -15,7 +15,7 @@ public class PlayAVProVideo : MonoBehaviour
_mediaPlayer = GetComponent<MediaPlayer>();
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();
}
}