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