File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/com/connectsdk/sampler/fragments Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 57
57
import java .util .concurrent .TimeUnit ;
58
58
59
59
public class MediaPlayerFragment extends BaseFragment {
60
- public static final String URL_SUBTITLES_VTT =
60
+ public static final String URL_SUBTITLES_WEBVTT =
61
61
"http://ec2-54-201-108-205.us-west-2.compute.amazonaws.com/samples/media/sintel_en.vtt" ;
62
62
public static final String URL_SUBTITLE_SRT =
63
63
"http://ec2-54-201-108-205.us-west-2.compute.amazonaws.com/samples/media/sintel_en.srt" ;
@@ -425,8 +425,8 @@ private void playVideo() {
425
425
boolean shouldLoop = loopingButton .isChecked ();
426
426
427
427
SubtitleInfo .Builder subtitleBuilder ;
428
- if (getTv ().hasCapability (MediaPlayer .Subtitle_VTT )) {
429
- subtitleBuilder = new SubtitleInfo .Builder (URL_SUBTITLES_VTT );
428
+ if (getTv ().hasCapability (MediaPlayer .Subtitle_WebVTT )) {
429
+ subtitleBuilder = new SubtitleInfo .Builder (URL_SUBTITLES_WEBVTT );
430
430
} else {
431
431
subtitleBuilder = new SubtitleInfo .Builder (URL_SUBTITLE_SRT );
432
432
}
You can’t perform that action at this time.
0 commit comments