/plushcap/analysis/agora/how-to-build-a-live-video-streaming-ios-app-with-agora-4x-sdk-preview

How to Build a Live Video Streaming iOS App with Agora 4.x SDK Preview

What's this blog post about?

In this tutorial, learn how to create an application that enables users to be either a streamer or an audience member in a session using Agora's Voice and Video SDK version 4.0.0. The setup is similar to creating a video call with Agora, but differs slightly in roles: audience and broadcaster. Prerequisites include an Agora developer account, Xcode 12.0 or later, and an iOS device with iOS 13.0 or later. Create the project in Xcode, add Agora's 4.0.0 Preview Swift Package, and then create a basic UIViewController with a button to join the channel. Next, create the ChannelViewController.swift file containing the UIViewController subclass called ChannelViewController, which displays the Agora pieces. The main callback methods needed for a basic streaming session are didJoinedOfUid, didOfflineOfUid, didClientRoleChanged, and firstRemoteVideoDecodedOfUid. Other resources include the Agora Video Call Quickstart Guide and Agora API Reference.

Company
Agora

Date published
Sept. 17, 2021

Author(s)
Max Cobb

Word count
768

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.