+++ /dev/null
-<?php\r
-/**\r
- * MPlayer Class\r
- */\r
-class MPlayer extends CaptionFormat\r
-{\r
- private $textStyles = array(); \r
- \r
- /**\r
- * Imports a caption string into a CaptionCollection \r
- *\r
- * @param String $theCCString the caption file as string\r
- * @return CaptionCollection $myCcCollection A CaptionCollection Object\r
- */\r
- public function importCC($theCCString) \r
- {\r
- return'';\r
- \r
- } // end importCC()\r
-\r
- /**\r
- * Exports a CaptionCollection object into a string\r
- *\r
- * @param CaptionCollection $theCollection A CaptionCollection Object\r
- * @return String $captionString The caption as a String\r
- */\r
- public function exportCC($theCollection)\r
- {\r
- \r
- $ccExport = '';\r
- \r
- $myCollection = $theCollection->getCollection();\r
- \r
- foreach ($myCollection as $captionObj)\r
- {\r
- \r
- } // end foreach\r
- \r
- } // end exportCC()\r
- \r
- /**\r
- * Verify if the caption file is a QText caption file \r
- */\r
- public function checkFormat($theCCString)\r
- {\r
- return '';\r
- \r
- } // end checkFormat() \r
-\r
- /*\r
- * Here functions to re-define\r
- */\r
- public function getName()\r
- {\r
- return 'MPlayer';\r
- }\r
- \r
- public function getAbout()\r
- {\r
- return 'This is the native format used by the popular and open source Mplayer video player. \r
- If you have a video file, Mplayer will be able to play it almost on any OS (Win, Mac, Linux), and use many different caption formats as well !!\r
- The best candidate !!';\r
- }\r
- \r
- public function getVersion()\r
- {\r
- return '???';\r
- }\r
- \r
- public function getFileExtension()\r
- {\r
- return 'mpl';\r
- }\r
- \r
- public function getIdPattern()\r
- {\r
- $idPattern = '/unknown/';\r
- //\r
- return $idPattern;\r
- }\r
- \r
- public function allowsTextStyles()\r
- {\r
- return '????';\r
- }\r
- \r
- public function template()\r
- {\r
- $ccTemplate = '\r
-0,85,0,caption 1 \r
-85,148,0,caption 2\r
-148,182,0,caption 3\r
-182,269,0,caption 4\r
-269,358,0,caption 5\r
-358,414,0,caption 6\r
-414,497,0,caption 7\r
-497,534,0,caption 8\r
-589,642,0,caption 9\r
-642,694,0,caption 10\r
-694,783,0,caption 11\r
-783,844,0,caption 12\r
-844,896,0,caption 13\r
- \r
- ';\r
- \r
- return $ccTemplate;\r
- }\r
- \r
-} // end MPlayer class \r
-?>
\ No newline at end of file