Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

activeX for web (NEWBIE :(( )

Status
Not open for further replies.

psteja2000

Programmer
Feb 1, 2005
82
US
I am not a vb programmar, but am given the below task.

Given a .ocx control which when added to a form (form has connect,disconnect,start,pause,resume,stop buttons), does the job of connecting,disconnecting,starting,pausing,stopping a wav file. The actual auido file is in proprietary format on another server. The provided ocx connects,converts and then plays/stops etc etc.

Now, using this ocx for testing purposes on a vb form with above mentioned buttons to trigger events on ocx is easy and already accomplished.

Now, I want to replicate this via the web. When user cilcks on the audio link(file name), a window of sorts should open,should have all the required connect, play etc etc buttons and utilize the ocx to connect,retrieve,convert,play etc.. the audio file from the audio server.

I know since the ocx returns many events (like when it connects it fires an event which has to be handled and then we move on to play etcetc..), I need a container to place this control,wherein events can be handled. In the standalone application, it is the form which acts as the container.

My basic question is, can I somehow create a activeX control which has the above ocx as a component, and use this activeX control to display the same gui the above form is providing, and achieve the required functionality (on the web)? Is this possible? Something like, once I write the control,assuming it will be registered on the client machines, on the audio page, we do somethng like
<object cls-id=blahblah...>

By doing so the control that I wrote should be able to display and behave basically the same way as the vb form is currently doing..

I started reading on how to create a activeX control etc, but wasn't sure if I can use a ocx in another activeX control. Any help of any sorts, any suggestions for further reading are greatly appreciated.

regards,
Teja
 
Any such object that you put on a web page will need to be downloaded by users. They will get that popup box telling them it is a security risk unless you go through the extra work of going through a security company, after which they will still see the warning but not the yellow triangle/red X.

Is there any way you can just link the file and let the user play it on their own media player or is there a format issue?
 
There is a format issue. They have it in a proprietary format. The file resides not on the webserver but on a different server. The ocx connects to the server, retrieves, convertes the audio into wav and then plays it. Security is not a problem, because this is not for the public, only users logged in will be able to see this page.

regards,
Teja
 
Is this an audio stream or simply a set of files? If files then it might be better to use the server to save the output of the file as a .wav file and then pass the .wav to the user?

If you could do it that way then the custom software conversion code would not need to be downloaded to the user's machine.

The first user would have a bit of delay for the file conversion, but no moreso than downloading the component and then doing the conversion on their own machine. Subsequent users could just use the file created by the first user.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top