src/js/init.js
branchnew-model
changeset 909 aa0e42229784
parent 908 f56199193fad
child 910 b9f1bd52df9a
--- a/src/js/init.js	Wed May 30 17:07:01 2012 +0200
+++ b/src/js/init.js	Tue Jun 05 17:55:24 2012 +0200
@@ -219,6 +219,25 @@
             pop = Popcorn("#" + _tmpId);
             break;
 
+        case "html5-audio":
+            var _tmpId = Popcorn.guid("audio"),
+                _videoEl = IriSP.jQuery('<audio>');
+            
+            _videoEl.attr({
+                "src" : this.config.player.video,
+                "id" : _tmpId
+            })
+
+            if(this.config.player.hasOwnProperty("width")) {
+                _videoEl.attr("width", this.config.player.width);
+            }
+            if(this.config.player.hasOwnProperty("height")) {
+                _videoEl.attr("height", this.config.player.height);
+            }
+            IriSP.jQuery("#" + containerDiv).append(_videoEl);
+            pop = Popcorn("#" + _tmpId);
+            break;
+
         case "jwplayer":
             var opts = IriSP.jQuery.extend({}, this.config.player);
             delete opts.container;