Video has two audio tracks on firefox

Page: 1

Author Post
Member
Registered: Jul 2013
Posts: 17
I'm using floatbox to display some videos. They work ok on Chrome and IE but they play 2 audio tracks on Firefox? Am I doing something wrong? The code seems straightforward enough. Here is the code:


Video #1
<a href="/videos/SwingRite_Demo_Video.mp4" class="floatbox" data-fb-options="width:640 height:360 addPlayButton:medium"><img src="/videos/SwingRite_Demo_Video_225.jpg" width="225" height="237" alt=""/></a>

Video #2
<a href="http://www.swingrite.com/videos/swvid1.mp4" class="floatbox" data-fb-options="type:video width:640 height:360 addPlayButton:medium"><img src="videos/Swing_Rite_45_Comm_225.jpg" width="225" height="237" alt=""/></a>


Here are some links to see for yourself.
http://www.swingrite.com/index-1.html (2 video's on bottom left play two audio tracks) (hit pause one audio stops one continues to play)

Link to video (no floatbox)
http://www.swingrite.com/videos/swvid1.mp4

Any help would be appreciated. Thanks.
Administrator
Registered: Aug 2008
Posts: 3382
This is a known problem when there is no webm encode of the video present. You need to convert the video to swvid1.webm and have that in the same folder as the mp4 encode. Some browsers will play the webm file and some will play the mp4 file. Right now, your browser is throwing an error attempting the webm file, falling back to showing the mp4 in the Flash player, but also falling back to showing the mp4 as HTML5 video - hence two videos running and two soundtracks.

Good video conversion tools include Handbrake and AnyVideoConverter.
Member
Registered: Jul 2013
Posts: 17
Thanks for the quick reply. I added the webm file and got another error message.

"HTTP "Content-Type" of "text/plain" is not supported. Load of media resource http://www.swingrite.com/videos/swvid1.webm failed."

I created a .htaccess file with the following and all is well now. Thanks for the help and a great product.

# MP4 video
AddType video/mp4 .mp4

# Webm video
AddType video/webm .webm

Page: 1