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

[16.0][IMP] web_notify:t3894 Allow notify with sound #2923

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

GabbasovDinar
Copy link
Member

@GabbasovDinar GabbasovDinar commented Aug 28, 2024

These changes allow you to send notifications with an audible alarm.

@GabbasovDinar GabbasovDinar changed the title [IMP] web_notify:t3894 Allow notify with sound [16.0][IMP] web_notify:t3894 Allow notify with sound Aug 28, 2024
@GabbasovDinar GabbasovDinar force-pushed the 16.0-t3894-web_notify-sound-on-notification branch from e1ca00d to d8630d6 Compare October 8, 2024 12:11
Copy link
Member

@ivs-cetmix ivs-cetmix left a comment

Choose a reason for hiding this comment

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

Functional review LGTM

* specified settings like volume and looping. It also provides the ability
* to trigger actions when the audio playback ends.
*/
export class AudioPlayer extends Component {
Copy link
Member

Choose a reason for hiding this comment

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

Why not using a service like SoundEffects

Copy link
Member Author

Choose a reason for hiding this comment

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

@chienandalu

this service is limited to predefined sound effect settings and does not allow you to specify a link to any sound. In my case, only the sound effect link is passed for playback, which allows any sound to be dynamically played back

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I mean, you can take inspiration in that code to implement your own sound service, resulting in a simpler impletation

Copy link
Member Author

Choose a reason for hiding this comment

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

@chienandalu I was already inspired by this effect to write the current solution :-)

@GabbasovDinar GabbasovDinar force-pushed the 16.0-t3894-web_notify-sound-on-notification branch from d8630d6 to 77e3a53 Compare October 15, 2024 07:40
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.

3 participants