2Coders integration for Mux Video

2Coders integration for Mux Video

2coders

The 2Coders integration for Mux Video is your go-to integration for WordPress, making video uploads and streaming a breeze. By seamlessly combining 2Coders integration for Mux Video with WordPress, you can supercharge your website’s video capabilities.

Our plugin empowers WordPress users of all experience levels, from content creators to website administrators, to effortlessly upload, manage, and stream videos with top-notch quality and

Key Features

  • Effortless Video Uploads and Previews: Say goodbye to video upload complications. The 2Coders integration for Mux Video offers a user-friendly interface within your WordPress dashboard, simplifying video uploads and management.
  • Optimized Video Streaming: Mux’s advanced technology ensures your videos are delivered at their best. With adaptive streaming and automatic optimization, your audience can enjoy seamless playback regardless of their connection.
  • Customizable Player: Personalize the video player to match your website’s look and feel. With customizable player themes and options, your videos seamlessly blend into your site’s design.
  • Developer-Friendly: For developers, the 2Coders integration for Mux Video offers customization and integration features, making it a perfect fit for your existing workflows.

More Features

  • Drag & Drop files with one click to upload your assets
  • Preview using Mux player
  • Manage your content
  • Hassle-free streaming – Immediate synchronization with your Mux account and Player
  • Insert videos with ease anywhere through shortcodes
  • Easily edit entry data – Preview video, add title, description and cover
  • Custom stream domains – Stream videos using Mux with the domain of your choice
  • Secure video streaming – Protected streaming using signed URLs

Compatible with your favorite themes, page builders and plugins

No matter what theme or plugins you use, 2Coders integration for Mux Video has you covered. Check out just a few of the popular products Smush is working with to help make your site faster and more efficient:

Service Information

Mux Service: https://www.mux.com/
Terms of Use: https://www.mux.com/terms
Privacy Policy: https://www.mux.com/privacy

3rd Party or External Services

This plugin utilizes several libraries and external services for its functionality. Below are the details:

Mux PHP SDK

The plugin makes use of the Mux PHP SDK library to interact with the Mux API.

Mux Player

The video playback functionality is based on Mux Player, a video player from Mux.

PHP JWT

The PHP JWT library is used for generating and manipulating JWT tokens.

Mux Upchunk

The file upload functionality utilizes Mux Upchunk, a library to facilitate file uploads.

Font Awesome 5

Font Awesome is a font and icon toolkit based on CSS and Less. It provides scalable vector icons that can be customized with CSS.

Important Notice:

This plugin relies on the following domains for its core functionality:
https://stream.mux.com/ – Used for streaming video content.
https://api.mux.com – Provides API access for plugin communication.
https://image.mux.com/ – Used for fetching and displaying video thumbnails.

Disclaimer

This plugin is provided as-is, and the developers are not responsible for the performance or actions of the Mux service. Users are encouraged to review Mux’s terms of use and privacy policies before implementing the plugin.

Is it necessary to have a Mux account?

You will need to have an active account on the Mux platform and generate an Access Token to link your account.

How do I get my Access Tokens?

The Mux Video API uses a token key pair that consists of a Access Token ID and Secret Key for authentication. Unless you have already done so, you can generate a new Access Token in the Access Token settings of your Mux account dashboard.

How to synchronize uploaded videos with my mux account

By entering the Access Tokens your account will be synchronized in real time. All the videos you upload in the Mux platform, you will see them in your asset list and vice versa.

Great start, but still a few issues to iron out.

By twobyte on June 11, 2024

Hi there,

First off, thank you for developing this.

I am trying to use this with my MUX account and have uncovered a couple of issues.

First off, my localhost install (I am developing a custom theme) was allowing me to upload videos fine, but the Asset list is always empty so I cannot preview or embed them. The error log is recording this error:

[11-Jun-2024 13:18:08 UTC] Error displaying assetUndefined array key "muxvideo_signing_data"
[11-Jun-2024 13:18:55 UTC] Exception when calling muxvideo_get_data_playback_restrictions: Undefined array key 0

Always one to persevere, I installed the plugin on staging website, this crashed the website and gave this error when I tried to connect my MUX account:

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.5.4
Active theme: Custom Theme (version 1.0.0)
Current plugin: 2Coders integration for Mux Video (version 1.0.3)
PHP version 8.1.28

Error Details
=============
An error of type E_ERROR was caused in line 138 of the file /home/public_html/app/plugins/2coders-integration-mux-video/includes/functions.php. Error message: Uncaught TypeError: error_log(): Argument #2 ($message_type) must be of type int, string given in /home/public_html/app/plugins/2coders-integration-mux-video/includes/functions.php:138
Stack trace:
#0 /home/public_html/app/plugins/2coders-integration-mux-video/includes/functions.php(138): error_log()
#1 /home/public_html/app/plugins/2coders-integration-mux-video/includes/functions.php(102): muxvideo_create_signing_key()
#2 /home/public_html/app/plugins/2coders-integration-mux-video/includes/functions.php(115): muxvideo_add_field_to_options()
#3 /home/public_html/app/plugins/2coders-integration-mux-video/includes/functions.php(122): muxvideo_handle_option_update()
#4 /home/public_html/wp/wp-includes/class-wp-hook.php(324): muxvideo_handle_option_create()
#5 /home/public_html/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /home/public_html/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /home/public_html/wp/wp-includes/option.php(1050): do_action()
#8 /home/public_html/wp/wp-includes/option.php(809): add_option()
#9 /home/public_html/wp/wp-admin/options.php(340): update_option()
#10 {main}
thrown

Despite this, it did eventually run on the staging website, and lists all the MUX video assets – however when I click to delete a video, all the buttons in the popup modal are labelled "undefined"

I hope you have the time and motivation to continue to improve this plugin, as I find MUX a refreshing streaming alternative to YouTube and Vimeo.

Excellent tool

By Himar Suárez (himar10) on May 22, 2024

Easy to use and the free version offers a lot of possibilities

1.0.0

  • Initial release

Minimum Requirements

  • WordPress 5.9 or greater
  • PHP version 7.2 or greater
  • MySQL version 5.0 or greater

We recommend your host supports:

  • PHP version 7.4 or greater
  • MySQL version 5.6 or greater
  • WordPress Memory limit of 64 MB or greater (128 MB or higher is preferred)

Reviews

4 out of 5 stars

  • Version: 1.0.3
  • Last updated: 5 months ago
  • Active installations: 10
  • WordPress version: 5.9
  • Tested up to: 6.4.5
  • PHP version: 7.2