Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Request anyone know how to fix hlsjs: Video file not found error ?

homa50

Basic Member
Basic Member
Joined
Nov 15, 2019
Messages
70
Reaction score
758
Points
94
Location
Afghanistan
Hi on xtreme-ui the client_area doesn't work, i take this erreur after 1 min "hlsjs: Video file not found"
do you have any idea ? its the same in my website .


I get this in the debugger :



Request URL: http: //MYIPADRESS: 25461 / live / TEST/FREETEST/ 28.m3u8
Request method: GET
Remote address: MYIPADRESS: 25461
State code:
403
Version: HTTP / 1.1
Referrer policy: no-referrer-when-downgrade


thank you in advance
 
Hi on xtreme-ui the client_area doesn't work, i take this erreur after 1 min "hlsjs: Video file not found"
do you have any idea ? its the same in my website .


I get this in the debugger :


Request URL: http: //MYIPADRESS: 25461 / live / TEST/FREETEST/ 28.m3u8
Request method: GET
Remote address: MYIPADRESS: 25461
State code:
403
Version: HTTP / 1.1
Referrer policy: no-referrer-when-downgrade


thank you in advance


403 is forbidden so you my need to change the nignix config for your servers to cover cross domain
 
403 is forbidden so you my need to change the nignix config for your servers to cover cross domain

I found this on the web : https://geekflare.com/enable-cors-apache-nginx
but it didn't help me more than that I even authorized my domain this command ,in the config file of nignix but nothing has to change :

add_header Access-Control-Allow-Origin "https://geekflare.dev";

in the config file of nignix but nothing has to change
the stream stops and i still have error 443.

I noticed that sending requests x-mpegurl ends well
the stream stops when sending mp2t requests



Can you help me please?
 
Last edited:
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
I have the same error!

There is nothing intelligible in the logs.

I get an error with a direct request .../streaming/clients_live.php?username=XXXXXXXXXX&password=XXXXXXXXXX&stream=2.m3u8 - 401
 
I have the same error!

There is nothing intelligible in the logs.

I get an error with a direct request .../streaming/clients_live.php?username=XXXXXXXXXX&password=XXXXXXXXXX&stream=2.m3u8 - 401

for the moment I have not found a solution, but I have tested the same stream with flussonic is weirdly it works on my website, I think it is a concern at the level of fragmentation of the packets or mybe cross domain policy
 
Good afternoon.

I solved my problem as follows:

1) Added in /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf lines:
In server {}
HTML:
    server_name iptv.domain.com;
    add_header Access-Control-Allow-Origin iptv.domain.com;
    add_header Access-Control-Allow-Origin XXX.XXX.XXX.XXX;

2) Performed the following:
Bash:
sudo su
chattr -i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
rm -rf /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
wget https://cdn.discordapp.com/attachments/687042677950251103/689258210606972936/GeoLite2.mmdb -O /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/
chown xtreamcodes:xtreamcodes /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
chattr +i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
/home/xtreamcodes/iptv_xtream_codes/start_services.sh
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Good afternoon.

I solved my problem as follows:

1) Added in /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf lines:
In
HTML:
    server_name iptv.domain.com;
    add_header Access-Control-Allow-Origin iptv.domain.com;
    add_header Access-Control-Allow-Origin XXX.XXX.XXX.XXX;

2) Performed the following:
Bash:
sudo su
chattr -i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
rm -rf /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
wget https://cdn.discordapp.com/attachments/687042677950251103/689258210606972936/GeoLite2.mmdb -O /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/
chown xtreamcodes:xtreamcodes /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
chattr +i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
/home/xtreamcodes/iptv_xtream_codes/start_services.sh
Thank you very much, I've been looking for a solution for a really long time, I had already modified the ngnix config a lot of times but without success for my part.

In server {}
HTML:
    server_name iptv.domain.com;
    add_header Access-Control-Allow-Origin iptv.domain.com;
    add_header Access-Control-Allow-Origin XXX.XXX.XXX.XXX;

