vMix 27 来了!
2024-01-23
知识库
Dim szExt As String = ".mp4" Dim szFolder As String = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) & "\vmixstorage" Dim szLatestFile As String = "" Dim dLatestFile As Date = Nothing For Each szFile As String In System.IO.Directory.GetFiles(szFolder) Dim fi As New System.IO.FileInfo(szFile) If fi.Extension = szExt Then If fi.LastWriteTime > dLatestFile Then szLatestFile = szFile dLatestFile = fi.LastWriteTime End If End If Next If System.IO.File.Exists(szLatestFile) Then API.Function("AddInput", Value:="Video|" & szLatestFile) End If
扫二维码用手机看
Dim szExt As String = ".mp4" Dim szFolder As String = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) & "\vmixstorage" Dim szLatestFile As String = "" Dim dLatestFile As Date = Nothing For Each szFile As String In System.IO.Directory.GetFiles(szFolder) Dim fi As New System.IO.FileInfo(szFile) If fi.Extension = szExt Then If fi.LastWriteTime > dLatestFile Then szLatestFile = szFile dLatestFile = fi.LastWriteTime End If End If Next If System.IO.File.Exists(szLatestFile) Then API.Function("AddInput", Value:="Video|" & szLatestFile) End If
扫二维码用手机看
新浪微博
关注@vMixchina
官方微信公众号
新浪微博
关注@vMixhd
官方微信公众号