1

尽管网络上有大量关于 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>

任何帮助将不胜感激!

4

1 回答 1

0

哈哈!多么简单的解决方案,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>
于 2013-05-07T15:43:25.957 回答