Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" poster="MY_VIDEO_POSTER.jpg" data-setup="{}">
- <source src="http://localhost:9954/test/" type='video/mp4'>
- <p class="vjs-no-js">
- To view this video please enable JavaScript, and consider upgrading to a web browser that
- <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
- </p>
- </video>
- public MainWindow()
- {
- MediaServer ws = new MediaServer(RenderVideo, "http://localhost:9954/test/");
- ws.Run();
- InitializeComponent();
- }
- private byte[] RenderVideo(HttpListenerRequest r)
- {
- MP4Decode _decoder = new MP4Decode(); // Decode crypted MP4 to byte[]
- return _decoder.mp4;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement