mpvipc_async

Function parse_property

Source
pub fn parse_property(
    name: &str,
    data: Option<MpvDataType>,
) -> Result<Property, MpvError>
Expand description

Parse a highlevel Property object from mpv data.

This is intended to be used with the data field of Event::PropertyChange and the response from Mpv::get_property_value().