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 8877193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:24:14+00:00 2026-06-14T19:24:14+00:00

Normally with html5 video you specify alternative formats so the browser an find one

  • 0

Normally with html5 video you specify alternative formats so the browser an find one that it’s happy with:

<video height="180" width="300" id="ourvideo">
  <source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.mp4">
  <source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv">
  <source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.webm">
</video>

With sequence.js all the demos I can find only specify one format for each clip in the sequence:

http://jsfiddle.net/jmTgD/1/

http://scotland.proximity.on.ca/cadecairos/sequence/issue11/test/functional-plugin.html

essentially:

var sequence = Popcorn.sequence(
                "container-id",
                [
                    {
                        src: "http://videos.mozilla.org/serv/webmademovies/atultroll.webm",
                        in: 0,
                        out: 3
                    },
                    {
                        src: "http://videos.mozilla.org/serv/webmademovies/justintime.ogv",
                        in: 174,
                        out: 180
                    },
                    {
                        src: "http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv",
                        in: 0,
                        out: 6
                    }
                ]);

Can anyone tell me if it’s possible to supply alternate source with sequence.js?

  • 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-14T19:24:15+00:00Added an answer on June 14, 2026 at 7:24 pm

    It doesn’t look like Popcorn.sequence will handle more than one source, but there are ways around this.

    One option is to use canPlayType to detect which format the browser can play and then set the source accordingly. Something like this:

    var ext = 'ogv', i, vid,
        formats = {
            'mp4': 'mp4',
            'webm': 'webm',
            'ogg': 'ogv'
        },
        files = ['atultroll', 'justintime', 'popcornplug'];
    
    var vid = document.createElement('video');
    for (i in formats) {
        if (vid.canPlayType(i)) {
            ext = formats[i];
            break;
        }
    }
    for (i = 0; i < files.length; i++) {
        files[i] += ext;
    }
    

    In theory, canPlayType is not 100% accurate, since there are variations in the actual video encode that a browser may not support, but this is not typically a problem in practice.

    The other option is to use Popcorn Splice Player. Popcorn 1.4 (not yet released, but in the master branch) allows for modules that wrap non-native players (e.g. YouTube, Vimeo) in objects that mimic HTML media elements. Splice Player is one such module that will combine multiple media sources and play them as one single video. It will support multiple sources.

    var player = Popcorn.SplicePlayer('#container');
    player.src = [
        {
            src: [ "atultroll.mp4", "atultroll.webm", "atultroll.ogv" ],
            from: 0,
            to: 3
        },
        {
            src: [ "justintime.mp4", "justintime.webm", "justintime.ogv" ],
            from: 174,
            to: 180
        },
        {
            src: [ "popcornplug.mp4", "popcornplug.webm", "popcornplug.ogv" ]",
            from: 0,
            to: 6
        }
    ];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am kind of new to javascript/html5. normally I would do that kind of
How would you go about knowing that ajax requests are related? Normally with HTTP-HTML
Normally when you have a div created in html. You can check its width
I'm working on an iPhone App that's HTML5/JS displayed in a single UI Webview.
Normally in an HTML page we embed a flash movie now that's a know
I've got an html form text field that normally handles key up/down events. However,
I try play a video in html5 page on Android emulator 0f version 4.0,
I'm trying to use iChemLabs cloud services from a html5 web worker. Normally the
Is it possible to seek to a particular point in html5 video displayed in
Does anyone know if current IE9 Beta fully supports HTML5 localStorage functionality? Normally the

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.