我想从之前在颤振视频播放器中停止的确切时间播放视频。是否有我可以使用的功能或依赖项?
1 回答
If You want to resume playing if application is still in memory that means user os OS did't clear your application data from RAM you can use any state management solution Provider, Bloc to store Video's current position in every second or any interval.
On the other hand if you want to resume video's from recent position even when your app isn't opened from for cache (User or system cleared app's cache from Ram) you should use any persistent storage plugin SharedPreferences for instance. this is the general solution of solving this problem you should search for how to implement those plugins in your app.