L47 Audio Player for Google Drive

Description

L47 Audio Player for Google Drive allows you to embed audio files hosted on Google Drive directly into WordPress posts and pages using a simple shortcode.

The plugin connects to the Google Drive API v3 to retrieve and stream the audio file. A built-in server-side download proxy is included so that your API Key is never exposed to visitors — download links are generated by your own WordPress server.

Features

  • Custom audio player with dark mode support (glassmorphism skin).
  • Shortcode-based: [l47ap_audio id="FILE_ID"].
  • Configurable download button: proxy (recommended), direct Google Drive link, or disabled.
  • Fallback to native Google Drive player (iframe) if the audio stream is unavailable.
  • Settings panel to configure your API Key, player skin, timeout, and custom CSS.
  • Assets (CSS/JS) are only loaded on pages where the shortcode is used.

External Services

This plugin connects to the Google Drive API, a third-party external service provided by Google LLC.

What is it and what is it used for?
The Google Drive API v3 is used to:

  1. Retrieve audio file metadata (file name, MIME type) for the file ID specified in the shortcode.
  2. Stream the audio file content to the visitor’s browser for playback.
  3. Serve secure file downloads via a server-side proxy (when the proxy download mode is enabled in the settings).

What data is sent and when?
The following data is sent to Google’s servers whenever a visitor loads a page containing the [l47ap_audio] shortcode and the audio is played or a proxy download is triggered:

  • The Google Drive File ID (a non-personal, public identifier that you provide in the shortcode).
  • Your Google Drive API Key (sent server-to-server only; never exposed to front-end visitors when using proxy mode).
  • A Referer HTTP header containing your site’s home URL.

No visitor personal data (IP address, cookies, user accounts, etc.) is sent to Google by this plugin.

Links:
Google Drive API documentation
Google Terms of Service
Google Privacy Policy

Screenshots

  • Settings panel with API Key, skin and download mode options.
  • Audio player with playback controls, volume slider, speed selector and download button.

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‚Plugins‘ menu in WordPress.
  3. Go to Settings > L47 Audio Player to configure your Google Drive API Key.
  4. Insert the shortcode [l47ap_audio id="FILE_ID"] in any post or page.

FAQ

Where do I get the Google Drive API Key?

Create a project in the Google Cloud Console, enable the «Google Drive API», and create an «API Key» credential. It is recommended to restrict the key to your server’s IP address.

Do the files need to be public?

Yes. The file sharing permission in Google Drive must be set to «Anyone with the link» so the player can access the content.

Does the plugin use my server’s bandwidth for streaming?

Playback (streaming) occurs directly from Google’s servers. Only the optional Proxy download mode routes traffic through your server — this protects your API Key from being exposed to visitors.

Does this plugin track users or collect personal data?

No. The plugin does not collect, store, or transmit any personal data about visitors. The only external requests made are to the Google Drive API to retrieve audio file metadata and content. No visitor data is included in these requests.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“L47 Audio Player for Google Drive” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.5.0

  • Fix: Replaced WP_Filesystem file-reading block with readfile() + wp_delete_file(). Eliminates the prohibited require_once ABSPATH call and streams audio directly to output without loading the entire file into memory.

1.3.0

  • Compliance: Removed arbitrary custom CSS field (no longer permitted by WordPress.org guidelines).
  • Compliance: Removed direct require_once of WordPress core HTTP file.
  • Compliance: Renamed main plugin file to match the plugin slug (l47-audio-player-for-google-drive.php).
  • Compliance: Translated all Settings API label strings to English as required by Plugin Check.
  • Compliance: Renamed include files from class-dap-* to class-l47ap-* to fully align with the l47ap prefix standard.

1.2.0

  • Compliance: Renamed plugin and slug to comply with WordPress.org Plugin Directory Guidelines.
  • Compliance: Updated all code prefixes to l47ap_ / L47AP_ for functions, classes, options and registered names.
  • Documentation: Added External Services section describing Google Drive API usage, data sent and privacy links.
  • Documentation: Rewrote description to remove promotional language.
  • Documentation: Updated Contributors field to reflect the WordPress.org account of the plugin owner.

1.1.0

  • Improvement: New design with glassmorphism skin.
  • Improvement: Integrated SVG icons.
  • Security: Refined download proxy with nonce validation and WP_Filesystem usage.
  • Internationalization: Full i18n support.

1.0.0

  • Initial release.