Open lurongshuang opened 1 year ago
按照 评论中说的配置,发现并没有生效,是有问题吗?: await realPlayer.setLoop(0); await realPlayer.setDataSource("ijkio:cache:ffio:${video.url}", autoPlay: false, showCover: true);
Directory directory = await getApplicationCacheDirectory(); File cacheFilePath = File("${directory.path}/${video.fileName}.tmp"); cacheFilePath.createSync(); File cacheMapPath = File("${directory.path}/${video.fileName}._2.tmp"); cacheMapPath.createSync(); FijkOption fijkOption = FijkOption(); fijkOption.setFormatOption("cache_file_path", "$cacheFilePath"); fijkOption.setFormatOption("cache_map_path", "$cacheMapPath"); fijkOption.setFormatOption("parse_cache_map", 1); fijkOption.setFormatOption("auto_save_map", 1); realPlayer.applyOptions(fijkOption);
后面你解决这个问题了吗
按照 评论中说的配置,发现并没有生效,是有问题吗?: await realPlayer.setLoop(0); await realPlayer.setDataSource("ijkio:cache:ffio:${video.url}", autoPlay: false, showCover: true);