LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

WMP by ActiveX EndOfStream Callback

Hello i want to use the callback function EndOfStream from class: Event Callback Regristration Functions. The function that is called at the end of the stream should set the togglebutton from pause to play.
Can somebody give me an example how to work with this functions.
 
Greetings Paco
0 Kudos
Message 1 of 5
(3,805 Views)
Paco,

i hope you are using CVI 7.1. then you can take a look in the attached example.

Norbert B.
- AE Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(3,785 Views)

Hallo Norbert,

ich habe leider vergessen zu sagen, dass ich LabWindow/CVI 6.0 verwende. Leider habe ich den Transfair nicht alleine geschafft, so dass es auch bei LabWindow/CVI 6.0 läuft. Wenn Du mir nochmals helfen könntest wäre das echt super danke.

Gruß Paco

0 Kudos
Message 3 of 5
(3,780 Views)

Hello Paco,

Unfortunately I do not speak German, however I gather that you are using CVI 6.0 but could not get the button to work.  The Windows media player ActiveX control that is used allows events like the endofstream to be a registered event and will allow you a callback to handle that event.  In that event, you will want to call to an ActiveX method to change the state of the player.  I assume that when you reach the end of the stream you want a button to change to play so that when the user presses that button the video feed will start over.  To do this, use the IMediaPlayerPause / IMediaPlayerPlay / IMediaPlayerStop with manipulations of the marker times to set where you would like playback to begin.

Hope that helps, and let me know if I can help you with anything else.

Regards,

Travis M
NI

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 4 of 5
(3,754 Views)
Sorry, but i don't know what to do. Can you give me an example with comments written with LabWindow/CVI 6.0?
 
Thanks Paco
0 Kudos
Message 5 of 5
(3,734 Views)