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

  • Home
  • SEARCH
  • 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 9176569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:08:08+00:00 2026-06-17T17:08:08+00:00

I using JW Player in my proyect that contain many videos in formats: MP4,

  • 0

I using JW Player in my proyect that contain many videos in formats: MP4, FLV, OGV, WMV

I read the documentation of the diferent formats that each browser support. So, now i using MP4 (Chrome, Safari), FLV(IE,7,8,9) and WEBM(Mozilla).

jwplayer('container').setup({
                height: 309,
                width: 549,
                levels: [
                    { file: "video.mp4" },
                    { file: "video.webm" },
                    { file: "video.flv" }
                ], 
                'modes': [
                    {type: 'html5'},
                    {type: 'flash', src: "jwplayer.flash.swf"},
                    {type: 'download'}
                ]
});

My question is, if this code doing: Check the browser if support HTML5 or FLASH -> Depend of browser reproduce MP4(Chrome – Safari) or FLV(IE) or WEBM(Mozilla) automatically.

Because, in mozilla especially, for first time i have the message: “ERROR LOADING MEDIA: File could not be played”
.Then when i click 2 or 1 time, play the video.

Maybe this occurs for the order of files?


UPDATE

I changed my mime.conf settings and .htaccess, adding the following lines:

NOTE: I use the .htaccess of Drupal in my Codeigniter Project

.htaccess:

#
# Apache/PHP/Drupal settings:
#

#For disable gzip
SetEnvIfNoCase Request_URI \.(og[gv]|mp4|m4v|webm)$ no-gzip dont-vary

#For add mime types
AddType video/ogg  .ogv
AddType video/mp4  .mp4
AddType video/webm .webm
[...]

mime.conf

#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
#AddType application/x-gzip .gz .tgz
AddType application/x-bzip2 .bz2
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

I disable gzip compress but the problem persist.. Only my app into iframe of facebook fail the video webm. MP4 Works fine.


UPDATE 2

The problem here is Twitter Bootstrap. I use this for show modals. Before show the modal with the video, i save cookies in browser.

When i put the video into a modal, the video can’t play. When i click 2 times to the video, this video play. Only in Mozilla Firefox; Chrome, IE 7-8-9 works fine.

When i put the video out the modal. This play normally in all browser.

Sorry for my english.

  • 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-17T17:08:09+00:00Added an answer on June 17, 2026 at 5:08 pm

    Since from looking at your link, I have been able to determine you are using JW6 now, not JW5, you should be using different code.

    This code:

    jwplayer('container').setup({
                    height: 309,
                    width: 549,
                    levels: [
                        { file: "video.mp4" },
                        { file: "video.webm" },
                        { file: "video.flv" }
                    ], 
                    'modes': [
                        {type: 'html5'},
                        {type: 'flash', src: "jwplayer.flash.swf"},
                        {type: 'download'}
                    ]
    });
    

    Should look like this, instead, for example:

    jwplayer('container').setup({
                    height: 309,
                    width: 549,
                    playlist: [{
                    sources: [
                        { file: "video.mp4" },
                        { file: "video.webm" },
                        { file: "video.flv" }
                    ]
                    }]
    });
    

    This is because in JW6 modes is removed, HTML5 is already the primary mode, and “levels” is replaced by “sources”.

    Here is a migration doc – http://www.longtailvideo.com/support/jw-player/28834/migrating-from-jw5-to-jw6

    An example of multiple files being used in jw6 is here – http://www.longtailvideo.com/support/jw-player/29251/mp4-and-webm-formats

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently developed a media player using directshow.net. The videos have a small timestamp
I created an flv video player using Flash Builder 4. This BasicVideoPlayer project is
I'm using VideoJS to as my video player for a project I've been working
Is there any way to detect if a commercial is playing? I'm using player.observe(models.EVENT.CHANGE,
I am using JW Player in an ASP.NET MVC application and I'm trying to
I am using media player to play audio and video. I am creating own
I created a flash video player using Flash CS3. I exported the player to
I created an audio Player using java applet but i'm stuck at trying to
I'm building a video player using Flash CS4 (hereby referred to as Flash) to
I'm creating a simple media player using jlGUI and jAudiotagger libraries. I've used a

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.