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

Reset the start time of the audio on play button #31

Open
speech-utcluj opened this issue Nov 7, 2019 · 4 comments
Open

Reset the start time of the audio on play button #31

speech-utcluj opened this issue Nov 7, 2019 · 4 comments

Comments

@speech-utcluj
Copy link

Hi,

Is there a simple way to reset the starting time of each condition whenever the corresponding Play button is pressed? Meaning that I don't want the audio to resume from the last index of the previously played condition.

Thanks!

@ChromaticIsobar
Copy link

I also am experiencing this problem

@faroit
Copy link
Collaborator

faroit commented Mar 25, 2020

@speech-utcluj @ChromaticIsobar sorry for the slow response.

the play buttons in webMUSRHA are indeed have a "switching" instead of "start/stop" behavior. I am not sure if a different behavior would still validate with the ITU recommendation. Could you check that?

If you need this behavior you could copy the MushraPage and replace the calls to the MushraAudioControl.pause with stop and play....

@ChromaticIsobar
Copy link

The strongest requirement I can find in ITU BS.1534-3 is in section 5.3:

the subject is allowed to switch near instantaneously between the [...] test signals and the open reference

But at no point in the recommendation I found that, when switching, the playback system should continue from the same time-index, although I think that is the proper behaviour in the most common scenarios. But in some situations a start/stop behaviour could be better.

@faroit
Copy link
Collaborator

faroit commented May 20, 2020

@ChromaticIsobar @speech-utcluj alright, so it would make sense to implement an option that allows to switch the behaviour.

I do not have the capacity at the moment to implement such a feature myself. But feel free to open a PR

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

No branches or pull requests

3 participants