Source for file Formats.class.php

Documentation is available at Formats.class.php

  1. <?php
  2. class Formats {
  3.  
  4. /**
  5. * @access private static
  6. * @var array
  7. */
  8. private static $audioCodecs = array("mpga","mp3","mp4a");
  9.  
  10. /**
  11. * @access private static
  12. * @var array
  13. */
  14. private static $videoCodecs = array("DIV3","MP43","WMV1","WMV2","H263");
  15.  
  16. /**
  17. * @access private static
  18. * @var array
  19. */
  20. private static $audioBitrate = array(60);
  21.  
  22. /**
  23. * @access private static
  24. * @var array
  25. */
  26. private static $videoBitrate = array(100,150,300,500,750,900,2000);
  27.  
  28. /**
  29. * @access private static
  30. * @var array
  31. */
  32. private static $videoScale = array("1.0");
  33.  
  34. /**
  35. * @access private static
  36. * @var int
  37. */
  38. private static $videoChannel = 1;
  39.  
  40. /**
  41. * @access private static
  42. * @var array
  43. */
  44. private static $videoDimensions = array("176x144","382x288","512x288","768x432","1024x576");
  45.  
  46. /**
  47. * @access private static
  48. * @var array
  49. */
  50. private static $videoFrameRates = array(10,15,20,25);
  51.  
  52. /**
  53. * @access private static
  54. * @var array
  55. */
  56. private static $streamTypes = array("http","udp","mmsh","rtp");
  57.  
  58. /**
  59. * Get the audio codecs in an array format.
  60. * @return array
  61. */
  62. static public function getAudioCodecs() {
  63. return Formats::$audioCodecs;
  64. }
  65.  
  66. /**
  67. * Get the video codecs in an array format.
  68. * @return array
  69. */
  70. static public function getVideoCodecs() {
  71. return Formats::$videoCodecs;
  72. }
  73.  
  74. /**
  75. * Get the audio bitrates in an array format.
  76. * @return array
  77. */
  78. static public function getAudioBitrates() {
  79. return Formats::$audioBitrate;
  80. }
  81.  
  82. /**
  83. * Get the video bitrates in an array format.
  84. * @return array
  85. */
  86. static public function getVideoBitrates() {
  87. return Formats::$videoBitrate;
  88. }
  89.  
  90. /**
  91. * Get the video scale in an array format.
  92. * @return array
  93. */
  94. static public function getScales() {
  95. return Formats::$videoScale;
  96. }
  97.  
  98. /**
  99. * Get the video channel.
  100. * @return int
  101. */
  102. static public function getVideoChannel() {
  103. return Formats::$videoChannel;
  104. }
  105.  
  106. /**
  107. * Get the frame dimensions in array format.
  108. * @return array
  109. */
  110. static public function getDimensions() {
  111. return Formats::$videoDimensions;
  112. }
  113.  
  114. /**
  115. * Get the frame rates in array format.
  116. * @return array
  117. */
  118. static public function getFrameRates() {
  119. return Formats::$videoFrameRates;
  120. }
  121.  
  122. /**
  123. * Get the stream types in an array format.
  124. * @return array
  125. */
  126. static public function getStreamTypes() {
  127. return Formats::$streamTypes;
  128. }
  129. }
  130. ?>

Documentation generated on Sat, 19 Jan 2008 12:56:16 +0100 by phpDocumentor 1.3.0RC3