docs.rs failed to build libobs-sources-2.0.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
libOBS Sources
This crate makes it really easy to create new sources for OBS Studio using the libobs-wrapper crate.
Example
let rec_file = from_relative.build;
let path_out = from;
// Start the OBS context
let startup_info = default;
// You can also create use a logger to log to a file
// let _l = DebugLogger { f: File::create(current_dir().unwrap().join("obs.log")).unwrap() };
// startup_info = startup_info.set_logger(Box::new(_l));
let mut context = new.unwrap;
// Set up output to ./recording.mp4
let mut output_settings = new;
output_settings.set_string;
let output_name = "output";
let output_info = new;
let mut output = context.output.unwrap;
// Register the video encoder
let mut video_settings = new;
video_settings
.set_int
.set_bool
.set_bool
.set_string
.set_string
.set_string
.set_int;
let encoders = get_available_video_encoders;
println!;
let encoder = encoders.iter.find.unwrap;
println!;
let video_info = new;
let video_handler = get_video_ptr.unwrap;
output.video_encoder.unwrap;
// Register the audio encoder
let mut audio_settings = new;
audio_settings.set_int;
let audio_info =
new;
let audio_handler = get_audio_ptr.unwrap;
output.audio_encoder.unwrap;
let mut scene = context.scene;
let monitor = get_monitors.unwrap.clone;
println!;
let mut capture_source = new
.set_monitor
.add_to_scene
.unwrap;
scene.add_and_set;
output.start.unwrap;
println!;
sleep;
println!;
output.stop.unwrap;
// And now your monitor is recorded to ./recording.mp4 !