Flowplayer - 使用Flashembed的视频容器的闪屏

时间:2013-05-07 15:03:06

标签: javascript json flowplayer

虽然网上有很多关于Flowplayer中的飞溅图像的信息,但在使用Flashembed嵌入视频时,我很难找到任何有用的信息。这就是我所拥有的,但不起作用:

<a href="video/myVideo.flv" style="display:block; width:280px; height:200px; padding-left:7px;" id="player"></a> 

                    <script language="JavaScript"> 
                        flashembed("player", "flowplayer/flowplayer-3.1.5.swf", { 

                        // "config" parameter is a complex JSON object, not just a simple value 
                        config: {
                            splash: true, 
                            clip:  { 
                                autoPlay: false, 
                                autoBuffering: true, 
                                playlist: [{url:"images/home-video-splash.jpg"}, {url: "http://myWebsite.com/video/myVideo.flv"}] 
                            } 
                        } 
                    }); 
                    </script>

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:0)

HAH!这是一个简单的解决方案,rcdmk - 你是对的,我也有一些我的.js转错了方向。所以有了你的建议,以及一些总是有用的正确语法,这就是我最终得到的结果:

<a href="video/myVideo.flv" style="display:block; width:280px; height:200px; padding-left:7px;" id="player"><img src="images/home-video-splash.jpg" /></a> 

                    <script language="JavaScript"> 
                        flowplayer("player", "flowplayer/flowplayer-3.1.5.swf", { 
                        // "config" parameter is a complex JSON object, not just a simple value 
                        config: { 
                            clip:  { 
                                playlist: [
                                    {
                                        url: 'images/home-video-splash.jpg'
                                    }, 
                                    {
                                        url: 'http://myWebsite.com/video/myVideo.flv',
                                        autoPlay: false, 
                                        autoBuffering: true
                                    }
                                ] 
                            } 
                        }
                    }); 
                    </script>