Adding a Video Content Type
If the newsroom 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 calledcom.escenic.video
that is set totrue
-
It must also have a
basic
field with:-
mime-type
set toapplication/json
-
a
video
sub-element with avalue
attribute set totrue
. This element must belong to the namespacehttp://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.