How to show mp4 videos in popup window using the fancybox plugin?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xtremebass
    New Member
    • Nov 2008
    • 38

    How to show mp4 videos in popup window using the fancybox plugin?

    how to show the mp4 videos in popup window using the fancy box plugin ..

    here it is my code
    Code:
    <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript" src="jquery.fancybox-1.3.4.js"></script>
    <script type="text/javascript">
    $(document).ready(function () {
        $("a.fancyvideo5").click(function () {
            var url = $(this).attr('name');
            $.fancybox({
                'padding': 7,
                'overlayOpacity': 0.7,
                'autoDimensions': false,
    
                'content': '<div class="video-js-box">' +
                            '<video class="video-js" width="635" height="475" controls preload>' +
                           '<source src="' + url + '"' + 'type=video/mp4; codecs="avc1.42E01E, mp4a.40.2"' + '/> ' +
                            '</video>' +
                            '</div>',
               
    
            });
        }); 
    
    
    });
    
    </script>
    
    
    <! -- -->
    
    <a class="fancyvideo5" name="test.mp4"><img src="tt2.jpg" width="248" height="145" alt="Film" /></a>
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    are there messages in the Error Console?

    line 14 also looks suspicious (invalid/missing characters)

    Comment

    Working...