Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8028919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:16:36+00:00 2026-06-05T00:16:36+00:00

EDIT: Wow, solved it by placing the ‘file’ and ‘flashplayer’ configs first in the

  • 0

EDIT: Wow, solved it by placing the ‘file’ and ‘flashplayer’ configs first in the configuration section. I guess those two parameters have to be first in the configuration section.

So this works (You cant load the file from longtailvideo.com like this because of cross domain stuff, just use your own local file to test)

<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript" src="jwplayer.js"></script>
</head>
<body>
<div id="vs" style="width:300px;height:250px;"></div>
<a href="javascript:void(0);" onclick="jwplayer().setMute();">Toggle the audio</a>
</body>
</html>

<script type="text/javascript">
jwplayer("vs").setup({
file: "http://content.longtailvideo.com/videos/flvplayer.flv",
flashplayer: "player.swf",
autostart:true,
controlbar: "none",
icons: "false",
repeat:"always",
stretching:"exactfit",
width:300,
height:250,
mute:"true"
});
</script>

Can’t get the mute toggle working. According to Longtail’s documentation (http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16022/controlling-the-player-using-javascript) all I have to do is make a link with an onclick. Doesnt work. I even tried a .click with JQuery to no avail. Using MP4 files so the code falls back from flash to HTML5 video.

This doesnt work either with JQuery included in the page

<script type="text/javascript">
$(document).ready(function(){
$('#mutetoggle').click(function(){
jwplayer().setMute();
});
});
</script>

JW Player with JW javascript for embed:

<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript" src="jwplayer.js"></script>
</head>
<body>
<div id="vs" style="width:300px;height:250px;"></div>
<a href="#" id="mutetoggle" onclick="jwplayer().setMute();">Toggle the audio</a>
</body>
</html>

<script type="text/javascript">
jwplayer("vs").setup({
autostart:true,
controlbar: "none",
icons: "false",
repeat:"always",
stretching:"exactfit",
file: "http://content.longtailvideo.com/videos/flvplayer.flv",
flashplayer: "player.swf",
volume:50,
width:300,
height:250,
mute:"true"
});
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:16:37+00:00Added an answer on June 5, 2026 at 12:16 am

    It seems the file and flashplayer parameters have to be first in the configuration section.
    Go figure.

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <script type="text/javascript" src="jwplayer.js"></script>
    </head>
    <body>
    <div id="vs" style="width:300px;height:250px;"></div>
    <a href="javascript:void(0);" onclick="jwplayer().setMute();">Toggle the audio</a>
    </body>
    </html>
    
    <script type="text/javascript">
    jwplayer("vs").setup({
    file: "http://content.longtailvideo.com/videos/flvplayer.flv",
    flashplayer: "player.swf",
    autostart:true,
    controlbar: "none",
    icons: "false",
    repeat:"always",
    stretching:"exactfit",
    width:300,
    height:250,
    mute:"true"
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

// Edit: oh wow. It's odd that I've been working on this for a
EDIT: Problem solved... and unrelated to the phrasing of the question... sorry for the
EDIT: WOW. This question is 12 years old now. As someone stated, it can
EDIT : Wow, many great responses. Yes, I am using this as a fitness
After-edit: Wow, this question go long. Please forgive =\ I am creating a new
EDIT: Wow, I didn't realize I was doing so many things so terribly wrong.
EDIT : Ok, I found out why. My getX and getY were overriding the
EDIT: I am using MS SQL server 2008 R2 as well. Well, on a
Edit: The question in one line: How to pass along context from a MenuItem
Edit: I think I figured out the solution, but I'm still interested to know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.