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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:33:03+00:00 2026-06-13T07:33:03+00:00

A script to close a video.mp4 when it finish to go back on the

  • 0

A script to close a video.mp4 when it finish to go back on the original page please?

This is the example script:

 <li><a href="#"><a href="video/aps_production.mp4"><p>Sharing experience video</p></a></li>

It is for CSS3, HTML5 and JS. (jQuery1.8.2). It is for iPhone.

I’ve searched the net by couldn’t see an obvious one?

  • 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-13T07:33:04+00:00Added an answer on June 13, 2026 at 7:33 am

    Have a look at this page there are some informations.
    You could use video.js to make your life easier there is an ended event on which you could bind.

    iOS sadly does not support the fullscreen API.

    If you really want to use a here is how you could do it.

    html:

    <link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
    <script src="http://vjs.zencdn.net/c/video.js"></script>
    <video id="video" style="display:none"></video>
    

    Javascript:

    $("a[href$='.mp4']").click(function(ev){
      // use http://videojs.com/docs/api/ do get doc on how to use video.js
    
      var player = _v_("video");
    
      player.src($(this).attr('href'));
      player.requestFullScreen();
      $("#video").show();
      player.addEvent("ended", function(){
        // do what you want to do at the end of the video
        player..cancelFullScreen();
        $("#video").hide();
      });
    
      return false;
    }) 
    

    doc for attribute selector

    DISCLAIMER: I’ve never use video.js, I’m expecting it to work in this case, I just selected what seems to be the best tool for you. I’ve gave you hotlinks, hosted on CDN, if you are doing a PhoneGap app, replace them by a self hosted version.

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

Sidebar

Related Questions

how can I make this jquery script close all previously opened children when entering
This is the file I'm using $.load() to load into DOM: <script type=text/javascript> $('.close').click(function()
Duplicate of this question. Vote to close. Consider this at the windows commandline. scriptA.py
Script link on master page: <head runat=server> <script src=<%=ConfigurationManager.AppSettings[ApplicationURL].ToString()%>Scripts/jquery-1.7.2.js type=text/javascript language=javascript></script> </head> Default.aspx page
Is there a way to close a Terminal window from within a shell script?
The second click function of this script doesn't work, I think it's simply a
i am currently trying to build a html5 video page with restrictive access to
I've started making a Video script that loads the videos using MySql and I
I have a modal dialog in main page, then I add jPlayer to this
UPDATED SCRIPT I am trying to login to a web page and save 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.