@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/lls-audio",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "main": "index.js",
5
5
  "devDependencies": {
6
6
  "@kadira/storybook": "2.21.0",
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
- try {
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
- this.refs.audio.play();
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
- this.refs.audio.pause();
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',