ここでは、Microsoft のサンプル アプリを使用しています。
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
次に、そのコレクションをクエリして、ユーザーがそのビデオを選択してリストビューで表示できるようにするにはどうすればよいでしょうか? 動画ファイルを整理しておくためのフォルダを指定する方法はありませんか?
これを行うためのベストプラクティスに関するアドバイスを探しています。ユーザーがフォト ロールからビデオを選択できるようにするビデオ チューザーを使用したかったのですが、Windows Phone では現在これが許可されていません。