Home Features Docs Blog Support GitHub

Where can I find media type constants


(Sameh Mahmoud) #1

Hi,
I’m trying to get a permission to the device camera using the function AVCaptureDevice.requestAccessForMediaTypeCompletionHandler but I couldn’t find the constant “AVMediaTypeVideo” nor any constant listed here

thanks


(Roland Vigh - Migeran) #2

Hi!

Are you need AVFoundation java class.

String mediaTypeVideo = AVFoundation.AVMediaTypeVideo();

Best Regards,
Roland


(Sameh Mahmoud) #3

thanks bro, this is what i need