static

demo.html 1.3KB

    <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>rtmp streamer example</title> <script data-main="main" src="require.js"></script> </head> <body style="text-align: center;"> rtmp streamName: <input id="stream" type="text" style="width: 150px;" value="123" title="stream-name"> <hr> <h2>Player</h2> pull account: <input id="pull-username" type="text" style="width: 150px;" value="play0"> <input id="pull-password" type="text" style="width: 150px;" value="111111"> <br> <object> <embed id="rtmp-player" src="./RtmpStreamer.swf" bgcolor="#999999" quality="high" width="280" height="480" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed> </object> <br> <button id="play"> play</button> <button id="player-disconnect"> disconnect</button> <h2>Streamer</h2> push account: <input id="push-username" type="text" style="width: 150px;" value="hyl"> <input id="push-password" type="text" style="width: 150px;" value="111111"> <br> <object> <embed id="rtmp-streamer" src="./RtmpStreamer.swf" bgcolor="#999999" quality="high" width="320" height="240" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed> </object> <br> <button id="publish"> push</button> <button id="streamer-disconnect"> disconnect</button> </body> </html>