cortex-editorial-view
v2.0.4
Published
Editorial content view for Cortex applications
Downloads
15
Readme
cortex-editorial-view
Simple view for Cortex apps to display editorial images from an XML feed.
Usage
{EditorialView} = require 'cortex-editorial-view'
view = new EditorialView 'http://example.com/feed.xml', opts
window.Cortex.view.register 'EditorialView'
view.run()
Configuration options
displayTime
: View duration in milliseconds. Default is 7500 ms.assetCacheTTL
: Editorail image cache duration in milliseconds. Default is 7 days.feedCacheTTL
: XML feed cache duration in milliseconds. Default is 1 day.feedCachePeriod
: View will try to refresh the XML feed everyfeedCachePeriod
milliseconds. Default is 30 mins.
Requirements
- Cortex Player v1.6+
- A feed similar to: http://kitchen.screenfeed.com/feed/VqZWjdNCD0WEx1C6gtYSSA?duration=15. Expects the feed to have RSS style
item
sections. Url attribute ofitem::media:content
will be used as image sources.