mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
fix: Support HLS (.m3u8) streams with parameters in URL
This commit is contained in:
parent
bd753f4489
commit
fab18c130e
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class DynamicMediaSourceFactory(
|
|||
|
||||
return when {
|
||||
mediaItem.localConfiguration?.mimeType == MimeTypes.APPLICATION_M3U8 ||
|
||||
mediaItem.localConfiguration?.uri.toString().endsWith(".m3u8") -> {
|
||||
mediaItem.localConfiguration?.uri?.lastPathSegment?.endsWith(".m3u8", ignoreCase = true) == true -> {
|
||||
HlsMediaSource.Factory(dataSourceFactory).createMediaSource(mediaItem)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue