Skip to content

Commit

Permalink
new version build
Browse files Browse the repository at this point in the history
  • Loading branch information
voronianski committed Nov 15, 2017
1 parent 1444f6a commit 4809c5f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ root = true

[*]
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
11 changes: 8 additions & 3 deletions dist/soundcloud-audio.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.SoundCloudAudio = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.SoundCloudAudio=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"/Users/dmitri/github/soundcloud-html5-audio":[function(require,module,exports){
'use strict';

var anchor;
Expand Down Expand Up @@ -135,8 +135,13 @@ SoundCloud.prototype.unbindAll = function () {
}
};

SoundCloud.prototype.preload = function (streamUrl) {
SoundCloud.prototype.preload = function (streamUrl, preloadType) {
this._track = {stream_url: streamUrl};

if (preloadType) {
this.audio.preload = preloadType;
}

this.audio.src = this._clientId ?
_appendQueryParam(streamUrl, 'client_id', this._clientId) :
streamUrl;
Expand Down Expand Up @@ -247,5 +252,5 @@ SoundCloud.prototype.setTime = function (seconds) {

module.exports = SoundCloud;

},{}]},{},[1])(1)
},{}]},{},["/Users/dmitri/github/soundcloud-html5-audio"])("/Users/dmitri/github/soundcloud-html5-audio")
});
2 changes: 1 addition & 1 deletion dist/soundcloud-audio.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ SoundCloud.prototype.unbindAll = function () {

SoundCloud.prototype.preload = function (streamUrl, preloadType) {
this._track = {stream_url: streamUrl};
preloadType && (this.audio.preload = preloadType);

if (preloadType) {
this.audio.preload = preloadType;
}

this.audio.src = this._clientId ?
_appendQueryParam(streamUrl, 'client_id', this._clientId) :
streamUrl;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "soundcloud-audio",
"version": "1.2.1",
"version": "1.2.2",
"description": "Play SoundCloud tracks and playslists in modern browsers with HTML5 Audio API",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 4809c5f

Please sign in to comment.