Needs review
Project:
Kaltura
Version:
6.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2010 at 13:17 UTC
Updated:
9 Jan 2013 at 03:09 UTC
Jump to comment: Most recent file
Bug:
video will not play. this is due to a tab/spaces in the embed code.
this has happened after upgrading to the new Kaltura extension with old Drupal (6.15, 6.16).
Fix:
add a replace function to line 69 of the file /sites/all/modules/kaltura/includes/kaltura.themeing.inc to replace any tabs or spaces in the flashvar parameters.
$embed_options = preg_replace('/\t\s+/', "", kaltura_get_embed_options($params));
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | kaltura-909948-spaces_in_embed_code.patch | 1.16 KB | xurizaemon |
Comments
Comment #1
lismail commentedHi,
I am facing similar issue, but with Kaltura module 6.x.1.5. Videos can be played using standar (light or dark) players, but custom players made by KMC won't load. This is due to extra tabs or space in flashvar rendered to html.
Fix:
change line 1062 in kaltura.themeing.inc from:
$flash_vars_str .= "&externalInterfaceDisabled=false&layoutId=". $player_size['layout_id'] ."& pd_original_url=". urlencode($protocol . $_SERVER["HTTP_HOST"] . request_uri()) . $widescreen . $finish_f . $autoplay;into this:
$flash_vars_str .= "&externalInterfaceDisabled=false&layoutId=". $player_size['layout_id'] ."&pd_original_url=". urlencode($protocol . $_SERVER["HTTP_HOST"] . request_uri()) . $widescreen . $finish_f . $autoplay;I hope this error will be fixed in the next release.
Thanks,
Lucky
Comment #2
xurizaemon