UNPKG

nmos-ledger

Version:

NMOS discovery and registration APIs

96 lines (70 loc) 3.33 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Source: model/Formats.js</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Source: model/Formats.js</h1> <section> <article> <pre class="prettyprint source linenums"><code>/* Copyright 2015 Christine S. MacNeill Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli cable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Types of format - v1.0 /** * A URN describing the data format of a video, audio or event * [flow]{@link Flow * * &lt;p>Sub-classifications of these core URNs may also be encountered within this * API version (such as urn:x-ipstudio:format:video.raw), and should still be * interpreted correctly by consumers up to the boundaries above.&lt;/p> * @enum {string} * @readonly */ var formats = { /** Value &lt;code>urn:x-ipstudio:format:video&lt;/code>. */ video: "urn:x-ipstudio:format:video", /** Value &lt;code>urn:x-ipstudio:format:audio&lt;/code>. */ audio: "urn:x-ipstudio:format:audio", /** Value &lt;code>urn:x-ipstudio:format:event&lt;/code>. */ event: "urn:x-ipstudio:format:event" }; formats.validFormat =function (f) { return typeof f === 'string' &amp;&amp; (f.startsWith(formats.video) || f.startsWith(formats.audio) || f.startsWith(formats.event) ); }; module.exports = Object.freeze(formats); </code></pre> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Device.html">Device</a></li><li><a href="Flow.html">Flow</a></li><li><a href="Node.html">Node</a></li><li><a href="NodeAPI.html">NodeAPI</a></li><li><a href="NodeRAMStore.html">NodeRAMStore</a></li><li><a href="Versionned.html">Versionned</a></li></ul><h3>Interfaces</h3><ul><li><a href="NodeStore.html">NodeStore</a></li></ul><h3>Global</h3><ul><li><a href="global.html#capabilities">capabilities</a></li><li><a href="global.html#deviceTypes">deviceTypes</a></li><li><a href="global.html#formats">formats</a></li><li><a href="global.html#statusError">statusError</a></li><li><a href="global.html#transports">transports</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Dec 21 2015 17:19:49 GMT+0000 (GMT) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>