All Products
Search
Document Center

ApsaraVideo Live:Demo compilation

Last Updated:Dec 14, 2023

This topic describes how to compile the demo of Push SDK for iOS.

Download the demo

For information about how to download the latest version of Push SDK for iOS and the demo source code, see SDK download and release notes.

Demo compilation

Environment requirements

Item

Requirement

OS version

iOS 8.0 or later

Phone model

iPhone 7 or later

CPU architecture

ARM64 or ARMv7

Integration tool

Xcode 8.0 or later

bitcode

Disabled

Run the demo source code

  1. Download and decompress the demo package of Push SDK for iOS. For more information, see SDK download and release notes.

    For information about the directory structure of the demo for iOS, see Directory structure of the demo for iOS.

  2. Use Xcode to open the AlivcLivePusherDemo.xcodeproj project.Open the demo project

  3. Run the demo project to test the features.

    Figure 1Figure 2

Enter a valid Real Time Messaging Protocol (RTMP) URL for stream ingest in the field that is marked as 1 in the preceding figure. After the stream is ingested, you can use ApsaraVideo Player SDK, FFplay, or VLC to play the stream.

Directory structure of the demo for iOS

Directory structure of the demo for iOS

The following table describes the files contained in the SDK folder.

File

Description

  • AlivcLivePusher.framework

  • AlivcLibReplayKitExt.framework

Push SDK

  • AliyunQueenUIKit.framework

  • opencv2.framework

  • queen.framework

Queen SDK

  • AliyunPlayer.framework

  • alivcffmpeg.framework

  • artcSource.framework

  • RtsSDK.framework

ApsaraVideo Player SDK