ariga
20th July 2008, 11:18
I'm learning WSH scripting. I found a script that plays audio and tried the same to playback a video. Here's the script
Set oMplayer = WScript.CreateObject("WMPlayer.OCX")
oMPlayer.url = "I:\DVCapture\video.avi"
oMPlayer.Controls.Play
Wscript.Sleep 10000
oMplayer.Controls.stop
With this only the audio plays fine. The video is not visible.
Is there something missing here? Any alternative method to play back video?
Set oMplayer = WScript.CreateObject("WMPlayer.OCX")
oMPlayer.url = "I:\DVCapture\video.avi"
oMPlayer.Controls.Play
Wscript.Sleep 10000
oMplayer.Controls.stop
With this only the audio plays fine. The video is not visible.
Is there something missing here? Any alternative method to play back video?