nimarufa Posted May 16, 2019 Share Posted May 16, 2019 Please help to include script of realtime player to uniHTMLFrame. From manual on service the following code must be included in html: <html> <head> <script src="http://192.168.1.111:9786/js/swfobject.js" type="text/javascript"></script> <script type="text/javascript"> var flashvars = { ip:"192.168.1.111", //ip - host port:9786, //port login:"www", //login pass:"aaa", //password uriCamera:"/cameras/0", //uri camera quality:80, //0-100 quality fps:8, //fps sound:false, //microphone ptz:false, //PTZ playOnStart:true, //play video on start logo:true, //logo devline lang:"ru", //language "ru" "en" "cn" name:"video" // by default, use name cameras from the server }; var params = { menu: "false", scale: "noScale", allowFullscreen: "true", allowScriptAccess: "always", bgcolor: "#ffffff" }; var attributes = { id:"flash" }; swfobject.embedSWF("http://192.168.1.111:9786/miniflash.swf", "altContent", "100%", // set as a percentage or absolute size (in pixels) "100%", "11.2.0", "expressInstall.swf", flashvars, params, attributes); </script> <style type="text/css"> html, body { height:100%; overflow:hidden; } body { margin:0; } </style> </head> <body> <div id="altContent"> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p> </div> </body> </html> I want to use it in my application in HTMLFrame the address of host (192.168.1.111) can be changed runtime. Link to comment Share on other sites More sharing options...
nimarufa Posted May 21, 2019 Author Share Posted May 21, 2019 Please any suggestions Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now