初始化 TTVideoPlayer 工程:模块化播放框架、同同影音 App 与文档
Media3 内核播放框架(player-api/core/media3/source/render/lifecycle/telemetry)、 WebDAV/SMB/Jellyfin 来源、DLNA/Google Cast 投屏、RTMP 原生库与完整 App。
This commit is contained in:
commit
922ec80bcc
147 files changed
+20169
No files matched your search
@@ -0,0 +1,24 @@
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
kotlin("android")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.ttstd.player.androidapi"
|
||||
compileSdk = 37
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 23
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
}
|
||||
|
||||
kotlin { jvmToolchain(17) }
|
||||
|
||||
dependencies {
|
||||
api(project(":player-api"))
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<manifest />
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.ttstd.player.android
|
||||
|
||||
import android.view.Surface
|
||||
import com.ttstd.player.api.CommandResult
|
||||
|
||||
/** 平台输出扩展。必须在主线程调用;实现不拥有传入 Surface,不负责 release 它。
|
||||
* 清理时携带原 Surface 身份,防止旧 View 的销毁回调清除新 View 的输出。
|
||||
*/
|
||||
interface AndroidVideoOutput {
|
||||
fun attachSurface(surface: Surface): CommandResult
|
||||
fun detachSurface(surface: Surface)
|
||||
}
|
||||
Reference in new issue
Block a user