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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:46:28+00:00 2026-06-05T00:46:28+00:00

I have a problem since two days researching more I could not solve. I

  • 0

I have a problem since two days researching more I could not solve.

I have an app in a class that runs a streaming audio. In another view, I have a table with podcasts that will be opened via url.

In order to take advantage of the code of the first class created a delegate, so when the User goes to play in any audio podcast I occupy the methods of the main class just changing the parameters (in this case the URL).

The delegate works correctly, the passing of parameters too. The only problem is that the delegate have to instantiate the main class.

ClassePrincipal *classePrincipal  = [[ClassePrincipal alloc] init];
classePrincipal.delegate = self;

[classePrincipal method];

If the audio is already running in the main class, instantiated as a new object class, it will start playing the audio Podcast on top of what was already running.

and even if I have a major stop before he continues to play the podcast, eg:

- (void) playPodcast {
                  [classePrincipal destroyStreamer];
                  [classePrincipal startStream];

}

destroyStreamer the method is called correctly, but as the instance was created from scratch classePrincipal he did not see any audio being played.

kind of rolled the question, but is there any way to call a method of parameter passing ClassePrincipal without instantiating the class? For not allocating a new object in memory, I could see if the audio is playing and for him.

if there is any other way to solve also thank.

  • 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-05T00:46:30+00:00Added an answer on June 5, 2026 at 12:46 am

    From what I can tell you may want to turn this class into a singleton. This way you will be instantiating it if its not already and if it has already been instantiated you can just place some checks in your code to stop the current audio before starting the new. A random tutorial I found is enter link description here

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

Sidebar

Related Questions

Since some days, I have been facing a problem in Visual Studio 2008, related
I have a site and since a few days, it has a problem. My
I have been searching the internet for days trying to solve this problem. I
I seem to have a tricky problem since the latest ADT update to release
I have some problem in matlab since I was new in this programming language.
We have a problem in our swing based application since we've upgraded our java
I have a problem with our Jetty application server. Since yesterday, we have a
On a tabcontrol, I have no problem for fade in since the steps are
I have a big big problem. Yesterday I updated the Android SDK and, since
Hope to get solution to this problem. I have been stuck on it since

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.