VLC ActiveX in WinCC V7

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
AJT
New Cone
New Cone
Posts: 2
Joined: 23 Jun 2017 16:40

VLC ActiveX in WinCC V7

Postby AJT » 23 Jun 2017 16:50

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

AJT
New Cone
New Cone
Posts: 2
Joined: 23 Jun 2017 16:40

Re: VLC ActiveX in WinCC V7

Postby AJT » 27 Jun 2017 14:04

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


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot], jimmyhot, jmto and 63 guests