make exoplayer default player
This commit is contained in:
parent
c3c3a94593
commit
e804647a65
|
@ -791,7 +791,11 @@ public class VideoItemDetailFragment extends Fragment {
|
|||
}
|
||||
} else {
|
||||
Intent intent;
|
||||
if (PreferenceManager.getDefaultSharedPreferences(activity).getBoolean(activity.getString(R.string.use_exoplayer_key), false)) {
|
||||
boolean useOldPlayer = PreferenceManager
|
||||
.getDefaultSharedPreferences(activity)
|
||||
.getBoolean(activity.getString(R.string.use_old_player_key), false)
|
||||
|| (Build.VERSION.SDK_INT < 16);
|
||||
if (!useOldPlayer) {
|
||||
// ExoPlayer
|
||||
if (streamThumbnail != null) ActivityCommunicator.getCommunicator().backgroundPlayerThumbnail = streamThumbnail;
|
||||
intent = new Intent(activity, ExoPlayerActivity.class)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<string name="use_external_video_player_key" translatable="false">use_external_video_player</string>
|
||||
<string name="use_external_audio_player_key" translatable="false">use_external_audio_player</string>
|
||||
<string name="autoplay_through_intent_key" translatable="false">autoplay_through_intent</string>
|
||||
<string name="use_exoplayer_key" translatable="false">use_exoplayer</string>
|
||||
<string name="use_old_player_key" translatable="false">use_oldplayer</string>
|
||||
|
||||
<string name="default_resolution_key" translatable="false">default_resolution_preference</string>
|
||||
<string name="default_resolution_value" translatable="false">360p</string>
|
||||
|
|
|
@ -152,8 +152,8 @@
|
|||
<string name="error_querying_decoders">Unable to query device decoders</string>
|
||||
<string name="error_instantiating_decoder">Unable to instantiate decoder <xliff:g id="decoder_name">%1$s</xliff:g></string>
|
||||
<string name="storage_permission_denied">Permission to access storage was denied</string>
|
||||
<string name="use_exoplayer_title">Use ExoPlayer</string>
|
||||
<string name="use_exoplayer_summary">Experimental</string>
|
||||
<string name="use_old_player_title">Use old player</string>
|
||||
<string name="use_old_player_summary">Old build in Mediaframework player.</string>
|
||||
<string name="videos">videos</string>
|
||||
<string name="subscriber">subscriber</string>
|
||||
<string name="subscribe">Subscribe</string>
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
android:defaultValue="@string/default_audio_format_value"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="@string/use_exoplayer_key"
|
||||
android:title="@string/use_exoplayer_title"
|
||||
android:summary="@string/use_exoplayer_summary"
|
||||
android:key="@string/use_old_player_key"
|
||||
android:title="@string/use_old_player_title"
|
||||
android:summary="@string/use_old_player_summary"
|
||||
android:defaultValue="false"/>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
|
|
Loading…
Reference in New Issue