You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

123 lines
5.6 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Webrtc IPC H265/H264 Player</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="format-detection" content="telephone=no, email=no" />
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<!-- <div class="row">
<form action="demo_form.html" method="get">
服务器名称: <input type="text" name="servername" id="serverId" value="rtmpserver1">
拉 流 名 称: <input type="text" name="streamname" id="streamId" value="kvs">
设 备 名 称: <input type="text" name="devicename" id="deviceId" value="0A:2A:BE:6C:03:2E">
设 备 名 称: <input type="text" name="devicename" id="deviceId" value="4E:7B:BF:71:D6:B4"><br>
数 据 发 送:<input type="text" name="msgout" id="controlInput" value="msgout"><button type="button" onclick="controlSend()" id="control-send">发送控制消息</button><br>
数 据 接 收:<input type="text" name="msgin" id="control_output" value="msgin"><br>
</form>
</div> -->
<div class="container" id="videoPlayer">
<div class="sideBar">
<span class="no-padding">
<img src="img/home.png" class="left" id="btnHome" title="Visit My Homepage" onclick="window.open('https://blog.csdn.net/superxxd')" />
</span>
<div id="input">
<select id="protocol" onchange="onSelectProto()">
<option value="webrtc">metaRTC</option>
<option value="mqtt">MQTT</option>
<option value="http">HTTP</option>
<option value="ws">WS</option>
<option value="httpFlv">HTTP-FLV</option>
</select>
<input type="text" id="inputUrl" value="webrtc://192.168.0.18:1988/live/livestream" style="width:300px"/>
设 备 名 称: <input type="text" name="devicename" id="deviceId" value="4E:7B:BF:71:D6:B4" style="width:100px"/>
拉 流 名 称: <input type="text" name="streamname" id="streamId" value="metartc" style="width:100px"/>
</div>
</div>
<div class="canvasDiv">
<div class="loadEffect" id="loading" style="display:none;">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<!-- <canvas id="playCanvas" width="852" height="480"></canvas>
-->
<!-- <div style="margin-top: 10px"> -->
<!-- <div class="video-main">
<br><video controlsList="nodownload noplaybackrate nofullscreen noremoteplayback"
disablePictureInPicture id="remote-video" autoplay class="m-0 p-0"
style="position: relative; top: 0; left: 0; z-index: 1;width:100%; height:100%;object-fit:fill">
<style type="text/css">
video::-webkit-media-controls {
display: none !important;
}
/*video隐藏全屏按钮*/
video::-webkit-media-controls-fullscreen-button {
display: none !important;
}
/*video隐藏音量控制*/
video::-webkit-media-controls-volume-control-container {
display: none !important;
}
video::-webkit-progress-bar {
display: none !important;
}
</style>
</video>
</div>
</div> -->
<canvas id="playCanvas" width="1920" height="1080"></canvas>
<!-- </div> -->
</div>
<div class="sideBar">
<span class="no-padding">
<img src="img/play.png" class="left" id="btnPlayVideo" onclick="handleVideo()" />
</span>
<span class="no-padding" style=" padding-left:5px;">
<img src="img/stop.png" class="left" id="btnStopVideo" onclick="stopVideo()" />
</span>
<span class="track-padding">
</span>
<span class="no-padding">
<input id="timeTrack" type="range" value="0">
</span>
<span class="no-padding" style=" padding-left:10px;">
<label id="timeLabel">00:00:00/00:00:00</label>
</span>
<span class="no-padding right">
<img src="img/fullscreen.png" class="right" id="btnFullscreen" onclick="fullscreen()" />
</span>
</div>
</div>
<div id="footer">Copyright &copy; 2022 xiangxudong.All rights reserved.webrtc datachannel H265 Player Demo 2022</div>
</div>
<!-- <div style="margin: 20px;">
<button id="play" onclick="handleVideo()">Start Play</button>
<button id="stop" onclick="stopVideo()">stop Play</button>
</div> -->
<!-- <script src="libffmpeg_264_265.js"></script>
<script src="decoder_missle_wasm.js"></script>
<script src="video.js"></script>
<script src="audio.js"></script>
<script src="webgl.js"></script> -->
<script src="start.js"></script>
</body>
</html>