Closed Anto-2004 closed 1 month ago
Start/end time was implemented in main repo here: https://github.com/media-kit/media-kit/pull/581 It just wasn't released yet. To use it one needs to use dependency_overrides like for example here: https://github.com/media-kit/media-kit/pull/581#issuecomment-1951650794
I found the solution, since at the moment it is not possible to select the start minute, when they update the library I will change it
await player.open(Media(widget.videoUrl));
controller.player.stream.duration.listen((event) async {
if (event.inSeconds > 0){
await player.seek(position);
}
});
I did all the possible tests, I even changed the version of flutter, I can't understand I'm passing the example code from the documentation to show the video the only thing I want and set the initial position with the seek method but it doesn't work always starts from scratch. I put the code I have, if anyone can give me some suggestions, I can't understand.
Code: import 'package:flutter/material.dart';
}