Channel Currently Playing info

Hello Everyone,
which request should I send to the server to know which channel is actually playing?
Using INFO 2-10 with version Server 2.3.0 a4a7c053 Dev for instance is returning me the following:

<?xml version="1.0" encoding="utf-8"?>
<channel>
   <framerate>30</framerate>
   <framerate>1</framerate>
   <mixer>
      <audio>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
      </audio>
   </mixer>
   <stage>
      <layer>
         <layer_10>
            <background>
               <producer>empty</producer>
            </background>
            <foreground>
               <file>
                  <path>file://C:\CasparCG Server\template/ATHID/INDEX.html</path>
               </file>
               <paused>false</paused>
               <producer>html</producer>
            </foreground>
         </layer_10>
      </layer>
   </stage>
</channel>

I cannot see any difference on the on the xml from which understanding if something is playing.
Where I am making a mistake?
Thanks in advance
Federico

Try following command for channel 1 info

info 1

Thanks,
It returns the following when channel clear:

<?xml version="1.0" encoding="utf-8"?>
<channel>
   <framerate>50</framerate>
   <framerate>1</framerate>
   <mixer>
      <audio>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
      </audio>
   </mixer>
</channel>

and when something WAS played:

#201 INFO OK

<?xml version="1.0" encoding="utf-8"?>
<channel>
   <framerate>50</framerate>
   <framerate>1</framerate>
   <mixer>
      <audio>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
         <volume>0</volume>
      </audio>
   </mixer>
   <stage>
      <layer>
         <layer_10>
            <background>
               <producer>empty</producer>
            </background>
            <foreground>
               <file>
                  <path>file://C:\CasparCG Server\template/ATHID/INDEX.html</path>
               </file>
               <paused>false</paused>
               <producer>html</producer>
            </foreground>
         </layer_10>
      </layer>
   </stage>
</channel>

but the difference is only if the CLEAR CHANNEL is sent not the stop.
So I am basically looking for a way to know if a layer is currently shown or not on a channel, without completely clearing the channel so I can use outro animation.
Thanks

With the HTML producer you must call window.remove() This won’t clear the HTML producer but at least will clear the file playing.

For example if you are using GSAP for animations, you can set:

gsap.to("body", 0.5,
{
    opacity:0,
    ease:"power3.out",
    onComplete:window.remove
});
Privacy Policy   Terms of Service