clipchamp / jquery-clipchamp-mjpeg-player-plugin

This jQuery plugin provides a simple player for MJPEG ("motion JPEG") videos, as produced by the clipchamp.com online video converter, video compressor, and webcam recorder
MIT License
25 stars 9 forks source link

Does not work at all #1

Open ASemeniuk opened 9 years ago

ASemeniuk commented 9 years ago

I am trying to show MJPEG streamed by Ip Webcam app (https://play.google.com/store/apps/details?id=com.pas.webcam). The HTML is as simple as it can be:

<html> <head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> 
<script src="https://cdn.rawgit.com/clipchamp/jquery-clipchamp-mjpeg-player-plugin/126a8cb1ffdbb2c7d90231e7dd8f9186707212fb/src/jquery.clipchamp.mjpeg.player.js">
</head>
<body>
<div id="mjpeg_wrapper" style="width: 640px;"></div>
<script language="Javascript" type="text/javascript">
    $('#mjpeg_wrapper').clipchamp_mjpeg_player('http://172.24.25.118:8080/videofeed', 24, false, function(wrapperElement, playerInterface) {});
</script>
</body></html>

And nothing happens. At all. Does you solution even support playing streamed MJPEGs?

jkuss commented 9 years ago

@ASemeniuk do you know how to use jquery? You're missing some fundamental steps, specifically an on ready listener.

ntfs1984 commented 7 years ago

Issue is not related to jquery. Issue is related to Access-Control-Allow-Origin'.

Your page may do requests only to the same domain including port. Even if your script is placed at http://192.168.1.1/test.html and your mjpeg video is placed at http://192.168.1.1:8080, it will not working.

So, this plugin IS USELESS.