Пример реализации локальной трансляции
Начиная с версии 6.9.5, система «Линия» позволяет организовать локальную трансляцию. Для организации трансляции на сервере: Для трансляции в одной LAN с сервером: Нумерация камер начинается с "0" Adobe Flash PlayerПример работы с ресурсом: <html> <head> <script src="http://127.0.0.1:9786/js/swfobject.js" type="text/javascript"></script> <script type="text/javascript"> var flashvars = { ip:"127.0.0.1", //ip - host port:9786, //port login:"admin", //login pass:"", //password uriCamera:"/cameras/1", //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:"Line" // by default, use name cameras from the server //UpLeftImage:"link" //top left position, link for image for your logo //UpRightImage"link" //DownRightImage:"link" //DownLeftImage:"link" //UpLeftLink:"link" //top left position, link on your website //UpRightLink:"link" //DownRightLink:"link" //DownLeftLink:"link" }; var params = { menu: "false", scale: "noScale", allowFullscreen: "true", allowScriptAccess: "always", bgcolor: "#ffffff" }; var attributes = { id:"flash" }; swfobject.embedSWF("http://127.0.0.1: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> |