DashConfig.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\Transcoder;
  18. class DashConfig extends \Google\Model
  19. {
  20. /**
  21. * The segment reference scheme is not specified.
  22. */
  23. public const SEGMENT_REFERENCE_SCHEME_SEGMENT_REFERENCE_SCHEME_UNSPECIFIED = 'SEGMENT_REFERENCE_SCHEME_UNSPECIFIED';
  24. /**
  25. * Explicitly lists the URLs of media files for each segment. For example, if
  26. * SegmentSettings.individual_segments is `true`, then the manifest contains
  27. * fields similar to the following: ```xml ... ```
  28. */
  29. public const SEGMENT_REFERENCE_SCHEME_SEGMENT_LIST = 'SEGMENT_LIST';
  30. /**
  31. * SegmentSettings.individual_segments must be set to `true` to use this
  32. * segment reference scheme. Uses the DASH specification `` tag to determine
  33. * the URLs of media files for each segment. For example: ```xml ... ```
  34. */
  35. public const SEGMENT_REFERENCE_SCHEME_SEGMENT_TEMPLATE_NUMBER = 'SEGMENT_TEMPLATE_NUMBER';
  36. /**
  37. * The segment reference scheme for a `DASH` manifest. The default is
  38. * `SEGMENT_LIST`.
  39. *
  40. * @var string
  41. */
  42. public $segmentReferenceScheme;
  43. /**
  44. * The segment reference scheme for a `DASH` manifest. The default is
  45. * `SEGMENT_LIST`.
  46. *
  47. * Accepted values: SEGMENT_REFERENCE_SCHEME_UNSPECIFIED, SEGMENT_LIST,
  48. * SEGMENT_TEMPLATE_NUMBER
  49. *
  50. * @param self::SEGMENT_REFERENCE_SCHEME_* $segmentReferenceScheme
  51. */
  52. public function setSegmentReferenceScheme($segmentReferenceScheme)
  53. {
  54. $this->segmentReferenceScheme = $segmentReferenceScheme;
  55. }
  56. /**
  57. * @return self::SEGMENT_REFERENCE_SCHEME_*
  58. */
  59. public function getSegmentReferenceScheme()
  60. {
  61. return $this->segmentReferenceScheme;
  62. }
  63. }
  64. // Adding a class alias for backwards compatibility with the previous class name.
  65. class_alias(DashConfig::class, 'Google_Service_Transcoder_DashConfig');