0
Soundcloud 위젯을 내장하려고하는데 localhost에서 결과가 실행되지 않습니다. 여기 내 script.js 어떤 작품, 당신은 디버깅을 더 나은 수와Soundcloud API 테스트하기
SC.initialize({
client_id: 'myid'
});
var track_url = 'http://soundcloud.com/forss/flickermood';
SC.oEmbed(track_url, { auto_play: true }, document.getElementById('target')).then(function(oEmbed) {
console.log('oEmbed response: ', oEmbed);
});
당신이 개발자 도구 콘솔에서 경고 나 오류를 얻고있다? –
전혀 보이지 않는 것 같습니다. – tb1000
아마도 track_url을 https : // ...로 변경하거나 마지막 이후에 .catch (console.error.bind (console))를 추가하여 오류를 포착하고 기록하십시오 –