<audio controls>
<source src="/storage/emulated/0/h.mp3" type="audio/mpeg">
</audio>
여기가 html 코드입니다. 작동하지 않습니다. 이 문제를 해결하는 데 도움을주십시오.코드 오바에서 오디오가 재생되지 않음
<audio controls>
<source src="/storage/emulated/0/h.mp3" type="audio/mpeg">
</audio>
여기가 html 코드입니다. 작동하지 않습니다. 이 문제를 해결하는 데 도움을주십시오.코드 오바에서 오디오가 재생되지 않음
이 질문은 매년 묻습니다. 그것은 특정 장치에 대한 라이센스와 관련이 있습니다.
this과 같은 플러그인을 사용해보세요.
또는 공식 media API
The Media object provides the ability to record and play back audio files on a device.
var media = new Media(src, mediaSuccess, [mediaError], [mediaStatus]);
Note: The current implementation does not adhere to a W3C specification for media capture, and is provided for convenience only. A future implementation will adhere to the latest W3C specification and may deprecate the current APIs.
매개 변수
방법 : 오디오 파일 내의 현재 위치를 돌려줍니다.
index.js 파일의 오디오 링크를 /storage/emulated/0/h.mp3으로 변경했습니다. 하지만 작동하지 않습니다. – unknown
미디어 API를 읽으면 src를 제공하는 방법을 알 수 있습니다. –