今天做了一个功能,就是播放项目工程里面的视频文件,不是播放SD卡视频文件. 因为之前写webview加载assets文件夹时,是这样写的: webView = new WebView(this); webView.loadUrl(file:///android_asset/sample3_8.html); 依次类推,我尝试将视频video.3gp 放到assets目录下,然后写了下面的代码: Intent it = new Intent(Intent.ACTION_VIEW); Uri uri
Audio formats and codecs Format / Codec Encoder Decoder Details Supported File Type(s) / Container Formats AAC LC • • Support for mono/stereo/5.0/5.1 content with standard sampling rates from 8 to 48 kHz. • 3GPP (.3gp)• MPEG-4 (.mp4, .m4a)• ADTS raw