The invention provides a method for multilayer communication, including 1 steps: monitoring intelligent device USB connection and disconnection events; step 2: when the detected USB interface of intelligent devices with other devices to access, obtaining the equipment in the intelligent equipment in the system directory, capacity, name information; step 3: display access to the equipment information in the smart device interface, and message prompts the user equipment access; step 4: smart devices open a background thread scanning media file all the equipment directory, through access to media information for the file to determine the file type; step 5: when the smart device UI thread receives content update, read the media file path information in memory, and then display the media file path information in intelligent equipment interface. Compared with the prior art, the technical proposal of the invention can achieve the advantages of taking less system resources and using the shorter time to quickly obtain the media files stored by the USB device.
【技术实现步骤摘要】
快速识别USB设备存储的媒体文件的方法
本专利技术涉及智能硬件设备领域,特别是快速识别USB设备存储的媒体文件的方法。
技术介绍
目前,在家庭的客厅中,电视机一直是客厅必不可少的家电,电视一般与有线电视信号连接,主要用于播放电视资源,也可以连接DVD、笔记本等等播放设备,用于点播用户喜好的视频资源、而随着无线通讯技术和智能家居的发展,用户可以通过移动智能设备等终端对家庭中的智能终端智能硬件设备进行交互。现在智能硬件设备上观看移动终端上传的媒体文件越来越普遍,但是媒体文件上传到智能硬件设备的速度是很慢的。除了上述问题,智能硬件设备在读取到外置存储设备中的视频文件时,由于智能硬件设备交互能力较差,需要用户进行反复操作才能寻找到存储视频文件信息,因此,必须在智能硬件设备读取移动硬盘中的文件,在数据导入时进行优化,以提高用户体验。当USB设备,容量较大,存储的媒体文件过多时,必然会消耗更多的系统资源以及时间去扫描USB设备中的媒体文件。
技术实现思路
本专利技术针对上述现有技术中存在的问题,提供一种快速识别USB设备存储的媒体文件的方法,是通过以下技术特征实现的,包括如下步骤。步骤1:监听智能设备的USB接口连接及断开事件;步骤2:当检测到智能设备的USB接口有其他设备接入时,获取所述设备在智能设备系统中的目录、容量、名称信息;步骤3:在智能设备的界面中显示接入的所述设备信息,并消息提示用户有设备接入;步骤4:智能设备开启后台线程扫描该设备目录下所有的媒体文件,通过获取文件的媒体信息来判断文件的种类,所述文件的种类包括相片、视频、音频;在步骤4中,扫描到媒体文件时,将 ...
【技术保护点】
快速识别USB设备存储的媒体文件的方法,其特征在于,包括如下步骤:步骤1: 监听智能设备的USB接口连接及断开事件;步骤2: 当检测到智能设备的USB接口有其他设备接入时,获取所述设备在智能设备系统中的目录、容量、名称信息;步骤3:在智能设备的界面中显示接入的所述设备信息,并消息提示用户有设备接入;步骤4:智能设备开启后台线程扫描该设备目录下所有的媒体文件,通过获取文件的媒体信息来判断文件的种类;步骤5:当智能设备的UI线程接收到有内容更新时,读取内存中的媒体文件路径信息,然后在智能设备的界面中展示所述路径信息下的媒体文件。
【技术特征摘要】
1.快速识别USB设备存储的媒体文件的方法,其特征在于,包括如下步骤:步骤1:监听智能设备的USB接口连接及断开事件;步骤2:当检测到智能设备的USB接口有其他设备接入时,获取所述设备在智能设备系统中的目录、容量、名称信息;步骤3:在智能设备的界面中显示接入的所述设备信息,并消息提示用户有设备接入;步骤4:智能设备开启后台线程扫描该设备目录下所有的媒体文件,通过获取文件的媒体信息来判断文件的种类...
【专利技术属性】
技术研发人员:李文思,张涢,祝丰华,
申请(专利权)人:深圳市美贝壳科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。