无法获得我的MP3文件的完整内容

问题描述

| 我试图使我的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>
    

解决方法

我查看了使用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
    

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...