Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" poster="MY_VIDEO_POSTER.jpg" data-setup="{}">
  2. <source src="http://localhost:9954/test/" type='video/mp4'>
  3. <p class="vjs-no-js">
  4. To view this video please enable JavaScript, and consider upgrading to a web browser that
  5. <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
  6. </p>
  7. </video>
  8.  
  9. public MainWindow()
  10. {
  11. MediaServer ws = new MediaServer(RenderVideo, "http://localhost:9954/test/");
  12. ws.Run();
  13. InitializeComponent();
  14. }
  15.  
  16. private byte[] RenderVideo(HttpListenerRequest r)
  17. {
  18. MP4Decode _decoder = new MP4Decode(); // Decode crypted MP4 to byte[]
  19. return _decoder.mp4;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement