Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noson cli: problems with PLAYURL #208

Open
RanTalbott opened this issue Oct 4, 2023 · 1 comment
Open

noson cli: problems with PLAYURL #208

RanTalbott opened this issue Oct 4, 2023 · 1 comment

Comments

@RanTalbott
Copy link

PLAYURL appears to work correctly for .flac files. It would be nice to have a QUEUEURL command, though. I don't see tags, but they don't have any because I made them by using ffmpeg to do a format conversion from the oggs that I usually use for PC playing.

For mp3 files, it uses the x-rincon-mp3radio protocol instead of http. It transfers the file, but doesn't show the duration or the tags, and the file plays continuously until STOPped or replaced by another PLAYURL.

For oggs, it also uses x-rincon-mp3radio. The files don't play, and the status of the player status is ERROR_NO_PLAYABLE_CONTENT. I suspect this is because the mp3radio protocol driver is trying to interpret the ogg as an mp3, but that's only a guess based on the name. Playing the same files through the GUI works correctly, including having the duration and tags show up in the response to a cli STATUS command. Sonos online docs say they support ogg and mp3 via HTTP, but don't say whether they interpret the tags. But "no tags" would definitely be an improvement over "no sound". ;-)

If you tell me where the protocol gets assigned, I can try a patch to see whether it cures the problem.

@janbar
Copy link
Owner

janbar commented Oct 4, 2023

It doesn't need a patch because the noson gui handles that already.
The playurl from cli is first intented to play a radio stream. The sample I explained before was made to demonstrate how this app works. But the Sonos device needs more meta than a simple url to play a media.
Look in the code of the file player.cpp.

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

No branches or pull requests

2 participants