Commit Graph

9 Commits

Author SHA1 Message Date
Oystein Kristoffer Tveit 650507e680
add support for parsing playlists as events + more
This brings several changes with it:

- `Mpv::get_property` now returns `Option`s in case `data` is
  nonexistent. There could be cases where this is different from
  `MpvDataType::Null` and `MpvDataType::MinusOne`.

- `MpvError` now implements `PartialEq`
2024-05-04 18:45:32 +02:00
Oystein Kristoffer Tveit 2ed8025046
fix examples and documentation
Build and test / check (pull_request) Successful in 1m58s Details
Build and test / build (pull_request) Successful in 1m59s Details
Build and test / docs (pull_request) Successful in 2m44s Details
Build and test / test (pull_request) Successful in 3m19s Details
Build and test / build (push) Successful in 1m56s Details
Build and test / check (push) Successful in 1m50s Details
Build and test / docs (push) Successful in 2m45s Details
Build and test / test (push) Successful in 3m29s Details
2024-05-04 00:23:02 +02:00
Oystein Kristoffer Tveit cb0921144d
rework error messages 2024-05-03 22:29:25 +02:00
Oystein Kristoffer Tveit 3be7b2bda6
cargo fmt + clippy
Build and test / check (push) Successful in 1m55s Details
Build and test / build (push) Successful in 1m59s Details
Build and test / test (push) Successful in 2m30s Details
2024-04-30 02:13:57 +02:00
Oystein Kristoffer Tveit 75645c5880
api: move highlevel functions into extension 2024-04-30 02:07:08 +02:00
Oystein Kristoffer Tveit deb45a4570
Make entire project async
This moves all communication with Mpv's unix socket into another tokio
task, and uses message passing through clonable mpsc channels to receive
commands to execute, and to send responses.
2024-04-19 00:59:22 +02:00
Jonas Frei 1c9e32671e Updated examples to use adapted observe command 2022-07-10 15:32:04 +02:00
Emmanuel Gil Peyrot b0a62f25eb Run rustfmt on the entire crate 2019-06-19 00:51:11 +02:00
Emmanuel Gil Peyrot bd18199bad Add a very simple example fetching properties 2019-06-18 23:02:39 +02:00