无法完全恢复我的MP3文件

时间:2011-05-23 10:41:48

标签: javascript jquery flash flowplayer

我正在努力让我的MP3文件更加完整,但它还给我NaN,

这是我的代码:

 <script>

            $f("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
                clip: {
                    // our song
                    url: '1.mp3',



                    // when music starts grab song's metadata and display it using content plugin
                    onStart: function(){
                        var fullduration = parseInt(this.getClip().fullDuration, 10);
                        alert(fullduration);
                        var p = this, c = p.getClip(), d;
                        timer = setInterval(function(){
                            d = showtime(c.fullDuration);
                            $("a[href=" + c.url + "] > samp").html(showtime(p.getTime()) + "/" + d);
                        }, 1000);

                    }
                },

                plugins: {

                    // content plugin settings
                    content: {
                        url: 'flowplayer.content-3.2.0.swf',
                        backgroundColor: '#002200',
                        top: 25,
                        right: 25,
                        width: 160,
                        height: 60
                    },

                    // and a bit of controlbar skinning  
                    controls: {
                        backgroundColor: '#002200',
                        height: 30,
                        fullscreen: false,
                        autoHide: false,
                        volume: false,
                        mute: true,
                        time: true,
                        stop: false,
                        play: false

                    }
                }
            });
        </script>

1 个答案:

答案 0 :(得分:1)

我使用flowplayer版本3.2.7和3.2.8查看了您的代码。对于版本3.2.7,我得到相同的错误,而3.2.8我得到的持续时间是秒,这是预期的。因此,您需要从

升级并更改以下内容
http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf

http://releases.flowplayer.org/swf/flowplayer-3.2.8.swf