clappr / clappr-level-selector-plugin

Clappr Level Selector Plugin
MIT License
76 stars 56 forks source link

Level Selector not working correctly cors #70

Open thianekhalipha opened 6 years ago

thianekhalipha commented 6 years ago

Here is my request the m3u link fine in every player VLC , HLS TESTER and many I wainting your reply please help me

<!DOCTYPE HTML> <?php header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET, POST'); header("Access-Control-Allow-Headers: X-Requested-With"); ?>

clappr-level-selector-plugin Test Page
leandromoreira commented 6 years ago

Hi,

It seems that you are facing a cors issue, when I ran the command to see your server headers:

$ curl -v http://eu10.acangroup.org:1935/output/asfiyahi.stream/playlist.m3u8
*   Trying 149.202.71.148...
* TCP_NODELAY set
* Connected to eu10.acangroup.org (149.202.71.148) port 1935 (#0)
> GET /output/asfiyahi.stream/playlist.m3u8 HTTP/1.1
> Host: eu10.acangroup.org:1935
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Server: WowzaStreamingEngine/4.3.0
< Cache-Control: no-cache
< Date: Fri, 15 Jun 2018 23:37:35 GMT
< Content-Type: application/vnd.apple.mpegurl
< Content-Length: 136
<
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=1645824,CODECS="avc1.77.30,mp4a.40.2",RESOLUTION=720x480
chunklist_w998693492.m3u8
* Connection #0 to host eu10.acangroup.org left intact

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.

thianekhalipha commented 6 years ago

It is also working on ( https://www.hlsplayer.net ) so there is a way to make it work on CLAPPR I'm using Worpress site please tell how I can do it .

leandromoreira commented 6 years ago

I think you need to add cors headers to the server eu10.acangroup.org your support team can help you and if this stream is hosted on wordpress you can search on the Internet by "add cors headers wordpress"

thianekhalipha commented 6 years ago

So it's not posssible with the plugin it's self Help please I hade eu10.acangroup.org:1935 on the header of my site buy same error This is what I try with clappr

NOW I have no cross error but this image

So the way I do it with the the selector is not correct ?

leandromoreira commented 6 years ago

The way you're using the plugin seems right but now your server is returning 404, not found.

thianekhalipha commented 6 years ago

Oui mais ça marche pas .

thianekhalipha commented 6 years ago

Yeah but it is not working I want to know how to make it work

leandromoreira commented 6 years ago

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.