I will test this on my server, if I understand correctly I must add my website instead of iptv.domain.com?
for this part XXX.XXX.XXX.XXX I have to leave it like that or else I put the ip of my iptv server?

and also I don't have a domain name configured on my server, I access directly via the ip does that change anything?
 
Last edited:
XXX.XXX.XXX.XXX - it is static IP
iptv.domain.com - it is your hostname (hostname server)
 
XXX.XXX.XXX.XXX - it is static IP
iptv.domain.com - it is your hostname (hostname server)

I have the same choice but nothing has changed for me I think I made a mistake somewhere.

I give you an example

My website exemple : Persianlive.net
My hostname on my xtream server ui is:
Firefox.mozila.win10.net
ip of sever xtream ui: 134.92.93.93

So I add this on my server in the conf of ngnix:


server_name Firefox.mozila.win10.net;
add_header Access-Control-Allow-Origin Firefox.mozila.win10.net;
add_header Access-Control-Allow-Origin : 134.92.93.93 ;

when i do the test on my website Persianlive.net, i have the error 403, could you tell me it's you see an error?


Access to XMLHttpRequest at 'http://134.92.93.93:25461/live/test/password/23.m3u8' from origin 'http:/persianlive.net' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, Firefox.mozila.win10.net, 134.92.93.93', but only one is allowed.

Thank for your help.
 
Last edited:
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
May be make nginx_conf:
NGINX:
server_name persianlive.net;
add_header Access-Control-Allow-Origin persianlive.net;
add_header Access-Control-Allow-Origin : 134.92.93.93 ;
and change hostname
Bash:
hostnamectl set-hostname persianlive.net
and add in /etc/hosts or DNS bind
Rich (BB code):
134.92.93.93 persianlive.net

and reboot now
 
Good afternoon.

I solved my problem as follows:

1) Added in /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf lines:
In server {}
HTML:
    server_name iptv.domain.com;
    add_header Access-Control-Allow-Origin iptv.domain.com;
    add_header Access-Control-Allow-Origin XXX.XXX.XXX.XXX;

2) Performed the following:
Bash:
sudo su
chattr -i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
rm -rf /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
wget https://cdn.discordapp.com/attachments/687042677950251103/689258210606972936/GeoLite2.mmdb -O /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/
chown xtreamcodes:xtreamcodes /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
chattr +i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
/home/xtreamcodes/iptv_xtream_codes/start_services.sh
May be make nginx_conf:
NGINX:
server_name persianlive.net;
add_header Access-Control-Allow-Origin persianlive.net;
add_header Access-Control-Allow-Origin : 134.92.93.93 ;
and change hostname
Bash:
hostnamectl set-hostname persianlive.net
and add in /etc/hosts or DNS bind
Rich (BB code):
134.92.93.93 persianlive.net

and reboot now

I will test and I will give you a return, Thank you so much for your help.
 
I will test and I will give you a return, Thank you so much for your help.
May be make nginx_conf:
NGINX:
server_name persianlive.net;
add_header Access-Control-Allow-Origin persianlive.net;
add_header Access-Control-Allow-Origin : 134.92.93.93 ;
and change hostname
Bash:
hostnamectl set-hostname persianlive.net
and add in /etc/hosts or DNS bind
Rich (BB code):
134.92.93.93 persianlive.net

and reboot now

Hi, :)
I just tested the stream is KO in my website but OK in VLC .

Here is the result of debug:

HTML:
State Code: 200
Version :HTTP/1.1

Referrer policy : no-referrer-when-downgrade

[I][B]Request header[/B][/I][B] [/B]

Access-Control-Allow-Origin*
Access-Control-Allow-Origin  Persianlive.net
Access-Control-Allow-Origin  134.92.93.93
Cache-Control  : no-store, no-cache, must-revalidate
Connection : keep-alive
Content-Length
726
Content-Type
application/x-mpegurl
Server  : nginx


I have looked in all the files failed to have a trace of Access-Control-Allow-Origin *, I think that having two different Access-Control-Allow it poses porbleme.

If you want I could show you my config.


thank you in advance.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top