|
@@ -3,7 +3,16 @@ function SoundCloudPlayer(ref_id, object_for_player, finish_callback, autoplay)
|
3
|
3
|
autoplay = typeof autoplay !== 'undefined' ? autoplay : false;
|
4
|
4
|
var _autoplay = autoplay;
|
5
|
5
|
var _iframe_id = '';
|
6
|
|
- var _ref_id = ref_id;
|
|
6
|
+
|
|
7
|
+ if (typeof(ref_id) == 'string')
|
|
8
|
+ {
|
|
9
|
+ var _ref_id = ref_id.replace('http://', 'https://');
|
|
10
|
+ }
|
|
11
|
+ else
|
|
12
|
+ {
|
|
13
|
+ var _ref_id = ref_id
|
|
14
|
+ }
|
|
15
|
+
|
7
|
16
|
var _object_for_player = object_for_player;
|
8
|
17
|
var _player = null;
|
9
|
18
|
var _sounds_count = 0;
|
|
@@ -24,13 +33,13 @@ function SoundCloudPlayer(ref_id, object_for_player, finish_callback, autoplay)
|
24
|
33
|
_iframe_id = 'soundcloud_player_'+new Date().getTime();
|
25
|
34
|
if (!_autoplay)
|
26
|
35
|
{
|
27
|
|
- _object_for_player.html('<iframe id="'+_iframe_id+'" src="http://w.soundcloud.com/player/?url='
|
|
36
|
+ _object_for_player.html('<iframe id="'+_iframe_id+'" src="https://w.soundcloud.com/player/?url='
|
28
|
37
|
+_ref_id+'&show_artwork=false&auto_play=true" width="100%" '
|
29
|
38
|
+'height="350" scrolling="no" frameborder="no"></iframe>');
|
30
|
39
|
}
|
31
|
40
|
else
|
32
|
41
|
{
|
33
|
|
- $('#autoplay_player_soundcloud').append('<iframe id="'+_iframe_id+'" src="http://w.soundcloud.com/player/?url='
|
|
42
|
+ $('#autoplay_player_soundcloud').append('<iframe id="'+_iframe_id+'" src="https://w.soundcloud.com/player/?url='
|
34
|
43
|
+_ref_id+'&show_artwork=false&auto_play=true" width="100%" '
|
35
|
44
|
+'height="350" scrolling="no" frameborder="no"></iframe>');
|
36
|
45
|
}
|