Rating: 3 stars
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.
]]>Rating: 5 stars
Easy to use and the free version offers a lot of possibilities
]]>