CN103929661A - Media file playing system and method for intelligent gateway - Google Patents

Media file playing system and method for intelligent gateway Download PDF

Info

Publication number
CN103929661A
CN103929661A CN201410110082.5A CN201410110082A CN103929661A CN 103929661 A CN103929661 A CN 103929661A CN 201410110082 A CN201410110082 A CN 201410110082A CN 103929661 A CN103929661 A CN 103929661A
Authority
CN
China
Prior art keywords
media file
playing
module
bluetooth
gateway
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
CN201410110082.5A
Other languages
Chinese (zh)
Other versions
CN103929661B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201410110082.5A priority Critical patent/CN103929661B/en
Publication of CN103929661A publication Critical patent/CN103929661A/en
Application granted granted Critical
Publication of CN103929661B publication Critical patent/CN103929661B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a media file playing system for an intelligent gateway. The playing of a media file is controlled through the intelligent gateway. The media file playing system comprises a control module, a gateway proxy module, a playing module and a Bluetooth module. The control module is arranged in an electronic device and used for setting a corresponding control order for the media file needing to be operated and searching for an available Bluetooth loudspeaker box, the gateway proxy module is arranged in the gateway and used for receiving the media file control order set by the control module, the URL of the media file needing to be operated and the available Bluetooth loudspeaker box, the playing module is arranged in the gateway and used for obtaining the media file URL received by the gateway proxy module and analyzing the information of the available Bluetooth loudspeaker box to obtain the corresponding MAC address to be output, the Bluetooth module is used for being connected with the corresponding MAC address Bluetooth loudspeaker so as to play the corresponding media file. According to the playing system, the media controlling and playing are controlled through the interaction operation of the playing module and the control module. The invention further provides a media file playing method for the intelligent gateway.

Description

