Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Seek position units #15

Closed
david-luksch-nangu opened this issue Jul 9, 2018 · 0 comments
Closed

Seek position units #15

david-luksch-nangu opened this issue Jul 9, 2018 · 0 comments

Comments

@david-luksch-nangu
Copy link

According to OCast protocol v1.9, seek command has a position in ms as a param, but message like this:

{
  "dst": "browser",
  "src": "786e152b-48cb-4907-b1d4-7086e45369f4",
  "type": "command",
  "id": 10,
  "message": {
    "service": "org.ocast.media",
    "data": {
      "name": "seek",
      "params": {
        "position": 25122
      }
    }
  }
}

ends up with player seeking to the end of a 15 minutes long video. But dividing by 1000 it starts to work as expected:

{
  "dst": "browser",
  "src": "bb595f99-c76d-4a28-96c4-568cd6635898",
  "type": "command",
  "id": 2,
  "message": {
    "service": "org.ocast.media",
    "data": {
      "name": "seek",
      "params": {
        "position": 25
      }
    }
  }
}

Has there been a change to the protocol (and therefore seek taking position in seconds is correct) or is it a bug?

Thank you,
David

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants