Documentation

audio_player.php

Client-driven audio player for the reading screen.

Markup-only counterpart of MediaService::renderHtml5AudioPlayer: it carries NO per-text data (no , no data-audio-config blob). The Alpine audioPlayer component fetches GET /texts/{id}/audio on init, sets the audio source + offset + player settings, and reveals the player (x-show="hasAudio") only when the text actually has audio. This keeps read_desktop.php free of server-rendered audio data so the reader works in a bundled/offline client.

The control markup mirrors the server-rendered player exactly (same classes, bindings and icons) so styling and behavior are unchanged.

PHP version 8.1

Tags
category

Views

author

HugoFara hugo.farajallah@protonmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/developer/api
since
3.1.0

Table of Contents


        
On this page
  • Table Of Contents

Search results