mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
fix crash when playing video
This commit is contained in:
parent
782076ebb4
commit
4f1c46fcf7
@ -1032,8 +1032,8 @@ class PlayerFragment : Fragment() {
|
|||||||
|
|
||||||
for (vid in response.videoStreams!!) {
|
for (vid in response.videoStreams!!) {
|
||||||
// append quality to list if it has the preferred format (e.g. MPEG)
|
// append quality to list if it has the preferred format (e.g. MPEG)
|
||||||
if (vid.format.equals(videoFormatPreference)) { // preferred format
|
if (vid.format.equals(videoFormatPreference) && vid.url != null) { // preferred format
|
||||||
videosNameArray += vid.quality!!
|
videosNameArray += vid.quality.toString()
|
||||||
videosUrlArray += vid.url!!.toUri()
|
videosUrlArray += vid.url!!.toUri()
|
||||||
} else if (vid.quality.equals("LBRY") && vid.format.equals("MP4")) { // LBRY MP4 format)
|
} else if (vid.quality.equals("LBRY") && vid.format.equals("MP4")) { // LBRY MP4 format)
|
||||||
videosNameArray += "LBRY MP4"
|
videosNameArray += "LBRY MP4"
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
android:id="@+id/close_imageButton"
|
android:id="@+id/close_imageButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="5dp"
|
android:layout_marginEnd="5dp"
|
||||||
android:background="#00FFFFFF"
|
android:background="#00FFFFFF"
|
||||||
android:padding="@dimen/exo_icon_padding"
|
android:padding="@dimen/exo_icon_padding"
|
||||||
android:src="@drawable/ic_close"
|
android:src="@drawable/ic_close"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user