mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
修复在线tts朗读失败bug
This commit is contained in:
parent
0708b4638a
commit
ab5c956fa4
@ -43,17 +43,6 @@ object ExoPlayerHelper {
|
||||
type
|
||||
}
|
||||
|
||||
// fun createMediaSource(
|
||||
// uri: Uri,
|
||||
// defaultRequestProperties: Map<String, String>
|
||||
// ): MediaSource {
|
||||
// val mediaItem = MediaItem.fromUri(uri)
|
||||
// val mediaSourceFactory = ProgressiveMediaSource.Factory(
|
||||
// cacheDataSourceFactory.setDefaultRequestProperties(defaultRequestProperties)
|
||||
// )
|
||||
// return mediaSourceFactory.createMediaSource(mediaItem)
|
||||
// }
|
||||
|
||||
fun createMediaItem(url: String, headers: Map<String, String>): MediaItem {
|
||||
val formatUrl = url + SPLIT_TAG + gson.toJson(headers, mapType)
|
||||
return MediaItem.Builder().setUri(formatUrl).build()
|
||||
|
Loading…
Reference in New Issue
Block a user