问题
What codec settings will produce valid videos for playback on Android (videoView) and iOS UIWebView)?
回答1:
Android: http://developer.android.com/guide/appendix/media-formats.html
iOS video (UIWebView's don't actually play the videos, they pass it off to another class): http://developer.apple.com/iphone/library/documentation/mediaplayer/reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.html#//apple_ref/doc/uid/TP40006953
and iOS audio: http://developer.apple.com/iphone/library/documentation/AudioVideo/Conceptual/MultimediaPG/UsingAudio/UsingAudio.html#//apple_ref/doc/uid/TP40009767-CH2-SW33
来源:https://stackoverflow.com/questions/3456424/what-video-audio-codec-settings-for-playback-on-android-and-ios