I am creating a fresh D7 site and want that site to allow editors to embed streaming Brightcove videos into their content. I have enabled the Media module and can embed YouTube videos. (per setting up WYSIWYG and CKEditor to include Media Browser / Embed Media button). But I am failing with Brightcove. Details below. Advice appreciated. Thanks!

  1. I followed "Brightcove installation & configuration" instructions: (a) installed PHP MAPI Wrapper, (b) installed and enabled Brightcove, Brightcove Field, and Brightcove Media Integration modules 7.x-3.4, (c) configured Brightcove module with Read API Key, Player name, Player ID, Player Key
  2. When I am editing content, WYSIWYG embed media button works great with YouTube URLs. But it fails in a couple different ways with Brightcove videos
    • The "Brightcove videos" tab (per "Using Brightcove with Media integration") displays contents of my Brightcove library, but if I select a video and click Submit then the screen darkens as if an overlay were trying to appear, a very skinny sliver of a scrollbar appears on right side of that, and an error message appears "The requested page 'd7/media/v90942317001/format-form?render=media-popup' could not be found."
    • I get different errors if I use "Web" tab instead of "brightcove videos" tab . Supported providers are listed as brightcove and Youtube. If I give a Brightcove URL then it seems like it imports the video (but I want video file to reside on Brightcove). After import, I choose "large" format but a thumbnail rendition appears. When I save the page (or post, etc.) I get error: "Notice: Trying to get property of non-object in theme_brightcove_field_embed() (line 118 of d7/sites/all/modules/brightcove/brightcove_field/theme.inc)". This is very similar to issue https://drupal.org/node/1355466 and I have followed suggestions there w.r.t. checking the video file type.

Comments

lpeabody’s picture

I'm working on a project right now and we're seeing the same issue just using the CKEditor module.

behoppe333’s picture

@lpeabody, since my post I expanded my efforts to include oembed and embed.ly. Still no success getting BrightCove embedded in my site. But oembed and embed.ly *appear* promising. I pass along FYI and I hope this information helps you. I am still stuck :-(

lpeabody’s picture

The menu path, as defined in media.module, looks as follows media/%file/format-form.
So, essentially what is happening here is file_load(v1234946150001) is being called, which obviously blows up in your face and we get a page not found as a result.

I think two things need to happen.
1) the brightcove wysiwyg embed feature should use a different callback other than media/%file/format-form.
2) a similar path callback should be implemented specifically for brightcove

I'm looking into ways to do this now.

lpeabody’s picture

Ignore my proprosed course of action for #3. I think what needs to happen now is that the MediaInternetBrightcoveHandler handler needs to be properly integrated into the embed functionality.

EDIT: Essentially what is happening is that the video being embedded is not being saved to the file_managed table in Drupal. This properly happens when you're associating the video with a node field, but not when embedding the video via CKEditor. I'm trying to track down the fork in the callstacks for each.

k.dani’s picture

Status: Active » Fixed

It has been fixed in 7.x-3.5. Please upgrade your module.

k.dani’s picture

Status: Fixed » Closed (fixed)
k.dani’s picture

Issue summary: View changes

Added close-quote to clarify last reported error message