-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Level Selector not working correctly cors #70
Comments
Hi, It seems that you are facing a cors issue, when I ran the command to see your server headers:
It showed me that your server do not add the needed cors headers, VLC plays it because it's not restricted by a browser. To sum up, if you want to play your content on a browser you must add cors to your server. |
It is also working on ( https://www.hlsplayer.net ) so there is a way to make it work on CLAPPR |
I think you need to add cors headers to the server |
So it's not posssible with the plugin it's self var strm = "http://eu10.acangroup.org:1935/output/asfiyahi.stream/playlist.m3u8" ; var playerElement = document.getElementById("ppp"); var rewrittenUrl = url ;
}
})(XMLHttpRequest.prototype.open); NOW I have no cross error but this So the way I do it with the the selector is not correct ? |
The way you're using the plugin seems right but now your server is returning 404, not found. |
Oui mais ça marche pas . |
Yeah but it is not working I want to know how to make it work |
I really can't help you this is something related to your server infrastructure not clappr or its plugins, you should ask help for your support team. |
Here is my request the m3u link fine in every player VLC , HLS TESTER and many
<script type="text/javascript" src="https://cdn.jsdelivr.net/clappr/latest/clappr.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/clappr.level-selector/latest/level-selector.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <title>clappr-level-selector-plugin Test Page</title> <script type="text/javascript" charset="utf-8"> window.onload = function() { var player = new Clappr.Player({ source: 'http://eu10.acangroup.org:1935/output/asfiyahi.stream/playlist.m3u8', parentId: '#player-wrapper',I wainting your reply please help me
});
</script>};
The text was updated successfully, but these errors were encountered: