Play Audio Once

Apraksts

Adds the option to prevent an audio file from being played multiple times. You can set the option for the complete website
or restrict the audio files only for specific files added from you in your editor.

In the frontend, the option, if activated, is executed on the audio file if the visitor’s browser has JavaScript activated. That an audio file was played is saved in the browser session – not as a cookie. The storage takes place at the moment of playback, which means that it is no longer possible to rewind or fast-forward. The user is not offered an option to reset.

Supported editors

The plugin actually supports following editors:

  • Block Editor
  • Multiple plugins, which adds audio widget in Elementor

GitHub

The source-code of this plugin is hosted on GitHub.

Uzstādīšana

  1. Upload “play-audio-once” to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Choose the newly added option on any audio-block in your project.

Atsauksmes

26 aprīlis, 2026
This is a an excellent single-use plugin that enhances the audio player block for a special use case: you want to play all the way through a recording one time only per user session when the block is set to autoplay. Autoplay on every page load is an annoying thing to inflict on people, so the relevant use case probably should be yours if you are using autoplay!
5 marts, 2022
I needed a way to play an mp3 clip for a student who would then answer one or more questions. It was very important that the clip could only be played once to prevent the student from playing the clip over and over again before answering the questions. This plugin does exactly that. It's incredibly easy to implement and has been "bullet proof". Thanks and thanks again!
Lasīt 2 atsauksmes

Autori un izstrādātāji

“Play Audio Once” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

“Play Audio Once” ir tulkots lokalizācijās 3. Paldies tulkotājiem par ieguldījumu.

Tulkot “Play Audio Once&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

3.0.4

  • Now requires PHP 8.2 or newer
  • Set compatibility with WordPress 7.1
  • Updated settings lib to 3.0.0
  • Enabled DataView for settings, if WordPress 7.0 or newer is used
  • Updated dependencies
  • Fixed support for “Responsive Addons for Elementor” which was not loaded
  • Fixed missing removing of our settings on uninstallation

older changes