HLS streaming from iOS device #1071
Unanswered
zDILIGENCEz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have set a HKView which have to start HLS streaming.
let previewView: HKView = {
let view = HKView()
let httpStream = HTTPStream()
httpStream.attachCamera(DeviceUtil.device(withPosition: .back))
httpStream.publish("video-stream")
view.videoGravity = AVLayerVideoGravity.resizeAspectFill
view.attachStream(httpStream)
let httpService = HLSService(domain: (Defaults[.baseUrl]), type: HTTPService.type, name: "", port: HTTPService.defaultPort)
httpService.startRunning()
httpService.addHTTPStream(httpStream)
return view
}()
The output in console for me is:
2022-26-09 15:23:01.476 [Info] [com.haishinkit.HaishinKit] [AVVideoIOUnit.swift:91] fps > (fps: 30.0, duration: __C.CMTime(value: 100, timescale: 3000, flags: __C.CMTimeFlags(rawValue: 1), epoch: 0))
The link I am trying to connect looks like https://server.ip/video-stream/playlist.m3u8
Beta Was this translation helpful? Give feedback.
All reactions