我使用的示例应用程序从这里微软:保存并检索多个视频到本地存储?
http://msdn.microsoft.com/en-us/library/hh394041(v=vs.92).aspx
为出发点开发的应用程序,允许用户记录在应用集合多个视频。
完成此操作的最佳方法是什么?我注意到该示例使用fileSink对象在独立存储中指定捕获源和文件名。
Private Sub StartVideoRecording()
Try
' Connect fileSink to captureSource.
If captureSource.VideoCaptureDevice IsNot Nothing AndAlso captureSource.State = CaptureState.Started Then
captureSource.Stop()
' Connect the input and output of fileSink.
fileSink.CaptureSource = captureSource
fileSink.IsolatedStorageFileName = isoVideoFileName
End If
' Begin recording.
If captureSource.VideoCaptureDevice IsNot Nothing AndAlso captureSource.State = CaptureState.Stopped Then
captureSource.Start()
End If
' Set the button states and the message.
UpdateUI(ButtonState.Recording, "Recording...")
' If recording fails, display an error.
Catch e As Exception
Me.Dispatcher.BeginInvoke(Sub() txtDebug.Text = "ERROR: " & e.Message.ToString())
End Try
End Sub
然后,我将如何查询该集合,并允许用户选择该视频在listview中查看?有没有办法指定一个文件夹来保持视频文件的组织?
只是寻找一些最佳实践方面的建议来完成这项工作。我想使用一个视频选择器,允许用户从他们的照片卷中选择一个视频,但Windows Phone目前不允许这样做......