Hi to All
I need help. I have some url in m3u8 format, trere is some record file in this url. I Tried proxy_pass with NGINX this url . I check on backend if user have access or not.
My problem is:
When I proxy m3u8 url and try to access from my ios phone all is ok, but if i try on android or vlc i have problem. In m3u8 file there is cuttings of video of files in .ts format, when i start playing on anfroid or VLC player all is work, but if i do STOP and then START again, video is not start from begin time, its start from time when i do STOP. How configure NGINX proxy ? Help me pls
m3u8 file
#EXTM3U
#EXT-X-TARGETDURATION:6
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:2
#EXT-X-PROGRAM-DATE-TIME:2020-04-01T04:14:58Z
#EXTINF:6.000,
dvr-2020/04/01/04/14/58-06000.ts?token=45365c5d4e4f418ce1ed348b7dc1d98a1e15cf02-salt-1742532747-1583757747
#EXTINF:6.000,
dvr-2020/04/01/04/15/04-06000.ts?token=45365c5d4e4f418ce1ed348b7dc1d98a1e15cf02-salt-1742532747-1583757747
#EXTINF:6.000,
dvr-2020/04/01/04/15/10-06000.ts?token=45365c5d4e4f418ce1ed348b7dc1d98a1e15cf02-salt-1742532747-1583757747
#EXTINF:6.000,
dvr-2020/04/01/04/15/16-06000.ts?token=45365c5d4e4f418ce1ed348b7dc1d98a1e15cf02-salt-1742532747-1583757747
nginx
location /watch {
#root html;
#index index.html index.htm;
proxy_pass http://127.0.0.1:8081/api/basic;
http://127.0.0.1:8081/api/basic - backend check user access and if ok redirec to location
location ~* ^/to_proxy/(.*) {
internal;
proxy_pass http://XXX.XXX.XXX.XXX/$1$is_args$args;
add_header Access-Control-Allow-Origin *;
Thank to All so much
I need help. I have some url in m3u8 format, trere is some record file in this url. I Tried proxy_pass with NGINX this url . I check on backend if user have access or not.
My problem is:
When I proxy m3u8 url and try to access from my ios phone all is ok, but if i try on android or vlc i have problem. In m3u8 file there is cuttings of video of files in .ts format, when i start playing on anfroid or VLC player all is work, but if i do STOP and then START again, video is not start from begin time, its start from time when i do STOP. How configure NGINX proxy ? Help me pls
m3u8 file
#EXTM3U
#EXT-X-TARGETDURATION:6
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:2
#EXT-X-PROGRAM-DATE-TIME:2020-04-01T04:14:58Z
#EXTINF:6.000,
dvr-2020/04/01/04/14/58-06000.ts?token=45365c5d4e4f418ce1ed348b7dc1d98a1e15cf02-salt-1742532747-1583757747
#EXTINF:6.000,
dvr-2020/04/01/04/15/04-06000.ts?token=45365c5d4e4f418ce1ed348b7dc1d98a1e15cf02-salt-1742532747-1583757747
#EXTINF:6.000,
dvr-2020/04/01/04/15/10-06000.ts?token=45365c5d4e4f418ce1ed348b7dc1d98a1e15cf02-salt-1742532747-1583757747
#EXTINF:6.000,
dvr-2020/04/01/04/15/16-06000.ts?token=45365c5d4e4f418ce1ed348b7dc1d98a1e15cf02-salt-1742532747-1583757747
nginx
location /watch {
#root html;
#index index.html index.htm;
proxy_pass http://127.0.0.1:8081/api/basic;
http://127.0.0.1:8081/api/basic - backend check user access and if ok redirec to location
location ~* ^/to_proxy/(.*) {
internal;
proxy_pass http://XXX.XXX.XXX.XXX/$1$is_args$args;
add_header Access-Control-Allow-Origin *;
Thank to All so much