Page 1 of 1

VLC ActiveX in WinCC V7

Posted: 23 Jun 2017 16:50
by AJT
Hello,

i'm using the "VLC ActiveX Plugin and IE Web Plugin V2" in a picturewindow in a WinCC V7.4 project.
I want to show the rtsp-stream of an IP-Camera.
When i directly enter the streampath ex. rtsp://admin:admin@172.20.33.233 into the Control Property "MRL" my runtime picture is showing the livefeed correctly.

However if i want to dynamically assign the streampath ex. structure tag or return value from a C-script, the runtime is not showing anything.


Is there anyone who has experienced the same problem and could help me out.

It would be handy that the ActiveX plugin could show which value is enterd in the MRL-Field in runtime.

Thanks

Re: VLC ActiveX in WinCC V7

Posted: 27 Jun 2017 14:04
by AJT
Hello,

i managed to work around this issue.

In the 'Open Picture'-event of the picture i use as template for the camera-view, i use the following VB-scriptcode :

Sub OnOpen()

'Get value from the StructureTag Camera according to the given TagPrefix
Dim Tag_Stream
Set Tag_Stream = HMIRuntime.Tags(".Stream")
Tag_Stream.Read()

'Load the playlist of the VLC-ActiveX with the retrieved StreamInfo
'e.g. "rtsp://admin:admin@172.20.3.233"
'VLCPluging_1 is the VLC ActiveX object
'The property 'MRL' is left empty

Dim myVLCObject
Set myVLCObject = ScreenItems("VLCPlugin_1")

myVLCObject.playlist.stop()
myVLCObject.playlist.items.clear()
myVLCObject.playlist.add(Tag_Stream.Value)
myVLCObject.playlist.play()

End Sub