Changeset 880
- Timestamp:
- 03/10/10 05:35:44 (3 years ago)
- Location:
- plugins
- Files:
-
- 48 added
- 2 edited
- 12 moved
-
audiodescription/v4 (added)
-
audiodescription/v4/audiodescription.swf (moved) (moved from plugins/audiodescription/audiodescription.swf)
-
audiodescription/v4/audiodescription.xml (moved) (moved from plugins/audiodescription/audiodescription.xml)
-
audiodescription/v4/build.sh (moved) (moved from plugins/audiodescription/build.sh)
-
audiodescription/v4/com (moved) (moved from plugins/audiodescription/com)
-
audiodescription/v4/controlbar.png (moved) (moved from plugins/audiodescription/controlbar.png)
-
audiodescription/v4/dock.png (moved) (moved from plugins/audiodescription/dock.png)
-
audiodescription/v5 (added)
-
captions/v4 (added)
-
captions/v4/build.sh (moved) (moved from plugins/captions/build.sh)
-
captions/v4/captions.swf (moved) (moved from plugins/captions/captions.swf)
-
captions/v4/captions.xml (moved) (moved from plugins/captions/captions.xml)
-
captions/v4/com (moved) (moved from plugins/captions/com)
-
captions/v4/com/jeroenwijering/parsers/TTParser.as (modified) (1 diff)
-
captions/v4/com/jeroenwijering/plugins/Captions.as (modified) (6 diffs)
-
captions/v4/controlbar.png (moved) (moved from plugins/captions/controlbar.png)
-
captions/v4/dock.png (moved) (moved from plugins/captions/dock.png)
-
captions/v5 (added)
-
captions/v5/assets (added)
-
captions/v5/assets/controlbar.png (added)
-
captions/v5/assets/dock.png (added)
-
captions/v5/build (added)
-
captions/v5/build/build.properties (added)
-
captions/v5/build/build.xml (added)
-
captions/v5/captions.swf (added)
-
captions/v5/captions.xml (added)
-
captions/v5/com (added)
-
captions/v5/com/jeroenwijering (added)
-
captions/v5/com/jeroenwijering/parsers (added)
-
captions/v5/com/jeroenwijering/parsers/SRTParser.as (added)
-
captions/v5/com/jeroenwijering/parsers/TTParser.as (added)
-
captions/v5/com/jeroenwijering/plugins (added)
-
captions/v5/com/jeroenwijering/plugins/Captions.as (added)
-
captions/v5/com/jeroenwijering/utils (added)
-
captions/v5/com/jeroenwijering/utils/Logger.as (added)
-
captions/v5/com/jeroenwijering/utils/Strings.as (added)
-
captions/v5/doc (added)
-
captions/v5/doc/js.html (added)
-
captions/v5/doc/language.html (added)
-
captions/v5/doc/margin.html (added)
-
captions/v5/doc/plain.html (added)
-
captions/v5/doc/readme.txt (added)
-
captions/v5/doc/tt.html (added)
-
captions/v5/libs (added)
-
captions/v5/libs/jwplayer-5-lib.swc (added)
-
captions/v5/test (added)
-
captions/v5/test/files (added)
-
captions/v5/test/files/corrie.flv (added)
-
captions/v5/test/files/corrie.jpg (added)
-
captions/v5/test/files/corrie.srt (added)
-
captions/v5/test/files/corrie.xml (added)
-
captions/v5/test/files/halo-es.srt (added)
-
captions/v5/test/files/halo.srt (added)
-
captions/v5/test/files/halo.tt.xml (added)
-
captions/v5/test/files/jquery.js (added)
-
captions/v5/test/files/style.css (added)
-
captions/v5/test/files/swfobject.js (added)
-
captions/v5/test/index.html (added)
-
captions/v5/test/players (added)
-
captions/v5/test/players/5.0.swf (added)
-
captions/v5/test/players/5.1.swf (added)
-
captions/v5/test/settings.js (added)
Legend:
- Unmodified
- Added
- Removed
-
plugins/captions/v4/com/jeroenwijering/parsers/TTParser.as
r317 r880 45 45 /** Parse a single captions entry. **/ 46 46 private static function parseCaption(dat:XML):Object { 47 var ptn:RegExp = /(\n<br.*>\n)+/;48 47 var obj:Object = { 49 48 begin:Strings.seconds(dat.@begin), 50 49 dur:Strings.seconds(dat.@dur), 51 50 end:Strings.seconds(dat.@end), 52 text:dat.children().toString().replace( ptn,'\n').replace(ptn,'\n')51 text:dat.children().toString().replace(new RegExp("\r?\n","g"),' ') 53 52 }; 54 53 return obj; -
plugins/captions/v4/com/jeroenwijering/plugins/Captions.as
r486 r880 69 69 back.graphics.drawRect(0,0,400,20); 70 70 addChild(back); 71 back.mouseEnabled = false; 71 72 format = new TextFormat(); 72 73 format.color = 0xFFFFFF; … … 77 78 field = new TextField(); 78 79 field.width = 400; 79 field.height = 1 0;80 field.height = 1; 80 81 field.y = 5; 81 82 field.autoSize = "center"; … … 84 85 field.wordWrap = true; 85 86 field.defaultTextFormat = format; 87 field.text = ''; 86 88 addChild(field); 89 field.mouseEnabled = false; 87 90 if(config['back'] == false) { 88 91 back.alpha = 0; … … 124 127 view.addModelListener(ModelEvent.META,metaHandler); 125 128 drawClip(); 126 mouseEnabled = false;127 mouseChildren = false;128 129 if(view.config['dock']) { 129 130 button = view.getPlugin('dock').addButton(new DockIcon(),'is on',clickHandler); … … 146 147 file = view.playlist[view.config['item']]['captions.file']; 147 148 } else if (view.playlist[view.config['item']]['captions']){ 148 file = view.playlist[view.config['item']]['captions']; 149 file = view.playlist[view.config['item']]['captions']; 149 150 } else if(view.config['captions.file']) { 150 151 file = view.config['captions.file']; … … 198 199 /** Resize the captions if the display changes. **/ 199 200 private function resizeHandler(evt:ControllerEvent=undefined):void { 200 back.height = field.height + 10; 201 if(field.length > 3) { 202 back.height = field.height + 10; 203 } else { 204 back.height = 0; 205 } 201 206 width = view.config['width']; 202 207 scaleY = scaleX; 203 208 y = view.config['height']-height; 209 if(view.config['controlbar'] == 'over' || view.config['fullscreen']) { 210 y -= 50; 211 } 204 212 }; 205 213
Note: See TracChangeset
for help on using the changeset viewer.
