Flutter 中的 IPTV 流媒体应用

问题描述 投票:0回答:1

我想开发一个像 9xtream 等 iptv 流媒体应用程序。我遇到了意外的异常,并且在 20 到 30 秒后流媒体停止。我使用 video_player 播放 m3u8 文件,并且流需要很长时间才能启动。

E/ExoPlayerImplInternal(10387): Playback error
E/ExoPlayerImplInternal(10387):   androidx.media3.exoplayer.ExoPlaybackException: Source error
E/ExoPlayerImplInternal(10387):       at androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:736)
E/ExoPlayerImplInternal(10387):       at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:706)
E/ExoPlayerImplInternal(10387):       at android.os.Handler.dispatchMessage(Handler.java:104)
E/ExoPlayerImplInternal(10387):       at android.os.Looper.loop(Looper.java:166)
E/ExoPlayerImplInternal(10387):       at android.os.HandlerThread.run(HandlerThread.java:65)
E/ExoPlayerImplInternal(10387):   Caused by: androidx.media3.exoplayer.source.UnrecognizedInputFormatException: None of the available extractors (FlvExtractor, FlacExtractor, WavExtractor, FragmentedMp4Extractor, Mp4Extractor, AmrExtractor, PsExtractor, OggExtractor, TsExtractor, MatroskaExtractor, AdtsExtractor, Ac3Extractor, Ac4Extractor, Mp3Extractor, AviExtractor, JpegExtractor, PngExtractor, WebpExtractor, BmpExtractor, HeifExtractor, AvifExtractor) could read the stream.{contentIsMalformed=false, dataType=1}
E/ExoPlayerImplInternal(10387):       at androidx.media3.exoplayer.source.BundledExtractorsAdapter.init(BundledExtractorsAdapter.java:108)
E/ExoPlayerImplInternal(10387):       at androidx.media3.exoplayer.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1060)
E/ExoPlayerImplInternal(10387):       at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:421)
E/ExoPlayerImplInternal(10387):       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ExoPlayerImplInternal(10387):       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ExoPlayerImplInternal(10387):       at java.lang.Thread.run(Thread.java:784)
E/flutter (10387): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(VideoError, Video player had error androidx.media3.exoplayer.ExoPlaybackException: Source error, null, null)

我想要 steram 启动 2 ir 3 秒并且在缓冲时不要停止

flutter dart streaming live iptv
1个回答
0
投票

兼容Android、iOS和智能电视 除了运行 macOS/Windows 操作系统的电脑/笔记本电脑外,因此随时欢迎所有人。我们努力提高产品质量。放心服务。客户满意度。 24/7 支持。服务质量是我们的主要目标https://www.strong4kvip.com

© www.soinside.com 2019 - 2024. All rights reserved.