Skip to content

Commit

Permalink
1.1.15 - Updated README and documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
masterwok committed Oct 16, 2018
1 parent d0a77ed commit adc584a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ VlcOptionsProvider
.setOptions(
new VlcOptionsProvider.Builder(this)
.withSubtitleBackgroundOpacity(255)
.withSubtitleEncoding(SubtitleEncoding.RussianKOI8R)
// See R.array.subtitles_encoding_values
.withSubtitleEncoding("KOI8-R")
.setVerbose(true)
.build()
);
Expand All @@ -27,7 +28,8 @@ Intent intent = new Intent(this, MediaPlayerActivity.class);
intent.putExtra(MediaPlayerActivity.MediaUri, videoUri);
intent.putExtra(MediaPlayerActivity.SubtitleUri, subtitleUri);
intent.putExtra(MediaPlayerActivity.OpenSubtitlesUserAgent, "TemporaryUserAgent")
intent.putExtra(MediaPlayerActivity.SubtitleLanguageCode, SubtitleLanguage.Russian)
// See R.array.language_values
intent.putExtra(MediaPlayerActivity.SubtitleLanguageCode, "rus")

startActivity(intent);
```
Expand All @@ -46,7 +48,7 @@ and add the following in the dependent module:

```gradle
dependencies {
implementation 'com.github.masterwok:simple-vlc-player:1.1.14'
implementation 'com.github.masterwok:simple-vlc-player:1.1.15'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MainActivity : AppCompatActivity() {
VlcOptionsProvider.getInstance().options = VlcOptionsProvider
.Builder(this)
.setVerbose(true)
// See R.array.subtitles_encoding_list
// See R.array.subtitles_encoding_values
.withSubtitleEncoding("KOI8-R")
.build()
}
Expand Down

0 comments on commit adc584a

Please sign in to comment.