900 B
900 B
Velix 主 App 集成
主 App 工程为 ../Velix,当前是独立的 Stage Model/API 24 工程,目录本身没有 Git 元数据。集成脚本提供两种依赖模式:
scripts/sync-velix-core-sdk.sh --local:从相邻 Core 重新构建并 staging,适合本地开发。scripts/sync-velix-core-sdk.sh --release --sdk PATH:消费已经发布的 SDK 目录,适合 release 验证。
scripts/build-velix-app.sh 会先同步 SDK,再执行 devecocli build。主 App 只将 libvelix_core_binding.so、libmpv.so.2 与 libc++_shared.so 放进 entry/libs/arm64-v8a,不引入 Core/FFmpeg 源码。
ArkTS 入口为 domain/playback/PlaybackEngine.ets → MpvPlaybackEngine.ets → native binding;页面为 pages/PlayerPage.ets。XComponent 的 libraryname 为 velix_core_binding,Surface 回调由 Core binding 注册,页面不重复实现 EGL renderer。