Skip to content

Commit a8afc45

Browse files
Subtitle Styling (#193)
* added vlc subtitle options * split swift code to multiple files * updated swift codes * Bump to 5.0.5 * added subtitle enums update example code for subtitle styling * Update flutter_vlc_player_platform_interface/lib/src/enums/subtitles/vlc_subtitle_text_direction.dart Co-authored-by: Yuri Prykhodko <[email protected]> * Update flutter_vlc_player_platform_interface/lib/src/enums/subtitles/vlc_subtitle_color.dart Co-authored-by: Yuri Prykhodko <[email protected]> * Update flutter_vlc_player_platform_interface/lib/src/utils/options/vlc_subtitle_options.dart Co-authored-by: Yuri Prykhodko <[email protected]> * updated subtitle color styling implementation * updated subtitle thickness option Co-authored-by: Yuri Prykhodko <[email protected]>
1 parent db2d0d8 commit a8afc45

17 files changed

+1331
-1154
lines changed

flutter_vlc_player/CHANGELOG.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
1+
## 5.0.5
2+
* Added Vlc Subtitle Styling.
3+
* Split ios swift code into multiple files for better readability.
4+
Credits to Alireza Setayesh (https://github.com/alr2413) and Yurii Prykhodko (https://github.com/solid-yuriiprykhodko).
5+
16
## 5.0.4
2-
Added isSeekable method
7+
* Added isSeekable method
38
Credits to Alireza Setayesh (https://github.com/alr2413), Mitch Ross (https://github.com/mitchross).
49

510
## 5.0.3
6-
Fix memory leak.
11+
* Fix memory leak.
712
Credits to Alireza Setayesh (https://github.com/alr2413), Mitch Ross (https://github.com/mitchross).
813

914
## 5.0.2
10-
Fix homepage link.
15+
* Fix homepage link.
1116

1217
## 5.0.1
13-
Fix pub.dev image links.
18+
* Fix pub.dev image links.
1419

1520
## 5.0.0
16-
Entire rewrite of Flutter VLC Player. Updates to Android v2 plugin. Adds Platform interface. Adds Pigeon for type safe method calls.
21+
* Entire rewrite of Flutter VLC Player.
22+
* Updates to Android v2 plugin.
23+
* Adds Platform interface.
24+
* Adds Pigeon for type safe method calls.
1725
Credits to Alireza Setayesh (https://github.com/alr2413), Mitch Ross (https://github.com/mitchross) and Yurii Prykhodko (https://github.com/solid-yuriiprykhodko).
1826

1927
## 4.0.3
20-
Update VLCKit for iOS and iOS. Cleanup example Pod file. Clean up example gradle. Credits to Mitch Ross (https://github.com/mitchross).
21-
Removed dispose calls on VlcPlayerController from VlcPlayer.
22-
Fix argument-less functions throwing FlutterMethodNotImplemented.
28+
* Update VLCKit for iOS and iOS. Cleanup example Pod file. Clean up example gradle.
29+
* Removed dispose calls on VlcPlayerController from VlcPlayer.
30+
* Fix argument-less functions throwing FlutterMethodNotImplemented.
31+
Credits to Mitch Ross (https://github.com/mitchross).
2332

2433
## 4.0.2
25-
* Update Cocoapods version for VLCkit on iOS. This fixes issues with iOS 12 and Simulators. Credits to Mitch Ross (https://github.com/mitchross).
34+
* Update Cocoapods version for VLCkit on iOS. This fixes issues with iOS 12 and Simulators.
35+
Credits to Mitch Ross (https://github.com/mitchross).
2636

2737
## 4.0.1
2838
* Improved documentation.

flutter_vlc_player/example/lib/single_tab.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ class _SingleTabState extends State<SingleTab> {
9292
advanced: VlcAdvancedOptions([
9393
VlcAdvancedOptions.networkCaching(2000),
9494
]),
95+
subtitle: VlcSubtitleOptions([
96+
VlcSubtitleOptions.boldStyle(true),
97+
VlcSubtitleOptions.fontSize(30),
98+
VlcSubtitleOptions.outlineColor(VlcSubtitleColor.yellow),
99+
VlcSubtitleOptions.outlineThickness(VlcSubtitleThickness.normal),
100+
// works only on externally added subtitles
101+
VlcSubtitleOptions.color(VlcSubtitleColor.navy),
102+
]),
95103
rtp: VlcRtpOptions([
96104
VlcRtpOptions.rtpOverRtsp(true),
97105
]),

0 commit comments

Comments
 (0)