The media file-playing system of intelligent gateway and method
Technical field
The present invention relates to the network data transmission technology in intelligent gateway embedded system, relate in particular to media file-playing system and the method for intelligent gateway.
Background technology
At present, along with the fast development of computer technology network technology and individual are to family life digitlization, informationalized pursuit, wired home has developed into a current hot technology, gateway is the nucleus equipment in domestic communication system, gateway is realized the correlation function of network as accessing terminal of home network, but gateway cannot be realized the function that media play is relevant.
Summary of the invention
In view of this, the invention provides a kind of media file-playing system and method for the intelligent gateway that can realize media play function.
A kind of media file-playing system of intelligent gateway, it is for playing at a Baffle Box of Bluetooth by intelligent gateway control media file, the media file-playing system of described intelligent gateway comprises a control module, a gateway proxy module, a playing module and a bluetooth module, described control module is arranged in portable electric appts for the media file of need operation is arranged corresponding control command and searches for available Baffle Box of Bluetooth, described gateway proxy module is arranged in gateway the control command for receiving the media file that described control module arranges, need URL(uniform resource locator) (the Uniform Resource Location of the media file of operation, and available Baffle Box of Bluetooth information URL), described playing module is arranged in gateway the URL for obtaining the media file that described gateway proxy module receives and resolves available Baffle Box of Bluetooth information to obtain corresponding media access control address (Media Access Control Address, MAC) address output, the Baffle Box of Bluetooth that described bluetooth module is used for connecting corresponding MAC Address is to play corresponding media file.
Compared with prior art, in the media file-playing system and method for intelligent gateway provided by the invention, the control module interactive operation that playing module and electronic equipment are set on intelligent gateway device realizes media control and media play, intelligent gateway is become have the family multi-media playback equipment of media play function.
Brief description of the drawings
Fig. 1 is the media file-playing system module diagram of intelligent gateway provided by the invention.
Fig. 2 is the media file playing method flow chart of intelligent gateway provided by the invention.
Main element symbol description
The media file-playing system 100 of intelligent gateway
Control module 110
Setting unit 112
Search unit 114
Interface display unit 116
OAMAgent module 120
Playing module 140
Bluetooth module 160
Following embodiment further illustrates the present invention in connection with above-mentioned accompanying drawing.
Embodiment
Refer to Fig. 1, the media file-playing system 100 of its intelligent gateway providing for embodiment of the present invention, it is for playing at a Baffle Box of Bluetooth by intelligent gateway control media file.The media file-playing system of described intelligent gateway comprises a control module 110, OAMAgent module 120, playing module 140 and a bluetooth module 160.
Described control module 110 comprises a setting unit 112, search unit 114 and an interface display unit 116, described setting unit 112 is for arranging corresponding operational order to the media file of need operation, the operational orders such as broadcasting, time-out, F.F. are for example set, described search unit 114 is for searching for available Baffle Box of Bluetooth information, and setting unit 112 is carried out with user by interface display unit 116 with search unit 114 alternately.In present embodiment, control module 110 is for being arranged on application (Application, the APP) module in mobile phone.
Be understandable that, mobile phone A PP module is mainly for realizing mutual interface with user, provides interface for collecting the control information of transmitting user, shows current broadcast information (as playing progress rate, song title, Ge Shouming, the lyrics etc.) simultaneously.Taking playing function as example, mobile phone A PP module is communicated by letter by socket, and the URL that plays (PLAY) message and played songs is passed to gateway proxy module 120.
Gateway proxy module 120 is arranged in gateway control command for receiving the media file that control module 110 arranges, needs URL(uniform resource locator) (Uniform Resource Location, URL) and the available Baffle Box of Bluetooth information of the media file of operation.Owing to not controlling button on gateway, need on mobile phone, realize multimedia broadcasting and control by mobile phone A PP program.Mobile phone and gateway, on consolidated network, can directly be communicated by letter by socket between the Agent on mobile phone A PP and gateway, realize by formulating proprietary protocol.Play when music such as pressing as user, mobile phone A PP gateway is sent out " OPT_PLAY " message to proxy module, and gateway proxy module 120 receives after message, and notice playing module 140 carries out the play operation of Bluetooth music.
Playing module 140 is arranged in gateway the URL for obtaining the media file that gateway proxy module 120 receives and resolves available Baffle Box of Bluetooth information to obtain the output of corresponding media access control address (Media Access Control Address, MAC) address.In present embodiment, playing module 140 is video player (Movie player, Mplayer).Be understandable that, Mplayer player is the video player that increase income, popular of on GNU/Linux platform, supports most of Audio and Video file, and supports order line operation.Mplayer is operated under slave pattern, by writing the mode of pipeline, realizes the control to playing, and the obtaining of broadcast information, as obtains playing progress rate and can realize by " echo get_time_pos>/tmp/my_fifo ".
In present embodiment, Mplayer passes through command mode, specify senior Linux sound framework (Advanced Linux Sound Architecture, ALSA) the Baffle Box of Bluetooth information that device parses receives obtains the MAC Address of corresponding Baffle Box of Bluetooth, and the hcid process that ALSA creates socket and bluetooth communicates.ALSA, by sending out message to hcid, controls the MAC Address that hcid connects Baffle Box of Bluetooth, controls the broadcasting media file of Baffle Box of Bluetooth.
In the time that Baffle Box of Bluetooth 160 is failed by playback of media files, mobile phone interface display unit 116 displays the play unsuccessfully, in the time that Baffle Box of Bluetooth 160 is successfully play media file, playing module 140 obtains the current progress of media file and reports to gateway proxy module 120, and current progress is transferred to control module 110 the current playing progress rate through interface display unit 116 display media files by gateway proxy module 120.
Refer to Fig. 2, its media file playing method that is a kind of intelligent gateway provided by the invention, it is for playing at a Baffle Box of Bluetooth by intelligent gateway control media file, and the media file playing method of described intelligent gateway comprises the following steps:
S110: the media file to need operation arranges corresponding control command and searches for available Baffle Box of Bluetooth;
S120: receive the control command of the media file arranging, the URL that needs the media file operating and available Baffle Box of Bluetooth information;
S130: obtain reception media file URL and resolve available Baffle Box of Bluetooth information to obtain the output of corresponding MAC Address;
S140: connect the Baffle Box of Bluetooth of corresponding MAC Address to play corresponding media file, if play successfully, enter step S150, if play unsuccessfully, enter step S180;
S150: the current playing progress rate of monitoring media file;
S160: report current progress;
S170: show current progress;
S180: display the play unsuccessfully.
In step S110, user utilizes the setting unit 112 of mobile phone A pp module that the control command (as PLAY) of the media file that needs operation is set by interface display unit 116, and utilizes search unit 114 to search for available Baffle Box of Bluetooth.
In step S120, utilize gateway proxy module 120 to receive the control command of set media file, the URL that needs the media file operating and available Baffle Box of Bluetooth information by creating socket communication from mobile phone A pp module.
In step S130, call Mplayer, specify the URL of media file and the MAC Address of Baffle Box of Bluetooth.Mplayer is operated under slave pattern, by writing the mode of pipeline, realizes the control to playing, and the obtaining of broadcast information.
In step S140, call ALSA audio driven, the hcid process that ALSA creates socket and bluetooth communicates, and ALSA, by sending out message to hcid, controls the MAC Address that hcid connects Baffle Box of Bluetooth, controls the broadcasting media file of Baffle Box of Bluetooth.
In step S150, call Mplayer process, obtain current progress by the technology " echoget_time_pos>/tmp/my_fifo " of writing pipeline.
In step S160, utilize Mplayer140 that the current progress of media file is reported to gateway proxy module 120.
In step S170, utilize gateway proxy module 120 that current progress is transferred to control module 110 the current playing progress rate through interface display unit 116 display media files.
In step S180, in the time that Baffle Box of Bluetooth 160 is failed by playback of media files, mobile phone interface display unit 116 displays the play unsuccessfully.
In the media file-playing system 100 and method of intelligent gateway provided by the invention, playing module 140 is set on intelligent gateway device and realizes media control and media play with control module 110 interactive operations of electronic equipment, the playing progress rate of gateway proxy module 120 monitoring medias the real-time report electronic equipment progress that displays the play, becomes intelligent gateway to have the family multi-media playback equipment of media play function.
Be understandable that, for the person of ordinary skill of the art, can make other various corresponding changes and distortion by technical conceive according to the present invention, and all these change the protection range that all should belong to the claims in the present invention with distortion.

