We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afb1628 commit 8a9e0c2Copy full SHA for 8a9e0c2
1 file changed
src/gameobjects/Video.js
@@ -201,4 +201,34 @@ Phaser.Video.prototype = {
201
202
};
203
204
+/**
205
+* @memberof Phaser.Video
206
+* @property {number} currentTime - The current time of the video in seconds.
207
+* @readOnly
208
+*/
209
+Object.defineProperty(Phaser.Video.prototype, "currentTime", {
210
+
211
+ get: function () {
212
213
+ return this.video.currentTime;
214
215
+ }
216
217
+});
218
219
220
221
+* @property {number} duration - The duration of the video in seconds.
222
223
224
+Object.defineProperty(Phaser.Video.prototype, "duration", {
225
226
227
228
+ return this.video.duration;
229
230
231
232
233
234
Phaser.Video.prototype.constructor = Phaser.Video;
0 commit comments