Fix bug in NamedDepthkitPlayer and add first video in scene 1.0
This commit is contained in:
parent
e7941c79df
commit
37ae416370
@ -35,6 +35,7 @@ Tree("10_SBB_Zugabteil_Intro") {
|
||||
Composite(Selector) {
|
||||
Composite(Sequence) {
|
||||
BTC.NoStoriesVisited()
|
||||
BTC.Run("Depthkit.VIDEOS.Zugabteil1Expositi")
|
||||
|
||||
BTC.SynthesizeText("Wir begrüssen dich auf unserer Reise in die Sprache und Kultur der italienischsprachigen Schweiz.")
|
||||
BTC.SpeechOutputEnded()
|
||||
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
@ -10,7 +10,7 @@ PrefabInstance:
|
||||
m_Modifications:
|
||||
- target: {fileID: 854237334161607345, guid: 1d9c25c646ab3f34c9b577e152c7b98e, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Zugabteil.Exposition.1
|
||||
value: Zugabteil.1.Exposition
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1365681918043619720, guid: 1d9c25c646ab3f34c9b577e152c7b98e, type: 3}
|
||||
propertyPath: m_VideoClip
|
||||
@ -1707,8 +1707,6 @@ MonoBehaviour:
|
||||
useTextTrackSupport: 1
|
||||
useFacebookAudio360Support: 1
|
||||
useAudioDelay: 0
|
||||
bufferedFrameSelection: 0
|
||||
pauseOnPrerollComplete: 0
|
||||
forceAudioOutputDeviceName:
|
||||
preferredFilters: []
|
||||
_audioMode: 0
|
||||
@ -1786,12 +1784,14 @@ MonoBehaviour:
|
||||
keyServerToken:
|
||||
overrideDecryptionKeyBase64:
|
||||
textureFormat: 0
|
||||
_generateMipmaps: 0
|
||||
_audioMode: 0
|
||||
_preferredMaximumResolution: 0
|
||||
_customPreferredMaximumResolution: {x: 0, y: 0}
|
||||
_preferredPeakBitRate: 0
|
||||
_preferredPeakBitRateUnits: 1
|
||||
videoApi: 2
|
||||
showPosterFrame: 0
|
||||
audio360ChannelMode: 0
|
||||
audio360LatencyMS: 0
|
||||
preferSoftwareDecoder: 0
|
@ -9,6 +9,7 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
using MyBT;
|
||||
using RenderHeads.Media.AVProVideo;
|
||||
|
||||
#if DEPTHKIT_AVAILABLE
|
||||
using static Depthkit.Clip;
|
||||
@ -88,7 +89,14 @@ public class NamedDepthkitPlayer : ComponentHandler {
|
||||
// depthkitClip.Player.Load();
|
||||
//GetComponent<RenderHeads.Media.AVProVideo.MediaPlayer>().Rewind(true);
|
||||
//depthkitClip.Player.StartVideoLoad();
|
||||
StartCoroutine(depthkitClip.player.LoadAndPlay());
|
||||
|
||||
//StartCoroutine(depthkitClip.player.LoadAndPlay());
|
||||
MediaPlayer mediaPlayer = GetComponent<MediaPlayer>();
|
||||
if (mediaPlayer != null)
|
||||
{
|
||||
mediaPlayer.OpenMedia();
|
||||
}
|
||||
|
||||
//GetComponent<RenderHeads.Media.AVProVideo.MediaPlayer>().Rewind(false);
|
||||
//Debug.Log("NamedDepthkitPlayer.FirstRun: Load "+Time.frameCount);
|
||||
// goto case NodeState.Running;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user