When using the included input filter, brightcove videos are only displayed the first time the text field is saved.

Videos are not displayed on subsequent views of the field, and a javascript error 'Uncaught ReferenceError: brightcove is not defined' is displayed in the console.

Initial patch to come.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeffam created an issue. See original summary.

jeffam’s picture

Status: Active » Needs review
FileSize
897 bytes

Here's the (admittedly sub-optimal) patch. I'm adding it here in its current state so that I can refer to it from make files.

The main issue is that it will include the inline script from `//admin.brightcove.com/js/BrightcoveExperiences.js` for every inline video. In practice, this doesn't seem to cause much of a problem, but ideally there would be a bit of js that places the script in the head or footer of the page and only does that once.