ios - AudioSteamer's state sometimes doesn't change to AS_PLAYING -


i use matt gallagher's audiosteamer implement online music playing function, found online music playing audiostreamer's state doesn't change as_playing, meet same problem? can tell me how solve question~~thanks~

i guess 1 of reasons that:

if (![[nsthread currentthread] isequal:internalthread]) {         [self         performselector:@selector(handlepropertychange:)         onthread:internalthread         withobject:[nsnumber numberwithint:inid]         waituntildone:no         modes:[nsarray arraywithobject:nsdefaultrunloopmode]];     return; } 

after code execute in

- (void)handlepropertychangeforqueue:(audioqueueref)inaq     propertyid:(audioqueuepropertyid)inid 

the function:

- (void)handlepropertychange:(nsnumber *)num {     [self handlepropertychangeforqueue:null propertyid:[num intvalue]]; } 

doesn't execute... don't know how fix ...anybody me? thanks..

i have problem. added code:

if (state == as_waiting_for_queue_to_start){         @synchronized(self){             self.state = as_playing;         }     } 

into method:

- (void)handlepropertychangeforqueue:(audioqueueref)inaq propertyid:(audioqueuepropertyid)inid 

just before call:

[self     performselector:@selector(handlepropertychange:)     onthread:internalthread     withobject:[nsnumber numberwithint:inid]     waituntildone:no     modes:[nsarray arraywithobject:nsdefaultrunloopmode]]; 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -