Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0b0cfce
support playback local file on Android
NTTAT-chin-shou May 3, 2020
e17db9e
Add more helper methods for android
NTTAT-chin-shou May 3, 2020
00e39b7
Add subtitle display support for Android
NTTAT-chin-shou May 3, 2020
329727e
Add OnStatusChanged event for vlc player controller
NTTAT-chin-shou May 3, 2020
2b35192
support subtitle display
NTTAT-chin-shou May 3, 2020
8ec95eb
comment out some not used code
NTTAT-chin-shou May 3, 2020
48c4434
cleanup the player state management
NTTAT-chin-shou May 9, 2020
0149e10
Support loop forever
NTTAT-chin-shou May 9, 2020
e6d7f88
fix get subtitle track id
NTTAT-chin-shou May 9, 2020
df59304
revert some changes that cause SetSurfaceTexture null exception
NTTAT-chin-shou May 10, 2020
ebebd32
port the change from Android to IOS
chinshou May 13, 2020
ee64fda
start to support ios
NTTAT-chin-shou May 13, 2020
9766671
Merge branch 'master' of git://github.com/chinshou/flutter_vlc_player
chinshou May 14, 2020
5b6566a
bug fixed
NTTAT-chin-shou May 14, 2020
81549c5
update the interface
NTTAT-chin-shou May 14, 2020
6c4002d
send duration information because sometime Playing state notification…
NTTAT-chin-shou May 15, 2020
8d6b229
fix subtitle track index bug
NTTAT-chin-shou May 19, 2020
521f433
fix compile error
NTTAT-chin-shou May 24, 2020
cf652c7
Merge branch 'master' of git://github.com/chinshou/flutter_vlc_player
chinshou May 30, 2020
d5011c3
fix change url
chinshou May 30, 2020
5a40200
fix change url on ios
NTTAT-chin-shou May 30, 2020
231af1e
deadlock fix
NTTAT-chin-shou May 30, 2020
939fc5d
revert previous change that more unstable
NTTAT-chin-shou May 30, 2020
d17d9c4
Merge branch 'master' of git://github.com/chinshou/flutter_vlc_player
chinshou May 30, 2020
81725ba
fix bug
chinshou May 31, 2020
32c0b78
also fix the android change url
NTTAT-chin-shou May 31, 2020
340fc5d
fix compile error
NTTAT-chin-shou May 31, 2020
ff53c83
do not call mediaplayer.stop when end reached
NTTAT-chin-shou Jun 2, 2020
5b17008
revert changes
NTTAT-chin-shou Jun 2, 2020
84e72e6
always play the stream when change url
NTTAT-chin-shou Jun 2, 2020
61838eb
do the same fix for ios
NTTAT-chin-shou Jun 2, 2020
c3a9000
fix get loop parameter
chinshou Jun 4, 2020
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
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ const VlcPlayer({
/// This is the initial URL for the content. This also must be provided but [VlcPlayerController] implements
/// [VlcPlayerController.setStreamUrl] method so this can be changed at any time.
@required this.url,
/// whether the url is a local file instead of network stream url
this.isLocal=false,
/// external subtitle file
this.subtitle="",
/// True: loop the playback forever
this.loop=true,
/// Before the platform view has initialized, this placeholder will be rendered instead of the video player.
/// This can simply be a [CircularProgressIndicator] (see the example.)
this.placeholder,
Expand Down Expand Up @@ -140,7 +146,7 @@ VlcPlayerController({
/// Returns the current state of the player.
/// Valid states:
/// - PlayingState.PLAYING
/// - PlayingState.BUFFERING
/// - PlayingState.PAUSED
/// - PlayingState.STOPPED
/// - null (When the player is uninitialized)
PlayingState playingState;
Expand Down Expand Up @@ -190,6 +196,21 @@ VlcPlayerController({

/// Returns binary data for a snapshot of the media at the current frame.
Future<Uint8List> takeSnapshot();

/// Return subtitle track index list
Future<List<dynamic>> getSubtitleTracks();

/// [track] switch subtitle track by track index
Future<void> setSubtitleTrack(int track);

/// Return player speed
Future<double> getPlaybackSpeed();

/// Return player current postion in milliseconds
Future<int> getTime();

/// Return true if player is playing
Future<bool> isPlaying();

/// Disposes the platform view and unloads the VLC player.
void dispose();
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
Loading