INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: PlayByFilename?Location=-1 instead of clear playlist + add track  (Read 1483 times)

prahl

  • Recent member
  • *
  • Posts: 12

if call the following requests in this order, I get a wrong result.
1) ClearPlaylist: http://localhost:52199/MCWS/v1/Playback/ClearPlaylist
2) Add a track:  http://localhost:52199/MCWS/v1/Playback/PlayByFilename?Location=End&Filenames=A_TRACK
3) ClearPlaylist: http://localhost:52199/MCWS/v1/Playback/ClearPlaylist
4) Add a track:  http://localhost:52199/MCWS/v1/Playback/PlayByFilename?Location=End&Filenames=A_TRACK

I would expect a playlist with one track, but I have a playlist with 2 tracks. It seems that 3) is ignored.

The following solved the problem:
1) ClearPlaylist+Add a track: http://localhost:52199/MCWS/v1/Playback/PlayByFilename?Location=-1&Filenames=A_TRACK
2) ClearPlaylist+Add a track: http://localhost:52199/MCWS/v1/Playback/PlayByFilename?Location=-1&Filenames=A_TRACK

Now I have a playlist with one track only.

With "Location=-1" the playlist is cleared faster.
Do you have any ideas why this is happening?
Logged
Pages: [1]   Go Up