Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion live-demo/Controllers/TestViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TestViewController: UIViewController, FFLiveKitDelegate {

let cameraSource = CameraSource(position: .front, preset: .hd1280x720)
let microphoneSource = MicrophoneSource()
let httpSource = FileSource(url: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4")
let fileSource = FileSource(filetype: "rtsp", url: "rtsp://192.168.1.100:8554/mystream1")
let ffLiveKit = FFLiveKit()
var isRecording = false

Expand Down
4 changes: 2 additions & 2 deletions live-demo/Source/IO/FileSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import Foundation
class FileSource: Source {
let path: String

init(url: String) {
init(filetype: String, url: String) {
self.path = url
super.init(fileType: "mp4")
super.init(fileType: filetype)
}
}