Skip to content

Commit

Permalink
feat(stremio-core-protobuf): Player - SeekAction
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Nov 19, 2024
1 parent 838fd4d commit b4193dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
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

0 comments on commit b4193dc

Please sign in to comment.