It is currently 26 Apr 2017, 01:05



how to send amcp from html to server?

Help to specific problems with your setup, or discussing CasparCG bugs

Moderators: Macey, Jonas Hummelstrand, didikunz

how to send amcp from html to server?

Postby sirfnomi » 27 Jan 2017, 13:05

i want to send amcp command directly from html to caspar server because i want to make it synchronize.
just want to know is there any command to send amcp to server
like alert , console.log etc
sirfnomi
 
Posts: 32
Joined: 24 Feb 2015, 22:20

Re: how to send amcp from html to server?

Postby sirfnomi » 28 Jan 2017, 15:31

i'm not using webserver. using .net client to load html producer template and want to callback from html to server to play media files according to html synchronized animation

any help please !!
sirfnomi
 
Posts: 32
Joined: 24 Feb 2015, 22:20

Re: how to send amcp from html to server?

Postby itod » 28 Jan 2017, 18:15

You can't make TCP connection from JavaScript because of security reasons. I'm not sure if websockets are currently working in 2.1 so you can use it instead of AMCP. There are some Node.js <-> CCG libraries which you can try.
itod
 
Posts: 100
Joined: 29 Oct 2011, 20:54

Re: how to send amcp from html to server?

Postby sirfnomi » 28 Jan 2017, 21:02

ahh !! nodejs is new for me i don't know much about it
do i need to make client on nodejs ?

will you please upload a little example like how to send "play 1-1 amb" with the help of nodejs
sirfnomi
 
Posts: 32
Joined: 24 Feb 2015, 22:20

Re: how to send amcp from html to server?

Postby itod » 28 Jan 2017, 21:54

This implementation looks solid, you can find examples on GitHub:

https://github.com/SuperFlyTV/casparcg-connection
itod
 
Posts: 100
Joined: 29 Oct 2011, 20:54

Re: how to send amcp from html to server?

Postby Jesper Stærkær » 28 Jan 2017, 22:26

It lacks documentation and examples at the moment, sorry about that.
Jesper Stærkær
Independent Consultant at SuperFly.tv
User avatar
Jesper Stærkær
 
Posts: 840
Joined: 13 Apr 2010, 18:06
Location: Trondheim, Norway

Re: how to send amcp from html to server?

Postby sirfnomi » 29 Jan 2017, 13:00

itod wrote:This implementation looks solid, you can find examples on GitHub:

https://github.com/SuperFlyTV/casparcg-connection


thanks, let me try to learn it.

Jesper Stærkær wrote:It lacks documentation and examples at the moment, sorry about that.


no no , actually we are thankful for your support and your project you shared with us.
sirfnomi
 
Posts: 32
Joined: 24 Feb 2015, 22:20


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest