Flutter Video_player花了太多时间来加载firbase的视频

发布于 2025-02-03 20:16:09 字数 178 浏览 3 评论 0原文

嗨,我正在创建一个视频播放器,该视频播放器列出了Firebase存储中的所有视频并播放它。我使用cache_video_player插件播放视频。这类似于带有缓存服务的Video_player插件。该插件需要太多时间来初始化和加载网络(约10-20秒)。是否有任何方法可以减少此插件的加载时间,或者是否有其他插件需要最少的时间来加载网络的视频

Hi I am creating a video player which lists all videos from Firebase storage and play it. I used cache_video_player plugin to play video. This is similar to video_player plugin with cache service. This plugin takes too much time to initialize and load video from network(approximately 10-20 seconds). Is there any way to reduce loading time of this plugin or is there any other plugin which takes minimum time to load video from network

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

盗琴音 2025-02-10 20:16:09

基本上 cached_video_player 插件几乎是官方的克隆packages/video_player“ rel =” nofollow noreferrer“> video_player 插件。我在项目中使用了video_player插件,从网络播放时初始化和加载视频时,播放本地视频作为文件时可以正常工作,但需要时间来播放网络的视频。这完全取决于您的Internet连接和速度,无需担心,我认为除了Video_player以外,您不会找到任何更好的插件。

Basically cached_video_player plugin is virtually a clone of official video_player plugin. I used video_player plugin in my project and it takes time when initializing and loading the video when playing from network, it works fine when playing a local video as a file but takes time for playing video from network. It totally depends upon your internet connection and speed, No need to worry about and I don't think that you will find any better plugin for playing video other than video_player.

橘和柠 2025-02-10 20:16:09

我发现了Chewie和当前视频播放器的问题。出于安全性和其他与应用程序相关的原因,我签名和加密我的URL,而不是使用直接URL,而来自firebase的服务器中的url则需要很长的时间来初始化(),大约20到30秒,并且通常更长。此外,如果我不使用FVP,所有视频URL都会破裂并变得无法使用。同时,在我的角网站上,同一URL迅速起作用。我正在两个位置使用ListView来浏览几个视频。解决方案吗?我的ListView Child将URL视为输入,在Initstate中,我遵循视频控制器文档中概述的指南。

I've discovered the same problem with Chewie and the current video player. For security and other app-related reasons, I sign and encrypt my URLs rather than using direct URLs And these from my server not from firebase, however the video player takes a very long time to initialize()—roughly 20 to 30 seconds, and frequently longer. Additionally, all video URLs will break and become unusable if I do not use FVP; meanwhile, the same URLs function quite quickly on my Angular web site. I'm using Listview at both locations to browse through several videos. Is a solution in place? The URL is being taken as input by my listview child, and in initState, I'm following the guidelines outlined in the VideoController docs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文