Merge pull request #1654 from GetStream/chore/bump-video-player
This commit is contained in:
@@ -86,7 +86,6 @@
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
- Deprecated `StreamMessageWidget.showReactionPickerIndicator` in favor of `StreamMessageWidget.showReactionPicker`.
|
- Deprecated `StreamMessageWidget.showReactionPickerIndicator` in favor of `StreamMessageWidget.showReactionPicker`.
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
@@ -95,6 +94,7 @@
|
|||||||
+ showReactionPicker: true/false,
|
+ showReactionPicker: true/false,
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
- Updated `video_player` dependency to `^2.7.0`.
|
||||||
|
|
||||||
## 6.4.0
|
## 6.4.0
|
||||||
|
|
||||||
|
|||||||
@@ -446,8 +446,12 @@ class VideoPackage {
|
|||||||
}) : _showControls = showControls,
|
}) : _showControls = showControls,
|
||||||
_autoInitialize = autoInitialize,
|
_autoInitialize = autoInitialize,
|
||||||
_videoPlayerController = _attachment.localUri != null
|
_videoPlayerController = _attachment.localUri != null
|
||||||
? VideoPlayerController.file(File.fromUri(_attachment.localUri!))
|
? VideoPlayerController.file(
|
||||||
: VideoPlayerController.network(_attachment.assetUrl!);
|
File.fromUri(_attachment.localUri!),
|
||||||
|
)
|
||||||
|
: VideoPlayerController.networkUrl(
|
||||||
|
Uri.parse(_attachment.assetUrl!),
|
||||||
|
);
|
||||||
|
|
||||||
final Attachment _attachment;
|
final Attachment _attachment;
|
||||||
final bool _showControls;
|
final bool _showControls;
|
||||||
|
|||||||
@@ -382,8 +382,9 @@ class _VideoAttachmentThumbnailState extends State<_VideoAttachmentThumbnail> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
_controller = VideoPlayerController.network(widget.attachment.assetUrl!)
|
_controller = VideoPlayerController.networkUrl(
|
||||||
..initialize().then((_) {
|
Uri.parse(widget.attachment.assetUrl!),
|
||||||
|
)..initialize().then((_) {
|
||||||
// ignore: no-empty-block
|
// ignore: no-empty-block
|
||||||
setState(() {}); //when your thumbnail will show.
|
setState(() {}); //when your thumbnail will show.
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ dependencies:
|
|||||||
synchronized: ^3.0.0
|
synchronized: ^3.0.0
|
||||||
thumblr: ^0.0.4
|
thumblr: ^0.0.4
|
||||||
url_launcher: ^6.1.0
|
url_launcher: ^6.1.0
|
||||||
video_player: ^2.4.5
|
video_player: ^2.7.0
|
||||||
video_player_macos: ^2.0.1
|
video_player_macos: ^2.0.1
|
||||||
video_thumbnail: ^0.5.0
|
video_thumbnail: ^0.5.0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user