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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:37:37+00:00 2026-05-15T23:37:37+00:00

Accessing following html directly from file system gives me the correct duration. <video src=multimedia/bbb400p.ogv

  • 0

Accessing following html directly from file system gives me the correct duration.

<video src="multimedia/bbb400p.ogv" id="v"></video> 
<button onclick="alert(document.getElementById('v').duration);
                 document.getElementById('v').play()">Play</button>

However, accessing it through mongrel web server (on my machine and through heroku cloud service) gives me an NaN.

Also created test code that added a listener for the ‘canplay’ event and still get a duration of NaN using server.

This happens in FireFox and Chrome.

Any help would be appreciated.

  • 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-05-15T23:37:38+00:00Added an answer on May 15, 2026 at 11:37 pm

    It seems that Mongrel, and quite a few other servers, don’t support byte-range requests. As such, the browser (for Ogg files) are unable to know the length of the video until the end is reached.

    Here is an article on it: http://www.ruby-forum.com/topic/130850

    Running Apache, which support byte-range requests I believe, works. The one thing to consider is to have enough keyframes in the Ogg file to improve on navigation (jumping around) in the ogg file.

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

Sidebar

Related Questions

I am following oauth authorization flow(http://developer.yahoo.com/oauth/guide/oauth-requesttoken.html) for accessing Yahoo's Contact API . I am
I used the code from the following question to insert a YouTube video into
I'm supposed to be getting XML output from the following php file that is
When accessing an object in a DataTable retrieved from a database, are there any
When accessing values from an SqlDataReader is there a performance difference between these two:
Best recommendations for accessing and manipulation of sqlite databases from JavaScript.
Following Orbeon documentation about running xforms-with-java-applications , I deployed Orbeon's war file separately beside
I'm having a problem accessing the :prepend_id variable in my shared/_time_select.html.erb. The variable seems
I have a div defined as the following in my css file: #toolbar {
I have the following HTML and CSS: <div class=content> <div class=leftbg></div> <div class=innercontent><p>Some content

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.