Hi,
i'm not sure if it's a bug, but after uploading a video to a story, the video wasn't viewable in safari or iexplorer.
Our site is a https site, and it was trying to load the poster using http
$variables['poster'] = url('http://view.vzaar.com/' . $variables['url_api'] . '/image');
i changed it, but still not working, not poster error, but blank space
so i tried change this three lines to https
$variables['url_flash'] = url('http://view.vzaar.com/' . $variables['url_api'] . '/flashplayer');
$variables['url'] = url('http://view.vzaar.com/' . $variables['url_api'] . '/video');
$variables['poster'] = url('http://view.vzaar.com/' . $variables['url_api'] . '/image');
to https or just // without protocol
but still not working
so finally I went to vzaar, copied the new embed code (iframe) and changed the default values with the proper $variables
<iframe allowFullScreen allowTransparency="true" class="vzaar-video-player" frameborder="0" height="{$variables['height']}" id="vzvd-{$variables['url_api']}" mozallowfullscreen name="vzvd-{$variables['url_api']}" src="//view.vzaar.com/{$variables['url_api']}/player" title="vzaar video player" type="text/html" webkitAllowFullScreen width="{$variables['width']}"></iframe>
and it worked
I don't know why it fails at the beginning, but maybe vzaar change something in its API or whatever
So I made a patch to apply those changes.
If the old embed code is still needed, maybe would be nice to have a place where to check what embed code you want to use.
In admin/structure/file-types/manage/video/file-display
Comment | File | Size | Author |
---|---|---|---|
#1 | custom-media_vzaar-use-site-protocol.patch | 1.39 KB | vistree |
vzaar_old_embedcode.png | 17.59 KB | Fernando Vesga | |
media_vzaar-change_embed_code_to_iframe.patch | 1.89 KB | Fernando Vesga |
Comments
Comment #1
vistree CreditAttribution: vistree commentedI can confirm that this patch works! We also had the problem that embeding vzaar on a https platform resulted in videos not beeing displayed (as player-URL is hardcoded to http://!!)
Any reason not to change to new embed format?
If there is the need to keep old embed format - please see attached patch to remove static protocol from code!