Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does AVMediaTypeMuxed mean?

Tags:

ios

Simple question: what does AVMediaTypeMuxed mean?

I'm looking at some sample code (below) and it doesn't return anything on my iPad 2. So is AVMediaTypeMuxed a device media type that only exists on the iPhone?

AVCaptureDevice *muxedDevice = [AVCaptureDevice defaultDeviceWithMediaType: AVMediaTypeMuxed];
if (muxedDevice) {
    NSLog (@"got muxedDevice");
    AVCaptureDeviceInput *muxedInput = [AVCaptureDeviceInput deviceInputWithDevice:muxedDevice
                                                                             error:&setUpError];
    if (muxedInput) {
        [captureSession addInput:muxedInput];
    }
}
like image 932
spring Avatar asked Apr 18 '12 00:04

spring


1 Answers

mux is a shortened version of multiplex; muxed media is therefore media where multiple streams have been combined together into a single stream — usually that means audio and video streams are combined into a single byte stream.

I would therefore be unsurprised if there's no default multiplexed media output device, as Apple may simply have decided that the default inputs are the cameras and the microphone separately.

like image 177
Tommy Avatar answered Oct 17 '22 10:10

Tommy