All Products
Search
Document Center

:Run the demo source code of Push SDK for iOS

Last Updated:Mar 27, 2024

This topic describes how to run the demo source code of Push SDK for iOS Basic Edition. The procedure for running the demo source code of Push SDK for iOS Interactive Edition is similar to that of the Basic Edition.

Note

To use the demo source code package, you must apply for a license. If you want to test the features of Push SDK for iOS, we recommend that you download the latest version of the SDK demo package. For more information, see Use demos.

Environment requirements

Item

Requirement

iOS

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

Procedure

  1. Download and decompress the demo code package for iOS. For more information, see Download SDKs and Release notes of ApsaraVideo Player SDK for iOS.

    For more information about the directory structure of the demo, see the "Directory structure of the demo" section of this topic.

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

    image.png

  3. Run the demo project to test the features.

    效果1.png效果2.png

    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 Video Lan Client (VLC) to play the stream.

Directory structure of the demo

demo包目录结构.png

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

File

Description

  • AlivcLivePusher.framework

  • AlivcLibReplayKitExt.framework

Frameworks of Push SDK for iOS

  • AliyunQueenUIKit.framework

  • opencv2.framework

  • queen.framework

Frameworks of Queen SDK for iOS

  • AliyunPlayer.framework

  • alivcffmpeg.framework

  • artcSource.framework

  • RtsSDK.framework

Frameworks of Player SDK for iOS