MCSimpleAudioPlayer
MCSimpleAudioPlayer copied to clipboard
如何支持播放3gp格式的音频
如何支持播放3gp格式的音频? like this?
` NSString *path = [[NSBundle mainBundle] pathForResource:@"20180505225621" ofType:@"3gp"];
_player = [[MCSimpleAudioPlayer alloc] initWithFilePath:path fileType:kAudioFile3GPType];
`
get error:
MCSimpleAudioPlayerDemo[3853:2235173] 3526: MP4Parser_PacketProvider->GetASBD() failed
http://p7dsfgicj.bkt.clouddn.com/20180506024203.3gp
Supported Formats
This class plays any movie or audio file supported in iOS. This includes both streamed content and fixed-length files. For movie files, this typically means files with the extensions.mov, .mp4, .mpv, and.3gp and using one of the following compression standards:
H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (The Baseline profile does not support B frames.) MPEG-4 Part 2 video (Simple Profile) If you use this class to play audio files, it displays a white screen with a QuickTime logo while the audio plays. For audio files, this class supports AAC-LC audio at up to 48 kHz, and MP3 (MPEG-1 Audio Layer 3) up to 48 kHz, stereo audio.
建议查看一下3gp中音频编码的格式是否是AAC-LC
在 2018年5月6日,上午2:44,XmYhkj [email protected] 写道:
http://p7dsfgicj.bkt.clouddn.com/20180506024203.3gp x-msg://4/url — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/msching/MCSimpleAudioPlayer/issues/8#issuecomment-386826581, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKy6vZ4A2pLuEFvL8qV4rRGqzXb2j-Zks5tvfLwgaJpZM4TzvqZ.