iOS player

更新时间:
复制 MD 格式

ApsaraVideo Player SDK for iOS lets you integrate live streaming and video-on-demand playback into iOS apps with minimal effort.

Overview

The ApsaraVideo VOD iOS player SDK is a lightweight, high-performance video playback tool that covers media loading, decoding, rendering, and interaction control. Its standardized APIs and scenario-based encapsulation help developers build playback experiences for online education, short videos, enterprise training, and more.

SDK features

  1. Easy integration

    Straightforward APIs and code samples let you install the SDK and start playing video quickly.

  2. Multiple playback formats

    Supports HLS, RTMP, MP4, and other streaming protocols and container formats.

  3. Adaptive bitrate

    Automatically adjusts video quality based on network conditions for uninterrupted playback.

  4. Rich interactive features

    Full-screen playback, fast forward/rewind, play/pause, and volume control.

Core capabilities

  1. Basic playback

    Plays MP4, HLS, FLV, and other mainstream formats with adaptive multi-resolution switching (customizable quality labels). Gesture interaction includes double-tap to pause and swipe to adjust volume or brightness. Also supports full-screen playback, playback speed adjustment, and first-frame preloading. Video metadata such as duration and resolution is available through callbacks, with automatic resumption after playback ends.

  2. Security and encryption

    Supports HLS AES-128 standard encryption and Alibaba Cloud proprietary video encryption, with server-side key management for end-to-end content protection. Use setAuthInfo to configure preview duration, or setStsToken for temporary authentication.

  3. Advanced playback features

    • Low-latency live stream time-shifting: Uses HTTPDNS-based intelligent scheduling for HLS time-shift playback.

    • Offline caching: Locally encrypted storage with resumable downloads and cache management.

    • AI-powered video enhancement: Super-resolution, HDR, and other algorithms with hardware decoding acceleration.

    • Data monitoring: Real-time QoS metrics including buffering duration and stuttering rate.

Technical architecture advantages

  1. Content delivery and acceleration (CDN support)

    Caches popular videos at global CDN edge nodes to reduce transmission distance and latency for fast, smooth playback.

  2. Video security and copyright protection

    Integrates DRM, video watermarking, and hotlink protection to encrypt content, identify copyrights, and prevent unauthorized distribution.

  3. Scalability and customization

    Supports custom UI and feature extensions. Use the SDK and APIs to build personalized designs, integrate advertising and social sharing, and connect with other Alibaba Cloud services.

  4. Intelligent management and optimization

    Intelligent transcoding automatically optimizes playback for different network conditions and devices. AI-powered content moderation and big data analytics provide real-time playback monitoring to help you refine content and strategies.

  5. High performance and stability

    Optimized for smooth high-resolution playback with low resource consumption. Intelligent bitrate switching and buffering strategies adapt to varying network environments, and built-in error handling enables quick issue resolution.

  6. Rich APIs and developer support

    Rich APIs give developers full control over the player, including playback status queries and progress adjustment.

Developer support

Alibaba Cloud provides developer documentation, sample code, and FAQs to help you get started with the iOS player SDK and build video playback applications for on-demand and live streaming scenarios.

Related documentation