(ef6d724ea) Fixed: Invalid pathname when triggering a video for the first time

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:48:13 +02:00
parent 7140151882
commit 27efec90c9
7 changed files with 223 additions and 12 deletions
@@ -293,8 +293,7 @@ namespace Barotrauma.Tutorials
private void ClosePreTextAndTriggerVideoCallback()
{
string fileName = "1_CommandReactor/command_reactor_video.mp4";
videoPlayer.LoadContentWithObjective(playableContentPath + fileName, new VideoPlayer.VideoSettings(activeSegment.VideoContent), new VideoPlayer.TextSettings(activeSegment.VideoContent), activeSegment.Id, true, activeSegment.Objective, CurrentSegmentStopCallback);
videoPlayer.LoadContentWithObjective(playableContentPath, new VideoPlayer.VideoSettings(activeSegment.VideoContent), new VideoPlayer.TextSettings(activeSegment.VideoContent), activeSegment.Id, true, activeSegment.Objective, CurrentSegmentStopCallback);
}
private void CurrentSegmentStopCallback()