Proposal [Rest API] Add audio and subtitle track selection options to video playback calls

Discussion in 'General Development' started by RasterEyes, Jan 12, 2025.

Tags:
  1. RasterEyes

    RasterEyes Member

    Relative to this other thread of mine, about starting up a video with preselected audio and subtitle tracks, I propose that these API calls:

    GET /ZidooPoster/PlayVideo?id=[id]&type=[0/1]
    GET /ZidooFileControl/openFile?path=
    [path]&videoplaymode=[0/1]

    ...be extended as follows:

    GET /ZidooPoster/PlayVideo?id=[id]&type=[0/1]&audio=[AI]&subtitle=[SI]
    GET /ZidooFileControl/openFile?path=
    [path]&videoplaymode=[0/1]&audio=[AI]&subtitle=[SI]

    ...where the audio and subtitle parameters are, of course, optional, AI is a 0-based index into available audio tracks, and SI is 0 for no subtitles, or a 1-based index into available subtitle tracks.
     

Share This Page