Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 audio/video doesn't work using fancybox overlay on iOS #299

Closed
tool4scs opened this issue Jul 16, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@tool4scs
Copy link

commented Jul 16, 2012

When I embed an HTML5 audio/video tag into the fancybox overlay, the audio/video player doesn't display using any iOS device (iPhone/iPad). When calling open_audio_overlay() you can use this MP3 http://www.w3schools.com/html5/song.mp3. I am using version 2 of fancybox (the latest code). I have provided the following code that I am using:

CSS:

div.overlay .fancybox-skin
{
background: #1f1f1f;
border-radius: 8px;
color: white;
}

div.overlay-content
{
background-color: black;
padding: 20px 10px 20px 10px;
border-radius: 4px;
}

div#audio-overlay
{
display: none;
text-align: center;
}
HTML:

JAVASCRIPT:

function open_audio_overlay(url, title)
{
$('#audio-player').attr('type', 'audio/mp3');
$('#audio-player').attr('src', url);

$('#audio-title').html(title);

$.fancybox.open($('#audio-overlay'),
{
    wrapCSS: 'overlay',
    openEffect: 'none',
        helpers:
        {
            overlay:
            {
                opacity: 0.50,
                closeClick: false,
                css:
                {
                    cursor: 'auto'
                }
            }
        }
});

}

@tool4scs

This comment has been minimized.

Copy link
Author

commented Jul 16, 2012

I put up example code at the following link so it is easier to debug.

http://www.singleclickconnect.com/fb/

@fancyapps

This comment has been minimized.

Copy link
Owner

commented Jul 17, 2012

This issue is not related to fancyBox. It can display any html content (example - http://jsfiddle.net/Vv9ZA/) and it is up to how you are using it.

@fancyapps fancyapps closed this Jul 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.