@lls/lls-audio 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/player/Audio.js +1 -5
- package/player/index.js +12 -2
package/package.json
CHANGED
package/player/Audio.js
CHANGED
|
@@ -31,11 +31,7 @@ var Player = function (_Component) {
|
|
|
31
31
|
_this.requestAnimationId = null;
|
|
32
32
|
|
|
33
33
|
_this.play = function () {
|
|
34
|
-
|
|
35
|
-
_this.refs.player.play();
|
|
36
|
-
} catch (e) {
|
|
37
|
-
// On tablet play needs to be triggered with a hand gesture
|
|
38
|
-
}
|
|
34
|
+
return _this.refs.player.play();
|
|
39
35
|
};
|
|
40
36
|
|
|
41
37
|
_this.pause = function () {
|
package/player/index.js
CHANGED
|
@@ -224,12 +224,22 @@ var Player = function (_Component) {
|
|
|
224
224
|
|
|
225
225
|
/* Play and pause will be called from the outside */
|
|
226
226
|
value: function play() {
|
|
227
|
-
|
|
227
|
+
try {
|
|
228
|
+
this.refs.audio.play();
|
|
229
|
+
} catch (e) {
|
|
230
|
+
// On tablet play needs to be triggered with a hand gesture
|
|
231
|
+
console.log("e", e);
|
|
232
|
+
}
|
|
228
233
|
}
|
|
229
234
|
}, {
|
|
230
235
|
key: 'pause',
|
|
231
236
|
value: function pause() {
|
|
232
|
-
|
|
237
|
+
try {
|
|
238
|
+
this.refs.audio.pause();
|
|
239
|
+
} catch (e) {
|
|
240
|
+
// On tablet play needs to be triggered with a hand gesture
|
|
241
|
+
console.log("e", e);
|
|
242
|
+
}
|
|
233
243
|
}
|
|
234
244
|
}, {
|
|
235
245
|
key: 'render',
|