It is currently 26 May 2017, 23:37



Audio on HTML producer

CasparCG Server, Client and development

Moderators: Macey, Jonas Hummelstrand, didikunz

Audio on HTML producer

Postby ASmith3006 » 02 Dec 2016, 16:56

I'm doing a proof-of-concept for using the HTML as graphics but before I go too far pulling the config file apart:

Does the HTML producer support audio output?

Code: Select all
 var audio = new Audio('./media/alien-bomb-timer.wav');
    audio.play();

I've tried this (which works in a browser) and also tried
Code: Select all
PLAY 1-10 [HTML] https://www.youtube.com/embed/bS5P_LAqiVg?autoplay=true


At the moment neither have audio, I want to check that there should be before I spend too much time here.

Thanks.
ASmith3006
 
Posts: 64
Joined: 12 Dec 2013, 14:47

Re: Audio on HTML producer

Postby hreinnbeck » 02 Dec 2016, 18:55

Audio from the HTML producer is IIRC only available through system-audio - not on decklink.
hreinnbeck
 
Posts: 295
Joined: 04 Aug 2009, 06:31

Re: Audio on HTML producer

Postby balte » 03 Dec 2016, 20:45

in addition to hreinnbeck:

on windows you can set the default audio device to be your decklink card, though.

you will probably lose sync.
CasparCG enthusiast and broadcast geek - Sometimes, I do get payed for this stuff.
User avatar
balte
 
Posts: 261
Joined: 24 Jan 2015, 16:23
Location: The Netherlands, Goeree Overflakkee

Re: Audio on HTML producer

Postby philetaylor » 03 Dec 2016, 21:23

Is this something that is likely to be added (html template audio to decklink) as I am working on a gameshow template at the moment and was planning to play sound effects this way?

It isn't a major problem as I can work around it but it might be useful.

Phil
philetaylor
 
Posts: 16
Joined: 18 Jan 2014, 14:45

Re: Audio on HTML producer

Postby ASmith3006 » 05 Dec 2016, 15:05

That's a shame. We can get around it by triggering sounds separately, but it would be great to get them in together.

If there's a need for testing this in the future please let me know.
ASmith3006
 
Posts: 64
Joined: 12 Dec 2013, 14:47

Re: Audio on HTML producer

Postby didikunz » 05 Dec 2016, 15:57

As I am not an HTML crack, I cannot tell you exactly how to do it in HTML 5.

But in Flash I connect back to the local Caspar server (from the view of the template it's ALWAYS the local server) and send a PLAY command for a audio file on a separate layer (otherways you kick yourself out). That plays very nicelly on the SDI output.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3448
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Audio on HTML producer

Postby drakmor » 06 Dec 2016, 05:07

drakmor
 
Posts: 16
Joined: 13 Mar 2016, 16:49
Location: Kazan / Russia

Re: Audio on HTML producer

Postby ASmith3006 » 06 Dec 2016, 10:09


I see, so this is a limitation of CEF rather than CasparCG then?
ASmith3006
 
Posts: 64
Joined: 12 Dec 2013, 14:47

Re: Audio on HTML producer

Postby drakmor » 06 Dec 2016, 11:13

Yes. CEF use system audio.
drakmor
 
Posts: 16
Joined: 13 Mar 2016, 16:49
Location: Kazan / Russia


Return to Tech and Development

Who is online

Users browsing this forum: Bing [Bot] and 2 guests