kingslay / KSPlayer

A video player for iOS、macOS、tvOS、visionOS , based on AVPlayer and FFmpeg, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles.
GNU General Public License v3.0
868 stars 182 forks source link

Stream doesn't start #787

Closed nightfall708 closed 1 month ago

nightfall708 commented 1 month ago

Hi,

I have this problem where this stream https://live.amperwave.net/manifest/audacy-kmnbfmaac-hlsc.m3u8 doesn't start from some reason in my app. It keeps going in a loop. However on the recent TracyPlayer I did manage to play it (with US VPN).

This is the output:

debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Original list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.89.117.126 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Interleaved list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.89.117.126 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Starting connection attempt to 3.89.117.126 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Successfully connected to 3.89.117.126 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | request: GET /audacy-kmnbfmaac-hlsc.m3u8? HTTP/1.1

User-Agent: KSPlayer

Accept: */*

Range: bytes=0-

Connection: keep-alive

Host: prod-3-89-117-126.amperwave.net

Icy-MetaData: 1
warning KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Will reconnect at 416 in 0 second(s), error=End of file.
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Original list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 107.21.230.251 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.224.110.239 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Interleaved list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 107.21.230.251 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.224.110.239 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Starting connection attempt to 44.193.148.119 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Successfully connected to 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | request: GET /manifest/audacy-kmnbfmaac-hlsc.m3u8 HTTP/1.1

User-Agent: KSPlayer

Accept: */*

Range: bytes=0-

Connection: keep-alive

Host: live.amperwave.net

Icy-MetaData: 1
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Original list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 44.211.157.166 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Interleaved list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 44.211.157.166 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Starting connection attempt to 44.211.157.166 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Successfully connected to 44.211.157.166 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | request: GET /audacy-kmnbfmaac-hlsc.m3u8? HTTP/1.1

User-Agent: KSPlayer

Accept: */*

Range: bytes=0-

Connection: keep-alive

Host: prod-44-211-157-166.amperwave.net

Icy-MetaData: 1
warning KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Will reconnect at 0 in 1 second(s), error=End of file.
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Original list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 107.21.230.251 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.224.110.239 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Interleaved list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 107.21.230.251 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.224.110.239 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Starting connection attempt to 44.193.148.119 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Starting connection attempt to 107.21.230.251 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Successfully connected to 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | request: GET /manifest/audacy-kmnbfmaac-hlsc.m3u8 HTTP/1.1

User-Agent: KSPlayer

Accept: */*

Range: bytes=0-

Connection: keep-alive

Host: live.amperwave.net

Icy-MetaData: 1
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Original list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.88.11.17 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Interleaved list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.88.11.17 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Starting connection attempt to 3.88.11.17 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Successfully connected to 3.88.11.17 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | request: GET /audacy-kmnbfmaac-hlsc.m3u8? HTTP/1.1

User-Agent: KSPlayer

Accept: */*

Range: bytes=0-

Connection: keep-alive

Host: prod-3-88-11-17.amperwave.net

Icy-MetaData: 1
warning KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Will reconnect at 0 in 3 second(s), error=End of file.
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Original list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 107.21.230.251 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.224.110.239 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Interleaved list of addresses:
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 107.21.230.251 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Address 3.224.110.239 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Starting connection attempt to 44.193.148.119 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Starting connection attempt to 107.21.230.251 port 443
verbose KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | Successfully connected to 44.193.148.119 port 443
debug KSPlayer: MEPlayerItem.swift:134 MEPlayerItem | request: GET /manifest/audacy-kmnbfmaac-hlsc.m3u8 HTTP/1.1

User-Agent: KSPlayer

Accept: */*

Range: bytes=0-

Connection: keep-alive

Host: live.amperwave.net

Icy-MetaData: 1
kingslay commented 1 month ago

你是用lgpl分支的代码吗?我的app TracyPlayer 是用lgpl分支的最新代码。

nightfall708 commented 1 month ago

I used the TracyPlayer Test Flight to test. Now that I've updated to the latest KSPlayer it seems to work.