c# - Custom Video and Audio Settings -
i want make audio/video settings window existing in skype, allow user select devices used in calls , test them, have 2 problems:|
- how availabe audio/video devices.
- i want test these devices following:
- mic: display bar based on input voice (same skype audio setting).
- camera: view preview selected camera (same skype setting).
- speaker: button play audio file.
i found solution #1 using microsoft expression encoder following:
var viddevices = encoderdevices.finddevices(encoderdevicetype.video); var auddevices = encoderdevices.finddevices(encoderdevicetype.audio);
this require add microsoft expression encoder increase size of our program, think there should native way communicate audio/video devices without need of external libraries.
part 1. non-trivial .net. need integrate direct show , com this, or possibly use wmi queries. however, giant pain in ass. documentation @sheridan provided great starting point. piece of advice, there other frameworks libvlc , gstreamer sort of thing you. try looking @ dshowvideosrc
, dshowaudiosrc
code gstreamer , see exact direct-show code need.
part 2. have implement yourself. may lucky on display part there directx filter can plug in media graph handle heavy lifting you. viewing of camera isn't bad, need window handle pass media graph. playing audio easy once have media graph built.
i know doesn't seem of answer, not can give full solution on via medium. have 2 options, learn directx, dshow, , com. or, find framework abstracts of away such gstreamer or libvlc.
Comments
Post a Comment