Adding a Video Content Type

If the iNEWS stories to be imported to a publication will include video, then the publication's content-type resource must contain a suitable content type. For example:

<content-type name="video"> <parameter name="com.escenic.video" value="true"/> <ui:icon>graphic</ui:icon> <ui:label>External video</ui:label> <ui:title-field>title</ui:title-field> <panel name="main"> <field name="title" type="basic"/>  <field name="video" type="basic" mime-type="application/json"> <video xmlns="http://xmlns.escenic.com/2010/video" enabled="true"/> </field>  </panel> </content-type>

The important points to note are highlighted in the example:

A video content type must at least have the following:

  • The content type must have a parameter element called com.escenic.video that is set to true

  • It must also have a basic field with:

    • mime-type set to application/json

    • a video sub-element with a value attribute set to true. This element must belong to the namespace http://xmlns.escenic.com/2010/video.

A video content type that is to be used by the Newsroom plug-in must not contain any binary fields.