Skip to content
This repository was archived by the owner on Aug 25, 2020. It is now read-only.

Does not work at all #1

Open
ASemeniuk opened this issue Apr 22, 2015 · 2 comments
Open

Does not work at all #1

ASemeniuk opened this issue Apr 22, 2015 · 2 comments

Comments

@ASemeniuk
Copy link

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
Copy link

jkuss commented May 3, 2015

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

@ntfs1984
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants