[Android] Add a isVLC4 util function
Nicolas Pomepuy
git at videolan.org
Mon Oct 3 11:10:29 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Sep 27 09:46:47 2022 +0200| [657987fb7dab12fb41d25547767db90683f7642a] | committer: Duncan McNamara
Add a isVLC4 util function
> https://code.videolan.org/videolan/vlc-android/commit/657987fb7dab12fb41d25547767db90683f7642a
---
application/vlc-android/vlc3/src/org/videolan/vlc/VersionDependant.kt | 4 +++-
application/vlc-android/vlc4/src/org/videolan/vlc/VersionDependant.kt | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/application/vlc-android/vlc3/src/org/videolan/vlc/VersionDependant.kt b/application/vlc-android/vlc3/src/org/videolan/vlc/VersionDependant.kt
index 93e0d7f0c..e11c21a64 100644
--- a/application/vlc-android/vlc3/src/org/videolan/vlc/VersionDependant.kt
+++ b/application/vlc-android/vlc3/src/org/videolan/vlc/VersionDependant.kt
@@ -90,4 +90,6 @@ fun Array<MediaPlayer.TrackDescription>?.convertToVlcTrack(): Array<VlcTrack> {
newTracks.add(VlcTrackImpl(it))
}
return newTracks.toTypedArray()
-}
\ No newline at end of file
+}
+
+fun isVLC4() = false
\ No newline at end of file
diff --git a/application/vlc-android/vlc4/src/org/videolan/vlc/VersionDependant.kt b/application/vlc-android/vlc4/src/org/videolan/vlc/VersionDependant.kt
index 046422039..b077560cf 100644
--- a/application/vlc-android/vlc4/src/org/videolan/vlc/VersionDependant.kt
+++ b/application/vlc-android/vlc4/src/org/videolan/vlc/VersionDependant.kt
@@ -81,4 +81,6 @@ fun Array<IMedia.Track>.convertToVlcTrack(): Array<VlcTrack> {
newTracks.add(VlcTrackImpl(it))
}
return newTracks.toTypedArray()
-}
\ No newline at end of file
+}
+
+fun isVLC4() = true
\ No newline at end of file
More information about the Android
mailing list