diff --git a/src/common/enums/stretch.enum.js b/src/common/enums/stretch.enum.js index 130f92b..fd9b7b9 100644 --- a/src/common/enums/stretch.enum.js +++ b/src/common/enums/stretch.enum.js @@ -5,7 +5,27 @@ var Stretch = Object.freeze({ Conditional: 3, Fixed: 4, FixedSource: 5, - Default: -1 + Default: -1, + toString: (stretch) => { + switch (stretch) { + case 0: + return 'NoStretch'; + case 1: + return 'Basic'; + case 2: + return 'Hybrid'; + case 3: + return 'Conditional'; + case 4: + return 'Fixed'; + case 5: + return 'FixedSource'; + case -1: + return 'Default'; + default: + return 'INVALID STRETCH VALUE'; + } + } }); export default Stretch; diff --git a/src/common/enums/video-alignment.enum.js b/src/common/enums/video-alignment.enum.js index 3158f37..212163e 100644 --- a/src/common/enums/video-alignment.enum.js +++ b/src/common/enums/video-alignment.enum.js @@ -2,7 +2,21 @@ var VideoAlignment = Object.freeze({ Left: 0, Center: 1, Right: 2, - Default: -1 + Default: -1, + toString: (alignment) => { + switch (alignment) { + case 0: + return 'Left'; + case 1: + return 'Center'; + case 2: + return 'Right'; + case -1: + return 'Default'; + default: + return 'ILLEGAL VIDEO ALIGNMENT'; + } + } }); export default VideoAlignment;