The Webcam plays the video stream in real time through the Mappview

HW:
IPC-B&R APC910-5PC910.SX01-00(CPU QM170 i7-6820EQ)
Webcam-Hikvision DS-2CD3325-1
SW:
AS-V4.12.5
AR&MAPPVIEW

image

Requirement:
Synchronous monitoring of personnel operation and machine status through video streaming

Solution:
1.Set the IP and username-password of the IP camera;
RSTP video
streaming:“rtsp://username:password@ip-address/h264/ch1/main”
2.Download VLC Player and install the browser add-on;
VLC org
3.Convert to index.html web pages via VLC;
index.html-code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">  
<html>  
	<head>  
		<title>VideoStream</title>  
	</head>  
	<body>  
		<object id="vlc" type="application/x-vlc-plugin" width="1215.2" height="525.28" pluginspage="http://www.videolan.org"
			events="True">
		</object>  
		
		<script type="text/javascript">
			setTimeout(function(){
				var vlc = document.getElementById("vlc");
				var id = vlc.playlist.add("rtsp://admin:asdzxc147@192.168.3.199/h264/ch1/main","vedio",options);
				vlc.playlist.playItem(id);
			},500)
		</script>

	</body>  
</html> 
   4.Publish a local website through Internet Information Services (llS) and set the physical path;
    5.Apply the WebViewer control and set the properties;


6.Use the IE+chome kernel browser to access the HMI.
360SE
(Chrome is not supported for security reasons)
Finally you can access the live video stream of the camera.

3 Likes

Forgot to use preformatted text, sorry about that.