[問題] 串流問題
請問版友
我在一個網頁上要控制攝影機可以轉向
但是我在按下轉像按鈕後,整個網頁會重新刷新,視訊畫面會不見
要重新整理才會出現
我想在我按下攝影機轉像按鈕後,視訊的畫面仍然在,我要如何做
以下是我的程式碼
-----------------left.cgi----------
#!/bin/bash
gpio mode 1 pwm
gpio pwm-ms
gpio pwmc 400
gpio pwmr 1000
gpio pwm 1 48
echo "Status: 204 No Content"
echo "Content-type: text/plain"
echo ""
-----------------------------------
-------------index.html------------
<html>
<head>
<script Language="Javascript">
function set0()
{
document.location="cgi-bin/left.cgi";
}
</script>
</head>
<body>
<div class="stream" >
<img src="" rel="nofollow">http://192.168.1.19:8081">
</div>
<div style="text-align:center">
<img src="/forward.jpg" id="f" onmousedown="set0()">
</body>
</html>
----------------------------
謝謝各位
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.232.238.188
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1437062932.A.A90.html
※ 編輯: pujols05 (36.232.238.188), 07/17/2015 00:10:25
推
07/17 00:21, , 1F
07/17 00:21, 1F