Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/video_player_avplay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.8.8

* Update the conditional statement for the `_currentCaptions`.
* Update plusplayer
1. [DASH] Fix the issue where subtitles for content with pre-roll/inserted ads in DASH could not be rendered.

## 0.8.7

* Update plusplayer
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player_avplay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To use this package, add `video_player_avplay` as a dependency in your `pubspec.

```yaml
dependencies:
video_player_avplay: ^0.8.7
video_player_avplay: ^0.8.8
```
Then you can import `video_player_avplay` in your Dart code:
Expand Down
36 changes: 22 additions & 14 deletions packages/video_player_avplay/lib/video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,19 @@ class VideoPlayerValue {
/// If the end postion of the captions has greater than the current [position], this will be a [Caption.none] object.
/// Only used for [copyWith].
Captions get _currentCaptions {
final List<TextCaption> textCaptions =
(captions.textCaptions == <TextCaption>[TextCaption.none] ||
position > captions.textCaptions![0].end)
? <TextCaption>[TextCaption.none]
: captions.textCaptions!;
final PictureCaption pictureCaption =
(captions.pictureCaption == PictureCaption.none ||
position > captions.pictureCaption!.end)
? PictureCaption.none
: captions.pictureCaption!;
final List<TextCaption> textCaptions = (captions.textCaptions == null ||
captions.textCaptions!.isEmpty ||
captions.textCaptions![0] == TextCaption.none ||
position > captions.textCaptions![0].end ||
position < captions.textCaptions![0].start)
? <TextCaption>[TextCaption.none]
: captions.textCaptions!;
final PictureCaption pictureCaption = (captions.pictureCaption == null ||
captions.pictureCaption == PictureCaption.none ||
position > captions.pictureCaption!.end ||
position < captions.pictureCaption!.start)
? PictureCaption.none
: captions.pictureCaption!;

return Captions(textCaptions: textCaptions, pictureCaption: pictureCaption);
}
Expand Down Expand Up @@ -1156,8 +1159,11 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
/// [Caption].
List<TextCaption> _getCaptionAt(Duration position) {
if (_closedCaptionFile == null) {
return (value.captions.textCaptions == <TextCaption>[TextCaption.none] ||
position > value.captions.textCaptions![0].end)
return (value.captions.textCaptions == null ||
value.captions.textCaptions!.isEmpty ||
value.captions.textCaptions![0] == TextCaption.none ||
position > value.captions.textCaptions![0].end ||
position < value.captions.textCaptions![0].start)
? <TextCaption>[TextCaption.none]
: value.captions.textCaptions!;
}
Expand All @@ -1175,8 +1181,10 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
}

PictureCaption _getPictureCaptionAt(Duration position) {
return (value.captions.pictureCaption == PictureCaption.none ||
position > value.captions.pictureCaption!.end)
return (value.captions.pictureCaption == null ||
value.captions.pictureCaption == PictureCaption.none ||
position > value.captions.pictureCaption!.end ||
position < value.captions.pictureCaption!.start)
? PictureCaption.none
: value.captions.pictureCaption!;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player_avplay/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: video_player_avplay
description: Flutter plugin for displaying inline video on Tizen TV devices.
homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/video_player_avplay
version: 0.8.7
version: 0.8.8

environment:
sdk: ">=3.1.0 <4.0.0"
Expand Down
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/10.0/libdash.so
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/10.0/libgstdash.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/6.0/libdash.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/6.5/libdash.so
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/6.5/libgstdash.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/7.0/libdash.so
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/7.0/libgstdash.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/8.0/libdash.so
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/8.0/libgstdash.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/9.0/libdash.so
Binary file not shown.
Binary file not shown.
Binary file modified packages/video_player_avplay/tizen/lib/armel/9.0/libgstdash.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading