Languages

Menu
Sites
Language
video & audio 태그를 같이 사용하지 못하는 문제.

삼성 스마트 TV에서 HTML5 기반의 웹 어플리케이션을 개발하고 있습니다.

 

배경화면에 video 태그를 사용한 동영상을 재생하고,

audio 태그를 사용해서 음악을 재생하려고 하는데 문제가 발생합니다.

 

video를 재생하고 있는 상태에서 audio를 재생하면 video가 강제로 중지됩니다.

반대의 순서로 테스트해도 마찬가지입니다.

audio를 재생하고 있는 상태에서 video를 재생하면 audio가 강제로 중지됩니다.

 

시뮬레이터에서는 정상 동작하지만,

TV에 앱을 설치해서 확인해보면 이같은 문제가 발생합니다.

 

두가지 멀티미디어를 동시에 사용하는 방법이 없나요?

Responses

2 Replies
Armaan-Ul- Islam

Seems expected behavior to me. Cause the Video resource has it's own sound and audio resource also has sound as well. When you would launch both resources at a time two different sound tracks would intent to occupy the TV speakers at a time which is not possible.

 

If you don't need the sound track of the Video or If the Video resource don't have any sound with it, The solution I would suggest is to run the video with muted property. In that case, You might have a chance to play both resources at a time only if the TV allows you to do so.

 

HTML Video tag with Muted Property

 

GEUNSOO KIM

I'm afraid that you can't.

You'd better create new video file by putting your audio as the video's audio track.