How to play a raw h264 stream??
I'm trying to execute a binary using Process/NSTask on MacOS and then play the raw video output to the user using VLCKit. Is this possible?
Something along the lines of the following doesn't seem to work:
let task = Process() task.launchPath = "binary" task.arguments = [...] let adOutput = Pipe() task.standardOutput = adOutput task.standardError = adOutput task.launch() let data = adOutput.fileHandleForReading.readDataToEndOfFile() player.media = VLCMedia(stream: InputStream(data: data)) player.play()
I appreciate this isn't a very encouraging issue but I don't know where else to look?