1. Due to the recent site upgrade, the iPadForums (iPF) App will no longer work. The new iPadForums.net website has been designed from the ground up to work perfectly from any mobile, tablet, or desktop computer using the built in internet browser. Create a shortcut to iPadForums.net on your home screen by following these steps: Create an icon for iPadForums.net

Apps Close

Discussion in 'iPad Apps' started by k2b.bharathiraja, Sep 27, 2011.

  1. k2b.bharathiraja
    Offline

    k2b.bharathiraja iPF Noob

    Joined:
    Sep 27, 2011
    Messages:
    2
    Thanks Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    Ratings:
    +0 / 0
    Hi,

    I am developing a ipad apps.All are working fine but when i played a video the apps getting closed. Please help me. Thank u.
  2. richsadams
    Offline

    richsadams iPad Super Guru

    Joined:
    Mar 23, 2011
    Messages:
    3,504
    Thanks Received:
    99
    Trophy Points:
    0
    Location:
    NW Left Coast
    Ratings:
    +99 / 0
    Welcome to the forum! There are a lot of great people here willing to lend a hand anytime. Often using the Advanced Search box (at the top of every page) will lead you to the answers you're looking for. If not, feel free to post a question in the appropriate area.


    Please take a moment to view the information linked below my signature to get the most out of your iPad as well as our forum.

    With respect to your question, generally video supersedes anything else the iPad is doing. However any open apps should go into a wait state. When you close the video, tap the home button twice and the apps should be there. Tap on any one of them to reactivate it...it should reopen in the same state it was in prior to playing the video (or running another app). Is that not the case? If not, perhaps some others will chime in.

    Welcome again and enjoy!
  3. LANDKA
    Offline

    LANDKA Supporting Vendor Supporting Vendor

    Joined:
    Sep 28, 2011
    Messages:
    58
    Thanks Received:
    0
    Trophy Points:
    6
    Ratings:
    +0 / 0
    k2b, what are you using to play the video? MPMoviePlayerController?

    If the app crashes, it's probably a memory access problem. Like calling release on something that has been released before.

    Anyway, if you post that part of the code here, maybe I can give you more help! :)
  4. k2b.bharathiraja
    Offline

    k2b.bharathiraja iPF Noob

    Joined:
    Sep 27, 2011
    Messages:
    2
    Thanks Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    Ratings:
    +0 / 0
    Thank you bro.
    Here is my code.
    var movieHtml='';
    var movieDiv = document.getElementById('video_div');
    var movie_src='';var movie_time='';
    switch(nid){
    case 'div_point1':
    movieHtml = '<video width="1024" height="576" style=" opacity:10; background:#fff;" id="movie_mp4"></video>';
    movie_src='hantel.mp4';
    movie_time=22000;
    break;
    case 'div_point2':
    movieHtml = '<video width="1024" height="576" style=" opacity:10; background:#fff;" id="movie_mp4"></video>';
    movie_src='scribble.mp4';
    movie_time=18000;
    break;
    case 'div_point3':
    movieHtml = '<video width="1024" height="576" style=" opacity:10; background:#fff;" id="movie_mp4"></video>';
    movie_src='race.mp4';
    movie_time=28000;
    break;
    case 'div_point4':
    movieHtml = '<video width="1024" height="576" style=" opacity:10; background:#fff;" id="movie_mp4"></video>';
    movie_src='foto.mp4';
    movie_time=31000;
    break;
    case 'div_point5':
    movieHtml = '<video width="1024" height="576" style=" opacity:10; background:#fff;" id="movie_mp4"></video>';
    movie_src='rugby.mp4';
    movie_time=26000;
    break;
    case 'div_point6':
    movieHtml = '<video width="1024" height="576" style=" opacity:10; background:#fff;" id="movie_mp4"></video>';
    movie_src='platte.mp4';
    movie_time=23000;
    break;

    }
    movieDiv.innerHTML = movieHtml;
    var movie = document.getElementById('movie_mp4');
    movie.src = 'f20_lines_mp4/'+movie_src;
    movie.load();
    movie.play();

    After Played video i called this

    movieDiv.innerHTML='';
    movie.src = '';
    movie.load();
    delete movie;
Similar Threads
  1. felixapproach
    Replies:
    4
    Views:
    8,378
  2. NYHorsewoman
    Replies:
    16
    Views:
    7,215
  3. ShotAt3
    Replies:
    0
    Views:
    694
  4. Glock45
    Replies:
    9
    Views:
    1,033
  5. Melie
    Replies:
    2
    Views:
    692
Loading...

Share This Page

Search tags for this page
apps closing themselves
,
ipad 1 all apps close by themselves
,

ipad apps close by themselves

,
ipad apps closing by themselves