Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(BREAKING) Update core to latest revision #66

Merged
merged 12 commits into from
Dec 17, 2024
Merged
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ message ActionPlayer {
oneof args {
stremio.core.models.Player.VideoParams video_params_changed = 1;
stremio.core.models.Player.StreamState stream_state_changed = 2;
PlayerItemState time_changed = 3;
bool paused_changed = 4;
google.protobuf.Empty next_video = 5;
google.protobuf.Empty ended = 6;
PlayerItemState seek_action = 3;
PlayerItemState time_changed = 4;
bool paused_changed = 5;
google.protobuf.Empty next_video = 6;
google.protobuf.Empty ended = 7;
}

message PlayerItemState {
Expand Down
7 changes: 7 additions & 0 deletions stremio-core-protobuf/src/bridge/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ impl FromProtobuf<Action> for runtime::Action {
state: stream_state.from_protobuf(),
})
}
Some(action_player::Args::SeekAction(seek_state)) => {
Action::Player(ActionPlayer::Seek {
time: seek_state.time,
duration: seek_state.duration,
device: seek_state.device.to_owned(),
})
}
Some(action_player::Args::TimeChanged(item_state)) => {
Action::Player(ActionPlayer::TimeChanged {
time: item_state.time,
Expand Down
Loading