Currently, Brightcove Media modal fetches the latest 100 videos in the modal in one request by default.
In order to optimize the performance of Brightcove API calls, we wanted to fetch lesser posts with a support of paginated query, so that the next paged request should trigger with next set of results when user clicks on load more videos button or scrolls to the end whichever way possible.
Currently, we can reduce the posts per page using the filter?brightcove_posts_per_page
, but we can’t fetch the results from the next page.
We have explored the codebase and found out that the implementation for paginated results is added on JS scroll event, but for some reason the event callback is not getting called.
This is the file where we found the event: https://github.com/10up/brightcove-video-connect/blob/develop/assets/js/brightcove-admin.js#L1533
Also we have created GH issue 2 weeks before here, but we haven’t received a reply yet. Please check this and let us know.
Thanks and Regards,
Shreyas Ikhar
I added a bunch of test players in the Brightcove backend and I had users confused when they were embedding videos in WordPress with the plugin, as it seems to sort the player dropdown by latest created/updated – is there or can there be a setting added to make a player the “default” for embedding?
]]>Hi, videos that are embedded using the javascript embed style just appear as black rectangles. If they are embedded with the iframe embed style, they work. Tested with no other plugins activated on WP 6.3/6.4 with 2017 and 2024 themes.
Looks like something to do with the player I’m using; please ignoe
]]>From my post that was ignored previously, now remote captions (or anything remotely linked to any player) no longer works in the latest Chrome – you’ll need to change the embed container as noted here:
]]>Hi,
There is a major problem with capabilities. Only admin are built to add video or anything, yet the editors should too according to code. (They have brightcove_manipulate_videos cap)
Editor cannot use their capabilities because of a bug in the Admin menu creation. includes/admin/class-bc-admin-menu.php:99
It pass the current_user_id to the function get_account_details_for_user. When this function receive this param, it goes to the elseif that checked for a cap (brightcove_get_user_default_account) that editors do not have. It should not
Rest of the code is built to use the default Account. This will NEVER happen, since the capability short circuit happens.
Removal of the elseif makes this better. Else removing the parameter in includes/admin/class-bc-admin-menu.php:99 also helps.
Other work around is to add capability to editor (brightcove_get_user_default_account)
To reproduce:
* Install plugin
* Set the default Account via and admin
* Create an editor
* try to access Brightcove videos menu -> will not work.
I noticed that the latest version of Chrome pops this up when you hi the play button on any video:
“Encrypted Media access has been blocked because of a Feature Policy applied to the current document. See https://goo.gl/EuHzyv for more details.”
The video still plays, but I’m guessing from the Google link that some geolocation or other tracking script is not firing – are you guys working on this?
]]>Recently after upgrading PHP to 7.4 and WordPress to 5.7 observed the following notices.
Notice: Trying to access array offset on value of type bool in /nas/content/live/hmmdev/wp-content/plugins/brightcove-video-connect/includes/class-bc-setup.php on line 282
Notice: Trying to access array offset on value of type bool in /nas/content/live/hmmdev/wp-content/plugins/brightcove-video-connect/includes/class-bc-setup.php on line 283
]]>When activating the plugin I am seeing the following Notice several times
Notice: rest_validate_value_from_schema was called incorrectly. The “type” schema keyword for can only be one of the built-in types: array, object, string, number, integer, boolean, and null. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /srv/www/medical-cluster.lcl/current/web/wp/wp-includes/functions.php on line 5229
I cannot see “rest_validate_value_from_schema” in your code but deactivating the plugin gets rid of notices. I have no other plugins activated.
]]>Hello,
Documentation states that author (AU) users can insert videos into posts, however this is not true for me and according to some other posts here it’s not true for everyone. I see instructions say to use add_cap, however I do not see a list of caps. What is the cap for “Add videos to post”? I would like the cap that only allows video to post, and not allow the user to also upload videos. Can you provide a fix please?
Hey,
We get the following error on various admin pages (when searching users for example):
‘undefined index account’ on plugins/brightcove-video-connect/includes/admin/class-bc-admin-settings-page.php line 26 ($_GET[‘account’]).
This is inside the delete_source function hooked to ‘admin_init’.
Thank you,
Matan.
A site I maintain has embedded players that link to videos that no longer exist, I want these errors to be written to the access.log (or anywhere) that I can read and update the posts/pages.
I see:
\brightcove-video-connect\includes\class-bc-logging.php
has a routine if WP_DEBUG is enabled. Could I just comment out lines 21 & 22:
if( !defined( ‘WP_DEBUG’ ) )
return false;
and have it log to my syslog or custom file all the time without hosing the plugin?
]]>The brightcove media button that previously showed on the ACF WYSIWYG fields next to the add-media button has disappeared.
WP 5.3.2
Brightcove plugin v 1.8.2
]]>Hey,
I’m trying to configure the plugin with my Brightcove account, failing with the following message:
Supplied account doesn’t have the following permissions: modify playlists. Please use an account that has these permissions.
When digging in into the code I see that the request to playlist update initially fails with 401, but then, when retrying with $force_new_token it fails with a 422 code and a VALIDATION_ERROR message (includes/api/class-bc-api:222).
The permissions for the credentials I’m using are all granted.
Thanks.
]]>What Went Wrong:
Searchng posts, pages, ACF fields, and plugins result in the page failing to load with the following error message:
Notice: Undefined index: account in /var/www/html/wp-content/plugins/brightcove-video-connect/includes/admin/class-bc-admin-settings-page.php on line 20 Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/brightcove-video-connect/includes/admin/class-bc-admin-settings-page.php:20) in /var/www/html/wp-admin/includes/misc.php on line 1196 Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/brightcove-video-connect/includes/admin/class-bc-admin-settings-page.php:20) in /var/www/html/wp-includes/pluggable.php on line 1251 Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/brightcove-video-connect/includes/admin/class-bc-admin-settings-page.php:20) in /var/www/html/wp-includes/pluggable.php on line 1254
What Should Happen:
Searching posts, pages, ACF fields, and plugins should return the dashboard with a list of results.
Versions:
WordPress 5.2.2 PHP 7.2
Workaround:
disable Plugin: Brightcove Video Connect plugin.
All the post, page, and custom post edit screens broke in our admin area after upgrading to WordPress 5, and it seems to be because the Video Connect plugin is returning a js error that’s stopping the admin pages from finishing loading.
It’s trying to load this asset, which doesn’t exist: Failed to load resource: the server responded with a status of 404 (): /wp-content/plugins/brightcove-video-connect/assets/js/src/themes/modern/theme.js?wp-mce-4920-20181217
There is no /themes/ directory in that parent directory.
Is there a way to fix this?
]]>I am building a website and when I have the Classic Editor enabled along with the Brightcove plugin, I cannot see any of the Visual editor toolbar icons, like bold, italic, changing from paragraph to headings, etc.
If I disabled the Brightcove plugin, it works as expected, but I need the plugin if possible.
I see JSON errors in my browser. I found in the plugin an enqueue script that required mce_views to be loaded before its script loads.
Is anyone else having this issue?
I’m using the Divi theme as well.
]]>2018/06/22 19:12:19 [error] 3501#0: *416 FastCGI sent in stderr: “PHP message: PHP Fatal error: Cannot use object of type WP_Error as array in /mypath/htdocs/wp-content/plugins/brightcove-video-connect/includes/api/class-bc-player-management-api2.php on line 73” while reading response header from upstream, client: myIP, server: myServer, request: “GET /wp-admin/admin.php?page=page-brightcove-videos HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “myHost”, referrer: “https://myHost/wp-admin/plugins.php”
]]>We have BC Connect installed in WordPress and are hampered because only admins can use the Brightcove button when authoring to place a video into a post. Can someone kindly provide guidance or a solution to this issue? Thanks in advance!
]]>In my client’s WordPress site (v. 4.9.5), the Videos tab is no longer displaying previews for videos, and when editing posts, the Brightcove Media button returns the same error: “Sorry! We weren’t able to reach the Brightcove API even after trying a few times. Please try refreshing the page.”
No matter how many times I refresh, I can’t get past this message, and I’ve tried different browsers on Mac and PC. Note that it was working fine until recently, I’m not sure if the latest WordPress update is at issue, to my knowledge there have been no other changes or plugins added in recent weeks.
]]>NOTE: This ticket was submitted to JIRA by our QA Team. Our team doesn’t actively contribute to this plugin, so I figured I should pass it along.
When user access a video on the ‘Brightcove Videos’ section and previews it, it can be noticed that the video is not playing.
Devices Used:
Acer Aspire E1-510-2500 | Windows 10 Home 64-bit (10.0, Build 16299) | Google Chrome Version 64.0.3282.167 (Official Build) (64-bit) | Internet Explorer Version 11.248.16299
iMac | OS X El Capitan version 10.11.6 | Safari Version 9.1.2 (11601.7.7) | Mozilla Firefox Quantum version 58.0.2
iPhone X | OS 11.1 | Safari 11
Motorola Moto X | OS 7.1.1 | Chrome 64.0.3282.137
Repro Steps:
1. Access wp-admin link.
2. Select Brightcove>Videos.
3. Select any video.
4. Click/tap ‘Preview’ button and observe.
Result:
Videos are not playing when previewed.
Expected Result:
Videos should play when previewed.
Note/s:
Video thumbnail do not also occupy the empty white section on the middle of the preview UI.
]]>Hi,
Recently, I have used this plugin in one of my project and there we need a new requirement. We are adding the video shortcode in our post. We want to set the video thumbnail as the featured image for the post. It is somewhat difficult to take the video thumbnail every time and setting as featured image. So would like to know that is there any option to do an automated process of adding featured image when we add a new shortcode in a post.
Thank you.
]]>I was wondering if there was a particular version of the plugin I should have installed in order to avoid any issues with the phasing our of the Brightcove Media Read API at the end of the year? I have consulted BC and we have not made any Media Read API requests in the past 30 days but I want to make sure I don’t un into any code breakages when the phase out is complete.
]]>Hi,
I installed the Brightcove plugin and activate it, but when I refresh the page or try to go to settings, it errors and gives me a message that the plugin has disabled itself as it’s not compatible with version 4.1. And that it only works with 4.2 and later.
We’re running 4.7.5?
Any help would be appreciated.
Thanks
]]>Can this plugin serve VAST pre- and post-rolls from DFP on YouTube embedded videos?
Some video players also have issues playing automatically after a pre-roll. Is this the case with this plugin?
]]>We use the ACF Advanced Custom Fields a lot on our site.
Since I updated to v1.3.1 of your plugin the brightcove media button that previously showed on the ACF WYSIWYG fields next to the add-media button has disappeared.
Can I hook it to show up on these?
]]>Hi there. We have installed BC Connect in our WordPress instance but have an issue where authors – the majority of our users – cannot access the WYSIWYG button. It is however visible to editors and admins. I hadn’t realized that access was limited based on permission level and couldn’t find a way to change this in settings. Is this behavior expected and if so, how can I adjust it so that authors have access to this functionality in the content editor?
]]>Hello, I was wondering if there was a way to limit what videos were being shown within the plugin. We tag some videos with a specific tag and would like to only show videos with that tag within the plugin. Is this possible?
]]>Hello,
We are working to integrate this plugin into our website and we are running into an issue that is a bit of an annoyance. When we add a video using the Brightcove Media button to a post, the video auto plays immediately in the editor. The player we are specifying is not set to auto-play and does not auto-play on the consumer side. We often build posts with multiple videos and having them all auto-play can be loud and resource intensive while we are trying to compose our posts.
Is this expected behavior? Is there a way to stop this? Thanks in advance.
]]>Hi Devs
I picked up an error with the latest version of the plugin and loading playlist.
1. on the CMS, playlist enabled players are not detected.
2. page published with playlist, the player/video do not show on the page.
Looking at the playlist shortcode the ‘default’ player is set as a constant, not sure the reason why here.
Looking forward to the feedback here.
Thanks
]]>Hi there, is it possible to choose between iframe embed code and advanced embed code when inserting videos via the plugin? I have a customer who would like to have domain restriction on their videos on their WordPress page, but this is not possible via iframes.
Thanks,
Amir
]]>