[이윰] 사운드클라우드 embed options 제어하기
페이지 정보
루루아빠
4,131 2
2015.09.07 10:03:09
짧은주소
-
https://yadolee.com/tip/283 주소복사
본문
그누보드5/eyoom/classes/eyoom.class.php 을 열어 if(preg_match('/soundcloud.com/i', $src)) { 을 검색한다.
수정 전
Parameters 옵션
sharing : 플레이어 위젯에 공유 버튼 표기
show_comments : 플레이어 위젯에 유저들의 댓글 표기
show_user : 업로더이 이름 표기
show_playcount : 총 플레이된 카운터 표기
show_artwork : 플레이어 위젯 왼편에 사용자 이미지 표기
auto_play : 자동으로 플레이
hide_related : 플레이 종료 후 연관 노래 표기
적용 규칙
&옵션1&옵션2
더 자세한 옵션은 다음 링크를 참조한다.
https://developers.soundcloud.com/docs/widget
수정 전
if(preg_match('/soundcloud.com/i', $src)) {
$soundcloud = '<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url='.$src.'"></iframe>'."\n";
}
수정 후
if(preg_match('/soundcloud.com/i', $src)) {
$soundcloud = '<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url='.$src.'&sharing=false&show_comments=false&show_user=false&show_playcount=false&hide_related=true"></iframe>'."\n"; //루루아빠 수정 /&auto_play=true/&show_artwork=false
}
Parameters 옵션
sharing : 플레이어 위젯에 공유 버튼 표기
show_comments : 플레이어 위젯에 유저들의 댓글 표기
show_user : 업로더이 이름 표기
show_playcount : 총 플레이된 카운터 표기
show_artwork : 플레이어 위젯 왼편에 사용자 이미지 표기
auto_play : 자동으로 플레이
hide_related : 플레이 종료 후 연관 노래 표기
적용 규칙
&옵션1&옵션2
더 자세한 옵션은 다음 링크를 참조한다.
https://developers.soundcloud.com/docs/widget
추천인
레벨 101
경험치 1,519,440
Progress Bar 14.66%
- 가입일 : 2015-03-04 03:24:54
- 서명 : KNOW YOUR LIMITS
BUT NEVER STOP TRYING TO EXCEED THEM !!
- 자기소개 : 루루의 자랑
루루아빠랍니다~~
최신댓글이 없습니다.


댓글2
루루아빠님의 댓글
루루아빠님의 댓글