音乐文件扫描过程
来源:互联网 发布:p2p平台 知乎 编辑:程序博客网 时间:2024/05/20 09:21
1, In mediascanner.java->doScanFile(), we start scan file.
// we only extract metadata for audio and video files
if (MediaFile.isAudioFileType(mFileType)
|| MediaFile.isVideoFileType(mFileType)) {
processFile(path, mimeType, this); //begin to process file. you can print the path of the file.
}
2, android_media_MediaScanner.cpp->android_media_MediaScanner_processFile()
3, StagefrightMediaScanner.cpp->processFile()
4, in StagefrightMediaScanner.cpp, call MediaScannerClient.cpp->addStringTag() to add tag.
5, in addStringTag, if the char is not ascii, then put to mNames and mValues for later convert, the addStringTag() parameter is the tag you want to see and you can print the values in the begin of the method.
6, MediaScannerClient.cpp->endFile() to convert.
// we only extract metadata for audio and video files
if (MediaFile.isAudioFileType(mFileType)
|| MediaFile.isVideoFileType(mFileType)) {
processFile(path, mimeType, this); //begin to process file. you can print the path of the file.
}
2, android_media_MediaScanner.cpp->android_media_MediaScanner_processFile()
3, StagefrightMediaScanner.cpp->processFile()
4, in StagefrightMediaScanner.cpp, call MediaScannerClient.cpp->addStringTag() to add tag.
5, in addStringTag, if the char is not ascii, then put to mNames and mValues for later convert, the addStringTag() parameter is the tag you want to see and you can print the values in the begin of the method.
6, MediaScannerClient.cpp->endFile() to convert.
7, after convert, you can print the mNames and mValues for check.
打开Log调试信息,具体见system/core/include/cutils/log.h
- 音乐文件扫描过程
- 扫描本地音乐文件
- Android开发:扫描本地音乐文件
- Android 扫描SDCard上的音乐文件以及监听扫描事件
- Android 扫描SDCard上的音乐文件以及监听扫描事件
- Android 扫描SDCard上的音乐文件以及监听扫描事件
- Android 扫描SDCard上的音乐文件以及监听扫描事件
- 扫描IPHONE本地音乐文件,获得音乐名,歌手名代码示例
- android 扫描文件(sdcard添加新的音乐文件时候后,可扫描到)
- Android 扫描音乐文件、两种方式获取文件最新修改时间
- Android多媒体扫描过程
- Android 多媒体扫描过程
- 索引扫描的过程
- 模拟 扫描枪 扫描条形码过程
- Android蓝牙扫描设备过程
- PCIE 设备扫描的过程
- PCIE 设备扫描的过程
- PCIE 设备扫描的过程
- jquery获取url参数值的方法
- mysql支持的数据类型——字符串类型
- 干货分享:不可错过的网站权重提高方法
- i.MX53的启动模式
- 在iOS开发中使用FMDB
- 音乐文件扫描过程
- Linux中Samba详细安装从别人哪里cp来的,记下来免得忘记了
- TortoiseSVN客户端重新设置用户名和密码
- 解决网站降权三部曲:一排查,二投诉,三等待
- 搜索框禁止填充
- 菜鸟之旅——Java入门篇(四)面向对象
- 弥补两个不足之处 让企业站转化率飞跃提升
- SEO做标题党好不好?
- phpMyAdmin简明安装教程