Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

iOS Module for Audio Streaming - boundBridge:withKrollObject error

$
0
0

i am trying to build an simple Titanium module for ios to play external audio streams. I am using the AudioStreamer Class from this Github project https://github.com/mattgallagher/AudioStreamer

I get the stream starting and i can paused the stream.

But when i call the function [streamer stop] my App crashed with this error:

[ERROR] :  Script Error {
[ERROR] :      backtrace = "#0 () at :0";
[ERROR] :      line = 59;
[ERROR] :      message = "-[AudioStreamer boundBridge:withKrollObject:]: unrecognized selector sent to instance 0x808b7e00";
[ERROR] :      sourceId = 298469728;
I could break the problem down to this code line in the Xcode Project:
self.state = AS_STOPPING;
When i have this line in my code the App crashed every time when i call stop streaming. But this is the original Code from the working Class i use?

Here the whole stop function:

- (void)stop
{
    @synchronized(self)
    {
        if (audioQueue &&
            (state == AS_PLAYING || state == AS_PAUSED ||
                state == AS_BUFFERING || state == AS_WAITING_FOR_QUEUE_TO_START))
        {
            err = AudioQueueStop(audioQueue, true);
            if (err)
            {
                [self failWithErrorCode:AS_AUDIO_QUEUE_STOP_FAILED];
                return;
            }
            self.laststate = state;
            self.state = AS_STOPPING;
            stopReason = AS_STOPPING_USER_ACTION;
        }
        else if (state != AS_INITIALIZED)
        {
            self.state = AS_STOPPED;
            stopReason = AS_STOPPING_USER_ACTION;
        }
        seekWasRequested = NO;
    }
 
    while (state != AS_INITIALIZED)
    {
        [NSThread sleepForTimeInterval:0.1];
    }
}
Does someone know why this is happening?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>