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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:43:42+00:00 2026-05-23T22:43:42+00:00

I need to play a simple video on my app. I been looking on

  • 0

I need to play a simple video on my app. I been looking on the internet on how to play a video and I found out that I need to import the MediaPlayer.framwork which I did. I have a Video named:

enter image description here

and the code that I have in order to play it:

NSString *url = [[NSBundle mainBundle] 
                 pathForResource:@"Final_Valores_Pacific" 
                 ofType:@"m4v"];


MPMoviePlayerController *player = 
                                [[MPMoviePlayerController alloc] 
                                initWithContentURL:[NSURL fileURLWithPath:url]];

I am missing the code to add it to a view but just that code creates a leak:

enter image description here

what is the right way of playing a video? how can avoid that memory leak?

  • 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-23T22:43:44+00:00Added an answer on May 23, 2026 at 10:43 pm

    Are you getting this leak on the simulator? I got this on an app that I worked on in the past only on the simulator, but not on the iPhone.

    There are similar questions about this too:

    iPhone: OpenAL & AudioToolbox leak

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

Sidebar

Related Questions

In short, I want to create a simple video player which can play some
I found a method to play YouTube video on MPMoviePlayerController. For this simply need
I want to make simple project which play flash video file from online. I've
As a homework i need to make a webapp that will play an mp3
I've a simple list of play button, such as <a class=play rel=video-1></a> <a class=play
Hi i have made a simple program that plays a video file, i used
Ineed to play a short MP4 video on my android app I'm searching info
Ineed to play a short MP4 video on my android app I'm searching info
I want to use Qt to create a simple GUI application that can play
I want to play a video (with sound) in a simple GUI with play

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.