mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Supports m3u8
This commit is contained in:
parent
fcd839d5df
commit
1a8af4fd3a
1 changed files with 3 additions and 2 deletions
|
@ -224,8 +224,9 @@ class CS3IPlayer : IPlayer {
|
|||
// release the current exoplayer and cache
|
||||
releasePlayer()
|
||||
if (link != null) {
|
||||
// only video support atm
|
||||
if (link.type == ExtractorLinkType.VIDEO && preview) {
|
||||
// only video and m3u8 support atm (DASH is untested)
|
||||
val isSupportedType == link.type == ExtractorLinkType.VIDEO || link.type == ExtractorLinkType.M3U8
|
||||
if (isSupportedType && preview) {
|
||||
val headers = if (link.referer.isBlank()) {
|
||||
link.headers
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue