This repository was archived by the owner on Feb 22, 2023. It is now read-only.
[Closed Captioning] Create SubRip file parser and dart closed caption data object#2473
Merged
mklim merged 21 commits intoflutter:masterfrom Jan 28, 2020
Merged
Conversation
rami-a
approved these changes
Jan 15, 2020
packages/video_player/closed_caption_file/lib/closed_caption_file.dart
Outdated
Show resolved
Hide resolved
mklim
reviewed
Jan 16, 2020
Contributor
mklim
left a comment
There was a problem hiding this comment.
Thank you for the contribution! The approach is good, but there's a few things that I think should be changed before landing.
| fourthCaption.text, | ||
| '- [ Machinery Beeping ]\n- I\'m not sure what that was,', | ||
| ); | ||
| }); |
Contributor
There was a problem hiding this comment.
nit: Some test cases for what happens with invalid input would be great, too.
packages/video_player/closed_caption_file/lib/closed_caption_file.dart
Outdated
Show resolved
Hide resolved
mklim
reviewed
Jan 17, 2020
Contributor
There was a problem hiding this comment.
The unit test is failing in CI, but it's not obvious to me why:
00:07 +12 -1: /tmp/cirrus-ci-build/packages/video_player/video_player/test/sub_rip_file_test.dart: Parses SubRip file [E]
Unsupported operation: _Namespace
package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 196:49 throw_
package:dart-sdk/lib/_internal/js_dev_runtime/patch/io_patch.dart 202:5 get _namespace
package:dart-sdk/lib/io/file_impl.dart 488:31 openSync
package:dart-sdk/lib/io/file_impl.dart 549:18 readAsBytesSync
package:dart-sdk/lib/io/file_impl.dart 594:18 readAsStringSync
sub_rip_file_test.dart 15:31 <fn>
package:test_api <fn>
Just double checking, it passes locally? the js_dev_runtime part looks suspicious to me, maybe this has something to do with the federated web implementation?
video_player's minor version should be bumped in pubspec.yaml and CHANGELOG.md now since it's been moved into that package.
Other than that the implementation here looks solid.
WoodyGuo
pushed a commit
to liuwei1130/plugins
that referenced
this pull request
Feb 10, 2020
… data object (flutter#2473) This PR specifies a dart object that represents a "Closed Caption". This will be useful in a follow up PR, where I will add closed caption support the the `VideoPlayerController`.
WoodyGuo
pushed a commit
to liuwei1130/plugins
that referenced
this pull request
Feb 10, 2020
… data object (flutter#2473) This PR specifies a dart object that represents a "Closed Caption". This will be useful in a follow up PR, where I will add closed caption support the the `VideoPlayerController`.
EdwinRomelta
pushed a commit
to EdwinRomelta/plugins
that referenced
this pull request
Jun 11, 2020
… data object (flutter#2473) This PR specifies a dart object that represents a "Closed Caption". This will be useful in a follow up PR, where I will add closed caption support the the `VideoPlayerController`.
FlutterSu
pushed a commit
to FlutterSu/flutter-plugins
that referenced
this pull request
Nov 20, 2020
… data object (flutter#2473) This PR specifies a dart object that represents a "Closed Caption". This will be useful in a follow up PR, where I will add closed caption support the the `VideoPlayerController`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR specifies a dart object that represents a "Closed Caption". This will be useful in a follow up PR, where I will add closed caption support the the
VideoPlayerController.Related Issues
flutter/flutter#25388
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?