horita-yuya / BroadcastScratch

Sample of VideoCast-Swift and HaishinKit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BroadcastScratch

Sample of VideoCast-Swift and HaishinKit.

Preparation

Overview

Steps

2 Install VLC Player.

3 Build this project, setting your local rtmp server ip address. In my case,

struct Config {
    private static let ip: String = "172.22.179.179"
    static let streamUrl: String = "rtmp://\(ip)/live"
    static let streamKey: String = "BJHW9L9LE"
}

4 Launch local rtmp server and start broadcasting using VideoCast-Swift or HaishinKit.

Not connecting status

Connecting status

5 Play via VLC

⚠️ Of course, your iOS device and macos local server must be in same network.

Setup

bundle install
bundle exec pod install

About

Sample of VideoCast-Swift and HaishinKit.


Languages

Language:Swift 71.9%Language:Ruby 21.3%Language:Metal 6.8%