웹마스터 팁

안녕 하세요 처음으로 글을 올려 봅니다.
mp3 나 mp4 화일을 업로드 하여 모바일이나 기타 다른 브라우져로 볼때 발생 재생이 원할 하지 못한 부분의 꽁수를 좀 올려 볼까 합니다.   


XE 보드의 \xe\common\js\common.js 파일의 46번 라인에
function _displayMultimedia(src,width,height,options){if(src.indexOf('files')==0)src=request_uri+src;var defaults={wmode:'transparent'+ ',allowScriptAccess:'sameDomain',quality:'high',flashvars:'',autostart:false};var params=jQuery.extend(defaults,options||{});var autostart=(params.autostart&&params.autostart!='false')?'true':'false';delete(params.autostart);var clsid="";var codebase="";var html="";if(/\.(gif|jpg|jpeg|bmp|png)$/i.test(src)){html='<img src="'+ '+src+'" width="'+width+'" height="'+height+'" />';}else if(/\.flv$/i.test(src)||/\.mov$/i.test(src)||/\.moov$/i.test(src)||/\.m4v$/i.test(src)){html='<embed src="'+request_uri+'common/tpl/images/flvplayer.swf" allowfullscreen="true" autostart="'+autostart+'" width="'+width+'" height="'+height+'" flashvars="&file='+src+'&width='+width+'&height='+height+'&autostart='+autostart+'" wmode="'+params.wmode+'" />';}else if(/\.mp3$/i.test(src)){html='<embed type="application/x-shockwave-flash" src="/common/tpl/images/player.swf" allowfullscreen="true" autostart="'+autostart+'" width="'+width+'" height="'+height+'" flashvars="&file='+src+'&width='+width+'&height='+height+'&autostart='+autostart+'" wmode="'+params.wmode+'" />';}else if(/\.mp4$/i.test(src)){html='<embed type="application/x-shockwave-flash" src="/common/tpl/images/player.swf" allowfullscreen="true" autostart="'+autostart+'" width="'+width+'" height="'+height+'" flashvars="&file='+src+'&width='+width+'&height='+height+'&autostart='+autostart+'" wmode="'+params.wmode+'" />';}else if(/\.swf/i.test(src)){clsid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';if(typeof(enforce_ssl)!='undefined'&&enforce_ssl){codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0";}

빨간색 구문을 추가 하시면 업로드 된 MP3와 MP4파일을 멀티미디어 자료관련 확장 콤퍼넌트를 이용 하여 올릴 경우  Jw Player 를 이용 하여 재생 할수 있습니다. 물론 모바일이서도 잘 동작 합니다. mp3 와 mp4 를 모두 작동 합니다. 그런데 한가지 문제는 모바일 레이아웃을 이용 할경우 여전히 멀티미디어 콤퍼넌트 아이콘표시 되어 재생이 안됩니다. ㅠ.ㅠ 이부분은 모바일 모듈의 호출 형식인거 같습니다 ㅠ..ㅠ  꽁수로 스크립을 HTML 편집기에 작성 하면 정상적으로 동작 하는데 말이죠 ㅠ..ㅠ 이거 좀 알려 주실분 계시면 답변 부탁 드립니다.

아참 주요한 부분을 말씀 못 드렸군요.
jw Player 를 받으셔서 player.swf 파일을 xe\modules\editor\components\audio-player 폴더에 복사하시면 됩니다.

제목 글쓴이 날짜
[HTML] 기초적인 태그모음 #2 [1] 태엽감는새 2002.02.26
[HTML] 기초적인 태그모음 #1 태엽감는새 2002.02.26
[스타일시트] 스타일 시트의 개념 [4] 태엽감는새 2002.02.26
페이지 스크롤 - 네개의 레이어를 이용한겁니다 [4] file choice 2002.02.25
오른쪽 스크롤바 에 출렁이며 내려오는 공지창 [3] file choice 2002.02.25
동영상을 띄어볼까요? [2] ZipShin 2002.02.24
[CSS+JAVA]CSS 와 자바스크립트를 파일로 만들어 연결 [5] ▩윤미 2002.02.24
HTML 문서 용량 줄이기 [9] Telles 2002.02.24
Microsoft 에이전트를 이용해서 멋나게 꾸며보자 -_-)/ [7] 티르-_-)/ 2002.02.23
[CSS]모든 엘리먼트에 스타일시트 지정 [1] 엔카일 2002.02.22
▩(a href=#) 대신에 쓸수 있는 스타일 태그 [3] ▩윤미 2002.02.22
▩<subject> 앞으로가기, 뒤로가기, 새로고침 버튼 만들기 ▩윤미 2002.02.22
▩[CSS] 한꺼번에 border =0 으로주기 (최적화 방법) ▩윤미 2002.02.22
Http에러코드들입니다 [8] Shyos 2002.02.22
원하는 위치에 배경 고정 시키기 [5] Topy 2002.02.22
브라우저 입력 창에 나만의 아이콘 띄우기 [2] Topy 2002.02.22
msn 메신저 내 홈에서 채팅창과/대화상대 추가하기를 넣어보장! [8] 카멜롯™ 2002.02.21
▩HTML 최적화 기법 [3] ▩윤미 2002.02.21
▩왼쪽에다가 스크롤바 넣기 [1] ▩윤미 2002.02.21
윈도우 꽉찬 화면으로 보기 태그 [1] ▩윤미 2002.02.21