Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Media file management > Media players and codecs
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 06-23-2008, 03:42 PM
webjimmy
 
Posts: n/a
Default

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
Reply With Quote
  #2  
Old 03-08-2009, 09:09 PM
jdoyon
 
Posts: n/a
Red face

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
Reply With Quote
  #3  
Old 05-19-2009, 04:45 AM
jdoyon
 
Posts: n/a
Default

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
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:56 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons