Skip to main content

CodecProbe

Trait CodecProbe 

Source
pub trait CodecProbe {
    // Required method
    fn plays(&self, codec: &str) -> bool;
}
Expand description

A device’s player, asked about an RFC 6381 codec string (ClientCapabilities::probe): VideoToolbox and AVURLAsset, MediaCodecList, GStreamer. Any Fn(&str) -> bool is one.

Required Methods§

Source

fn plays(&self, codec: &str) -> bool

Whether it plays MP4 video of codec string codec.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Fn(&str) -> bool> CodecProbe for F