Authoring Considerations

 In

Revision for “Authoring Considerations” created on 8 December 2016 @ 11:10:49

Title
Authoring Considerations
Content
Layout ModelWe have two types of device, communal &amp; personal, we can have multiple communal devices (typically TVs) and multiple personal devices (tablets, phones) participating in a context (a household).A DMApp has a layout document that specifies layout constraints for each component that has been defined in the corresponding timeline document.For each component, constraints are defined for presentation on communal &amp; personal devices respectively. These constraints are effectively independent.For layout, communal devices are treated as a group, (and only one instance of each component will be laid out across this group) whilst personal devices may have a component instance each. <p class="p1"><span class="s1">The per device-type / per component constraints include a priority. When layout is calculated for a device, we sort the components by priority and then look for space to allocate to them (so highest priority is more likely to be laid out). Setting priority to zero will exclude a component from layout. There is currently no mechanism for falling back 'personal only' </span><span class="s1">components onto communal devices if there is no personal device available (we may support this in future if required).</span></p> When authoring a layout document, some things to consider:What overall layout model do you want to adopt? <ul> <li>Dynamic - this dynamically subdivides the available screen space to accommodate components, components will grow to fill available space, and won't be placed if space is &lt; minSize. Components are placed in order of priority; high -&gt; low</li> <li>Templated - this uses a set of region definitions (defined in screen co-ords 0.0 - 1.0) for each device-type (portrait &amp; landscape definitions)...</li> <li>Dynamic + logical regions - this allows the client app running on a a device  to create one or more logical regions. The service will place components into these regions, and the client can manage presentation of the regions without needing further involvement of the layout service. Components can be given a prioritised list of target logical region constraints, if none is given then they can be placed on any of the device's logical regions.</li> </ul> NB - at the moment, the prefSize constraint is supported through a separate layout mode, 'packer', although this may be folded into 'dynamic' in future... For prefSize, height &amp; width can be specified as numeric pixel dimensions, or string percentage values (percentage of device and/or region size).For all components – what is their relative importance? Try and rank them...For each component on the timeline, you should consider the following, as it would affect the presentation on communal &amp; personal devices... <ul> <li>What device capabilities does this need…? <ul> <li>Audio</li> <li>Touch interaction</li> </ul> </li> <li>What is the minimum presentation size? (in pixels)</li> <li>Does it have a fixed aspect ratio? (e.g. video)</li> <li>Do I want margins?</li> <li>Do I want to set an position anchor? (dynamic only)</li> <li>Do I have any dependencies on other components? (not implemented yet)</li> <li>Do I have any dependencies on other components on the same device? (not implemented yet)</li> <li>Assign priority (high value = higher priority, 0 won't lay out</li> </ul> From this you should be able to author a set of per component constraints, for presentation on communal &amp; personal devices.Note That: <ul> <li>Note that users will be able to override priorities, and if you set a priority to 0 it will not be laid (until overridden)</li> <li>We have defined json schema for the layout docs which can be used to validate docs. The layout service repo includes a standalone validator in the /validate folder.</li> <li>The layout service will generate a warning if an 'unknown' component (i.e. one that was not declared in the layout doc is run. In this situation the service assume as set of fairly relaxed constraints, so the component will likely layout, but may not run as expected. This is usually down to a mismatch between component ids in timeline &amp; layout docs. <ul> <li>You can find these easily for the service instance on mantl by going to: https://2immerse.advdev.tv/kibana/app/kibana?#/discover and using the filter:  rawmessage:"/^2-Immerse/" AND source:"LayoutService" AND level:"WARNING"</li> </ul> </li> </ul> The spec for the layout requirements document is available here: <a href="https://gitlab-ext.irt.de/2-immerse/layout-service/blob/master/api/document.md">https://gitlab-ext.irt.de/2-immerse/layout-service/blob/master/api/document.md</a>
Excerpt
Markdown content


OldNewDate CreatedAuthorActions
8 December 2016 @ 11:10:49James Walker
15 November 2016 @ 00:50:14James Walker
10 November 2016 @ 12:03:18James Walker
9 November 2016 @ 18:11:27James Walker
9 November 2016 @ 18:09:50James Walker
9 November 2016 @ 18:02:45James Walker
9 November 2016 @ 18:02:08James Walker
Recent Posts
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt

Start typing and press Enter to search