Object to display vedio?

Monday, February 26, 2007 by rcooley | Discussion: Developer Journals

 

Does anyone know If there a way to create an object that can display a video clip?  Any help would be appreciated.

 

Thanks!

rcooley

 

ZubaZ
Reply #1 Monday, February 26, 2007 1:57 PM
Good question.  And the answer might be yes, depending on the source.
The way I usually do stuff like this is to create an object that uses the browser activeX control and have that load the source file for the video.

I created a simple widget that palyed a SWF video (bloodmobile.swf) using the code below:


 'Called when the script is executed
Sub Object_OnScriptEnter
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(workFolder & "bloodmobile.swf") = False Then
objFSO.CopyFile Object.Directory & "bloodmobile.swf", workFolder & "virtual-bubblewrap-distv1.1.swf"
End If
Control.Navigate2 Object.Directory & "bloodmobile.swf"
End Sub

'Called when the script is terminated
Sub Object_OnScriptExit

End Sub


I had to embed the swf file using the Summary tab in the DX object by clicking the Custom File button.
rcooley
Reply #2 Wednesday, February 28, 2007 5:16 PM

Thanks for the info, but how would I do this for a local video file like MyVedio.wmf?

Thanks
rcooley
ZubaZ
Reply #3 Wednesday, February 28, 2007 5:54 PM
Try the link here

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01