Как исправить ошибку источника в cached_video_player flutter

Я пытаюсь создать приложение для чата и использую с ним firebase. Я пытаюсь сделать так, чтобы пользователи могли отправлять друг другу видео. Я храню видео в хранилище firebase, получаю его URL-адрес, а затем помещаю его в библиотеку cached-video_player flutter как сетевое изображение. Я делаю эти точные шаги для изображения, и он отлично работает, но когда я делаю это для видео, я получаю сообщение об ошибке. Я даже пробовал использовать видео на YouTube и ссылку в его примере, но все равно возникает ошибка. Вот мой код для создания видео контейнера

Container createVideoContainer(final document){
      CachedVideoPlayerController cachedVideoPlayerController = CachedVideoPlayerController.network(document['content']);
      cachedVideoPlayerController.initialize().then((Hey){
        setState(() {
        });
      });
      Container container = Container(
        height:200,
        width:200,
        child: cachedVideoPlayerController.value !=null && cachedVideoPlayerController.value.initialized?
           Stack(
             children: [
               CachedVideoPlayer(cachedVideoPlayerController),
               Align(
                 alignment: Alignment.center,
                 child: IconButton(
                   icon: Icon(Icons.play_arrow),
                   onPressed: (){},
                 ),
               )
             ],
           ):
        Align(
          alignment: Alignment.center,
          child: CircularProgressIndicator(),
        )
       );
      return container;
      }

  }

А вот трассировка стека

/ExoPlayerImplInternal(28462): Source error.
E/ExoPlayerImplInternal(28462): com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceException: java.io.FileNotFoundException: Hurrraayyyyyyyy: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:73)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:250)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:53)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:479)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:308)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ExoPlayerImplInternal(28462):     at java.lang.Thread.run(Thread.java:764)
E/ExoPlayerImplInternal(28462): Caused by: java.io.FileNotFoundException: Hurrraayyyyyyyy: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:512)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:274)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:141)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:65)
E/ExoPlayerImplInternal(28462):     ... 10 more
E/ExoPlayerImplInternal(28462): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.Linux.open(Native Method)
E/ExoPlayerImplInternal(28462):     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:207)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:498)
E/ExoPlayerImplInternal(28462):     ... 13 more
V/NativeCrypto(28462): Read error: ssl=0x76adbf5188: I/O error during system call, Software caused connection abort
V/NativeCrypto(28462): Write error: ssl=0x76adbf5188: I/O error during system call, Broken pipe
V/NativeCrypto(28462): SSL shutdown failed: ssl=0x76adbf5188: I/O error during system call, Success
W/DpmTcmClient(28462): read failed bytes countRead: -1
V/NativeCrypto(28462): Read error: ssl=0x76ad9e0188: I/O error during system call, Software caused connection abort
V/NativeCrypto(28462): Write error: ssl=0x76ad9e0188: I/O error during system call, Broken pipe
V/NativeCrypto(28462): SSL shutdown failed: ssl=0x76ad9e0188: I/O error during system call, Success
I/ExoPlayerImpl(28462): Init 57fb70a [ExoPlayerLib/2.9.6] [vince, Redmi Note 5, Xiaomi, 27]
I/flutter (28462): true
I/flutter (28462): true
I/ExoPlayerImpl(28462): Init 49de9f1 [ExoPlayerLib/2.9.6] [vince, Redmi Note 5, Xiaomi, 27]
I/ExoPlayerImpl(28462): Init d248b44 [ExoPlayerLib/2.9.6] [vince, Redmi Note 5, Xiaomi, 27]
E/ExoPlayerImplInternal(28462): Source error.
E/ExoPlayerImplInternal(28462): com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceException: java.io.FileNotFoundException: Hurrraayyyyyyyy: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:73)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:250)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:53)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:479)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:308)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ExoPlayerImplInternal(28462):     at java.lang.Thread.run(Thread.java:764)
E/ExoPlayerImplInternal(28462): Caused by: java.io.FileNotFoundException: Hurrraayyyyyyyy: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:512)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:274)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:141)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:65)
E/ExoPlayerImplInternal(28462):     ... 10 more
E/ExoPlayerImplInternal(28462): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.Linux.open(Native Method)
E/ExoPlayerImplInternal(28462):     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:207)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:498)
E/ExoPlayerImplInternal(28462):     ... 13 more
I/ExoPlayerImpl(28462): Init 6eadae [ExoPlayerLib/2.9.6] [vince, Redmi Note 5, Xiaomi, 27]
E/ExoPlayerImplInternal(28462): Source error.
E/ExoPlayerImplInternal(28462): com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceException: java.io.FileNotFoundException: Hurrraayyyyyyyy: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:73)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:250)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:53)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:479)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:308)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ExoPlayerImplInternal(28462):     at java.lang.Thread.run(Thread.java:764)
E/ExoPlayerImplInternal(28462): Caused by: java.io.FileNotFoundException: Hurrraayyyyyyyy: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:512)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:274)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:141)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:65)
E/ExoPlayerImplInternal(28462):     ... 10 more
E/ExoPlayerImplInternal(28462): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.Linux.open(Native Method)
E/ExoPlayerImplInternal(28462):     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:207)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:498)
E/ExoPlayerImplInternal(28462):     ... 13 more
E/ExoPlayerImplInternal(28462): Source error.
E/ExoPlayerImplInternal(28462): com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceException: java.io.FileNotFoundException: mimi6: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:73)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:250)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:53)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:479)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:308)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ExoPlayerImplInternal(28462):     at java.lang.Thread.run(Thread.java:764)
E/ExoPlayerImplInternal(28462): Caused by: java.io.FileNotFoundException: mimi6: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:512)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:274)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:141)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:65)
E/ExoPlayerImplInternal(28462):     ... 10 more
E/ExoPlayerImplInternal(28462): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.Linux.open(Native Method)
E/ExoPlayerImplInternal(28462):     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:207)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:498)
E/ExoPlayerImplInternal(28462):     ... 13 more
I/ExoPlayerImpl(28462): Init f12b147 [ExoPlayerLib/2.9.6] [vince, Redmi Note 5, Xiaomi, 27]
=============================================================================================
E/ExoPlayerImplInternal(28462): Source error.
E/ExoPlayerImplInternal(28462): com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceException: java.io.FileNotFoundException: Hurrraayyyyyyyy: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:73)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:250)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:53)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:479)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:308)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ExoPlayerImplInternal(28462):     at java.lang.Thread.run(Thread.java:764)
E/ExoPlayerImplInternal(28462): Caused by: java.io.FileNotFoundException: Hurrraayyyyyyyy: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:512)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:274)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:141)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:65)
E/ExoPlayerImplInternal(28462):     ... 10 more
E/ExoPlayerImplInternal(28462): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.Linux.open(Native Method)
E/ExoPlayerImplInternal(28462):     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:207)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:498)
E/ExoPlayerImplInternal(28462):     ... 13 more

