Ciao a tutti ho trovato il seguente codice in rete, serve per riprodurre file video, quello che vorrei fare è riprodurre quel video in una picture, mentre questo codice mi apre una nuova finestra, dove c'è il video:
E sarei grato se qualcuno mi può spiegare cos'è il FilgraphManager, leggendo su internet se ho capito bene si basa sulle directx e serve x l'audio, però non ho le idee chiare, vi ringrazio per la disponibilità come semprecodice:' Open the device and play the sound. Private Sub cmdPlay_Click() Dim media_control As Object Dim media_event As IMediaEvent Dim event_code As Long ' Get an object on the filter graph manager Set media_control = New FilgraphManager ' Open the file and build a filter graph media_control.RenderFile txtFilename.Text ' Play the file. media_control.Run ' Get the IMediaEvent interface Set media_event = media_control ' Wait for the video to finish media_event.WaitForCompletion 99999, event_code ' Free all interfaces Set media_event = Nothing Set media_control = Nothing End Sub![]()

Rispondi quotando