Open one media player.


Method summary
​WizeyeVideoPlayer.open(deviceName, wizeyeUrl, objectName, accessToken)


ParametersDescription

deviceName

Device name

wizeyeUrl

URL

objectName

Camera object name

accessToken

Access token of camera


example
// Dynamically render a single video
document.addEventListener('DOMContentLoaded', 
	function() { 
		mp1 = new N3N.WizeyeVideoPlayer(); 
		mp1.open("video",
  				 "http://cdp.w20.n3n.io",
		         "cam1",
                 "1504878079591:607602");
});

Remarks

To make the media player full screen, change the attached div to full screen.

To show multiple videos, call this method multiple times for each video.