I have a typescript/javascript Tizen Web App running in a Samsung Smart TV Emulator v5.0. Using the Samsung AVPlay API. The web app plays an MPEG streaming video source from an HDHomeRun device. The video plays perfectly with sound.
The problem is, none of the playhead changing functions work. i.e seek
, jumpBackward
, jumpForward
etc. The all give me the same error "InvalidStateError: PLAYER_ERROR_INVALID_STATE" even though the state is valid "PLAYING, PAUSED or READY".
Here is a code snippet:
var state = webapis.avplay.getState();
console.log("[Player][seekBackward] state: ", state);
webapis.avplay.jumpBackward(5000, success =>
{
console.log("[Player][rewind][success]");
}, error =>
{
console.error("[Player][seekBackward]", error);
});
Here is the resulting error in the console when I call this:
Any ideas on what can I can do to get the jumpBackward
and other playhead functions to work?