Commit Graph
9 Commits
Author SHA1 Message Date
zutroy97 0e37b5adcf Reverted back track_id as hex string 2026-07-05 17:45:24 -05:00
zutroy97andClaude Sonnet 5 0c946ea040 Publish and accept track_id as decimal instead of hex
Changes the mper-derived track_id published over MQTT from hex to
decimal, and updates queue_next to embed the value in the DACP
persistentid query without a 0x prefix, matching the new format.
Queueing behavior (command=add&mode=3) is unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 07:55:01 -05:00
zutroy97andClaude Sonnet 5 6531f0ef5d Fix build: restore stop_play() for MQTT disconnect command
An unrelated change in a prior commit swapped stop_play() for
release_play_lock(NULL), which isn't declared in rtsp.h and broke
the build with an implicit-declaration error.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-03 21:57:25 -05:00
Scott Simon f6e2c6f252 Remove commented-out code from mqtt.c 2026-07-03 15:37:27 -05:00
Scott SimonandClaude Sonnet 5 1fbb6312f6 Fix byte order of track_id published over MQTT
The 'mper' handler cast the raw big-endian persistent-id bytes directly
to a host-native uint64_t, which reverses the value on little-endian
hosts (e.g. Raspberry Pi). metadata_hub.c already reconstructs the same
field correctly by applying ntohl() to each 32-bit half; mqtt.c now does
the same, so the published track_id matches the real dmap.persistentid
and can be used directly with the queue_next command.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-03 15:37:27 -05:00
Scott SimonandClaude Sonnet 5 b6a5a07df5 Add test track_id reference notes to mqtt.c
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-03 15:37:27 -05:00
Scott Simon 790752499c Fix command format in MQTT queue_next function 2026-07-03 15:36:43 -05:00
Scott Simon bac7a7b4c8 Update MQTT command for queue_next functionality 2026-07-03 15:36:43 -05:00
Scott SimonandClaude Sonnet 5 dfad96df7b Add queue_next MQTT remote command to enqueue a track by persistent ID
Sends ctrl-int/1/cue?command=add&query='dmap.persistentid:0x<id>'&mode=3
to the DACP source, where <id> is the hex track_id string taken directly
from the MQTT payload after "queue_next ".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-03 15:36:43 -05:00