| 开发者 | fastpix |
|---|---|
| 更新时间 | 2026年9月29日 21:24 |
| PHP版本: | 8.3 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[fastpix id="…"] shortcodedo_shortcode()). The only required attribute is the media ID; everything else tunes the player.
[fastpix id="abc123" autoplay muted accentcolour="#0055FF" starttime="30"]
Common attributes: autoplay, muted, loop, controls, chapters, transcript, captionsdefault, lazyload, accentcolour, poster, starttime, aspectratio. On lesson videos, complete_at sets the watched-percentage that counts as complete and track_viewer records who watched. For a live stream, use [fastpix streamid="…"].
LMS completion hook - use fastpix_video_completed to run your own logic the moment a student finishes a lesson video (award points, send an email, unlock the next module). It fires once, before the LMS credits the lesson:
add_action('fastpix_video_completed', function ($video_id, $user_id, $post_id) { /* your code */ }, 10, 3);
To stop the plugin crediting the lesson automatically and do it yourself, return false from fastpix_lms_auto_complete:
add_filter('fastpix_lms_auto_complete', '__return_false');
Webhooks - FastPix notifies your site through signed webhooks the moment a video finishes processing, a subtitle track is ready, or a live stream changes state, so your library stays in sync without polling. Set the webhook URL and signing secret during setup (see Installation), and every event is verified with an HMAC-SHA256 signature.
Other hooks - filters let you change behaviour without touching the plugin: fastpix_feature_live (turn live streaming on), fastpix_completion_threshold (default watched-percentage for completion), fastpix_lesson_post_types (treat custom post types as lessons), fastpix_structured_data (edit the VideoObject JSON-LD before output). Actions let you react to events: fastpix_media_ready (a video finished processing), fastpix_connected (a workspace was connected). Example - turn live streaming on:
add_filter('fastpix_feature_live', '__return_true');
WP-CLI - manage large libraries and automate maintenance from the terminal or a cron job: wp fastpix status (check the connection, schema and queue), wp fastpix sync (pull in new videos now), wp fastpix reindex (rebuild the transcript search index), wp fastpix doctor (re-run the activation checks when something looks wrong), and more.
Full reference for every setting, capability, hook and command: https://fastpix.com/docs/integrations/wordpress-settings-and-reference
Learn more
New to hosting video on WordPress? Start with our guide to the best video hosting for WordPress in 2026, see how to add video to WordPress without YouTube, and compare the field in the best WordPress video player plugins in 2026.
If you sell or gate content, read how protecting paid video on WordPress with signed URLs and DRM works, and if you run an LMS, see video hosting for LearnDash, Tutor LMS, LifterLMS and LearnPress. Going live is covered in live streaming from WordPress with RTMPS and SRT.
Already have a library? Learn about moving a WordPress Media Library off your server, keeping hero and background video from wrecking your LCP, and what video analytics in WordPress can tell you that a simple view counter cannot.
wp fastpix doctor.
2. Get your FastPix credentials
[fastpix id="…"] shortcode.Hosting large video files on your own web server slows the site and has no adaptive streaming. A video hosting plugin like FastPix uploads your video to a dedicated video platform, encodes it to adaptive-bitrate HLS, and streams it from a multi-CDN network, while you manage everything from the WordPress dashboard.
Yes. The plugin is free and open source (GPLv2 or later), and it connects WordPress to your FastPix account, which hosts, encodes and delivers your video. Create one at https://dashboard.fastpix.io/signup.
Add the FastPix Video Gutenberg block and pick a video from your library, or paste the [fastpix id="…"] shortcode into any post or page. Both render at view time and share the same player options.
Yes. Videos can be public, private (short-lived signed tokens), or DRM-protected. Access is tied to the posts that embed the video, so a private video only plays on a page the visitor is allowed to read.
Yes. FastPix encodes every upload to adaptive-bitrate HLS, so playback adjusts to each viewer's connection instead of serving one fixed file.
Public videos emit VideoObject structured data (JSON-LD) automatically, which makes them eligible for video rich results in Google search. Structured data is never emitted for private or DRM video.
Yes - LearnDash, Tutor LMS, LifterLMS and LearnPress. A lesson is only marked complete when the student actually watches the video (skipping to the end does not count), lesson credit is automatic, and the Analytics screen shows per-course student progress.
Yes. Create an RTMPS or SRT stream, embed it with [fastpix streamid="…"], and one embed handles the waiting card, the live player and the recording.
Common video formats (MP4, MOV, AVI, MKV, WMV, WebM, and more) and audio (MP3, WAV, AAC, M4A, OGG), up to 8 hours per file. Uploads are resumable in 5 MB chunks.
Deactivating deletes nothing: published embeds fall back to a saved poster and link, and reactivating restores them. Uninstalling keeps local data by default; video stored on FastPix is never deleted by the plugin.
Yes, per site. Activate it on each site individually; each site keeps its own connection, library and capabilities.
[fastpix id="…"] shortcode with a shared renderer and per-embed options.