简体   繁体   English

我如何获得MP3流海报图片

[英]how do I get MP3 stream poster image

For html5 audio element, using Javasript I can control behavior of audio element like this 对于html5音频元素,使用Javasript我可以像这样控制音频元素的行为

Play/Pause 播放/暂停

activeSong = document.getElementById("mainPlayer");
activeSong.play();
activeSong.pause();

For getting metadata I am using 用于获取我正在使用的元数据

    activeSong.addEventListener('loadedmetadata', function() {
        console.log("Playing " + activeSong.src + ", for: " + activeSong.duration + "seconds.");
        $("#playListSeekBar .timers#timeLeft").html(String(Math.round(activeSong.duration)).toMMSS() + "");
    });

My Question is how do I get poster of currently played MP3 stream if available? 我的问题是如何获得当前播放的MP3流的海报?

its not possible using html5 media api. 它不可能使用html5媒体API。 but António Afonso`s id3 lib reader can. 但AntónioAfonso的id3 lib读者可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM