Sample streaming code

Sample Streaming Code

icatchercctv streaming services work well with many HTML5 and Flash players. Here is some sample code that allow HTML5 and Flash playback

The page itself can be seen at http://www.icode.co.uk/stream/player-demo.html

<html>
<head>
   <title>streaming sample code</title>
</head>
<body> 

    <div class="videowrapper">
    <div class="videocontent" style="width:100%">

    <video id=example-video width=auto height=auto class="video-js vjs-default-skin vjs-16-9" 
        controls preload autoplay >

        <source
           src="http://stream.wildlifestreaming.io:1935/Plexio/plexio_demo.stream/playlist.m3u8"
           type="application/x-mpegURL"> 


        <source
            src="http://stream.wildlifestreaming.io:1935/Plexio/plexio_demo.stream"
            type="rtmp/mp4"> 
    </video>

 </div>
 </div>


 <link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">

 <script src="https://unpkg.com/video.js/dist/video.js"></script>
 <script src="https://unpkg.com/videojs-flash/dist/videojs-flash.js"></script>
 <script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>

 <script>
    var player = window.player = videojs('example-video');
    player.play();
 </script>

</body>
</html>

.