IxoPlayer: Add string constants for DASH manifest parser.

Change-Id: I6d549451eb7a81805ca70915232e9b923edb049e
diff --git a/vpx_ios/IxoPlayer/IxoDASHManifestParserConstants.h b/vpx_ios/IxoPlayer/IxoDASHManifestParserConstants.h
new file mode 100644
index 0000000..cfe377c
--- /dev/null
+++ b/vpx_ios/IxoPlayer/IxoDASHManifestParserConstants.h
@@ -0,0 +1,57 @@
+// Copyright (c) 2015 The WebM project authors. All Rights Reserved.
+//
+// Use of this source code is governed by a BSD-style license
+// that can be found in the LICENSE file in the root of the source
+// tree. An additional intellectual property rights grant can be found
+// in the file PATENTS.  All contributing project authors may
+// be found in the AUTHORS file in the root of the source tree.
+#import <Foundation/Foundation.h>
+
+// DASH MPD element names.
+FOUNDATION_EXPORT NSString* const kElementMPD;
+FOUNDATION_EXPORT NSString* const kElementPeriod;
+FOUNDATION_EXPORT NSString* const kElementAdaptationSet;
+FOUNDATION_EXPORT NSString* const kElementRepresentation;
+FOUNDATION_EXPORT NSString* const kElementBaseURL;
+FOUNDATION_EXPORT NSString* const kElementSegmentBase;
+FOUNDATION_EXPORT NSString* const kElementInitialization;
+FOUNDATION_EXPORT NSString* const kElementAudioChannelConfiguration;
+
+// DASH MPD element attribute names.
+FOUNDATION_EXPORT NSString* const kAttributeType;
+FOUNDATION_EXPORT NSString* const kAttributeMediaPresentationDuration;
+FOUNDATION_EXPORT NSString* const kAttributeMinBufferTime;
+FOUNDATION_EXPORT NSString* const kAttributeID;
+FOUNDATION_EXPORT NSString* const kAttributeStart;
+FOUNDATION_EXPORT NSString* const kAttributeDuration;
+FOUNDATION_EXPORT NSString* const kAttributeMimeType;
+FOUNDATION_EXPORT NSString* const kAttributeCodecs;
+FOUNDATION_EXPORT NSString* const kAttributeBitstreamSwitching;
+FOUNDATION_EXPORT NSString* const kAttributeSubsegmentAlignment;
+FOUNDATION_EXPORT NSString* const kAttributeSubsegmentStartsWithSAP;
+FOUNDATION_EXPORT NSString* const kAttributeBandwidth;
+FOUNDATION_EXPORT NSString* const kAttributeWidth;
+FOUNDATION_EXPORT NSString* const kAttributeHeight;
+FOUNDATION_EXPORT NSString* const kAttributeRange;
+FOUNDATION_EXPORT NSString* const kAttributeIndexRange;
+FOUNDATION_EXPORT NSString* const kAttributeAudioSamplingRate;
+FOUNDATION_EXPORT NSString* const kAttributeStartWithSAP;
+FOUNDATION_EXPORT NSString* const kAttributeValue;
+
+// Known values for MPD elements and attributes.
+FOUNDATION_EXPORT NSString* const kMimeTypeWebmAudio;
+FOUNDATION_EXPORT NSString* const kMimeTypeWebmVideo;
+
+FOUNDATION_EXPORT NSString* const kCodecOpus;
+FOUNDATION_EXPORT NSString* const kCodecVorbus;
+
+FOUNDATION_EXPORT NSString* const kCodecVP8;
+FOUNDATION_EXPORT NSString* const kCodecVP9;
+
+FOUNDATION_EXPORT NSString* const kPresentationTypeDynamic;
+FOUNDATION_EXPORT NSString* const kPresentationTypeStatic;
+
+// TODO(tomfinegan): Not sure if I'll find it useful to have dictionaries of
+// expected attributes for each element. That and whether or not a dictionary
+// of elements expected as children of the element being parsed are currently
+// open questions.
diff --git a/vpx_ios/IxoPlayer/IxoDASHManifestParserConstants.m b/vpx_ios/IxoPlayer/IxoDASHManifestParserConstants.m
new file mode 100644
index 0000000..4603b3d
--- /dev/null
+++ b/vpx_ios/IxoPlayer/IxoDASHManifestParserConstants.m
@@ -0,0 +1,51 @@
+// Copyright (c) 2015 The WebM project authors. All Rights Reserved.
+//
+// Use of this source code is governed by a BSD-style license
+// that can be found in the LICENSE file in the root of the source
+// tree. An additional intellectual property rights grant can be found
+// in the file PATENTS.  All contributing project authors may
+// be found in the AUTHORS file in the root of the source tree.
+#import "IxoDASHManifestParserConstants.h"
+
+// DASH MPD element names.
+NSString* const kElementMPD = @"MPD";
+NSString* const kElementPeriod = @"Period";
+NSString* const kElementAdaptationSet = @"AdaptationSet";
+NSString* const kElementRepresentation = @"Representation";
+NSString* const kElementBaseURL = @"BaseURL";
+NSString* const kElementSegmentBase = @"SegmentBase";
+NSString* const kElementInitialization = @"Initialization";
+NSString* const kElementAudioChannelConfiguration =
+    @"AudioChannelConfiguration";
+
+// DASH MPD element attribute names.
+NSString* const kAttributeType = @"type";
+NSString* const kAttributeMediaPresentationDuration =
+    @"mediaPresentationDuration";
+NSString* const kAttributeMinBufferTime = @"minBufferTime";
+NSString* const kAttributeID = @"id";
+NSString* const kAttributeStart = @"start";
+NSString* const kAttributeDuration = @"duration";
+NSString* const kAttributeMimeType = @"mimeType";
+NSString* const kAttributeCodecs = @"codecs";
+NSString* const kAttributeBitstreamSwitching = @"bitstreamSwitching";
+NSString* const kAttributeSubsegmentAlignment = @"subsegmentAlignment";
+NSString* const kAttributeSubsegmentStartsWithSAP = @"subsegmentStartsWithSAP";
+NSString* const kAttributeBandwidth = @"bandwidth";
+NSString* const kAttributeWidth = @"width";
+NSString* const kAttributeHeight = @"height";
+NSString* const kAttributeRange = @"range";
+NSString* const kAttributeIndexRange = @"indexRange";
+NSString* const kAttributeAudioSamplingRate = @"audioSamplingRate";
+NSString* const kAttributeStartWithSAP = @"startWithSAP";
+NSString* const kAttributeValue = @"value";
+
+// Known values for MPD elements and attributes.
+NSString* const kMimeTypeWebmAudio = @"audio/webm";
+NSString* const kMimeTypeWebmVideo = @"video/webm";
+NSString* const kCodecVP8 = @"vp8";
+NSString* const kCodecVP9 = @"vp9";
+NSString* const kCodecOpus = @"opus";
+NSString* const kCodecVorbis = @"vorbis";
+NSString* const kPresentationTypeDynamic = @"dynamic";
+NSString* const kPresentationTypeStatic = @"static";
diff --git a/vpx_ios/IxoPlayer/IxoPlayer.xcodeproj/project.pbxproj b/vpx_ios/IxoPlayer/IxoPlayer.xcodeproj/project.pbxproj
index 914463f..7c44178 100644
--- a/vpx_ios/IxoPlayer/IxoPlayer.xcodeproj/project.pbxproj
+++ b/vpx_ios/IxoPlayer/IxoPlayer.xcodeproj/project.pbxproj
@@ -11,6 +11,7 @@
 		6A2755BA1B543DFE00578A95 /* IxoDownloadRecord.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A2755B91B543DFE00578A95 /* IxoDownloadRecord.m */; };
 		6A2755BD1B54413000578A95 /* IxoDownloadQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A2755BC1B54413000578A95 /* IxoDownloadQueue.m */; };
 		6A4370EA1B5432D00006FD6D /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6A4370E91B5432D00006FD6D /* Default-568h@2x.png */; };
