Skip to content

feat: audio playback on scenario#406

Merged
glybrio merged 2 commits into
masterfrom
vps-25-scenario-audio-implementation
May 21, 2026
Merged

feat: audio playback on scenario#406
glybrio merged 2 commits into
masterfrom
vps-25-scenario-audio-implementation

Conversation

@harbassan
Copy link
Copy Markdown
Contributor

@harbassan harbassan commented May 20, 2026

Issue

Very basic audio implementation for the PlayScenarioPage does not exist.

Solution

The audios attached to the scene will now play, once the user has enabled audio for the scenario. This explicit enable is required due to browser laws, which are there to protect the user from unwanted playback. After the enable the rest of the scenario will autoplay audios.

Risk

I did this very hastily and just did basic testing. It does work but it is probably not the most efficient way to do this.

Checklist

  • Acceptance criteria met
  • Continuous integration build passing

@linear
Copy link
Copy Markdown

linear Bot commented May 20, 2026

VPS-25

@harbassan harbassan marked this pull request as ready for review May 21, 2026 02:44
@harbassan harbassan force-pushed the vps-25-scenario-audio-implementation branch from d7e52ba to edc1ad7 Compare May 21, 2026 02:46
@harbassan harbassan force-pushed the vps-25-scenario-audio-implementation branch from edc1ad7 to 60bb335 Compare May 21, 2026 03:00
@harbassan harbassan force-pushed the vps-25-scenario-audio-implementation branch from 60bb335 to 5f39268 Compare May 21, 2026 03:03
Copy link
Copy Markdown
Contributor

@hazikchaudhry hazikchaudhry left a comment

Choose a reason for hiding this comment

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

looks good 👨‍💻

</div>
)}
{!audioAllowed && (
<div className="absolute top-4 left-4 z-30">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not familiar with this part of the code, why is there a z-30 here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think to make sure its always on top when it comes to elements on the screen, but yea not the best way. I approved incase we want this for the milestone

@br-Chan
Copy link
Copy Markdown

br-Chan commented May 21, 2026

I did this very hastily and just did basic testing. It does work but it is probably not the most efficient way to do this.

I just read this, haha. Sounds good, and I suppose if you want to come back later and improve it then just make a note of it so we don't forget, otherwise LGTM

Copy link
Copy Markdown
Contributor

@glybrio glybrio left a comment

Choose a reason for hiding this comment

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

good for demo today

@glybrio glybrio merged commit 3ef2b7d into master May 21, 2026
1 check passed
@glybrio glybrio deleted the vps-25-scenario-audio-implementation branch May 21, 2026 04:07
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.

4 participants