修改导出视频功能
This commit is contained in:
parent
20afeb9fa1
commit
908ae13870
File diff suppressed because one or more lines are too long
@ -1,13 +1,11 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using QFramework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using static OperationController;
|
||||
using UnityEngine.Video;
|
||||
using TMPro;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -78,16 +76,16 @@ namespace QFramework.Example
|
||||
loader.LoadAsync();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
transform.SetAsLastSibling();
|
||||
|
||||
|
||||
ExportVideo();
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected override void OnShow()
|
||||
{
|
||||
@ -103,7 +101,15 @@ namespace QFramework.Example
|
||||
loader.Recycle2Cache();
|
||||
|
||||
|
||||
if (string.IsNullOrEmpty(mData.ExportVideoPath) == false)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void ExportVideo()
|
||||
{
|
||||
Debug.Log("????????"+mData.ExportVideoPath+"????????");
|
||||
if (!string.IsNullOrEmpty(mData.ExportVideoPath))
|
||||
{
|
||||
|
||||
string OutPath = "";
|
||||
@ -148,14 +154,40 @@ namespace QFramework.Example
|
||||
|
||||
Debug.LogError($"·¢Éúδ֪´íÎó: {e.Message}");
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
Debug.Log(mData.ExportVideoPath+"????");
|
||||
Debug.Log("½áÊø????");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -158,10 +158,14 @@
|
||||
<Action type="Show" value="DanFan_2DCanvas/Connet/BaoGuangGroup" isShow="false"></Action>
|
||||
<Action type="Show" value="DanFan_2DCanvas/Connet/拍照焦点_红色" isShow="false"></Action>
|
||||
|
||||
<!--<Action type="TipWindow" exportVideoPath="GenJingTou.mp4" value="导出成功,请返回指定文件夹查看。" btns="确认"> </Action>
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确认"></Condition>-->
|
||||
|
||||
<!--<Action type="TipWindow" value="欢迎进入实验" btns="确认"> </Action>
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确认"></Condition>-->
|
||||
|
||||
|
||||
|
||||
<Action type="TipWindow" exportVideoPath="GenJingTou.mp4" value="恭喜你完成摄像机拍摄,点击确定,保存摄像机拍摄文件" btns="确定"> </Action>
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确定"></Condition>
|
||||
|
||||
<Action type="OperationChange" name="初始化"></Action>
|
||||
</Action>
|
||||
@ -881,11 +885,15 @@
|
||||
|
||||
|
||||
|
||||
<Action type="TipWindow" ExportVideoPath="GenJingTou.mp4" value="恭喜你完成摄像机拍摄,点击确定,保存摄像机拍摄文件" btns="确定"> </Action>
|
||||
|
||||
|
||||
|
||||
<Action type="TipWindow" value="恭喜你完成摄像机拍摄,点击确定,保存摄像机拍摄文件" btns="确定"> </Action>
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确定"></Condition>
|
||||
|
||||
<Action type="TipWindow" exportVideoPath="Recordings/Movie_001.mp4" value="导出成功,请返回指定文件夹查看。" btns="确认"> </Action>
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确认"></Condition>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Action type="Var" name="完成" value="1"></Action>
|
||||
@ -1762,6 +1770,12 @@
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确定"></Condition>
|
||||
|
||||
|
||||
<Action type="TipWindow" exportVideoPath="Recordings/Movie_002.mp4" value="导出成功,请返回指定文件夹查看。" btns="确认"> </Action>
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确认"></Condition>
|
||||
|
||||
|
||||
|
||||
|
||||
<Action type="Var" name="完成" value="1"></Action>
|
||||
|
||||
|
||||
@ -2408,6 +2422,9 @@
|
||||
<Action type="TipWindow" value="恭喜你完成单反摄影,点击确定,保存摄像机拍摄文件" btns="确定"> </Action>
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确定"></Condition>
|
||||
|
||||
<Action type="TipWindow" exportVideoPath="Recordings/Movie_003.mp4" value="导出成功,请返回指定文件夹查看。" btns="确认"> </Action>
|
||||
<Condition type="UIClick" value="UIRoot/PopUI/UITipWindow/Mask/Connnet/BtnContent/确认"></Condition>
|
||||
|
||||
|
||||
<Action type="Var" name="完成" value="1"></Action>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user