Playing videos in Caspar from Flash template

#1
Hi.

I've read in one of the previous topics that it's possible to send instructions to Caspar server from Flash template using ActionScript class Socket.

Somewhere on top of your .as file:
private var mysocket:CustomSocket = new CustomSocket("localhost", 5250);
To play:
override public function Play():void
{
mysocket.writeln("PLAY " + channel + "-" + videoLayer + " Tactic_Intro");
mysocket.flush();
}
To stop:
override public function Stop():void
{
mysocket.writeln("STOP " + channel + "-" + videoLayer);
mysocket.flush();
removeTemplate();
}

In the example there is an override of the Play function. Could I use the same way to control videos from inside the Flash template timeline - for example to play a certain video from a specific frame on the timeline? Would you be so kind to upload or give me the link for the ActionScript object that you use for this?

Re: Playing videos in Caspar from Flash template

#2
The ActionScript object is here https://www.dropbox.com/s/btxjrjz5jb9ct ... et.as?dl=0. I think I posted this link earlier. Concerning playing from the timeline: I don't know, I never tried, as I do most of my animations in ActionScript and only use "stop();" in action frames. So you need to try for yourself.
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