From 0e7e1deb593db90b29a2b4b0e31948bf733d4362 Mon Sep 17 00:00:00 2001 From: Raul Date: Sun, 29 May 2016 13:05:35 +0200 Subject: [PATCH 1/2] feat(API): API Refactor API refactor to add a VgMedia directive that will abstract how a component interacts with the DOM and the API. Added VgTimeDisplay component. Updated Vg360 to get the video file as a reference instead of searching with queryElement() inside of the host element. --- controls.d.ts | 1 + controls.js | 1 + core.d.ts | 2 + core.js | 2 + examples/build/audio-player.js | 2 + examples/build/audio-player.js.map | 2 +- examples/build/bound-player.js | 6 + examples/build/bound-player.js.map | 2 +- examples/build/cue-points-player.js | 2 + examples/build/cue-points-player.js.map | 2 +- examples/build/multiple-media-player.js | 2 + examples/build/multiple-media-player.js.map | 2 +- examples/build/simple-player.js | 3 +- examples/build/simple-player.js.map | 2 +- examples/build/single-media-player.js | 2 + examples/build/single-media-player.js.map | 2 +- examples/build/video-360-player.js | 2 + examples/build/video-360-player.js.map | 2 +- examples/build/video-vr-player.js | 2 + examples/build/video-vr-player.js.map | 2 +- examples/src/audio-player.html | 8 +- examples/src/audio-player.ts | 7 +- examples/src/bound-player.html | 8 +- examples/src/bound-player.ts | 6 +- examples/src/cue-points-player.html | 8 +- examples/src/cue-points-player.ts | 6 +- examples/src/multiple-media-player.html | 6 +- examples/src/multiple-media-player.ts | 6 +- examples/src/simple-player.html | 2 +- examples/src/simple-player.ts | 5 +- examples/src/single-media-player.html | 8 +- examples/src/single-media-player.ts | 6 +- examples/src/video-360-player.html | 10 +- examples/src/video-360-player.ts | 5 +- examples/src/video-vr-player.html | 10 +- examples/src/video-vr-player.ts | 5 +- src/services/vg-api.spec.ts | 305 +----------------- src/services/vg-api.ts | 177 ++-------- src/services/vg-fullscreen-api.spec.ts | 8 +- src/services/vg-fullscreen-api.ts | 8 +- src/vg-360/vg-360.ts | 21 +- src/vg-controls/vg-controls.ts | 17 - .../vg-playback-button/vg-playback-button.ts | 1 + .../vg-time-display/vg-time-display.ts | 47 +++ src/{services => vg-media}/i-playable.ts | 6 +- src/vg-media/vg-media.ts | 189 +++++++++++ src/vg-overlay-play/vg-overlay-play.ts | 3 +- src/vg-player/vg-player.spec.ts | 12 +- src/vg-player/vg-player.ts | 28 +- 49 files changed, 395 insertions(+), 576 deletions(-) create mode 100644 src/vg-controls/vg-time-display/vg-time-display.ts rename src/{services => vg-media}/i-playable.ts (84%) create mode 100644 src/vg-media/vg-media.ts diff --git a/controls.d.ts b/controls.d.ts index 011b70fd..3f184932 100644 --- a/controls.d.ts +++ b/controls.d.ts @@ -1,5 +1,6 @@ export * from './dist/vg-overlay-play/vg-overlay-play'; export * from './dist/vg-controls/vg-controls'; +export * from './dist/vg-controls/vg-time-display/vg-time-display'; export * from './dist/vg-controls/vg-fullscreen/vg-fullscreen'; export * from './dist/vg-controls/vg-mute/vg-mute'; export * from './dist/vg-controls/vg-play-pause/vg-play-pause'; diff --git a/controls.js b/controls.js index f5bf6957..88990b64 100644 --- a/controls.js +++ b/controls.js @@ -1,4 +1,5 @@ exports.VgControls = require('./dist/vg-controls/vg-controls').VgControls; +exports.VgTimeDisplay = require('./dist/vg-controls/vg-time-display/vg-time-display').VgTimeDisplay; exports.VgFullscreen = require('./dist/vg-controls/vg-fullscreen/vg-fullscreen').VgFullscreen; exports.VgMute = require('./dist/vg-controls/vg-mute/vg-mute').VgMute; exports.VgPlayPause = require('./dist/vg-controls/vg-play-pause/vg-play-pause').VgPlayPause; diff --git a/core.d.ts b/core.d.ts index 682aa311..50f07644 100644 --- a/core.d.ts +++ b/core.d.ts @@ -1,4 +1,6 @@ export * from './dist/vg-player/vg-player'; +export * from './dist/vg-media/vg-media'; +export * from './dist/vg-media/i-playable'; export * from './dist/vg-cue-points/vg-cue-points'; export * from './dist/vg-360/vg-360'; export * from './dist/vg-360/i-hot-spot'; diff --git a/core.js b/core.js index ed2ef7b0..70982171 100644 --- a/core.js +++ b/core.js @@ -1,4 +1,6 @@ exports.VgPlayer = require('./dist/vg-player/vg-player').VgPlayer; +exports.VgMedia = require('./dist/vg-media/vg-media').VgMedia; +exports.IPlayable = require('./dist/vg-media/i-playable').IPlayable; exports.VgCuePoints = require('./dist/vg-cue-points/vg-cue-points').VgCuePoints; exports.Vg360 = require('./dist/vg-360/vg-360').Vg360; exports.iHotSpot = require('./dist/vg-360/i-hot-spot').IHotSpot; diff --git a/examples/build/audio-player.js b/examples/build/audio-player.js index 8c99e7b3..3b5941f7 100644 --- a/examples/build/audio-player.js +++ b/examples/build/audio-player.js @@ -26,7 +26,9 @@ var AudioPlayer = (function () { templateUrl: 'src/audio-player.html', directives: [ core_2.VgPlayer, + core_2.VgMedia, controls_1.VgControls, + controls_1.VgTimeDisplay, controls_1.VgPlayPause, controls_1.VgPlaybackButton, controls_1.VgScrubBar, diff --git a/examples/build/audio-player.js.map b/examples/build/audio-player.js.map index 130709df..399fe05d 100644 --- a/examples/build/audio-player.js.map +++ b/examples/build/audio-player.js.map @@ -1 +1 @@ -{"version":3,"file":"audio-player.js","sourceRoot":"","sources":["../src/audio-player.ts"],"names":["AudioPlayer","AudioPlayer.constructor"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AAExC,uBAAoB,iBAAiB,CAAC,CAAA;AAEtC,qBAAuB,kBAAkB,CAAC,CAAA;AAC1C,yBAA0I,sBAAsB,CAAC,CAAA;AAGjK;IAmBIA;QACIC,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;SACJA,CAACA;IACNA,CAACA;IA1BLD;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,SAASA;YACnBA,WAAWA,EAAEA,uBAAuBA;YACpCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,qBAAUA;gBACVA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,cAAKA;aACRA;SACJA,CAACA;;oBAYDA;IAADA,kBAACA;AAADA,CAACA,AA3BD,IA2BC;AAXY,mBAAW,cAWvB,CAAA"} \ No newline at end of file +{"version":3,"file":"audio-player.js","sourceRoot":"","sources":["../src/audio-player.ts"],"names":["AudioPlayer","AudioPlayer.constructor"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AAExC,uBAAoB,iBAAiB,CAAC,CAAA;AAEtC,qBAAgC,kBAAkB,CAAC,CAAA;AACnD,yBAAyJ,sBAAsB,CAAC,CAAA;AAEhL;IAqBIA;QACIC,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;SACJA,CAACA;IACNA,CAACA;IA5BLD;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,SAASA;YACnBA,WAAWA,EAAEA,uBAAuBA;YACpCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,cAAOA;gBACPA,qBAAUA;gBACVA,wBAAaA;gBACbA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,cAAKA;aACRA;SACJA,CAACA;;oBAYDA;IAADA,kBAACA;AAADA,CAACA,AA7BD,IA6BC;AAXY,mBAAW,cAWvB,CAAA"} \ No newline at end of file diff --git a/examples/build/bound-player.js b/examples/build/bound-player.js index 59a8596d..a92524cf 100644 --- a/examples/build/bound-player.js +++ b/examples/build/bound-player.js @@ -20,6 +20,10 @@ var BoundPlayer = (function () { this.preload = 'auto'; this.fsAPI = core_2.VgFullscreenAPI; this.sources = [ + { + src: "http://static.videogular.com/assets/videos/videogular.mp4", + type: "video/mp4" + }, { src: "http://static.videogular.com/assets/videos/videogular.ogg", type: "video/ogg" @@ -51,8 +55,10 @@ var BoundPlayer = (function () { templateUrl: 'src/bound-player.html', directives: [ core_2.VgPlayer, + core_2.VgMedia, overlay_play_1.VgOverlayPlay, controls_1.VgControls, + controls_1.VgTimeDisplay, controls_1.VgPlayPause, controls_1.VgPlaybackButton, controls_1.VgScrubBar, diff --git a/examples/build/bound-player.js.map b/examples/build/bound-player.js.map index 9daa39a3..b9fd5b18 100644 --- a/examples/build/bound-player.js.map +++ b/examples/build/bound-player.js.map @@ -1 +1 @@ -{"version":3,"file":"bound-player.js","sourceRoot":"","sources":["../src/bound-player.ts"],"names":["BoundPlayer","BoundPlayer.constructor","BoundPlayer.onPlayerReady","BoundPlayer.onClickUpdateSource"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AACxC,uBAAmC,iBAAiB,CAAC,CAAA;AACrD,qBAA+C,kBAAkB,CAAC,CAAA;AAClE,yBAA0I,sBAAsB,CAAC,CAAA;AACjK,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IA4BIA;QAPAC,aAAQA,GAAWA,KAAKA,CAACA;QACzBA,aAAQA,GAAWA,KAAKA,CAACA;QACzBA,SAAIA,GAAWA,KAAKA,CAACA;QACrBA,YAAOA,GAAUA,MAAMA,CAACA;QAKpBA,IAAIA,CAACA,KAAKA,GAAGA,sBAAeA,CAACA;QAE7BA,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,4DAA4DA;gBACjEA,IAAIA,EAAEA,YAAYA;aACrBA;SACJA,CAACA;IACNA,CAACA;IAEDD,mCAAaA,GAAbA,UAAcA,GAASA;QACnBE,IAAIA,CAACA,GAAGA,GAAGA,GAAGA,CAACA;IACnBA,CAACA;IAEDF,yCAAmBA,GAAnBA;QACIG,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,yEAAyEA;gBAC9EA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2EAA2EA;gBAChFA,IAAIA,EAAEA,WAAWA;aACpBA;SACJA,CAACA;IACNA,CAACA;IA1DLH;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,SAASA;YACnBA,WAAWA,EAAEA,uBAAuBA;YACpCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,4BAAaA;gBACbA,qBAAUA;gBACVA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,cAAKA;gBACLA,aAAIA;gBACJA,gBAAOA;aACVA;SACJA,CAACA;;oBAyCDA;IAADA,kBAACA;AAADA,CAACA,AA3DD,IA2DC;AAxCY,mBAAW,cAwCvB,CAAA"} \ No newline at end of file +{"version":3,"file":"bound-player.js","sourceRoot":"","sources":["../src/bound-player.ts"],"names":["BoundPlayer","BoundPlayer.constructor","BoundPlayer.onPlayerReady","BoundPlayer.onClickUpdateSource"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AACxC,uBAAmC,iBAAiB,CAAC,CAAA;AACrD,qBAAwD,kBAAkB,CAAC,CAAA;AAC3E,yBAAyJ,sBAAsB,CAAC,CAAA;AAChL,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IA8BIA;QAPAC,aAAQA,GAAWA,KAAKA,CAACA;QACzBA,aAAQA,GAAWA,KAAKA,CAACA;QACzBA,SAAIA,GAAWA,KAAKA,CAACA;QACrBA,YAAOA,GAAUA,MAAMA,CAACA;QAKpBA,IAAIA,CAACA,KAAKA,GAAGA,sBAAeA,CAACA;QAE7BA,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,4DAA4DA;gBACjEA,IAAIA,EAAEA,YAAYA;aACrBA;SACJA,CAACA;IACNA,CAACA;IAEDD,mCAAaA,GAAbA,UAAcA,GAASA;QACnBE,IAAIA,CAACA,GAAGA,GAAGA,GAAGA,CAACA;IACnBA,CAACA;IAEDF,yCAAmBA,GAAnBA;QACIG,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,yEAAyEA;gBAC9EA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2EAA2EA;gBAChFA,IAAIA,EAAEA,WAAWA;aACpBA;SACJA,CAACA;IACNA,CAACA;IAhELH;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,SAASA;YACnBA,WAAWA,EAAEA,uBAAuBA;YACpCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,cAAOA;gBACPA,4BAAaA;gBACbA,qBAAUA;gBACVA,wBAAaA;gBACbA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,cAAKA;gBACLA,aAAIA;gBACJA,gBAAOA;aACVA;SACJA,CAACA;;oBA6CDA;IAADA,kBAACA;AAADA,CAACA,AAjED,IAiEC;AA5CY,mBAAW,cA4CvB,CAAA"} \ No newline at end of file diff --git a/examples/build/cue-points-player.js b/examples/build/cue-points-player.js index 0861d1d8..cbcf16f1 100644 --- a/examples/build/cue-points-player.js +++ b/examples/build/cue-points-player.js @@ -42,8 +42,10 @@ var CuePointsPlayer = (function () { templateUrl: 'src/cue-points-player.html', directives: [ core_2.VgPlayer, + core_2.VgMedia, overlay_play_1.VgOverlayPlay, controls_1.VgControls, + controls_1.VgTimeDisplay, controls_1.VgPlayPause, controls_1.VgPlaybackButton, controls_1.VgScrubBar, diff --git a/examples/build/cue-points-player.js.map b/examples/build/cue-points-player.js.map index f3e99cba..83df524e 100644 --- a/examples/build/cue-points-player.js.map +++ b/examples/build/cue-points-player.js.map @@ -1 +1 @@ -{"version":3,"file":"cue-points-player.js","sourceRoot":"","sources":["../src/cue-points-player.ts"],"names":["CuePointsPlayer","CuePointsPlayer.constructor","CuePointsPlayer.onEnterCuePoint","CuePointsPlayer.onExitCuePoint"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AAExC,uBAA0B,iBAAiB,CAAC,CAAA;AAE5C,qBAAoC,kBAAkB,CAAC,CAAA;AACvD,yBAA+J,sBAAsB,CAAC,CAAA;AACtL,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IAwBIA;QAFAC,iBAAYA,GAAUA,EAAEA,CAACA;QAGrBA,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,4DAA4DA;gBACjEA,IAAIA,EAAEA,YAAYA;aACrBA;SACJA,CAACA;IACNA,CAACA;IAEDD,yCAAeA,GAAfA,UAAgBA,MAAMA;QAClBE,IAAIA,CAACA,YAAYA,GAAGA,IAAIA,CAACA,KAAKA,CAACA,MAAMA,CAACA,IAAIA,CAACA,CAACA;IAChDA,CAACA;IAEDF,wCAAcA,GAAdA,UAAeA,MAAMA;QACjBG,IAAIA,CAACA,YAAYA,GAAGA,EAAEA,CAACA;IAC3BA,CAACA;IA/CLH;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,mBAAmBA;YAC7BA,WAAWA,EAAEA,4BAA4BA;YACzCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,4BAAaA;gBACbA,qBAAUA;gBACVA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,8BAAmBA;gBACnBA,iBAAMA;gBACNA,uBAAYA;gBACZA,kBAAWA;gBACXA,cAAKA;gBACLA,aAAIA;aACPA;SACJA,CAACA;;wBA6BDA;IAADA,sBAACA;AAADA,CAACA,AAhDD,IAgDC;AA5BY,uBAAe,kBA4B3B,CAAA"} \ No newline at end of file +{"version":3,"file":"cue-points-player.js","sourceRoot":"","sources":["../src/cue-points-player.ts"],"names":["CuePointsPlayer","CuePointsPlayer.constructor","CuePointsPlayer.onEnterCuePoint","CuePointsPlayer.onExitCuePoint"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AAExC,uBAA0B,iBAAiB,CAAC,CAAA;AAE5C,qBAA6C,kBAAkB,CAAC,CAAA;AAChE,yBAA8K,sBAAsB,CAAC,CAAA;AACrM,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IA0BIA;QAFAC,iBAAYA,GAAUA,EAAEA,CAACA;QAGrBA,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,4DAA4DA;gBACjEA,IAAIA,EAAEA,YAAYA;aACrBA;SACJA,CAACA;IACNA,CAACA;IAEDD,yCAAeA,GAAfA,UAAgBA,MAAMA;QAClBE,IAAIA,CAACA,YAAYA,GAAGA,IAAIA,CAACA,KAAKA,CAACA,MAAMA,CAACA,IAAIA,CAACA,CAACA;IAChDA,CAACA;IAEDF,wCAAcA,GAAdA,UAAeA,MAAMA;QACjBG,IAAIA,CAACA,YAAYA,GAAGA,EAAEA,CAACA;IAC3BA,CAACA;IAjDLH;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,mBAAmBA;YAC7BA,WAAWA,EAAEA,4BAA4BA;YACzCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,cAAOA;gBACPA,4BAAaA;gBACbA,qBAAUA;gBACVA,wBAAaA;gBACbA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,8BAAmBA;gBACnBA,iBAAMA;gBACNA,uBAAYA;gBACZA,kBAAWA;gBACXA,cAAKA;gBACLA,aAAIA;aACPA;SACJA,CAACA;;wBA6BDA;IAADA,sBAACA;AAADA,CAACA,AAlDD,IAkDC;AA5BY,uBAAe,kBA4B3B,CAAA"} \ No newline at end of file diff --git a/examples/build/multiple-media-player.js b/examples/build/multiple-media-player.js index 3da04765..e1161944 100644 --- a/examples/build/multiple-media-player.js +++ b/examples/build/multiple-media-player.js @@ -35,8 +35,10 @@ var MultipleMediaPlayer = (function () { templateUrl: 'src/multiple-media-player.html', directives: [ core_2.VgPlayer, + core_2.VgMedia, overlay_play_1.VgOverlayPlay, controls_1.VgControls, + controls_1.VgTimeDisplay, controls_1.VgPlayPause, controls_1.VgPlaybackButton, controls_1.VgScrubBar, diff --git a/examples/build/multiple-media-player.js.map b/examples/build/multiple-media-player.js.map index 88e52050..24b72937 100644 --- a/examples/build/multiple-media-player.js.map +++ b/examples/build/multiple-media-player.js.map @@ -1 +1 @@ -{"version":3,"file":"multiple-media-player.js","sourceRoot":"","sources":["../src/multiple-media-player.ts"],"names":["MultipleMediaPlayer","MultipleMediaPlayer.constructor"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AAExC,uBAAoB,iBAAiB,CAAC,CAAA;AAEtC,qBAAuB,kBAAkB,CAAC,CAAA;AAC1C,yBAA0I,sBAAsB,CAAC,CAAA;AACjK,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IAoBIA;QACIC,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,4DAA4DA;gBACjEA,IAAIA,EAAEA,YAAYA;aACrBA;SACJA,CAACA;IACNA,CAACA;IAnCLD;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,SAASA;YACnBA,WAAWA,EAAEA,gCAAgCA;YAC7CA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,4BAAaA;gBACbA,qBAAUA;gBACVA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,cAAKA;aACRA;SACJA,CAACA;;4BAoBDA;IAADA,0BAACA;AAADA,CAACA,AApCD,IAoCC;AAnBY,2BAAmB,sBAmB/B,CAAA"} \ No newline at end of file +{"version":3,"file":"multiple-media-player.js","sourceRoot":"","sources":["../src/multiple-media-player.ts"],"names":["MultipleMediaPlayer","MultipleMediaPlayer.constructor"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AAExC,uBAAoB,iBAAiB,CAAC,CAAA;AAEtC,qBAAgC,kBAAkB,CAAC,CAAA;AACnD,yBAAyJ,sBAAsB,CAAC,CAAA;AAChL,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IAsBIA;QACIC,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,4DAA4DA;gBACjEA,IAAIA,EAAEA,YAAYA;aACrBA;SACJA,CAACA;IACNA,CAACA;IArCLD;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,SAASA;YACnBA,WAAWA,EAAEA,gCAAgCA;YAC7CA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,cAAOA;gBACPA,4BAAaA;gBACbA,qBAAUA;gBACVA,wBAAaA;gBACbA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,cAAKA;aACRA;SACJA,CAACA;;4BAoBDA;IAADA,0BAACA;AAADA,CAACA,AAtCD,IAsCC;AAnBY,2BAAmB,sBAmB/B,CAAA"} \ No newline at end of file diff --git a/examples/build/simple-player.js b/examples/build/simple-player.js index 741250ed..9a09f6c7 100644 --- a/examples/build/simple-player.js +++ b/examples/build/simple-player.js @@ -17,7 +17,8 @@ var SimplePlayer = (function () { selector: 'simple-player', templateUrl: 'src/simple-player.html', directives: [ - core_2.VgPlayer + core_2.VgPlayer, + core_2.VgMedia ] }), __metadata('design:paramtypes', []) diff --git a/examples/build/simple-player.js.map b/examples/build/simple-player.js.map index bb911339..f8c0f8b0 100644 --- a/examples/build/simple-player.js.map +++ b/examples/build/simple-player.js.map @@ -1 +1 @@ -{"version":3,"file":"simple-player.js","sourceRoot":"","sources":["../src/simple-player.ts"],"names":["SimplePlayer","SimplePlayer.constructor"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AACxC,qBAAuB,kBAAkB,CAAC,CAAA;AAE1C;IAAAA;IAO2BC,CAACA;IAP5BD;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,eAAeA;YACzBA,WAAWA,EAAEA,wBAAwBA;YACrCA,UAAUA,EAAEA;gBACRA,eAAQA;aACXA;SACJA,CAACA;;qBAC0BA;IAADA,mBAACA;AAADA,CAACA,AAP5B,IAO4B;AAAf,oBAAY,eAAG,CAAA"} \ No newline at end of file +{"version":3,"file":"simple-player.js","sourceRoot":"","sources":["../src/simple-player.ts"],"names":["SimplePlayer","SimplePlayer.constructor"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AACxC,qBAAgC,kBAAkB,CAAC,CAAA;AAEnD;IAAAA;IAQ2BC,CAACA;IAR5BD;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,eAAeA;YACzBA,WAAWA,EAAEA,wBAAwBA;YACrCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,cAAOA;aACVA;SACJA,CAACA;;qBAC0BA;IAADA,mBAACA;AAADA,CAACA,AAR5B,IAQ4B;AAAf,oBAAY,eAAG,CAAA"} \ No newline at end of file diff --git a/examples/build/single-media-player.js b/examples/build/single-media-player.js index 7059eea0..0c8eacb8 100644 --- a/examples/build/single-media-player.js +++ b/examples/build/single-media-player.js @@ -35,8 +35,10 @@ var SingleMediaPlayer = (function () { templateUrl: 'src/single-media-player.html', directives: [ core_2.VgPlayer, + core_2.VgMedia, overlay_play_1.VgOverlayPlay, controls_1.VgControls, + controls_1.VgTimeDisplay, controls_1.VgPlayPause, controls_1.VgPlaybackButton, controls_1.VgScrubBar, diff --git a/examples/build/single-media-player.js.map b/examples/build/single-media-player.js.map index 4bce25f0..1f5ec7d8 100644 --- a/examples/build/single-media-player.js.map +++ b/examples/build/single-media-player.js.map @@ -1 +1 @@ -{"version":3,"file":"single-media-player.js","sourceRoot":"","sources":["../src/single-media-player.ts"],"names":["SingleMediaPlayer","SingleMediaPlayer.constructor"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AACxC,uBAAoB,iBAAiB,CAAC,CAAA;AACtC,qBAAuB,kBAAkB,CAAC,CAAA;AAC1C,yBAA0I,sBAAsB,CAAC,CAAA;AACjK,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IAoBIA;QACIC,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,4DAA4DA;gBACjEA,IAAIA,EAAEA,YAAYA;aACrBA;SACJA,CAACA;IACNA,CAACA;IAnCLD;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,qBAAqBA;YAC/BA,WAAWA,EAAEA,8BAA8BA;YAC3CA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,4BAAaA;gBACbA,qBAAUA;gBACVA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,cAAKA;aACRA;SACJA,CAACA;;0BAoBDA;IAADA,wBAACA;AAADA,CAACA,AApCD,IAoCC;AAnBY,yBAAiB,oBAmB7B,CAAA"} \ No newline at end of file +{"version":3,"file":"single-media-player.js","sourceRoot":"","sources":["../src/single-media-player.ts"],"names":["SingleMediaPlayer","SingleMediaPlayer.constructor"],"mappings":";;;;;;;;;AAAA,qBAAwB,eAAe,CAAC,CAAA;AACxC,uBAAoB,iBAAiB,CAAC,CAAA;AACtC,qBAAgC,kBAAkB,CAAC,CAAA;AACnD,yBAAyJ,sBAAsB,CAAC,CAAA;AAChL,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IAsBIA;QACIC,IAAIA,CAACA,OAAOA,GAAGA;YACXA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,2DAA2DA;gBAChEA,IAAIA,EAAEA,WAAWA;aACpBA;YACDA;gBACIA,GAAGA,EAAEA,4DAA4DA;gBACjEA,IAAIA,EAAEA,YAAYA;aACrBA;SACJA,CAACA;IACNA,CAACA;IArCLD;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,qBAAqBA;YAC/BA,WAAWA,EAAEA,8BAA8BA;YAC3CA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,cAAOA;gBACPA,4BAAaA;gBACbA,qBAAUA;gBACVA,wBAAaA;gBACbA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,cAAKA;aACRA;SACJA,CAACA;;0BAoBDA;IAADA,wBAACA;AAADA,CAACA,AAtCD,IAsCC;AAnBY,yBAAiB,oBAmB7B,CAAA"} \ No newline at end of file diff --git a/examples/build/video-360-player.js b/examples/build/video-360-player.js index e04ad626..ecf384fa 100644 --- a/examples/build/video-360-player.js +++ b/examples/build/video-360-player.js @@ -48,8 +48,10 @@ var Video360Player = (function () { templateUrl: 'src/video-360-player.html', directives: [ core_2.VgPlayer, + core_2.VgMedia, overlay_play_1.VgOverlayPlay, controls_1.VgControls, + controls_1.VgTimeDisplay, controls_1.VgPlayPause, controls_1.VgPlaybackButton, controls_1.VgScrubBar, diff --git a/examples/build/video-360-player.js.map b/examples/build/video-360-player.js.map index 41c19d4b..463e3153 100644 --- a/examples/build/video-360-player.js.map +++ b/examples/build/video-360-player.js.map @@ -1 +1 @@ -{"version":3,"file":"video-360-player.js","sourceRoot":"","sources":["../src/video-360-player.ts"],"names":["Video360Player","Video360Player.constructor","Video360Player.ngOnInit","Video360Player.onEnterHotSpot","Video360Player.onLeaveHotSpot"],"mappings":";;;;;;;;;AAAA,qBAA4C,eAAe,CAAC,CAAA;AAC5D,qBAAwC,kBAAkB,CAAC,CAAA;AAC3D,yBASO,sBAAsB,CAAC,CAAA;AAC9B,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IAwBIA,wBAAYA,GAAcA;QAH1BC,gBAAWA,GAAWA,IAAIA,CAACA;QAC3BA,aAAQA,GAAWA,KAAKA,CAACA;QAGrBA,IAAIA,CAACA,IAAIA,GAAGA,GAAGA,CAACA,aAAaA,CAACA;IAClCA,CAACA;IAEDD,iCAAQA,GAARA;QACIE,IAAIA,CAACA,QAAQA,GAAGA,EAAEA,CAACA;QAEnBA,IAAIA,CAACA,MAAMA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,aAAaA,CAACA,cAAcA,CAACA,CAACA;QAEtDA,IAAIA,EAAEA,GAAsBA,EAAEA,CAACA;QAC/BA,EAAEA,CAACA,OAAOA,GAAGA,IAAIA,CAACA,MAAMA,CAACA;QACzBA,EAAEA,CAACA,QAAQA,GAAGA;YACVA,CAACA,EAAEA,CAACA,GAAGA;YACPA,CAACA,EAAEA,CAACA;YACJA,CAACA,EAAEA,GAAGA;SACTA,CAACA;QAEFA,EAAEA,CAACA,QAAQA,GAAGA;YACVA,CAACA,EAAEA,CAACA;YACJA,CAACA,EAAEA,EAAEA;YACLA,CAACA,EAAEA,CAACA;SACPA,CAACA;QAEFA,IAAIA,CAACA,QAAQA,CAACA,IAAIA,CAACA,EAAEA,CAACA,CAACA;IAC3BA,CAACA;IAEDF,uCAAcA,GAAdA,UAAeA,MAAeA;QAC1BG,OAAOA,CAACA,GAAGA,CAACA,OAAOA,EAAEA,MAAMA,CAACA,CAACA;QAC7BA,IAAIA,CAACA,QAAQA,GAAGA,IAAIA,CAACA;IACzBA,CAACA;IAEDH,uCAAcA,GAAdA,UAAeA,MAAeA;QAC1BI,OAAOA,CAACA,GAAGA,CAACA,OAAOA,EAAEA,MAAMA,CAACA,CAACA;QAC7BA,IAAIA,CAACA,QAAQA,GAAGA,KAAKA,CAACA;IAC1BA,CAACA;IA1DLJ;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,kBAAkBA;YAC5BA,WAAWA,EAAEA,2BAA2BA;YACxCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,4BAAaA;gBACbA,qBAAUA;gBACVA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,YAAKA;aACRA;SACJA,CAACA;;uBA2CDA;IAADA,qBAACA;AAADA,CAACA,AA3DD,IA2DC;AA1CY,sBAAc,iBA0C1B,CAAA"} \ No newline at end of file +{"version":3,"file":"video-360-player.js","sourceRoot":"","sources":["../src/video-360-player.ts"],"names":["Video360Player","Video360Player.constructor","Video360Player.ngOnInit","Video360Player.onEnterHotSpot","Video360Player.onLeaveHotSpot"],"mappings":";;;;;;;;;AAAA,qBAA4C,eAAe,CAAC,CAAA;AAC5D,qBAAiD,kBAAkB,CAAC,CAAA;AACpE,yBAUO,sBAAsB,CAAC,CAAA;AAC9B,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IA0BIA,wBAAYA,GAAcA;QAH1BC,gBAAWA,GAAWA,IAAIA,CAACA;QAC3BA,aAAQA,GAAWA,KAAKA,CAACA;QAGrBA,IAAIA,CAACA,IAAIA,GAAGA,GAAGA,CAACA,aAAaA,CAACA;IAClCA,CAACA;IAEDD,iCAAQA,GAARA;QACIE,IAAIA,CAACA,QAAQA,GAAGA,EAAEA,CAACA;QAEnBA,IAAIA,CAACA,MAAMA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,aAAaA,CAACA,cAAcA,CAACA,CAACA;QAEtDA,IAAIA,EAAEA,GAAsBA,EAAEA,CAACA;QAC/BA,EAAEA,CAACA,OAAOA,GAAGA,IAAIA,CAACA,MAAMA,CAACA;QACzBA,EAAEA,CAACA,QAAQA,GAAGA;YACVA,CAACA,EAAEA,CAACA,GAAGA;YACPA,CAACA,EAAEA,CAACA;YACJA,CAACA,EAAEA,GAAGA;SACTA,CAACA;QAEFA,EAAEA,CAACA,QAAQA,GAAGA;YACVA,CAACA,EAAEA,CAACA;YACJA,CAACA,EAAEA,EAAEA;YACLA,CAACA,EAAEA,CAACA;SACPA,CAACA;QAEFA,IAAIA,CAACA,QAAQA,CAACA,IAAIA,CAACA,EAAEA,CAACA,CAACA;IAC3BA,CAACA;IAEDF,uCAAcA,GAAdA,UAAeA,MAAeA;QAC1BG,OAAOA,CAACA,GAAGA,CAACA,OAAOA,EAAEA,MAAMA,CAACA,CAACA;QAC7BA,IAAIA,CAACA,QAAQA,GAAGA,IAAIA,CAACA;IACzBA,CAACA;IAEDH,uCAAcA,GAAdA,UAAeA,MAAeA;QAC1BI,OAAOA,CAACA,GAAGA,CAACA,OAAOA,EAAEA,MAAMA,CAACA,CAACA;QAC7BA,IAAIA,CAACA,QAAQA,GAAGA,KAAKA,CAACA;IAC1BA,CAACA;IA5DLJ;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,kBAAkBA;YAC5BA,WAAWA,EAAEA,2BAA2BA;YACxCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,cAAOA;gBACPA,4BAAaA;gBACbA,qBAAUA;gBACVA,wBAAaA;gBACbA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,YAAKA;aACRA;SACJA,CAACA;;uBA2CDA;IAADA,qBAACA;AAADA,CAACA,AA7DD,IA6DC;AA1CY,sBAAc,iBA0C1B,CAAA"} \ No newline at end of file diff --git a/examples/build/video-vr-player.js b/examples/build/video-vr-player.js index 7647d91e..1d9d1753 100644 --- a/examples/build/video-vr-player.js +++ b/examples/build/video-vr-player.js @@ -50,8 +50,10 @@ var VideoVrPlayer = (function () { templateUrl: 'src/video-vr-player.html', directives: [ core_2.VgPlayer, + core_2.VgMedia, overlay_play_1.VgOverlayPlay, controls_1.VgControls, + controls_1.VgTimeDisplay, controls_1.VgPlayPause, controls_1.VgPlaybackButton, controls_1.VgScrubBar, diff --git a/examples/build/video-vr-player.js.map b/examples/build/video-vr-player.js.map index e6da1b01..a466a4e2 100644 --- a/examples/build/video-vr-player.js.map +++ b/examples/build/video-vr-player.js.map @@ -1 +1 @@ -{"version":3,"file":"video-vr-player.js","sourceRoot":"","sources":["../src/video-vr-player.ts"],"names":["VideoVrPlayer","VideoVrPlayer.constructor","VideoVrPlayer.ngOnInit","VideoVrPlayer.onEnterHotSpot","VideoVrPlayer.onLeaveHotSpot"],"mappings":";;;;;;;;;AAAA,qBAA4C,eAAe,CAAC,CAAA;AAC5D,qBAAwC,kBAAkB,CAAC,CAAA;AAC3D,yBASO,sBAAsB,CAAC,CAAA;AAC9B,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IAyBIA,uBAAYA,GAAcA;QAH1BC,gBAAWA,GAAWA,IAAIA,CAACA;QAC3BA,aAAQA,GAAWA,KAAKA,CAACA;QAGrBA,IAAIA,CAACA,IAAIA,GAAGA,GAAGA,CAACA,aAAaA,CAACA;IAClCA,CAACA;IAEDD,gCAAQA,GAARA;QACIE,IAAIA,CAACA,QAAQA,GAAGA,EAAEA,CAACA;QAEnBA,IAAIA,CAACA,MAAMA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,aAAaA,CAACA,cAAcA,CAACA,CAACA;QACtDA,IAAIA,CAACA,WAAWA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,aAAaA,CAACA,oBAAoBA,CAACA,CAACA;QAEjEA,IAAIA,EAAEA,GAAsBA,EAAEA,CAACA;QAC/BA,EAAEA,CAACA,OAAOA,GAAGA,IAAIA,CAACA,MAAMA,CAACA;QACzBA,EAAEA,CAACA,YAAYA,GAAGA,IAAIA,CAACA,WAAWA,CAACA;QACnCA,EAAEA,CAACA,QAAQA,GAAGA;YACVA,CAACA,EAAEA,CAACA,GAAGA;YACPA,CAACA,EAAEA,CAACA;YACJA,CAACA,EAAEA,GAAGA;SACTA,CAACA;QAEFA,EAAEA,CAACA,QAAQA,GAAGA;YACVA,CAACA,EAAEA,CAACA;YACJA,CAACA,EAAEA,EAAEA;YACLA,CAACA,EAAEA,CAACA;SACPA,CAACA;QAEFA,IAAIA,CAACA,QAAQA,CAACA,IAAIA,CAACA,EAAEA,CAACA,CAACA;IAC3BA,CAACA;IAEDF,sCAAcA,GAAdA,UAAeA,MAAeA;QAC1BG,OAAOA,CAACA,GAAGA,CAACA,OAAOA,EAAEA,MAAMA,CAACA,CAACA;QAC7BA,IAAIA,CAACA,QAAQA,GAAGA,IAAIA,CAACA;IACzBA,CAACA;IAEDH,sCAAcA,GAAdA,UAAeA,MAAeA;QAC1BI,OAAOA,CAACA,GAAGA,CAACA,OAAOA,EAAEA,MAAMA,CAACA,CAACA;QAC7BA,IAAIA,CAACA,QAAQA,GAAGA,KAAKA,CAACA;IAC1BA,CAACA;IA7DLJ;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,iBAAiBA;YAC3BA,WAAWA,EAAEA,0BAA0BA;YACvCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,4BAAaA;gBACbA,qBAAUA;gBACVA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,YAAKA;aACRA;SACJA,CAACA;;sBA8CDA;IAADA,oBAACA;AAADA,CAACA,AA9DD,IA8DC;AA7CY,qBAAa,gBA6CzB,CAAA"} \ No newline at end of file +{"version":3,"file":"video-vr-player.js","sourceRoot":"","sources":["../src/video-vr-player.ts"],"names":["VideoVrPlayer","VideoVrPlayer.constructor","VideoVrPlayer.ngOnInit","VideoVrPlayer.onEnterHotSpot","VideoVrPlayer.onLeaveHotSpot"],"mappings":";;;;;;;;;AAAA,qBAA4C,eAAe,CAAC,CAAA;AAC5D,qBAAiD,kBAAkB,CAAC,CAAA;AACpE,yBAUO,sBAAsB,CAAC,CAAA;AAC9B,6BAA4B,0BAA0B,CAAC,CAAA;AAEvD;IA2BIA,uBAAYA,GAAcA;QAH1BC,gBAAWA,GAAWA,IAAIA,CAACA;QAC3BA,aAAQA,GAAWA,KAAKA,CAACA;QAGrBA,IAAIA,CAACA,IAAIA,GAAGA,GAAGA,CAACA,aAAaA,CAACA;IAClCA,CAACA;IAEDD,gCAAQA,GAARA;QACIE,IAAIA,CAACA,QAAQA,GAAGA,EAAEA,CAACA;QAEnBA,IAAIA,CAACA,MAAMA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,aAAaA,CAACA,cAAcA,CAACA,CAACA;QACtDA,IAAIA,CAACA,WAAWA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,aAAaA,CAACA,oBAAoBA,CAACA,CAACA;QAEjEA,IAAIA,EAAEA,GAAsBA,EAAEA,CAACA;QAC/BA,EAAEA,CAACA,OAAOA,GAAGA,IAAIA,CAACA,MAAMA,CAACA;QACzBA,EAAEA,CAACA,YAAYA,GAAGA,IAAIA,CAACA,WAAWA,CAACA;QACnCA,EAAEA,CAACA,QAAQA,GAAGA;YACVA,CAACA,EAAEA,CAACA,GAAGA;YACPA,CAACA,EAAEA,CAACA;YACJA,CAACA,EAAEA,GAAGA;SACTA,CAACA;QAEFA,EAAEA,CAACA,QAAQA,GAAGA;YACVA,CAACA,EAAEA,CAACA;YACJA,CAACA,EAAEA,EAAEA;YACLA,CAACA,EAAEA,CAACA;SACPA,CAACA;QAEFA,IAAIA,CAACA,QAAQA,CAACA,IAAIA,CAACA,EAAEA,CAACA,CAACA;IAC3BA,CAACA;IAEDF,sCAAcA,GAAdA,UAAeA,MAAeA;QAC1BG,OAAOA,CAACA,GAAGA,CAACA,OAAOA,EAAEA,MAAMA,CAACA,CAACA;QAC7BA,IAAIA,CAACA,QAAQA,GAAGA,IAAIA,CAACA;IACzBA,CAACA;IAEDH,sCAAcA,GAAdA,UAAeA,MAAeA;QAC1BI,OAAOA,CAACA,GAAGA,CAACA,OAAOA,EAAEA,MAAMA,CAACA,CAACA;QAC7BA,IAAIA,CAACA,QAAQA,GAAGA,KAAKA,CAACA;IAC1BA,CAACA;IA/DLJ;QAACA,gBAASA,CAACA;YACPA,QAAQA,EAAEA,iBAAiBA;YAC3BA,WAAWA,EAAEA,0BAA0BA;YACvCA,UAAUA,EAAEA;gBACRA,eAAQA;gBACRA,cAAOA;gBACPA,4BAAaA;gBACbA,qBAAUA;gBACVA,wBAAaA;gBACbA,sBAAWA;gBACXA,2BAAgBA;gBAChBA,qBAAUA;gBACVA,gCAAqBA;gBACrBA,kCAAuBA;gBACvBA,iBAAMA;gBACNA,uBAAYA;gBACZA,YAAKA;aACRA;SACJA,CAACA;;sBA8CDA;IAADA,oBAACA;AAADA,CAACA,AAhED,IAgEC;AA7CY,qBAAa,gBA6CzB,CAAA"} \ No newline at end of file diff --git a/examples/src/audio-player.html b/examples/src/audio-player.html index 27765910..dbdace60 100644 --- a/examples/src/audio-player.html +++ b/examples/src/audio-player.html @@ -7,22 +7,22 @@

Audio Player

- {{ media?.time?.current | date:'mm:ss' }} + - {{ media?.time?.left | date:'mm:ss' }} - {{ media?.time?.total | date:'mm:ss' }} + + -