Giter Club home page Giter Club logo

Comments (3)

vipinnegi90 avatar vipinnegi90 commented on August 17, 2024 2

try this:

 @override
  void initState() {
    super.initState();
    flickManager = FlickManager(videoPlayerController: VideoPlayerController.network(videoUrl),);
    flickManager.flickVideoManager.addListener(_videoPlayingListener);
  }

  _videoPlayingListener() async {
    if (flickManager.flickVideoManager.isVideoInitialized) {
      flickManager.flickControlManager.seekTo(Duration(seconds: resumeDuration));
    }
 }

works for me

from flick-video-player.

ahujaraghav avatar ahujaraghav commented on August 17, 2024

@mrinaljain Flick does not support this feature yet, you will have to manually handle this. You can set autoPlay to false and seek the video manually.

from flick-video-player.

adrianvintu avatar adrianvintu commented on August 17, 2024

@mrinaljain pretty cool what you are saying, do you have some links to show how we can allow the user to choose video quality?

@ahujaraghav how can we know when the video has loaded, so that we can start seeking and playing?

i see you wrote
flickManager.flickVideoManager.addListener(_videoPlayingListener);
but this is called also on toggling full screen.
how can we check for fist load?
are there some parameters we can use, or some data?
on what occasions is the method called?

from flick-video-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.