Index: branches/MwEmbedStandAlone/modules/SmilPlayer/mw.SmilBody.js |
— | — | @@ -73,7 +73,6 @@ |
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Gets all the elements for a given time. |
77 | | - * |
78 | 77 | */ |
79 | 78 | getElementsForTime: function ( time ) { |
80 | 79 | var startOffset = 0; |
— | — | @@ -84,7 +83,7 @@ |
85 | 84 | this.elementsInRange = []; |
86 | 85 | this.getElementsForTimeRecurse( this.$dom, time, startOffset); |
87 | 86 | return this.elementsInRange; |
88 | | - }, |
| 87 | + }, |
89 | 88 | |
90 | 89 | /** |
91 | 90 | * getElementsForTimeRecurse |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/SmilPlayer.i8n.php |
— | — | @@ -0,0 +1,6 @@ |
| 2 | +<?php |
| 3 | +$messages = array(); |
| 4 | + |
| 5 | +$messages['en'] = array( |
| 6 | + 'mwe-embedplayer-ogg-player-smilPlayer' => 'SMIL Player' |
| 7 | +); |
\ No newline at end of file |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/mw.EmbedPlayerSmil.js |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | * Get the embed player time |
125 | 125 | */ |
126 | 126 | getPlayerElementTime: function() { |
127 | | - return this.smilPlayTime; |
| 127 | + return this.smilPlayTime; |
128 | 128 | }, |
129 | 129 | |
130 | 130 | /** |
— | — | @@ -133,7 +133,14 @@ |
134 | 134 | // Update the smilPlayTime |
135 | 135 | if( !this.isPaused() ){ |
136 | 136 | this.smilPlayTime = this.smilPauseTime + ( ( new Date().getTime() - this.clockStartTime ) / 1000 ); |
137 | | - } |
| 137 | + } |
| 138 | + |
| 139 | + // Render time |
| 140 | + smil.renderTime( this.smilPlayTime, function(){ |
| 141 | + // callback for render |
| 142 | + |
| 143 | + // xxx if too much time has gone by potentaill flag |
| 144 | + }); |
138 | 145 | this.parent_monitor(); |
139 | 146 | }, |
140 | 147 | |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/mw.SmilBuffer.js |
— | — | @@ -7,7 +7,9 @@ |
8 | 8 | } |
9 | 9 | |
10 | 10 | mw.SmilBuffer.prototype = { |
11 | | - // Constructor: |
| 11 | + /** |
| 12 | + * Constructor: |
| 13 | + */ |
12 | 14 | init: function( smilObject ) { |
13 | 15 | this.smil = smilObject; |
14 | 16 | }, |
— | — | @@ -23,7 +25,7 @@ |
24 | 26 | |
25 | 27 | // setTimeout to call self until buffer is ready |
26 | 28 | |
27 | | - // temp ( assume ready ): |
| 29 | + // Temp ( assume ready ): |
28 | 30 | callback(); |
29 | 31 | } |
30 | 32 | } |
\ No newline at end of file |