Skip to content

Commit

Permalink
Normalize commited code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunrisela committed Sep 21, 2022
1 parent 005a52c commit b172508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ protected void startExternalActivity(String path, String container) {
}
}

// updated by Joshua.Li
// updated by sunrisela
external.putExtra(API_MX_SECURE_URI, true);
this.adaptExternalSubtitles(mCurrentStreamInfo, external);

Expand All @@ -436,8 +436,8 @@ protected void startExternalActivity(String path, String container) {
* Adapt external subtitles for external players. (e.g., MX Player, MPV, VLC, nPlayer)
* External subtitles have higher priority than embedded subtitles.
*
* @param mediaStreamInfo
* @param playerIntent
* @param mediaStreamInfo Current media stream info used to get subtitle profiles.
* @param playerIntent Put player API params of sub urls.
*/
private void adaptExternalSubtitles(StreamInfo mediaStreamInfo, Intent playerIntent) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ class ExternalPlayerProfile : DeviceProfile() {
}
)

transcodingProfiles = emptyArray()

containerProfiles = emptyArray()

codecProfiles = emptyArray()

subtitleProfiles = arrayOf(
subtitleProfile(Codec.Subtitle.SRT, SubtitleDeliveryMethod.Embed),
subtitleProfile(Codec.Subtitle.SUBRIP, SubtitleDeliveryMethod.Embed),
Expand Down

0 comments on commit b172508

Please sign in to comment.