I installed the module, put in the API and secret keys, enabled Bitsontherun in Emfield but for some reason the video does not show up in the node.
I confirmed I can view the video just fine logged into BitsontheRun. What's interesting is that at one point I at least got the admin area in my piece of content to show the thumbnail for the video but all it was doing was grabbing a jpg from my bitsontheRun account.
I also have a ticket into Bits but I am guessing they will tell me to come here for help.
If I go to my content type and 'manage fields', I have tried many different options there but none have worked. As a test, If I choose to render URL, I get this for a URL:
http://content.bitsontherun.com/preview/-61902-41901
the 61902 & 41901 respectively are just the player and template keys, not the actualy code for the video.
I have tried putting in Bit's .js embed with and without the script tags and I also tried their alternate embed code which rewfences an SWF file. None of these have worked.
Since I can use Emfield to render any other kind of video from Vimeo or Youtube, etc... I am fairly sure it's not user error on my part but of course there is always that chance.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | media_bitsontherun.inc-727842.patch | 6.06 KB | davidburns |
| #7 | bitsontherun.inc_.zip | 4.32 KB | danny englander |
Comments
Comment #1
danny englanderOne additional thing, I thought I would also try putting in the actual URL when you click on "Preview this embed code" from my Bits account which brings me to an actual URL for the video. I tried putting in the URL in Emfield much as you would a youtube video or similar but I get an error when I go to save the page saying it's not a valid format.
Comment #2
danny englanderJust by coincidence I got this partially working. However, I have since learned that Bitsontherun has recently deprecated "template_id" in favor of a new way to render a specific player. This is probably why the video was not showing up because it was a case of "garbage in garbage out". The Bit's module could not render the video because it was trying to pull information that no longer exists in the BitsontheRun world.
Here is the note on that:
http://www.bitsontherun.com/documentation/system-api/methods/accounts/te...
The way I got this working was purely by accident. I decided to install FLV Media Player module which uses JWPlayer.
By following the documentation here:
http://drupal.org/node/473414
... My Bits video now worked with a vanilla JW Video player after this because there was a default player to fall back on available system-wide in Drupal.
However this does not solve my issue of bringing in my custom BitsontheRun player into Drupal (which would have all the analytics and customized goodness -- the reason we are paying to have Bits as our provider in the first place)
I am picturing where I enter player and template ID into the Bits conifig page within EmField will need to be modified to adjust to the new way that Bit's renders video.
I hope anyone reading this can follow my logic and tell me if I am doing something wrong or if this makes sense.
Comment #3
danny englanderWe have recoded this module to work properly. I hope to be able to post the code.
Comment #4
progga commentedI noticed that BotR API calls are not working because the request URL is malformed. This is happenning in the call to http_build_query(). This function relies on PHP's arg_separator.output directive. Drupal's settings file has set it to '&'. Whereas BotR expect '&' which is also the default in PHP. This is probably not related to this bug though.
The easiest way to get past this is to set the value of arg-separator.output to '&' before calling BotR apis. After the call it should be changed back to whatever is set in Drupal's settings file. Here is some code:
[0] http://uk3.php.net/manual/en/ini.core.php#ini.arg-separator.output
Comment #5
danny englanderThanks for the reply, I appreciate it, however, we basically had to recode the entire module to get it to work properly. It's long since been live on the site we developed.
It also looks like this module is possibly abandoned since the maintainer never responded to this ticket and it's now several months since I made the first post and there has not been and update to the code at all.
Comment #6
aaron commentedyikes! i was never subscribed to the issue queue. wish drupal.org would do that automatically for a module's maintainer; it's rather embarrassing...
in any case, i'm now aware of the issue, and will get to it when i can. (we just recently had a baby, so time is limited).
patches are welcome, of course...
Comment #7
danny englanderAaron, I am attaching the file we modified to make this work. I don't know how to roll patches.
Also note that we made this work in terms of our needs so not sure if this will even dovetail back into your module. thanks.
Comment #8
hefox commentedHigh rock media: http://drupal.org/patch/create
Comment #9
danny englanderhefox thanks, I'll check that out when I have time, work has been busy.
Comment #10
davidburnsI went ahead and created a patch with the file provided above. it looks like this module still needs some work to allow custom flash player and ability to work on mobile device without Flash.
Comment #11
hefox commentedChanging the title changes the issue title, could someone clarify what the issues are and change the title appropriately?
Also, change to needs review so people know there's a patch to review :)
Comment #12
danny englanderThere are a few issues here (AS I have detailed in my original posts above).
One is that some of the API changed at BOTR so that essentially broke the module. The other issue is that BOTR offers really nice analytics and custom players with their video and this was not working either. The admin UI settings also did not work.
The way it's been recoded as I noted might not dovetail back into this existing module too well but it works great on our live site. We also did nothing to fix the admin UI settings to work, rather we just call our custom video URL in the embed field per node so I would say this still needs tons of work before it's really any good to others.
Comment #13
sumit_drupal commentedI have installed Embedded media Field module in drupal 6.I am getting this error message "You have specified an invalid media URL or embed code".When i tried to save embed code taken from Bits on Run.Please help me out.
Comment #14
danny englanderHave a look at this, it looks like they are developing this on their own now:
http://www.longtailvideo.com/support/bits-on-the-run/15958/using-our-dru...
-- see the part that says:
I have not tested it so can't vouch for if it works or not.