An example app for live streaming from an iOS device using the Mux live streaming service.
Branch: master
Clone or download
piemonte and jsanford8 bug fixes and improvements (#7)
* update dependencies and cocoapods

* remove bridging header

* MuxLive, update protocol declarations to more modern syntax

* MuxBroadcastViewController, so the files in the 'MuxLive' group were treated as potential framework only files, which means they can't reach out and try access custom properties on an AppDelegate

Made a fast change to this, such that you pass in the orientation. I didn't get a chance to test, but should be OK.

* Sample Project, use the swift 4.0 version of dependency RPCircularProgress (cocoapods automatically was loading 0.4.1 which is written in swift 4.2) :-S

* update travis
Latest commit efb198d Nov 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
App bug fixes and improvements (#7) Nov 14, 2018
Framework setup a vanilla sample project with two build targets: May 29, 2018
MuxLive.xcodeproj bug fixes and improvements (#7) Nov 14, 2018
MuxLive.xcworkspace
Sources bug fixes and improvements (#7) Nov 14, 2018
docs update docs Jun 1, 2018
.gitignore add a gitignore May 29, 2018
.swift-version setup a swift version file for cocoapods integration May 29, 2018
.travis.yml bug fixes and improvements (#7) Nov 14, 2018
LICENSE LICENSE, add an MIT license file May 29, 2018
MuxLive.podspec podspec, fix minor version bug Jun 1, 2018
Podfile bug fixes and improvements (#7) Nov 14, 2018
Podfile.lock bug fixes and improvements (#7) Nov 14, 2018
README.md Update readme for live stream docs Nov 14, 2018
build_docs.sh build_docs, add a script for generating jazzy documentation from Swif… May 29, 2018
makefile makefile, add a makefile for project setup May 29, 2018

README.md

example-ios-live-streaming

An example app for live streaming from an iOS device using the Mux live streaming service, written in Swift.

Swift Version GitHub license

Welcome

Our sample app uses a couple open source projects and Xcode configurations in order to get live streaming up and running quickly. To make this easy, we recommend using the CocoaPods dependency manager for iOS. Once you have cloned this repo and installed CocoaPods, you are a couple steps away from streaming.

Quick Start

Sample Project Setup

After cloning this project and installing CocoaPods, run the following command from the project directory to get setup:

make setup && make pods

Then just open the workspace and click play to build and run.

open *workspace

Components

  • MuxLive.swift is a component that provides the basic network streaming capabilities and properties for configuration.

  • MuxLiveConfiguration.swift describes MuxLive.swift's configuration properties.

  • MuxBroadcastViewController.swift provides a simple camera user interface and wraps MuxLive.swift, providing examples on how to use MuxLive.swift directly (if that is preferred).

Integration

If you'd like to integrate these components into your app directly (instead of using them as a reference), you can follow along with the code from the sample project's 'ViewController.swift' and install all the source files in the following ways:

# CocoaPods (not current supported! maybe? we have to figure that out.)

pod "MuxLive", "~> 0.0.1"

# Carthage

github "muxinc/example-ios-live-streaming" ~> 0.0.1

# Swift PM

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/muxinc/example-ios-live-streaming", majorVersion: 0)
    ]
)

Alternatively, you can just copy all the source files into your Xcode project.

Documentation

You can find the docs here. Documentation is generated with jazzy and hosted on GitHub-Pages.

Resources

License

example-ios-live-streaming and MuxLive are available under the MIT license, see the LICENSE file for more information.