cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
134
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Niklas Andersson on 16-10-2009 08:59:12 AM
Hi!
Is there any in depth information regarding the layout control in the c90.
All i find about making layouts and frames is from the API in the c90 integrators manual.
Im missing some information to fully understand the function, for example:
after reboot all made layouts are gone does this also happen when all calls are terminated?

Is there a way to save the newly made layout as a family (as the default windows are)?
I would like to save the layouts that iv made and just recall them not draw them again.

All new layouts get a new layoutid, does this also apply to the factory default windows or do they always have the same id?

To apply a layout change you have to send the CallId, is my own (local endpoint) always 1 or do this depend on in witch order the calls was made and witch direction the call has?

Also a description of what the difference is on the sources that is possible to display in the layout, ex. RemoteMain, remoteother etc.

Thanks!

Subject: RE: Layout control C90
Replied by: Jonas Tysso on 16-10-2009 10:44:34 AM
Hi Niklas,
Check out the newly posted API descriptions of the C90

It you want to store video layouts, you can make a startup script that is run every time the codec boots. Name the script "yourscript.tsh" and put it in the /user/scripts.d folder. It's important to use UNIX end of lines when you edit this file. If you use a windows system, make sure that your editor is set to this.

If you have different layouts that you have made, you can run them as scripts. Check out the following example of a layout script that will put presentation with selfview in a smaller PIP in upper left corner on output 4,  incoming video on output 2 and the full presentation on output 1:
 1
 2#!/usr/bin/env tsh
 3xCommand Video Layout RemoveAll
 4xCommand Video Layout Add
 5xCommand Video Layout Frame Add LayoutId: 1 positionX: 0 positionY: 0 width: 10000 height: 10000 layer: 1 border: off videosourcetype: presentation
 6xCommand Video Layout Frame Add LayoutId: 1 PositionX: 0 PositionY: 0 width: 3000 height: 3000 layer: 2 border: off videosourcetype: ownMain
 7xCommand Video Layout Assign CallId: 1 OutputId: 4 LayoutID: 1
 8xCommand Video Layout Add
 9xCommand Video Layout Frame Add LayoutId: 2 positionX: 0 positionY: 0 width: 10000 height: 10000 layer: 1 border: off videosourcetype: otherMain
10xCommand Video Layout Assign CallId: 1 OutputId: 2 LayoutID: 2
11xCommand Video Layout Add
12xCommand Video Layout Frame Add LayoutId: 3 positionX: 0 positionY: 0 width: 10000 height: 10000 layer: 1 border: off videosourcetype: presentation
13xCommand Video Layout Assign CallId: 1 OutputId: 1 LayoutID: 3


Cheers!
Jonas

Subject: RE: Layout control C90
Replied by: Marios Maltezis on 22-10-2009 03:39:56 PM
Hi all,

I tried this but unfortunately i haven't succeeded it yet. I'm using Windows and SciTE as text editor.
Of course i have changed the CR LF with only LF.
My script file is named "MyScript.tsh" and the permissions are 0777. Is this OK ?
Could you please attach a file like the one you describe so i can make sure that its not anything about the file i created ?

Best Regards,

Marios

Subject: RE: Layout control C90
Replied by: Jonas Tysso on 23-10-2009 12:40:16 PM
Hi Marios,

You can name your script to what you like, just make sure it has the tsh extension. The permissions should be ok when set to 0777.
The example above is attached as a file so you can have a look. Notice that I had to change the extension of the file from 'tsh' to 'txt' in order to be able to post it here

good luck,
Jonas
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links