chore(ui): bump and migrate video_player to 2.7.0.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -382,8 +382,9 @@ class _VideoAttachmentThumbnailState extends State<_VideoAttachmentThumbnail> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_controller = VideoPlayerController.network(widget.attachment.assetUrl!)
|
||||
..initialize().then((_) {
|
||||
_controller = VideoPlayerController.networkUrl(
|
||||
Uri.parse(widget.attachment.assetUrl!),
|
||||
)..initialize().then((_) {
|
||||
// ignore: no-empty-block
|
||||
setState(() {}); //when your thumbnail will show.
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user