It is currently 24 Jun 2017, 09:45



Sound doesn't play

Videos, graphics, Flash templates – how to create and play them using CasparCG

Moderators: Macey, Jonas Hummelstrand, didikunz

Sound doesn't play

Postby red455 » 20 Sep 2016, 15:29

Hi everyone;

I would like to play mp3 with an html page but it does'nt work. Here is my simple code. Who know why ?

Code: Select all
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Document sans nom</title>
</head>

<body>
<div id="sound_element"></div>
<script type="text/javascript">
var audio = new Audio('http://myurl.com/mp3/test.mp3');
audio.play();
</script>
</body>
</html>
red455
 
Posts: 24
Joined: 22 Sep 2015, 16:38

Re: Sound doesn't play

Postby red455 » 20 Sep 2016, 18:24

I test my configuration on my laptop and the sound is good but when i play it on my server it doesn't work.

The server as already work perfectlly it is the first time we want to use it to play html pages.

Here is the error message :
[0920/192123:WARNING:content_browser_client.cc(480)] No browser info matching view process id 5 and routing id 2
[0920/192123:WARNING:content_browser_client.cc(480)] No browser info matching view process id 5 and routing id 2
Vector smash protection is enabled.
red455
 
Posts: 24
Joined: 22 Sep 2015, 16:38

Re: Sound doesn't play

Postby balte » 22 Sep 2016, 18:51

Mp3 audio and mp4 video are not supported due to licencing.
CasparCG enthusiast and broadcast geek - Sometimes, I do get payed for this stuff.
User avatar
balte
 
Posts: 264
Joined: 24 Jan 2015, 16:23
Location: The Netherlands, Goeree Overflakkee


Return to Content

Who is online

Users browsing this forum: No registered users and 2 guests