This topic describes how to run the demo of AliLive SDK for iOS.

Environment requirements

Item Description
System version iOS 8.0 or later
Phone model iPhone 5S or later
CPU architecture ARM64 or ARMv7
Integration tool Xcode 8.0 or later
bitcode Disabled

Procedure

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

    For more 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.
    Demo project 1Demo project 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 Video Lan Client (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
  • AlivcLibRtmp.framework
  • RtsSDK.framework
AliLive SDK
  • queen.framework
  • FaceDetection.framework
  • MNN.framework
  • Face3D.framework
  • opencv2.framework
  • pixelai.framework
Queen SDK
  • AliyunPlayer.framework
  • alivcffmpeg.framework
  • artcSource.framework
ApsaraVideo Player SDK