묻고답하기
mp3등 오디오 파일이 재생되지 않습니다.
2015.07.17 14:46
최신코어를 사용합니다.
http://www.mohae.kr/free/2574823
이 게시글인데 mp3파일을 첨부후 본문 삽입해서 작성한 게시글입니다.
보시다시피 재생버튼이 활성화가 안되어 재생이 안됩니다.
근데
http://www.mohae.kr/index.php?_filter=search&mid=free&search_keyword=%EC%A2%8B%EC%9D%80%EB%82%A0&search_target=title_content&document_srl=2574823
검색을 통해 접속한 주소인데 저런 주소로 접속을 하면 또 재생이 가능합니다.
http://www.mohae.kr/free/2574823
이런 주소로 접속했을때도 재생이 되게 하고 싶습니다.
댓글 10
-
kdp
2015.07.17 15:26
-
모해
2015.07.17 21:56
감사합니다! 덕분에 원인을 알 수있게 되었습니다.!
코어에는 수정사항이 없고 한데 그러면 에디터 스킨 쪽을 살펴봐야하는건가요? 아니면 htaccess 쪽을 살펴봐야할까요?
아니면 멀티미디어 관련 컴포넌트 쪽을 살펴봐야할까요?
-
아마도 컴포넌트를 수정하는 작업이 필요합니다.
-
모해
2015.07.17 22:09
감사합니다!!
두분다 정말 감사합니다!!
-
모해
2015.07.18 10:36
https://www.xpressengine.com/index.php?mid=download&package_id=22540996
이 멀티미디어 컴포넌트를 사용중인데 업로드 경로 수정하는 곳이 어디인지 잘모르겠어요 ㅠ
그부분에 대해 대충이라도 알려주실 수 있으신가요?
<?php /* Copyright (C) NAVER <http://www.navercorp.com> */ /** * @class multimedia_link * @author NAVER (developers@xpressengine.com) * @brief The components connected to the body of multimedia data */ class multimedia_link extends EditorHandler { var $player_auto = ""; // 오디오 태그 자동재생 검출용 변수 // editor_sequence from the editor must attend mandatory wearing .... var $editor_sequence = 0; var $component_path = ''; /** * @brief editor_sequence and components out of the path */ function multimedia_link($editor_sequence, $component_path) { $this->editor_sequence = $editor_sequence; $this->component_path = $component_path; } /** * @brief popup window to display in popup window request is to add content */ function getPopupContent() { // Pre-compiled source code to compile template return to $tpl_path = $this->component_path.'tpl'; $tpl_file = 'popup.html'; Context::set("tpl_path", $tpl_path); $oTemplate = &TemplateHandler::getInstance(); return $oTemplate->compile($tpl_path, $tpl_file); } /** * @brief Editor of the components separately if you use a unique code to the html code for a method to change * * Images and multimedia, seolmundeung unique code is required for the editor component added to its own code, and then * DocumentModule:: transContent() of its components transHtml() method call to change the html code for your own */ function transHTML($xml_obj) { $src = $xml_obj->attrs->multimedia_src; $style = $xml_obj->attrs->style; preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$style,$matches); $width = trim($matches[3][0]); $height = trim($matches[3][1]); if(!$width) $width = 480; if(!$height) $height = 360; $auto_start = $xml_obj->attrs->auto_start; if($auto_start!="true") $auto_start = "false"; else $auto_start = "true"; $wmode = $xml_obj->attrs->wmode; if($wmode == 'window') $wmode = 'window'; else if($wmode == 'opaque') $wmode = 'opaque'; else $wmode = 'transparent'; $caption = $xml_obj->body; $src = str_replace(array('&','"'), array('&','&qout;'), $src); $src = str_replace('&', '&', $src); if($auto_start!="true") $player_auto = ""; else $player_auto = "autoplay"; // 자동재생여부 확인 if(Context::getResponseMethod() != "XMLRPC" && substr ($src,-4) == ".mp3" ) return sprintf("<audio src=\"%s\" preload=\"meta\" loop=\"loop\" controls=\"\" %s></audio><br />", $src, $player_auto); else if(Context::getResponseMethod() != "XMLRPC" && substr ($src,-4) == ".mp4" ) return sprintf("<video class=\"video-js vjs-default-skin\" controls preload=\"none\" width=\"%s\" height=\"%s\" data-setup=\"{}\"><source src=\"%s\" type='video/mp4' /></video>",$width, $height, $src); else if(Context::getResponseMethod() != "XMLRPC") return sprintf("<script type=\"text/javascript\">displayMultimedia(\"%s\", \"%s\",\"%s\", { \"autostart\" : %s, \"wmode\" : \"%s\" });</script>", $src, $width, $height, $auto_start, $wmode); else return sprintf("<div style=\"width: %dpx; height: %dpx;\"><span style=\"position:relative; top:%dpx;left:%d\"><img src=\"%s\" /><br />Attached Multimedia</span></div>", $width, $height, ($height/2-16), ($width/2-31), Context::getRequestUri().'./modules/editor/components/multimedia_link/tpl/multimedia_link_component.gif'); } } /* End of file multimedia_link.class.php */ /* Location: ./modules/editor/components/multimedia_link/multimedia_link.class.php */
-
모해
2015.07.18 10:39
보니까 멀티미디어 링크뿐만아니라 다른 이미지 파일이라던가 하는 것들에 간혹 간혈적으로 엑박이 있는 것들이 있었는데
말씀해주신대로 엑박이 붙을땐 mid 가 붙게 첨부파일이 나오고 아닐땐 제대로 나오더라구요..
전체적으로 사이트에 문제가 있거나 한건 아니겠지요..?
-
kdp
2015.07.18 15:20
코어수정없이 돌릴경우 문제는 없는것으로 압니다.
필요하시면 쪽지주세요, 문제가 있는지 점검해드릴게요.
밑에 첨부파일 받으셔서 사용하시면 됩니다.
-
모해
2015.07.18 17:42
감사합니다 보내주신 첨부파일을 덮어쓰니 해결되었습니다 정말 감사합니다 즐거운 주말되세요!
-
if(Context::getResponseMethod() != "XMLRPC" && substr ($src,-4) == ".mp3" ) return sprintf("<audio src=\"%s\" preload=\"meta\" loop=\"loop\" controls=\"\" %s></audio><br />", $src, $player_auto);
에서
if(Context::getResponseMethod() != "XMLRPC" && substr ($src,-4) == ".mp3" ) return sprintf("<audio src=/\"%s\" preload=\"meta\" loop=\"loop\" controls=\"\" %s></audio><br />", $src, $player_auto);
추가해보세요. 해보진 않았습니다.
-
모해
2015.07.18 17:48
정말 감사합니다! 즐거운 주말되세요!
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
ImpactCC |
6개의 칸으로 만들어진 div 만드는것좀 도와주세요..^^;;
[5]
![]() | 2015.07.18 by iuloveiu |
제로보드신세계잼 | 관리자 아이디 변경은 못하나요? [1] | 2015.07.18 by I-JEX |
newi | xeicon 소스에서 사라집니다. [2] | 2015.07.17 by 불금 |
Alice | 본인이 쓴 글에 댓글 달면 포인트 받게 하는법 [1] | 2015.07.17 by 불금 |
하늘384 | 게시판 파일 업로드 [1] | 2015.07.17 by 불금 |
로이파이터즈 | 정말 답답하네요 [1] | 2015.07.17 by 불금 |
꿈틀잉 |
확장변수(사용자정의) 글자 크기 질문
[1]
![]() | 2015.07.17 by 불금 |
마래바 |
게시판 DX 리뷰 스킨 관련
[1]
![]() | 2015.07.17 by 불금 |
ttt22 | 스케치북 익명 원글쓴이 표시 [6] | 2015.07.17 by ttt22 |
레몬시 |
섬네일 출력시 게시판이 망가져 버립니다.
[1]
![]() | 2015.07.17 by 불금 |
댑펑 | 잘 되다가 db 접속 오류가 발생하였습니다. 라고 나오는 경우... [4] | 2015.07.17 by 댑펑 |
와이군1 |
확장변수 안에 셀에 백그라운드 색상지정이 궁금합니다
![]() | |
poltwo | Naver Analystic은 어떻게 쓰나요? | |
항순 | 컨텐츠 확장 위젯... 자동으로 정렬 최신화 안되나요? [2] | 2015.07.17 by 항순 |
항순 | if 문 안에 if 문 못쓰나욥..? [6] | 2015.07.17 by 항순 |
리키한 | 메뉴 클릭시 팝업 창 띄우기 좀 알려주세요 | |
파란종이 |
질문드립니다.~~
[1]
![]() | 2015.07.17 by yeonghak |
inJin |
서로 다른 사이트맵을 구분하는 조건문이 궁금합니다
[3]
![]() | 2015.07.17 by inJin |
JinkPark |
socialxe 에 로그인 폼 수정파일은 어디에 있나요?
[2]
![]() | 2015.07.17 by JinkPark |
JAYLEEKOREA | 쇼핑몰 모듈 질문 |
http://www.mohae.kr/free/files/attach/images/528/823/574/002/67fe9f25d43ee65f3209ad1794327094.mp3
http://www.mohae.kr/files/attach/images/528/823/574/002/67fe9f25d43ee65f3209ad1794327094.mp3
attach 파일의 주소에 mid가 붙네요, 코어가 수정되었거나 컴포넌트가 잘못된것같습니다.
컴포넌트에서 attached 주소에 ./가 붙게
files/attach/images/528/823/574/002/67fe9f25d43ee65f3209ad1794327094.mp3
-> ./files/attach/images/528/823/574/002/67fe9f25d43ee65f3209ad1794327094.mp3 (안되면 ../)
수정하면 잘돌아갈겁니다.