INTERACT FORUM

Please login or register.

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

Author Topic: PlayByFilename accepts a URL?  (Read 226 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3967
PlayByFilename accepts a URL?
« on: January 08, 2024, 03:40:04 pm »

this call works just fine

/MCWS/v1/Playback/PlayByFilename?Filenames=http://dreamsiteradiocp4.com:8046/stream

is this working by accident or PlayByFilename deliberately supports playback of arbitrary URLs?

this is actually a nice feature to have though I'd suggest it should be a different api call, i.e. something like PlayURL and don't allow PlayByFilename to do that as it's fairly surprising behaviour :)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41976
  • Shoes gone again!
Re: PlayByFilename accepts a URL?
« Reply #1 on: January 08, 2024, 03:42:17 pm »

It just adds the filenames you pass to the array of files.  A URL is a filename.
Logged
Matt Ashland, JRiver Media Center

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3967
Re: PlayByFilename accepts a URL?
« Reply #2 on: January 08, 2024, 03:46:54 pm »

is that (a URL is a filename) technically correct? doesn't really matter but seems wrong to me

anyway perhaps expand the statement in the MCWS doc to make it clear what this accepts
Logged
Pages: [1]   Go Up