1/***************************************************** 2* 3* Copyright 2009 Adobe Systems Incorporated. All Rights Reserved. 4* 5***************************************************** 6* The contents of this file are subject to the Mozilla Public License 7* Version 1.1 (the "License"); you may not use this file except in 8* compliance with the License. You may obtain a copy of the License at 9* http://www.mozilla.org/MPL/ 10* 11* Software distributed under the License is distributed on an "AS IS" 12* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 13* License for the specific language governing rights and limitations 14* under the License. 15* 16* 17* The Initial Developer of the Original Code is Adobe Systems Incorporated. 18* Portions created by Adobe Systems Incorporated are Copyright (C) 2009 Adobe Systems 19* Incorporated. All Rights Reserved. 20* 21*****************************************************/ 22package org.osmf.traits 23{ 24 import __AS3__.vec.Vector; 25 26 /** 27 * MediaTraitType is the enumeration of all possible media trait types. 28 * 29 * <p>The set of traits in the framework are fixed: clients are not expected 30 * to introduce their own, as they form the core vocabulary of the system.</p> 31 * 32 * @langversion 3.0 33 * @playerversion Flash 10 34 * @playerversion AIR 1.5 35 * @productversion OSMF 1.0 36 */ 37 public final class MediaTraitType 38 { 39 /** 40 * Identifies an instance of an AudioTrait. 41 * 42 * @langversion 3.0 43 * @playerversion Flash 10 44 * @playerversion AIR 1.5 45 * @productversion OSMF 1.0 46 */ 47 public static const AUDIO:String = "audio"; 48 49 /** 50 * Identifies an instance of a BufferTrait. 51 * 52 * @langversion 3.0 53 * @playerversion Flash 10 54 * @playerversion AIR 1.5 55 * @productversion OSMF 1.0 56 */ 57 public static const BUFFER:String = "buffer"; 58 59 /** 60 * Identifies an instance of a DRMTrait. 61 * 62 * @langversion 3.0 63 * @playerversion Flash 10 64 * @playerversion AIR 1.5 65 * @productversion OSMF 1.0 66 */ 67 public static const DRM:String = "drm"; 68 69 /** 70 * Identifies an instance of a DynamicStreamTrait. 71 * 72 * @langversion 3.0 73 * @playerversion Flash 10 74 * @playerversion AIR 1.5 75 * @productversion OSMF 1.0 76 */ 77 public static const DYNAMIC_STREAM:String = "dynamicStream"; 78 79 /** 80 * Identifies an instance of a LoadTrait. 81 * 82 * @langversion 3.0 83 * @playerversion Flash 10 84 * @playerversion AIR 1.5 85 * @productversion OSMF 1.0 86 */ 87 public static const LOAD:String = "load"; 88 89 /** 90 * Identifies an instance of a PlayTrait. 91 * 92 * @langversion 3.0 93 * @playerversion Flash 10 94 * @playerversion AIR 1.5 95 * @productversion OSMF 1.0 96 */ 97 public static const PLAY:String = "play"; 98 99 /** 100 * Identifies an instance of a SeekTrait. 101 * 102 * @langversion 3.0 103 * @playerversion Flash 10 104 * @playerversion AIR 1.5 105 * @productversion OSMF 1.0 106 */ 107 public static const SEEK:String = "seek"; 108 109 /** 110 * Identifies an instance of a TimeTrait. 111 * 112 * @langversion 3.0 113 * @playerversion Flash 10 114 * @playerversion AIR 1.5 115 * @productversion OSMF 1.0 116 */ 117 public static const TIME:String = "time"; 118 119 /** 120 * Identifies an instance of a DisplayObjectTrait. 121 * 122 * @langversion 3.0 123 * @playerversion Flash 10 124 * @playerversion AIR 1.5 125 * @productversion OSMF 1.0 126 */ 127 public static const DISPLAY_OBJECT:String = "displayObject"; 128 129 /** 130 * Identifies an instance of a DVRTrait. 131 * 132 * @langversion 3.0 133 * @playerversion Flash 10 134 * @playerversion AIR 1.5 135 * @productversion OSMF 1.0 136 */ 137 public static const DVR:String = "dvr"; 138 139 /** 140 * @private 141 * 142 * Array containing all trait types in the system. 143 */ 144 public static const ALL_TYPES:Vector.<String> = Vector.<String> 145 ( [ AUDIO 146 , BUFFER 147 , DRM 148 , DYNAMIC_STREAM 149 , LOAD 150 , PLAY 151 , SEEK 152 , TIME 153 , DISPLAY_OBJECT 154 , DVR 155 ] 156 ); 157 } 158}