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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:50:15+00:00 2026-06-15T13:50:15+00:00

I am trying to load a video with auto play in my iOS app,

  • 0

I am trying to load a video with auto play in my iOS app, and then add an event which runs a function after the video has finished playing. My code looks like:

 $( "#videoPageA0" ).live( 'pageinit',function(event){
 var myPlayer = $("#videoA0").get(0);
 myPlayer.load();
 myPlayer.addEventListener("ended", $X.videoCallback);
 myPlayer.play();
 });

When the page loads, the video plays for a second or two and then freezes. this doesn’t cause my app to crash, as i can still use the buttons in the header, has anyone experienced a similar problem or know a solution? The code works perfect in the simulator, but fails on the device.

The following is my HTML code for the the video page:

<div data-role="page" id="videoPageA0" style="overflow:hidden;">    
        <div data-role="header" class="header">
            <img src="images/link1.jpg" alt="" title="" class="link1"/>
            <img src="images/link2.jpg" alt="" title="" class="link2" />
            <img src="images/link3.jpg" alt="" title="" class="link3" />
        </div>
        <div data-role="content">
            <video id="videoA0" width="320" height="428" webkit-playsinline preload="metadata">  
                <source src="videos/test1.mp4" type="video/mp4" /> 
            </video>
        </div>

I have tried mov and m4v files, but still cannot get it to work.
i am using Xcode 4.3.3, phone gap 1.8 and Jquery mobile 1.1.0

  • 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-15T13:50:16+00:00Added an answer on June 15, 2026 at 1:50 pm

    My solution to this was to create my own plugin using Obj-C and then call it using javascript as and when i need it. Job done!

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

Sidebar

Related Questions

I'm trying to load an intent to play a video file on my phone's
I'm trying to load a video file into my iPad app as an AVURLAsset
I want to call a function onclick (which I know works) then load it
Trying to load content into a div, then on click load the previous content
While trying to load a Bitmap onto a SWFLoader the Event.COMPLETE event is not
I am trying to load a video from the web, but am having trouble
I am trying to load my video into a webview. When I use this
I'm trying to load a video onto my page using Youtube API. Youtube specifies
I'm trying to load a YouTube video on a flash MovieClip using url http://www.youtube.com/v/4nRNoXT_gUc
I am trying to load all the files(audio, video and images) in my application

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.