changed git call from https to git readonly
[atutor.git] / mods / atutor_opencaps / opencaps / conversion_service / include / classes / ccformats / cc_MPlayer_format.php
1 <?php\r
2 /**\r
3  * MPlayer Class\r
4  */\r
5 class MPlayer extends CaptionFormat\r
6 {\r
7         private $textStyles = array();  \r
8         \r
9         /**\r
10          * Imports a caption string into a CaptionCollection \r
11          *\r
12          * @param String $theCCString the caption file as string\r
13          * @return CaptionCollection $myCcCollection A CaptionCollection Object\r
14          */\r
15         public function importCC($theCCString) \r
16         {\r
17                 return'';\r
18                                  \r
19         } // end importCC()\r
20 \r
21         /**\r
22          * Exports a CaptionCollection object into a string\r
23          *\r
24          * @param CaptionCollection $theCollection A CaptionCollection Object\r
25          * @return String $captionString The caption as a String\r
26          */\r
27         public function exportCC($theCollection)\r
28         {\r
29                 \r
30                 $ccExport = '';\r
31         \r
32                 $myCollection = $theCollection->getCollection();\r
33                 \r
34                 foreach ($myCollection as $captionObj)\r
35                 {\r
36                         \r
37                 } // end foreach\r
38                 \r
39         } // end  exportCC()\r
40         \r
41         /**\r
42          * Verify if the caption file is a QText caption file \r
43         */\r
44         public function checkFormat($theCCString)\r
45         {\r
46                 return '';\r
47                 \r
48         } // end  checkFormat() \r
49 \r
50         /*\r
51          * Here functions to re-define\r
52          */\r
53         public function getName()\r
54         {\r
55                 return 'MPlayer';\r
56         }\r
57         \r
58         public function getAbout()\r
59         {\r
60                 return 'This is the native format used by the popular and open source Mplayer video player. \r
61                 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
62                 The best candidate !!';\r
63         }\r
64         \r
65         public function getVersion()\r
66         {\r
67                 return '???';\r
68         }\r
69                 \r
70         public function getFileExtension()\r
71         {\r
72                 return 'mpl';\r
73         }\r
74         \r
75         public function getIdPattern()\r
76         {\r
77                 $idPattern = '/unknown/';\r
78                 //\r
79                 return $idPattern;\r
80         }\r
81         \r
82         public function allowsTextStyles()\r
83         {\r
84                 return '????';\r
85         }\r
86         \r
87         public function template()\r
88         {\r
89                 $ccTemplate = '\r
90 0,85,0,caption 1 \r
91 85,148,0,caption 2\r
92 148,182,0,caption 3\r
93 182,269,0,caption 4\r
94 269,358,0,caption 5\r
95 358,414,0,caption 6\r
96 414,497,0,caption 7\r
97 497,534,0,caption 8\r
98 589,642,0,caption 9\r
99 642,694,0,caption 10\r
100 694,783,0,caption 11\r
101 783,844,0,caption 12\r
102 844,896,0,caption 13\r
103                 \r
104                 ';\r
105                 \r
106                 return $ccTemplate;\r
107         }\r
108         \r
109 }  // end MPlayer class \r
110 ?>