+		6A8206771B682D9500FD6040 /* IxoDASHManifestParserConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A8206761B682D9500FD6040 /* IxoDASHManifestParserConstants.m */; };
 		6A8FD2B61B62E76100BDD946 /* IxoDASHManifestParserTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A8FD2B51B62E76100BDD946 /* IxoDASHManifestParserTests.m */; };
 		6A8FD2BC1B62FD6C00BDD946 /* IxoPlayerTestCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A8FD2BB1B62FD6C00BDD946 /* IxoPlayerTestCommon.m */; };
 		6AC43A091B5047BB00801EAF /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6AC43A021B5047BB00801EAF /* AppDelegate.m */; };
@@ -41,6 +42,8 @@
 		6A2755BB1B54413000578A95 /* IxoDownloadQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IxoDownloadQueue.h; sourceTree = SOURCE_ROOT; };
 		6A2755BC1B54413000578A95 /* IxoDownloadQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IxoDownloadQueue.m; sourceTree = SOURCE_ROOT; };
 		6A4370E91B5432D00006FD6D /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+		6A8206751B682CF400FD6040 /* IxoDASHManifestParserConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IxoDASHManifestParserConstants.h; sourceTree = SOURCE_ROOT; };
+		6A8206761B682D9500FD6040 /* IxoDASHManifestParserConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IxoDASHManifestParserConstants.m; sourceTree = SOURCE_ROOT; };
 		6A8FD2B51B62E76100BDD946 /* IxoDASHManifestParserTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IxoDASHManifestParserTests.m; sourceTree = "<group>"; };
 		6A8FD2BA1B62FD6C00BDD946 /* IxoPlayerTestCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IxoPlayerTestCommon.h; sourceTree = "<group>"; };
 		6A8FD2BB1B62FD6C00BDD946 /* IxoPlayerTestCommon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IxoPlayerTestCommon.m; sourceTree = "<group>"; };
@@ -111,6 +114,8 @@
 				6AC43A041B5047BB00801EAF /* IxoDataSource.m */,
 				6ADFC2211B66F9C50034819F /* IxoDASHManifestParser.h */,
 				6ADFC2221B66F9C50034819F /* IxoDASHManifestParser.m */,
+				6A8206751B682CF400FD6040 /* IxoDASHManifestParserConstants.h */,
+				6A8206761B682D9500FD6040 /* IxoDASHManifestParserConstants.m */,
 				6AC43A071B5047BB00801EAF /* TextViewController.h */,
 				6AC43A081B5047BB00801EAF /* TextViewController.m */,
 				6AE5EC4A1B4EE3B200AA955F /* Supporting Files */,
@@ -307,6 +312,7 @@
 				6AC43A0E1B5047C700801EAF /* main.m in Sources */,
 				6A2755BD1B54413000578A95 /* IxoDownloadQueue.m in Sources */,
 				6AC43A091B5047BB00801EAF /* AppDelegate.m in Sources */,
+				6A8206771B682D9500FD6040 /* IxoDASHManifestParserConstants.m in Sources */,
 				6AC43A0A1B5047BB00801EAF /* IxoDataSource.m in Sources */,
 				6A2755B71B543C7400578A95 /* IxoDownloadOperation.m in Sources */,
 				6AC43A0C1B5047BB00801EAF /* TextViewController.m in Sources */,