StreamingKit
StreamingKit copied to clipboard
can't play m4a
i played http://cc.stream.qqmusic.qq.com/C1000010m6bR4NayEQ.m4a?fromtag=52. i use StreamingKit (0.1.26) xcode Version 6.2 (6C131e)
but couldn't play. The following is the error log.
[428:323869] STKAudioPlayer logInfo:setDataSource:withQueueItemId: Playing: http://cc.stream.qqmusic.qq.com/C1000036Asj93QalTv.m4a?fromtag=52 [428:323904] STKAudioPlayer logInfo:setCurrentlyReadingEntry:andStartPlaying:clearQueue: http://cc.stream.qqmusic.qq.com/C1000036Asj93QalTv.m4a?fromtag=52 [428:323904] STKAudioPlayer logInfo:processFinishPlayingIfAnyAndPlayingNext:withNext: Finished: nothing, Next: http://cc.stream.qqmusic.qq.com/C1000036Asj93QalTv.m4a?fromtag=52, buffering.count=0,upcoming.count=0 [428:323869] STKAudioPlayer stateChanged state=STKAudioPlayerStateBuffering [428:323869] STKAudioPlayer didStartPlayingQueueItemId: http://cc.stream.qqmusic.qq.com/C1000036Asj93QalTv.m4a?fromtag=52 [428:323869] STKAudioPlayer stateChanged state=STKAudioPlayerStateError [428:323869] STKAudioPlayer STKAudioPlayerERROR:unexpectedErrorcode=3 [428:323904] STKAudioPlayer logInfo:processFinishPlayingIfAnyAndPlayingNext:withNext: Finished: http://cc.stream.qqmusic.qq.com/C1000036Asj93QalTv.m4a?fromtag=52, Next: (null), buffering.count=0,upcoming.count=0 [428:323904] STKAutoRecoveringHTTPDataSource dealloc [428:323904] STKHTTPDataSource dealloc [428:323869] STKAudioPlayer stateChanged state=STKAudioPlayerStateStopped [428:323869] STKAudioPlayer didFinishPlayingQueueItemId: http://cc.stream.qqmusic.qq.com/C1000036Asj93QalTv.m4a?fromtag=52
next, i played this m4a on iPhone Safari. it could success;
Problem has occurred in perhaps AudioConverterNew. AudioConverterNew return 1 (STKAudioPlayer.m createAudioConverter line:2009)
Details are below
asbd{ asbd->mSampleRate = 22050 asbd->mFormatID = 1633772320 asbd->mFormatFlags = nil asbd->mBytesPerPacket = nil asbd->mFramesPerPacket = 1024 asbd->mBytesPerFrame = nil asbd->mChannelsPerFrame = 1 asbd->mBitsPerChannel = nil asbd->mReserved = nil }
(AudioStreamBasicDescription) canonicalAudioStreamBasicDescription = { mSampleRate = 44100 mFormatID = 1819304813 mFormatFlags = 12 mBytesPerPacket = 4 mFramesPerPacket = 1 mBytesPerFrame = 4 mChannelsPerFrame = 1 mBitsPerChannel = 16 mReserved = 0 }
audioConverterRef:nil
and, i tried play using Streamingkit ver(0.1.25). it was success!!!!! but sound quality is bad. It is similar to the sound of AM radio.
i have the same problem, and i found FreeStreamer can play it
it is resolved at the last reversion. see this code.
// canonicalAudioStreamBasicDescription.mChannelsPerFrame = asbd->mChannelsPerFrame;
@gilnuy Is it resolved. Please give me some help. I am desperately looking for it. Thanks
Check how your audios are encoded. We have working m4a audios working file.
This endowing works: ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]
This encoding does not work in our experience:
ISO Media, Apple iTunes ALAC/AAC-LC (.M4A) Audio