Claims (9)

1. a media file-playing system for intelligent gateway, it is for playing at a Baffle Box of Bluetooth by intelligent gateway control media file, and the media file-playing system of described intelligent gateway comprises:
A control module, it is arranged in portable electric appts for the media file of need operation is arranged corresponding control command and searches for available Baffle Box of Bluetooth;
A gateway proxy module, it is arranged in gateway control command for receiving the media file that described control module arranges, needs URL(uniform resource locator) (Uniform Resource Location, URL) and the available Baffle Box of Bluetooth information of the media file of operation;
A playing module, it is arranged in gateway the URL for obtaining the media file that described gateway proxy module receives and resolves available Baffle Box of Bluetooth information to obtain the output of corresponding media access control address (Media Access Control Address, MAC) address;
A bluetooth module, its for the Baffle Box of Bluetooth that connects corresponding MAC Address to play corresponding media file.
2. the media file-playing system of intelligent gateway as claimed in claim 1, it is characterized in that, described control module comprises a setting unit, a search unit and an interface display unit, described setting unit is for arranging corresponding operational order to the media file of need operation, described search unit is for searching for available Baffle Box of Bluetooth information, and described setting unit and described search unit are undertaken by described interface display unit and user alternately.
3. the media file-playing system of intelligent gateway as claimed in claim 2, it is characterized in that, described playing module obtains the current progress of media file and reports to described gateway proxy module in the time that Baffle Box of Bluetooth is successfully play media file, and current progress is transferred to described control module the current playing progress rate through described interface display unit display media file by described gateway proxy module.
4. the media file-playing system of intelligent gateway as claimed in claim 2, is characterized in that, described interface display unit displays the play unsuccessfully in the time of playback of media files failure.
5. the media file-playing system of intelligent gateway as claimed in claim 1, is characterized in that, described playing module is video player (Movie player, Mplayer).
6. the media file-playing system of intelligent gateway as claimed in claim 1, is characterized in that, application (Application, the APP) module that described control module is mobile phone.
7. a media file playing method for intelligent gateway, it is for playing at a Baffle Box of Bluetooth by intelligent gateway control media file, and the media file playing method of described intelligent gateway comprises the following steps:
Media file to need operation arranges corresponding control command and searches for available Baffle Box of Bluetooth;
Receive the control command of the media file arranging, the URL that needs the media file operating and available Baffle Box of Bluetooth information;
Obtain reception media file URL and resolve available Baffle Box of Bluetooth information to obtain the output of corresponding MAC Address;
Connect the Baffle Box of Bluetooth of corresponding MAC Address to play corresponding media file.
8. the media file playing method of intelligent gateway as claimed in claim 7, is characterized in that, described in establish in the media file playing method of intelligent gateway further comprising the steps of:
In the time of playback of media files success, obtain the current progress of media file;
Report the current progress of media file
The current progress of display media file.
9. the media file playing method of intelligent gateway as claimed in claim 7, is characterized in that, described in establish in the media file playing method of intelligent gateway further comprising the steps of: in the time of playback of media files failure, display media file is play unsuccessfully.
CN201410110082.5A 2014-03-21 2014-03-21 The media file-playing system and method for intelligent gateway Active CN103929661B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410110082.5A CN103929661B (en) 2014-03-21 2014-03-21 The media file-playing system and method for intelligent gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410110082.5A CN103929661B (en) 2014-03-21 2014-03-21 The media file-playing system and method for intelligent gateway

Publications (2)

Publication Number Publication Date
CN103929661A true CN103929661A (en) 2014-07-16
CN103929661B CN103929661B (en) 2018-01-02

Family

