Reputation: 57
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
Upvotes: 3
Views: 2991
Reputation: 1
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.
Upvotes: 0
Reputation: 937
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.
Upvotes: 2