Skip to content

Right-click on a track asks the host for its menu, and the host answers with audio by URL - #8

Merged
danieljtrujillo merged 1 commit into
gantasmo:mainfrom
danieljtrujillo:sway-track-menu
Sep 18, 2026
Merged

danieljtrujillo merged 1 commit into
gantasmo:mainfrom
danieljtrujillo:sway-track-menu

Conversation

@danieljtrujillo

Copy link
Copy Markdown
Collaborator

A track's head or lane right-clicked inside a host posts sway/track-menu (trackId, name, empty, x, y) and the host opens its own menu there: its library, a file on the computer, a link. The host answers with sway/load-audio (trackId, path, name, at), where path is a URL the host serves. The browser bridge fetches URL media as is and reports it present, so it survives a reload as long as the host serves it. importAudio takes { path, name } entries so the host's title names the media, and an empty track takes the file's name as a new track would. Cap: host-track-menu.

…rs with audio by URL

A track's head or lane right-clicked inside a host posts sway/track-menu
(trackId, name, empty, x, y) and the host opens its own menu there: its
library, a file on the computer, a link. The host answers with
sway/load-audio (trackId, path, name, at), where path is a URL the host
serves. The browser bridge fetches URL media as is and reports it present,
so it survives a reload as long as the host serves it. importAudio takes
{ path, name } entries so the host's title names the media, and an empty
track takes the file's name as a new track would. Cap: host-track-menu.
Copilot AI lite review requested due to automatic review settings September 18, 2026 07:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@danieljtrujillo
danieljtrujillo merged commit 36e2950 into gantasmo:main Sep 18, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants