Uploads a video or audio file for FluentPlayer playback and returns the media record with the settings the player needs.
Send media_kind as video or audio; audio uploads additionally require the enable_audio player setting. The size limit is 300 MB by default and adjustable by filter, and the accepted MIME types come from the FluentPlayer settings.
Endpoint
Method:
POSTPath:
/fluent-player/video-uploadEdition: Core
Controller:
MediaController@uploadVideoRoute source:
fluent-community/Modules/Integrations/FluentPlayer/Http/player_api.php:13Controller source:
fluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.phpRequires a signed-in user, the FluentPlayer plugin to be active, and the
video_uploadplayer setting to be on.Who may upload is governed by the
video_upload_roleplayer setting — community admins only, admins and moderators, or everyone.
Reconstructed sample
This endpoint belongs to a module that is not active on the reference install (or needs a file upload), so the payload below was reconstructed by reading the controller rather than recorded. Field names and types follow the source; values are illustrative.
POST Upload Video
Uploads a video or audio file for FluentPlayer playback and returns the media record with the settings the player needs.
Controller: MediaController@uploadVideo
Route source: fluent-community/Modules/Integrations/FluentPlayer/Http/player_api.php:13
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
"binary"Responses
Successful response