최근에 SC.Widget.Events.FINISH 이벤트가 재생 목록 용 HTML5 위젯 API에서 더 이상 실행되지 않는 것으로 나타났습니다. 다음 코드는 전에 잘 작동하지만, 노래가 끝날 때 이제 더 이상 기능을 수행하지 않았다 :SoundCloud SC.Widget.Events.FINISH 더 이상 실행되지 않는 HTML5 위젯
http://jsbin.com/vujedofada/edit?html,css,js,console,output
$(function() {
var iframe = document.querySelector('iframe');
widget = SC.Widget(iframe);
widget.bind(SC.Widget.Events.READY, function() {
console.log("Ready");
widget.bind(SC.Widget.Events.PLAY, function() {
//Get info for song playing
widget.getCurrentSound(function(currentSound) {
console.log(currentSound.id + " " + currentSound.title + " " + currentSound.artwork_url);
sid = currentSound.id
stitle = currentSound.title
sartlo = currentSound.artwork_url
display_artwork()
});
});
widget.bind(SC.Widget.Events.FINISH, function() {
console.log("Finish");
play_next_shuffled_song();
});
widget.getSounds(function(sounds) {
create_shuffled_indexes(sounds.length);
play_next_shuffled_song();
});
});
});
은 준비와 PLAY 이벤트가 작동 한 것으로 나타났습니다 마무리는 하나와 위젯 작동 트랙, 재생 목록이 아닙니다.
SoundCloud의 누군가가 이것이 알려진 버그인지 그리고 언제 수정 될 수 있습니까?
https://soundcloudcommunity.com/share-embed-230064/html5-widget-sc-widget-events-finish-event-doesn-t-fire-when-song-in -playlist-finishes-7391734/index1.html # post18022392 –