diff --git a/soundcloud_filter.module b/soundcloud_filter.module
index d572ea5..bd3dc77 100755
--- a/soundcloud_filter.module
+++ b/soundcloud_filter.module
@@ -248,6 +248,10 @@ function theme_soundcloud_filter_embed_html5($variables) {
   // Replace player default settings with our settings
   $final_iframe = preg_replace('/(width=)"([^"]+)"/', 'width="' . $soundcloud['width'] . '%"', $oembed->html);
 
+  if (!empty($_SERVER['HTTPS'])) {
+    $final_iframe = str_replace('src="http://', 'src="https://', $final_iframe);
+  }
+
   if (preg_match('/auto_play=(true|false)/', $final_iframe)) {
     $final_iframe = preg_replace('/auto_play=(true|false)/', 'auto_play=' . $soundcloud['autoplay'], $final_iframe);
   }
