Index: trunk/extensions/OggHandler/OggPlayer.js |
— | — | @@ -542,8 +542,9 @@ |
543 | 543 | |
544 | 544 | 'embedVideoElement': function ( elt, params ) { |
545 | 545 | var id = elt.id + "_obj"; |
| 546 | + var mtag = (params.isVideo?'video':'audio'); |
546 | 547 | var html = |
547 | | - '<div><' + (params.isVideo?'video':'audio') + |
| 548 | + '<div><' + mtag + |
548 | 549 | ' id=' + this.hq( id ) + |
549 | 550 | ' width=' + this.hq( params.width ) + |
550 | 551 | ' height=' + this.hq( (params.height>0)?params.height:this.controlsHeightGuess ) + |
— | — | @@ -551,7 +552,7 @@ |
552 | 553 | ' autoplay'; |
553 | 554 | if (!this.safari) |
554 | 555 | html += ' controls'; |
555 | | - html += ' ></video></div>'; |
| 556 | + html += ' ></' + mtag + '></div>'; |
556 | 557 | elt.innerHTML = html; |
557 | 558 | }, |
558 | 559 | |