Jump to content

New SeekRelative remote control command


Luke

Recommended Posts

This is being added to PlayStateCommands. The signature and params are identical to Seek, except that the value passed in should be interpreted as being relative to the current playing position.

This is very easy to add support for. Just put it next to wherever you're receiving the seek command. For example:

        else if (msg.Data.Command === 'Seek') {
            playbackManager.seek(msg.Data.SeekPositionTicks);
        }
        else if (msg.Data.Command === 'SeekRelative') {
            playbackManager.seekRelative(msg.Data.SeekPositionTicks);
        }

@TeamB@quickmic@ebr

Link to comment
Share on other sites

TeamB

so this is like a skip forwards or backwards by x

how can i test this? which clients can send it and how?

Link to comment
Share on other sites

Just now, TeamB said:

so this is like a skip forwards or backwards by x

how can i test this? which clients can send it and how?

Once 4.8.0.35 is up, you can test using the dedicated buttons for skipping forward and back in the video player. Previously the client would just try to calculate the final position based on the most recent data that it had.

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...