Skip to content

Commit

Permalink
Twelve: Add HLS, RTSP and SmoothStreaming ExoPlayer libs
Browse files Browse the repository at this point in the history
Change-Id: Ie2ffafacc8b04edcf038d7ad9a982a7d67642805
  • Loading branch information
SebaUbuntu committed Nov 7, 2024
1 parent 28f6757 commit 973cc41
Show file tree
Hide file tree
Showing 16 changed files with 189 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ android_app {
"androidx.lifecycle_lifecycle-service",
"Twelve_androidx.media3_media3-common-ktx",
"Twelve_androidx.media3_media3-exoplayer",
"Twelve_androidx.media3_media3-exoplayer-hls",
"Twelve_androidx.media3_media3-exoplayer-midi",
"Twelve_androidx.media3_media3-exoplayer-rtsp",
"Twelve_androidx.media3_media3-exoplayer-smoothstreaming",
"Twelve_androidx.media3_media3-session",
"Twelve_androidx.media3_media3-ui",
"androidx.navigation_navigation-fragment-ktx",
Expand Down
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ dependencies {
implementation(libs.androidx.lifecycle.service)
implementation(libs.androidx.media3.common.ktx)
implementation(libs.androidx.media3.exoplayer)
implementation(libs.androidx.media3.exoplayer.hls)
implementation(libs.androidx.media3.exoplayer.midi)
implementation(libs.androidx.media3.exoplayer.rtsp)
implementation(libs.androidx.media3.exoplayer.smoothstreaming)
implementation(libs.androidx.media3.session)
implementation(libs.androidx.media3.ui)
implementation(libs.androidx.navigation.fragment.ktx)
Expand Down
96 changes: 96 additions & 0 deletions app/libs/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,38 @@ android_library {
java_version: "1.7",
}

android_library_import {
name: "Twelve_androidx.media3_media3-exoplayer-hls-nodeps",
aars: ["androidx/media3/media3-exoplayer-hls/1.5.0-alpha01/media3-exoplayer-hls-1.5.0-alpha01.aar"],
sdk_version: "35",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
static_libs: [
"Twelve_androidx.media3_media3-exoplayer",
"androidx.annotation_annotation",
],
}

android_library {
name: "Twelve_androidx.media3_media3-exoplayer-hls",
sdk_version: "35",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
manifest: "androidx/media3/media3-exoplayer-hls/1.5.0-alpha01/AndroidManifest.xml",
static_libs: [
"Twelve_androidx.media3_media3-exoplayer-hls-nodeps",
"Twelve_androidx.media3_media3-exoplayer",
"androidx.annotation_annotation",
],
java_version: "1.7",
}

android_library_import {
name: "Twelve_androidx.media3_media3-exoplayer-midi-nodeps",
aars: ["androidx/media3/media3-exoplayer-midi/1.5.0-alpha01/media3-exoplayer-midi-1.5.0-alpha01.aar"],
Expand Down Expand Up @@ -297,6 +329,70 @@ android_library {
java_version: "1.7",
}

android_library_import {
name: "Twelve_androidx.media3_media3-exoplayer-rtsp-nodeps",
aars: ["androidx/media3/media3-exoplayer-rtsp/1.5.0-alpha01/media3-exoplayer-rtsp-1.5.0-alpha01.aar"],
sdk_version: "35",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
static_libs: [
"Twelve_androidx.media3_media3-exoplayer",
"androidx.annotation_annotation",
],
}

android_library {
name: "Twelve_androidx.media3_media3-exoplayer-rtsp",
sdk_version: "35",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
manifest: "androidx/media3/media3-exoplayer-rtsp/1.5.0-alpha01/AndroidManifest.xml",
static_libs: [
"Twelve_androidx.media3_media3-exoplayer-rtsp-nodeps",
"Twelve_androidx.media3_media3-exoplayer",
"androidx.annotation_annotation",
],
java_version: "1.7",
}

android_library_import {
name: "Twelve_androidx.media3_media3-exoplayer-smoothstreaming-nodeps",
aars: ["androidx/media3/media3-exoplayer-smoothstreaming/1.5.0-alpha01/media3-exoplayer-smoothstreaming-1.5.0-alpha01.aar"],
sdk_version: "35",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
static_libs: [
"Twelve_androidx.media3_media3-exoplayer",
"androidx.annotation_annotation",
],
}

android_library {
name: "Twelve_androidx.media3_media3-exoplayer-smoothstreaming",
sdk_version: "35",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
manifest: "androidx/media3/media3-exoplayer-smoothstreaming/1.5.0-alpha01/AndroidManifest.xml",
static_libs: [
"Twelve_androidx.media3_media3-exoplayer-smoothstreaming-nodeps",
"Twelve_androidx.media3_media3-exoplayer",
"androidx.annotation_annotation",
],
java_version: "1.7",
}

android_library_import {
name: "Twelve_androidx.media3_media3-extractor-nodeps",
aars: ["androidx/media3/media3-extractor/1.5.0-alpha01/media3-extractor-1.5.0-alpha01.aar"],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="androidx.media3.exoplayer.hls" >

<uses-sdk android:minSdkVersion="21" />

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="androidx.media3.exoplayer.rtsp" >

<uses-sdk android:minSdkVersion="21" />

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="androidx.media3.exoplayer.smoothstreaming" >

<uses-sdk android:minSdkVersion="21" />

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Android Open Source Project

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ androidx-fragment-ktx = { group = "androidx.fragment", name = "fragment-ktx", ve
androidx-lifecycle-service = { group = "androidx.lifecycle", name = "lifecycle-service", version.ref = "lifecycle" }
androidx-media3-common-ktx = { group = "androidx.media3", name = "media3-common-ktx", version.ref = "media3" }
androidx-media3-exoplayer = { group = "androidx.media3", name = "media3-exoplayer", version.ref = "media3" }
androidx-media3-exoplayer-hls = { group = "androidx.media3", name = "media3-exoplayer-hls", version.ref = "media3" }
androidx-media3-exoplayer-midi = { group = "androidx.media3", name = "media3-exoplayer-midi", version.ref = "media3" }
androidx-media3-exoplayer-rtsp = { group = "androidx.media3", name = "media3-exoplayer-rtsp", version.ref = "media3" }
androidx-media3-exoplayer-smoothstreaming = { group = "androidx.media3", name = "media3-exoplayer-smoothstreaming", version.ref = "media3" }
androidx-media3-session = { group = "androidx.media3", name = "media3-session", version.ref = "media3" }
androidx-media3-ui = { group = "androidx.media3", name = "media3-ui", version.ref = "media3" }
androidx-navigation-fragment-ktx = { group = "androidx.navigation", name = "navigation-fragment-ktx", version.ref = "navigation" }
Expand Down

0 comments on commit 973cc41

Please sign in to comment.