5 Star 78 Fork 15

RTE-Dev / RedPlayer

forked from CY. / RedPlayer 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
hongdaLL 提交于 2023-11-14 10:49 . Open RedPlayer v1.0 modifies

Usage Guide - DEMO

Before Run

Before building the SDK, please make sure you have the following dependencies installed:

  1. Git: Ensure that Git is installed on your machine. If not, you can download and install it from https://git-scm.com/. Or using the following command:

    brew install git
  2. Android SDK: Andrioid SDK is android project base dependency. You should download and then config with the following command:

    # add this line to your ~/.bash_profile or ~/.profile, the android sdk will work
    export ANDROID_SDK=<your sdk path>
    
    # My build environment:
    # macOS 14.0
    # Android Studio Flamingo | 2022.2.1 Patch 2
    # gradle version: 7.5.0

My Run Environment

  • macOS 14.0
  • Android Studio Flamingo | 2022.2.1 Patch 2
  • gradle version: 7.5.0

Example Run

To run the example project, clone the repo, and run ./gradlew installDebug from the Example directory first.

  1. Clone the repository

    git clone https://github.com/RTE-Dev/RedPlayer.git
  2. Navigate to the demo project directory

    cd RedPlayer/source/android
  3. Build and Install RedPlayer-Demo.apk to your android phone

    ./gradlew installDebug

Demo

click to download RedPlayer-Demo.apk
Demo 1    Demo 2

📌How to integrate RedPlayer into your Android project

Requirements

  • Android Phone System 5.0+

▶️ Getting Started

1. Create a PlayerDemo Project

Start by creating a new android project named PlayerDemo

2. Setup Dependency

In the root directory of your project, create a app module and open the build.gradle file

// add the RedPlayer SDK and RedPreload SDK
dependencies {
    implementation project(path: ':OpenRedPlayerCore')
    implementation project(path: ':OpenRedPreload')
}   

This module includes dependencies on local RedPlayer SDK, RedPreload SDK and ffmpeg, opensoundtouch.

3. Build & Install

Run the following command in the terminal to build and install your demo:

$ ./gradlew installDebug

Then you app module will build the apk and auto install you android phone.

1
https://gitee.com/rte-dev/RedPlayer.git
git@gitee.com:rte-dev/RedPlayer.git
rte-dev
RedPlayer
RedPlayer
main

搜索帮助