════════ Exception caught by rendering library ═════════════════════════════════════════════════════
The method '-' was called on null.
Receiver: null
Tried calling: -(230.74320222609663)
The relevant error-causing widget was: 
  ListView file:///C:/Users/Hemant/AndroidStudioProjects/discountapp/lib/chat_pack/Chat.dart:725:29
════════════════════════════════════════════════════════════════════════════════════════════════════
E/ExoPlayerImplInternal(28462): Source error.
E/ExoPlayerImplInternal(28462): com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceException: java.io.FileNotFoundException: mimi6: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:73)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:250)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:53)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:479)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:308)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:83)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:885)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ExoPlayerImplInternal(28462):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ExoPlayerImplInternal(28462):     at java.lang.Thread.run(Thread.java:764)
E/ExoPlayerImplInternal(28462): Caused by: java.io.FileNotFoundException: mimi6: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:512)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:274)
E/ExoPlayerImplInternal(28462):     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:141)
E/ExoPlayerImplInternal(28462):     at com.google.android.exoplayer2.upstream.FileDataSource.open(FileDataSource.java:65)
E/ExoPlayerImplInternal(28462):     ... 10 more
E/ExoPlayerImplInternal(28462): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/ExoPlayerImplInternal(28462):     at libcore.io.Linux.open(Native Method)
E/ExoPlayerImplInternal(28462):     at libcore.io.BlockGuardOs.open(BlockGuardOs.java:207)
E/ExoPlayerImplInternal(28462):     at libcore.io.IoBridge.open(IoBridge.java:498)
E/ExoPlayerImplInternal(28462):     ... 13 more
I/ExoPlayerImpl(28462): Init 406d70c [ExoPlayerLib/2.9.6] [vince, Redmi Note 5, Xiaomi, 27]

Из этого я понял, что по какой-то причине я получил предыдущее сообщение по какой-то причине, ура. Поэтому я заменил документ ['content'] на ссылку на YouTube и ссылку на экзамен, которую они предоставили ( http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4). Я не получаю сообщение об ошибке, но он никогда не инициализируется. Пожалуйста, помогите с проблемой пожарного склада, но, что еще более важно, с проблемой видео. Я предоставлю любой необходимый код

0 ответов

Другие вопросы по тегам