Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Media players and codecs (http://stream-recorder.com/forum/forumdisplay.php?f=26)
-   -  

dymanic display omnicast Video/camera in the web

(http://stream-recorder.com/forum/showthread.php?t=2666)

webjimmy 06-23-2008 02:42 PM

dymanic display omnicast Video/camera in the web


 
Hi friends
based on Omnicast SDK, i try to call
GxVideoLive object
Code:

<object id=GxVideoLive classid=clsid:E10F54C4-7191-4da8-A254-43F92E383C10 height=240 width=352>
<param name="fileName" value="xxxxx" />
<param name="autostart" value="true" />
<param name="showstatusbar" value="true" />
<param name="PlayCount" value="5" />
<embed src="../../../xxx" width="320" height="310" hspace="0" vspace="0" autostart="true" filename="videos/xxxx" name="win_media_player" playcount="5"></embed>
</object>

how to call method and events by VBScript/JavaScript or VB.net in web side? or just as a param in object?
such GxVideoLive.ClearOverlay Method
and GxVideoLive.OnVideoStarted Event

Do we can dymanic display omnicast Video/camera in the web site. it is a avi type.

Thanks for your help!

Regards,

Jim

jdoyon 03-08-2009 08:09 PM

Re: dymanic display omnicast Video/camera in the web


 
Hi webjimmy,

You can dymanic display omnicast Video/camera in the web site very easily. The Video isn't an Avi, GxVideolive decodes and render the native video stream that comes from the camera.

Omnicast has a SDK that includes a series of ActiveX.GxvideoLive is one of them.

Normally if you have the SDK Documentation and installation, it has a nice sample to shows how to use GxVideoLive in a WebLive.

Here's a quick overview of waht you have to do.

First you need 2 activeX components. GxVideoLive and GxUIProxyWeb.

Here are VB samples:

How to create GxUIProxy and GxVideoLive:

Code:

<object id="GxUIProxy" classid="clsid:C62E8E18-82A4-4bc8-8E10-4B1F27E1DCB8" VIEWASTEXT></object>
<object id="GxVideoLive" style="LEFT: 0px; WIDTH: 300px; TOP: 0px; HEIGHT: 200px" classid="clsid:E10F54C4-7191-4da8-A254-43F92E383C10" VIEWASTEXT></object>


Then we must link the GxUIProxy with GxVideolive:

Code:

GxUIProxy.CreateInstance
GxVideoLive.CreateInstance GxUIProxy


The UIProxy activex must authenticate to the Omnciast Directory server. The code will display a logon dialog.

Code:

Dim szUserName, szPassword, szDirectory, nBlockingMode

szUserName  = window.txtUserName.value
szPassword  = window.txtPassword.value
szDirectory = window.txtDirectory.value
nBlockingMode = 1

On Error Resume Next

GxUIProxy.LogOn szDirectory, szUserName, szPassword, CBool (nBlockingMode)
If Err.Number <> 0 Then
    MsgBox Err.Description, , "LogOn Error"
End If


Once the UIProxy is logon, you just have to specify which camera you want to see in the GxVideoLive ActiveX.

Code:

GxVideoLive.StartLiveVideo strCameraGUID

To see more than one camera at a time, you can instantiate more than 1 GxVideoLive using a single GxIUProxy object.

To find out camera GUID, GxIUProxy give methods to convert from a Logical ID (Simple number from 1 to XXXX) to a GUID. Omnicast assigns automatically a logical ID to each camera.

I hope it helps!

Jo

jdoyon 05-19-2009 03:45 AM

Re: dymanic display omnicast Video/camera in the web


 
Hi,
I created a blog where I post samples on the Omnicast SDK: http://ipsecuritysolutions.blogspot.com/

Jo


All times are GMT -6. The time now is 07:39 AM.