ID=51147718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410110082.5A Active CN103929661B (en) 2014-03-21 2014-03-21 The media file-playing system and method for intelligent gateway

Country Status (1)

Country Link
CN (1) CN103929661B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902316A (en) * 2015-05-14 2015-09-09 广东欧珀移动通信有限公司 Method and device for synchronous playing of time, intelligent sound box, and mobile terminal
CN105072614A (en) * 2015-08-10 2015-11-18 小米科技有限责任公司 Method and device for controlling audio playing device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119266A (en) * 2007-08-31 2008-02-06 烽火通信科技股份有限公司 Method and system for controlling multimedia broadcast of mobile terminal combined family gateway
WO2012068465A1 (en) * 2010-11-19 2012-05-24 Interdigital Patent Holdings, Inc. Machine-to-machine (m2m) interface procedures for announce and de-announce of resources
CN102870392A (en) * 2010-04-30 2013-01-09 交互数字专利控股公司 Light weight protocol and agent in a network communication
CN102938717A (en) * 2012-10-11 2013-02-20 中兴通讯股份有限公司 Method, equipment and system for carrying out play control on DLNA (Digital Living Network Alliance) equipment
CN103095535A (en) * 2011-11-02 2013-05-08 中国移动通信集团公司 Operation demand treatment method, home network system and device
CN103517089A (en) * 2012-06-29 2014-01-15 深圳市快播科技有限公司 Method, device and system for access to audio and video on demand services

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119266A (en) * 2007-08-31 2008-02-06 烽火通信科技股份有限公司 Method and system for controlling multimedia broadcast of mobile terminal combined family gateway
CN102870392A (en) * 2010-04-30 2013-01-09 交互数字专利控股公司 Light weight protocol and agent in a network communication
WO2012068465A1 (en) * 2010-11-19 2012-05-24 Interdigital Patent Holdings, Inc. Machine-to-machine (m2m) interface procedures for announce and de-announce of resources
CN103095535A (en) * 2011-11-02 2013-05-08 中国移动通信集团公司 Operation demand treatment method, home network system and device
CN103517089A (en) * 2012-06-29 2014-01-15 深圳市快播科技有限公司 Method, device and system for access to audio and video on demand services
CN102938717A (en) * 2012-10-11 2013-02-20 中兴通讯股份有限公司 Method, equipment and system for carrying out play control on DLNA (Digital Living Network Alliance) equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902316A (en) * 2015-05-14 2015-09-09 广东欧珀移动通信有限公司 Method and device for synchronous playing of time, intelligent sound box, and mobile terminal
CN104902316B (en) * 2015-05-14 2017-09-01 广东欧珀移动通信有限公司 Method, device, intelligent sound box and the mobile terminal of synchronous reproduction time
CN105072614A (en) * 2015-08-10 2015-11-18 小米科技有限责任公司 Method and device for controlling audio playing device
CN105072614B (en) * 2015-08-10 2019-07-02 小米科技有限责任公司 Audio-frequence player device control method and device

Also Published As

Publication number Publication date
CN103929661B (en) 2018-01-02

Similar Documents

Publication Publication Date Title
JP5349685B2 (en) Remote control signals for learning and processing by host devices and accessories
CN104635501B (en) Intelligent home furnishing control method and system
US20160006851A1 (en) Cellular telephone docking interface
US9232347B2 (en) Apparatus and method for playing music
CN104520927A (en) Audio content auditioning
US9083996B2 (en) Remote monitoring method for smart TV, and smart TV system
CN102170483A (en) Method for controlling intelligent television by cell phone or computer
CN104584060A (en) Collecting and providing local playback system information
KR20100014821A (en) Systems and methods for music recognition
CN105100213A (en) Equipment binding method and device
CN104091423A (en) Signal transmission method and family song request system
KR101588993B1 (en) Protocol translating adapter
CN104834623A (en) Audio playing method and audio playing device
WO2020207373A1 (en) Method, device, terminal, and system for playing back multimedia resource
CN104081725A (en) Control system for playing a data stream on a receiving device
CN103517107A (en) Method for remotely controlling set-top-box and system thereof
TW200532544A (en) Personal multimedia on-line broadcasting system and method thereof
CN105072146A (en) Music information sharing method and device
JP2014011793A (en) Radio audio/video system for audio signal reproduction and method of controlling the same
CN103581308A (en) Music playing system and method
CN102065340A (en) System and method for implementing multimedia synchronous interaction
CN204215585U (en) Children-story machine
CN106506646B (en) Control method and device of playing equipment, mobile terminal and playing system
CN105654973B (en) A kind of audio file processing method and system
CN103929661A (en) Media file playing system and method for intelligent gateway

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant