×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2013
    Posts
    11

    App crashes after 2 videos

    Hey Guys

    I have finally managed to build the video streaming app, which works OK. I have 2 issues,

    1. The downloaded video is stored to temp/media folder, which my client does not want
    2. After watching 2 videos, at the third video the app is stuck, and crashes

    I am not sure how to approach my 2nd issue, but have some sort of an idea on 1. I am hoping, I can delete the temp file when the user watches video and goes back to the play screen or when the user exits the app in the destroyApp()

    For the 2nd problem Im facing, I understand that it is because it is eating up the RAM, but not sure how to attack it,

    The video size is about 350K average, some are 200 K, some are 400K, but not more.

    If someone can give me pointers, that would be most helpful.

    Also, if my approach is wrong (as mentioned above) please give me the right direction, I will be happy to learn.

    Regards
    M.

  2. #2
    Registered User
    Join Date
    Aug 2011
    Posts
    39

    Re: App crashes after 2 videos

    When the app crashes, does it give a meaningful error message to you?

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    682

    Re: App crashes after 2 videos

    Did you closed the player of the previous 2 videos?
    Heard of DVLUP? Join here

  4. #4
    Registered User
    Join Date
    Nov 2013
    Posts
    11

    Re: App crashes after 2 videos

    Hi oniongarlic,
    No, I do not get any message while the app crashes, The problem here is that the app is not crashing, it crashes the phone, so after two videos, when I load the third video, it plays for about 3 seconds without sound and hangs there, any action from then, restarts the phone.

    Dear Shai.i,
    Thanks for the inputs, on backCommanded, this is what I am doing:

    if (player != null) {
    player.stop();
    player.deallocate();
    System.out.println(player.getState());

    }

  5. #5
    Registered User
    Join Date
    Nov 2013
    Posts
    11

    Re: App crashes after 2 videos

    Hey All,

    I have fixed this issue, as mentioned in my original post, issue 1 lead to issue 2. I wrote a cleaning module to clean the deallocated memory and remove unwanted files and it works like a charm.

    Oniongarlic and Shai.i, Thanks much for your inputs.

    Rgds

Similar Threads

  1. What are the extensions to stream native videos and play device videos in FL 3.0?
    By supriyaakg in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2010-04-16, 06:34
  2. videos!!!
    By miniestman in forum General Development Questions
    Replies: 1
    Last Post: 2008-02-02, 12:55
  3. About Videos
    By Symbian_Neil in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-01-19, 10:21
  4. Converting Videos
    By seldooN in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-07-17, 22:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×