开发者

JW Player - Video works in chrome, not firefox or IE

开发者 https://www.devze.com 2022-12-18 08:14 出处:网络
See working link. On the homepage I have two videos (#intro_video & #video_container) which under chrome I have no problems, but in firefox and IE the video doesn\'t play. It\'s loading the previ

See working link.

On the homepage I have two videos (#intro_video & #video_container) which under chrome I have no problems, but in firefox and IE the video doesn't play. It's loading the preview image but when you cli开发者_开发百科ck play it tries to load for a moment and then goes back to the preview.

I have tried using Jquery Flash (loads #intro_video):

var so = new SWFObject('/swf/player.swf','ply','670','300','9','#000000');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('playlistfile','/videos/home.rss');
so.addVariable('playlist','left');
so.addVariable('playlistsize','240');
so.addVariable('bufferlength','15');
so.addVariable('plugins','fbit-1');
so.addVariable('dock','true');
so.addVariable('skin','/swf/modieus.swf');
so.addVariable('lightcolor','CC3399');
so.write('video_container');

and the recommended javascript (#video_container) from the wizard with no luck:

$(document).ready(function(){

    // intro video
    $('#intro_video').flash({
        src: '/swf/player.swf', width: 367, height: 260,
        flashvars: {
            allowfullscreen: 'true', 
            allowscriptaccess: 'always', 
            wmode: 'opaque',
            file: 'http://www.888behindthescenes.com/media/videos/intro2.flv', 
            image: '/images/sized/media/videos/previews/intro-370x228.jpg',
            skin: '/swf/modieus.swf', 
            backcolor: '000000', 
            frontcolor: 'FFFFFF', 
            lightcolor: 'CC3399'
        }
    });

});

The flash is loading fine, just not the videos. Any help is appreciated.


Fixed by adding:

AddType video/x-flv .flv

to htaccess.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号