CN102830943A - Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform - Google Patents

Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform Download PDF

Info

Publication number
CN102830943A
CN102830943A CN2012102797141A CN201210279714A CN102830943A CN 102830943 A CN102830943 A CN 102830943A CN 2012102797141 A CN2012102797141 A CN 2012102797141A CN 201210279714 A CN201210279714 A CN 201210279714A CN 102830943 A CN102830943 A CN 102830943A
Authority
CN
China
Prior art keywords
usb
android
file
multimedia file
video player
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012102797141A
Other languages
Chinese (zh)
Other versions
CN102830943B (en
Inventor
李斌
黄河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wei Ma Automotive Technology Group Co Ltd
Original Assignee
SHENZHEN LETOU CARL TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN LETOU CARL TECHNOLOGY CO LTD filed Critical SHENZHEN LETOU CARL TECHNOLOGY CO LTD
Priority to CN201210279714.1A priority Critical patent/CN102830943B/en
Publication of CN102830943A publication Critical patent/CN102830943A/en
Application granted granted Critical
Publication of CN102830943B publication Critical patent/CN102830943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a method and a system for playing multimedia files in an external USB (universal serial bus) storage on the basis of an Android platform. The method includes the steps: when the USB storage is externally connected to an Android device using the Android platform, controlling to mount the USB storage to a specified file catalog in a file system of the Android device; starting a video player or an audio player; acquiring a multimedia file to be played from the USB storage according to a playing request of the video player or audio player, analyzing the multimedia file to a specified data pool in the Android device; returning the analyzed multimedia file from the data pool to the video player or audio player, and allowing the video player or audio player to play the multimedia file. Management and playing of the multimedia data are centralized, flow management is centralized, the function of plug and play is realized, and users of the Android devices are provided with better experience.

Description

Play the method and system of multimedia file in the circumscribed USB storer based on the Android platform
Technical field
The present invention relates to a kind of file and read technology, especially relate to a kind of method and system of playing multimedia file in the circumscribed USB storer based on the Android platform.
Background technology
Along with the in-depth of intelligent movableization, for the cell phone entertainment function require increasingly highly, particularly for the management and the broadcast of multimedia file, user's requirement also improves thereupon.At present the intelligent movable mobile phone is a lot of for the technology of the multimedia administration of the SD card and the network storage and broadcast, and technological comparative maturity.Having ready conditions also is necessary to expand the compatible and management to more memory device, and realizes unified interface, to adapt to the experience of user's requirements at the higher level.
But can't manage and play the multimedia file in the external USB storage with regard to the Android platform at present; Just can accomplish simple synchronously, can not satisfy the user and plug USB and just can work as the such experience requirements of music walkman, video player and picture browsing (gallery function).
Summary of the invention
For solving the deficiency of prior art, the present invention proposes a kind of method and system based on multimedia file in the Android platform broadcast circumscribed USB storer, makes the Android platform manage and to play the multimedia file in the USB storage.
The present invention adopts following technical scheme to realize: a kind of method based on multimedia file in the Android platform broadcast circumscribed USB storer, and it comprises step:
A, when USB storage is external to the Android equipment that adopts the Android platform, control is mounted to USB storage the file directory of an appointment in the file system of Android equipment;
B, startup video player or audio player;
C, according to the playing request of video player or audio player, from USB storage, obtain the multimedia file of broadcast, resolve a data designated pond to the Android equipment;
Said multimedia file after D, the parsing returns to video player or audio player from said data pool, by video player or audio player said multimedia file is carried out playback process.
Wherein, said steps A specifically comprises step:
Whether A1, monitoring have outside USB device to drive the USB interface that inserts Android equipment;
A2, when monitoring finds to have outside USB storage to load, send event message to the Android kernel module and communicate;
A3, Android kernel module utilize the Vold process to handle the carry that event message is carried out USB storage.
A4, be mounted to USB storage the file directory of appointment in the file system of Android kernel module, accomplish the Android kernel module and dock with the data of USB storage.
Wherein, said step B is according to user's active request, maybe when having detected USB driving loading and carry completion, triggers startup video player or audio player by the Android kernel module.
In addition, the present invention also discloses a kind of system based on multimedia file in the Android platform broadcast circumscribed USB storer, and it comprises:
Adopt the Android equipment of Android platform, it comprises at least: USB interface, video player, audio player, USB device monitoring module, driving load communication module, usb file to connection module and Android kernel module;
Be external to the USB storage of the USB interface of Android equipment;
When the USB device monitoring module listens to USB storage when being external to the USB interface of Android equipment, USB storage is mounted to the file directory of an appointment in the file system of Android equipment by usb file butt joint module controls; Start video player or audio player; The Android kernel module is according to the playing request of video player or audio player; From USB storage, obtain the multimedia file of broadcast; Resolve a data designated pond to the Android equipment, the said multimedia file after the parsing returns to video player or audio player from said data pool, by video player or audio player said multimedia file is carried out playback process.
Wherein, when the USB device monitoring module listens to USB storage when being external to the USB interface of Android equipment, load communication module and send event message to the Android kernel module and communicate through driving; The Android kernel module utilizes the Vold process that event message is handled, and the notice usb file is mounted to USB storage to connection module the file directory of appointment of the file system of Android kernel module.
Compared with prior art, the present invention has following beneficial effect:
The present invention can carry out on the basis of data sync at existing Android platform and USB storage; Realized play-overing the multimedia (such as music, video) in the circumscribed USB storer through the Android platform; Management and broadcast have been unified to multi-medium data; Unified workflow management, realized plug-and-play feature, made the user of Android equipment can obtain better experience effect.
Description of drawings
Fig. 1 is an Android equipment and the synoptic diagram that is connected of circumscribed USB storer;
Fig. 2 is that Android equipment of the present invention carries out the treatment scheme synoptic diagram that data are docked with the circumscribed USB storer;
Fig. 3 is the schematic flow sheet that Android equipment carries out the uniform data management and plays multimedia file in the external USB storage.
Embodiment
As shown in Figure 1; Be connected the outside of the Android equipment 1 that adopts the Android platform through USB interface with USB storage 2; Monitor and manage by 1 pair of USB storage 2 of Android equipment, and then the multimedia file in the USB storage 2 is managed and play.
Android equipment 1 specifically comprises: the Android kernel module 11 of realizing Android operating system; The usb 12 that is connected with USB storage 2; The USB device monitoring module 13 that is serially connected between Android kernel module 11 and the usb 12 loads communication module 14 with driving; Be connected usb file between Android kernel module 11 and the usb 12 to connection module 15; Connect Android kernel module 11 and receive the video player 16 and audio player 17 of Android kernel module 11 control and treatment.
In conjunction with shown in Figure 2, Android equipment 1 carries out data with circumscribed USB storer 2 according to following mode and docks:
Step S11, monitor (i.e. whether monitoring has outside USB device to drive is inserted usb 1 2) by 13 pairs of usb 1s 2 of USB device monitoring module.
Step S12, judge whether that outside USB storage 2 inserts usb 1s 2, if then change step S13 over to.
Step S13, when monitoring is found to have outside USB device to drive to load, can load communication module 14 and send event message to Android kernel module 11 and communicate through driving.
A Vold is arranged in the middle of step S14, the Android kernel module 11, and (whole process is Volume Daemon; The carry task that is actually extension storage such as the CDROM that is responsible for the completion system, the storage of USB high capacity, mmc card is the finger daemon of completion automatically; The principal feature that it provides is to support the hot plug of these storage peripheral hardwares) process, utilize the Vold process to handle to driving the event message of sending on the loading communication module 14.
Step S15, when the type that monitors the driving arrangement of current loading when Android kernel module 11 is USB device; Android kernel module 11 notice usb files are mounted to USB storage 2 under the file directory of Android kernel module 11 appointments to connection module 15; Make USB storage 2 as a mount point in the Android operating system, accomplish Android kernel module 11 and dock with the data of USB storage 2.
After accomplishing Android kernel module 11 and the data of USB storage 2 docked; Android kernel module 11 obtains the information of the multimedia file in the USB storage 2; And it is resolved, and finally in the data pool of Android kernel module 11, carry out playback process to the data storage that is resolved to.Further, in conjunction with shown in Figure 3, Android equipment comprises the treatment scheme that multimedia file in the external USB storage carries out uniform data management and broadcast:
Step S21, be loaded on Android equipment 1 and accomplish based on user request or USB storage 2 after, trigger to begin to start multimedia file in the USB storage 2 carried out the uniform data management and plays.
Step S22, judge whether USB storage 2 has been mounted under the file directory of Android kernel module 11 appointments.As not, withdraw from; If then change step S23 over to.
Step S23, Android equipment 1 start the broadcast interface (corresponding video player 16 or the audio player 17 of starting) of multimedia file.In general, default situations (when being inspired by system) is opened audio player 17, or selects to open video player 16 or audio player 17 by the user.
Step S24, according to the playing request of video player 16 or audio player 17, from USB storage 2, obtain the multimedia file of broadcast, resolve the data designated pond (DataFactory) to the Android equipment 1
Because carry is to the file directory of Android kernel module 11 appointments for USB storage 2, this moment, the multimedia file in the USB storage 2 was equivalent to one of them file directory in the file system of Android kernel module 11.Obtain the multimedia file under the said file directory by Android kernel module 11, and it is resolved, and finally be stored in the multi-medium data that is resolved in the data pool (DataFactory) of Android kernel module 11.
Said multimedia file after step S25, the parsing returns to video player 16 or audio player 17 from said data pool, carries out playback process by video player 16 or 17 pairs of said multimedia files of audio player.
To sum up, the Android equipment 1 of the present invention's proposition can be realized the multimedia file in the external USB storage 2 is unified interface display and the playing function that offers user interactions.Wherein, The voice playing existence inspires opportunity for two kinds Android kernel module 11 control of video players 16 or/and audio player 17 carries out video playback; A kind of is user's active request; Another kind is to have detected USB to drive when loading also carry completion, is triggered by Android kernel module 11 and accomplishes.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. play the method for multimedia file in the circumscribed USB storer based on the Android platform for one kind, it is characterized in that said method comprises step:
A, when USB storage is external to the Android equipment that adopts the Android platform, control is mounted to USB storage the file directory of an appointment in the file system of Android equipment;
B, startup video player or audio player;
C, according to the playing request of video player or audio player, from USB storage, obtain the multimedia file of broadcast, resolve a data designated pond to the Android equipment;
Said multimedia file after D, the parsing returns to video player or audio player from said data pool, by video player or audio player said multimedia file is carried out playback process.
2. according to the said method of claim 1, it is characterized in that said steps A specifically comprises step based on multimedia file in the Android platform broadcast circumscribed USB storer:
Whether A1, monitoring have outside USB device to drive the USB interface that inserts Android equipment;
A2, when monitoring finds to have outside USB storage to load, send event message to the Android kernel module and communicate;
A3, Android kernel module utilize the Vold process to handle the carry that event message is carried out USB storage;
A4, be mounted to USB storage the file directory of appointment in the file system of Android kernel module, accomplish the Android kernel module and dock with the data of USB storage.
3. according to claim 1 or the 2 said methods of playing multimedia file in the circumscribed USB storer based on the Android platform; It is characterized in that; Said step B is according to user's active request; Maybe when having detected USB driving loading and carry completion, trigger startup video player or audio player by the Android kernel module.
4. play the system of multimedia file in the circumscribed USB storer based on the Android platform for one kind, it is characterized in that said system comprises:
Adopt the Android equipment of Android platform, it comprises at least: USB interface, video player, audio player, USB device monitoring module, driving load communication module, usb file to connection module and Android kernel module;
Be external to the USB storage of the USB interface of Android equipment;
When the USB device monitoring module listens to USB storage when being external to the USB interface of Android equipment, USB storage is mounted to the file directory of an appointment in the file system of Android equipment by usb file butt joint module controls; Start video player or audio player; The Android kernel module is according to the playing request of video player or audio player; From USB storage, obtain the multimedia file of broadcast; Resolve a data designated pond to the Android equipment, the said multimedia file after the parsing returns to video player or audio player from said data pool, by video player or audio player said multimedia file is carried out playback process.
5. according to the said method of playing multimedia file in the circumscribed USB storer based on the Android platform of claim 4; It is characterized in that; When the USB device monitoring module listens to USB storage when being external to the USB interface of Android equipment, load communication module and send event message to the Android kernel module and communicate through driving; The Android kernel module utilizes the Vold process that event message is handled, and the notice usb file is mounted to USB storage to connection module the file directory of appointment of the file system of Android kernel module.
6. according to claim 4 or the 5 said methods of playing multimedia file in the circumscribed USB storer based on the Android platform; It is characterized in that; According to user's active request; Maybe when having detected USB driving loading and carry completion, trigger startup video player or audio player by the Android kernel module.
CN201210279714.1A 2012-08-08 2012-08-08 Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform Active CN102830943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210279714.1A CN102830943B (en) 2012-08-08 2012-08-08 Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210279714.1A CN102830943B (en) 2012-08-08 2012-08-08 Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform

Publications (2)

Publication Number Publication Date
CN102830943A true CN102830943A (en) 2012-12-19
CN102830943B CN102830943B (en) 2015-05-27

Family

ID=47334097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210279714.1A Active CN102830943B (en) 2012-08-08 2012-08-08 Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform

Country Status (1)

Country Link
CN (1) CN102830943B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533253A (en) * 2013-04-27 2014-01-22 Tcl康钛汽车信息服务(深圳)有限公司 DVD function control method and device based on Android system
CN103942170A (en) * 2014-04-03 2014-07-23 西安交通大学 Android system USB interface driving-free data communication method
CN103996406A (en) * 2014-05-28 2014-08-20 Tcl集团股份有限公司 Media file playing method and device based on android system
CN105654932A (en) * 2014-11-10 2016-06-08 乐视致新电子科技(天津)有限公司 System and method for implementing karaoke application
CN105657561A (en) * 2014-11-10 2016-06-08 乐视致新电子科技(天津)有限公司 System and method for realizing karaoke application
TWI629594B (en) * 2015-04-10 2018-07-11 安富科技股份有限公司 Notification method for multimedia device media source hot plugging instant notification system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1892882A (en) * 2005-07-08 2007-01-10 朱庆平 Multi-disc type digital-code automobile sound equipment
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN102325438A (en) * 2011-05-26 2012-01-18 南昌大学 A kind of electric automobile inter-vehicle information system
CN102543122A (en) * 2011-12-08 2012-07-04 上海博泰悦臻电子设备制造有限公司 Method and device for playing vehicle-mounted end U disk videos

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1892882A (en) * 2005-07-08 2007-01-10 朱庆平 Multi-disc type digital-code automobile sound equipment
CN102325438A (en) * 2011-05-26 2012-01-18 南昌大学 A kind of electric automobile inter-vehicle information system
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN102543122A (en) * 2011-12-08 2012-07-04 上海博泰悦臻电子设备制造有限公司 Method and device for playing vehicle-mounted end U disk videos

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
从容: "基于Android系统的高清网络播放机", 《卫星电视与宽带多媒体》 *
白璐 等: "Android系统WMA文件播放功能的设计与实现", 《电子科技》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533253A (en) * 2013-04-27 2014-01-22 Tcl康钛汽车信息服务(深圳)有限公司 DVD function control method and device based on Android system
CN103533253B (en) * 2013-04-27 2017-10-03 福尔达车联网(深圳)有限公司 A kind of DVD function control method and device based on Android system
CN103942170A (en) * 2014-04-03 2014-07-23 西安交通大学 Android system USB interface driving-free data communication method
CN103942170B (en) * 2014-04-03 2017-06-27 西安交通大学 A kind of method of the dynamic data communication of Android system USB interface free drive
CN103996406A (en) * 2014-05-28 2014-08-20 Tcl集团股份有限公司 Media file playing method and device based on android system
CN103996406B (en) * 2014-05-28 2017-10-31 Tcl集团股份有限公司 A kind of media file playing method and device based on Android system
CN105654932A (en) * 2014-11-10 2016-06-08 乐视致新电子科技(天津)有限公司 System and method for implementing karaoke application
CN105657561A (en) * 2014-11-10 2016-06-08 乐视致新电子科技(天津)有限公司 System and method for realizing karaoke application
CN105654932B (en) * 2014-11-10 2020-12-15 乐融致新电子科技(天津)有限公司 System and method for realizing karaoke application
TWI629594B (en) * 2015-04-10 2018-07-11 安富科技股份有限公司 Notification method for multimedia device media source hot plugging instant notification system

Also Published As

Publication number Publication date
CN102830943B (en) 2015-05-27

Similar Documents

Publication Publication Date Title
CN102830943A (en) Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform
EP1950665B1 (en) Apparatus and method for controlling USB operation
JP6742465B2 (en) Method, device and bluetooth speaker for continuous wakeup delay reduction in bluetooth speaker
CN108509176B (en) Method and device for playing audio data, storage medium and intelligent terminal
CN103744821A (en) Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
CN102981990A (en) Data transmission method and device of terminal equipment with Androild platform
US7930463B2 (en) Information processing apparatus
EP2773128A2 (en) Content streaming between devices
CN103530065B (en) The control method of storage device
US20140059361A1 (en) Information processing system, external apparatus, and method for supplying power from host apparatus to external apparatus
CN109032559A (en) A kind of configuration method and system of the same sound pick-up outfit of more Application shares
CN102314512A (en) Synchronous storage system and method of data file based on Bluetooth technology
US20120330888A1 (en) Data backup device
CN102419753A (en) Information processing equipment, information processing method and information processing system
CN105848089A (en) Data processing method, data sending method, and relevant equipment
CN110399168A (en) Majority according to disk storage server system start method, device and equipment
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
CN106990986B (en) Software upgrading control method and device and audio playing equipment
CN111601218B (en) Audio playing switching method, Bluetooth loudspeaker box and Bluetooth audio playing device
CN101867697A (en) Set-top box system for realizing plugging and playing by utilizing network and method thereof
CN202796048U (en) USB (Universal Serial Bus) media player based on Android platform
CN114595177A (en) Multi-communication module based on android and compatible method thereof
US20120054382A1 (en) Method of hand-held smart device for accessing data
CN105718382B (en) A kind of information processing method and electronic equipment
CN107038047B (en) Software version synchronization method and device of audio playing equipment and audio playing equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160531

Address after: Nanshan District on the road of Shenzhen city Guangdong province 518000 No. 4 garden 3 building 801 in half

Patentee after: Zhong Senlin

Address before: 518000 west side of T3B5-a hi tech Industrial Village, Gao Yuan District, Shenzhen, Guangdong, Nanshan District

Patentee before: Shenzhen Letou Kaer Technology Co., Ltd.

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161027

Address after: Wenzhou City, Zhejiang Province in 325000 port industry cluster zone, the administrative center of No. 1 building 156 room

Patentee after: Vimar automotive Wenzhou Co. Ltd.

Address before: Nanshan District on the road of Shenzhen city Guangdong province 518000 No. 4 garden 3 building 801 in half

Patentee before: Zhong Senlin

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161207

Address after: Qingpu District of Shanghai City Lai Hong Kong Road 201700 room No. 77 510-523

Patentee after: V-mark Automobile Technology Co Ltd

Address before: Wenzhou City, Zhejiang Province in 325000 port industry cluster zone, the administrative center of No. 1 building 156 room

Patentee before: Vimar automotive Wenzhou Co. Ltd.

CP01 Change in the name or title of a patent holder

Address after: 201700 room 510-523, Laisheng Road, Qingpu District, Shanghai

Patentee after: Wei Ma Automotive Technology Group Co., Ltd.

Address before: 201700 room 510-523, Laisheng Road, Qingpu District, Shanghai

Patentee before: V-mark Automobile Technology Co Ltd

CP01 Change in the name or title of a patent holder