Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Basically, I want to add another video provider... I got this far... all I ever get is a white box... yet details, including the link are in the html tags in firebug.
Summary, white box, no player to show video.
I have been pulling my hair out over this :(
Here is code:
function video_embed_website_handle_video($url, $settings) {
$name = _video_embed_website_get_video_name($url);
$id = _video_embed_website_get_video_id($url);
if ($id) {
$embed = '<object width="!width" height="!height" >
<param name="movie" value="http://us-st.website.com/embed_test2.swf" ></param>
<param name="allowFullScreen" value="!fullscreen"></param>
<param name="allowScriptAccess" value="always"></param>
<param name="wmode" value="transparent"></param>
<embed type="application/x-shockwave-flash" src="http://website.com/embed.php?video=!id" width="!width" height="!height" allowfullscreen="!fullscreen" allowscriptaccess="always" id="player" type="application/x-shockwave-flash" name="player" style="visibility: visible"></embed>
</object>';
$embed = format_string($embed, array(
'!id' => $id,
'!fullscreen' => $settings['allowfullscreen'] ? 'true' : 'false',
'!autoplay' => $settings['allowautoplay'] ? 'true' : 'false',
'!width' => $settings['width'],
'!height' => $settings['height'],
)
);
$video = array(
'#markup' => $embed,
);
return $video;
}
// Return an empty string if there is no id, so we don't have broken embeds.
return '';
}
Comments
Comment #1
JohnnyW CreditAttribution: JohnnyW commentedUpdate.... I tried a different way.... think this, like Dailymotion
The html looks like this inside of browser...
As you can see it looks good, but I am still getting a white screen :(
Comment #2
JohnnyW CreditAttribution: JohnnyW commentedBasically, player is a white box... not inside player but THE PLAYER, button and all, is white.