CN103929661B - The media file-playing system and method for intelligent gateway - Google Patents

The media file-playing system and method for intelligent gateway Download PDF

Info

Publication number
CN103929661B
CN103929661B CN201410110082.5A CN201410110082A CN103929661B CN 103929661 B CN103929661 B CN 103929661B CN 201410110082 A CN201410110082 A CN 201410110082A CN 103929661 B CN103929661 B CN 103929661B
Authority
CN
China
Prior art keywords
media file
module
gateway
bluetooth
playing
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.)
Active
Application number
CN201410110082.5A
Other languages
Chinese (zh)
Other versions
CN103929661A (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

Abstract

The present invention provides a kind of media file-playing system of intelligent gateway, it is used for by intelligent gateway control playback of media files, media file-playing system includes control module, gateway proxy module, playing module and bluetooth module, control module is set to be used for that need to operate the corresponding control command of media file setting and search for available Baffle Box of Bluetooth in the electronic device, gateway proxy module sets the control command for being used for the media file that receive and control module is set in a gateway, the media file URL and available Baffle Box of Bluetooth that need to be operated, playing module sets the URL for the media file for being used to obtain the reception of gateway proxy module in a gateway and parses available Baffle Box of Bluetooth information and exported with obtaining corresponding MAC Address, bluetooth module is used to connect corresponding MAC Address Baffle Box of Bluetooth to play respective media files.The play system realizes media control and broadcasting by playing module and control module interactive operation.Present invention also offers a kind of media file playing method of intelligent gateway.

Description

The media file-playing system and method for intelligent gateway
Technical field
The present invention relates to the matchmaker of the network data transmission technology in intelligent gateway embedded system, more particularly to intelligent gateway Body file playing system and method.
Background technology
At present, as the fast development and individual of computer technology network technology are to family life digitlization, informationization Pursuit, wired home has evolved into a current hot technology, and gateway is the nucleus equipment in domestic communication system, net The correlation function that network is realized as the access terminal of home network is closed, however, gateway can not realize the related work(of media play Energy.
The content of the invention
In view of this, the present invention provides a kind of media file-playing system for the intelligent gateway that can realize media play function And method.
A kind of media file-playing system of intelligent gateway, it is used for by intelligent gateway control media file in an indigo plant Played in tooth audio amplifier, the media file-playing system of the intelligent gateway include a control module, a gateway proxy module, One playing module and a bluetooth module, the control module set the matchmaker being used in portable to that need to operate Body file sets corresponding control command and searches for available Baffle Box of Bluetooth, and the gateway proxy module is set to be used in a gateway Receive control command, the URL for the media file that need to be operated for the media file that the control module is set (Uniform Resource Location, URL)And available Baffle Box of Bluetooth information, the playing module are set in a gateway The URL of the media file received for obtaining the gateway proxy module simultaneously parses available Baffle Box of Bluetooth information to obtain accordingly Media access control address(Media Access Control Address, MAC)Address exports, and the bluetooth module is used for The Baffle Box of Bluetooth of corresponding MAC Address is connected to play corresponding media file.
Compared with prior art, in the media file-playing system of intelligent gateway provided by the invention and method, in intelligence Set the control module interactive operation of playing module and electronic equipment to realize media control and media play on gateway device, make Intelligent gateway turns into the family multi-media playback equipment with 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
Network management agent module 120
Playing module 140
Bluetooth module 160
Following embodiment will combine above-mentioned accompanying drawing and further illustrate the present invention.
Embodiment
Referring to Fig. 1, it is the media file-playing system 100 for the intelligent gateway that embodiment of the present invention provides, it is used Played in by intelligent gateway control media file in a Baffle Box of Bluetooth.The media file-playing system of the intelligent gateway Including a playing module 140 of network management agent module 120, one of control module 110, one and a bluetooth module 160.
The control module 110 includes 112, search units 114 of a setting unit and an interface display unit 116, the setting unit 112 is used to set corresponding operational order to the media file that need to be operated, such as sets and play, temporarily Stop, the operational order such as F.F., the search unit 114 is used to search for available Baffle Box of Bluetooth information, setting unit 112 and search Unit 114 is interacted by interface display unit 116 with user.In present embodiment, control module 110 is to be arranged on mobile phone In application(Application, APP)Module.
It is understood that cell phone application module is primarily used to realize the interface of interaction with user, there is provided interface is used to receive Collection transmits the control information of user, while shows current broadcast information(Such as playing progress rate, song title, Ge Shouming, the lyrics). By taking playing function as an example, cell phone application module is communicated by socket, will be played(PLAY)Message and the URL biographies for playing song Pass gateway proxy module 120.
Gateway proxy module 120 sets the control life for being used for the media file that receive and control module 110 is set in a gateway The URL for the media file that make, need to be operated(Uniform Resource Location, URL)And available indigo plant Tooth audio amplifier information.Due to there is no control button on gateway, it is necessary to be realized on mobile phone by cell phone application program to multimedia Play and control.Mobile phone and gateway can directly pass through on consolidated network between the Agent in cell phone application and gateway Socket communicates, and is realized by formulating proprietary protocol.For example when user presses and plays music, cell phone application gateway is to agency Module sends out " OPT_PLAY " message, and after gateway proxy module 120 receives message, notice playing module 140 carries out Bluetooth music Play operation.
Playing module 140 sets the URL and solution for the media file for being used to obtain the reception of gateway proxy module 120 in a gateway Available Baffle Box of Bluetooth information is analysed to obtain corresponding media access control address(Media Access Control Address, MAC)Address exports.In present embodiment, playing module 140 is video player(Movie player, Mplayer).Broadcast it is understood that Mplayer players are a videos increasing income, popular on GNU/Linux platforms Device is put, supports most of video and audio file, and support order line to operate.Mplayer is operated under slave patterns, is led to The mode for writing pipeline is crossed, realizes the control to broadcasting, and the acquisition of broadcast information, such as obtaining playing progress rate can pass through “echo get_time_pos>/ tmp/my_fifo " is realized.
In present embodiment, Mplayer specifies advanced Linux sound framework by command mode(Advanced Linux Sound Architecture, ALSA)The Baffle Box of Bluetooth information that equipment parsing receives obtains corresponding Baffle Box of Bluetooth MAC Address, ALSA creates socket and the hcid processes of bluetooth are communicated.ALSA to hcid by sending out message, to control The MAC Address of hcid connection Baffle Box of Bluetooth, control the broadcasting media file of Baffle Box of Bluetooth.
When Baffle Box of Bluetooth 160 fails playback of media files, the display of mobile phone interface display unit 116 plays failure, When Baffle Box of Bluetooth 160 successfully plays media file, playing module 140 obtains the current schedules of media file and reports to gateway Current schedules are transmitted to control module 110 and shown through interface display unit 116 by proxy module 120, gateway proxy module 120 The currently playing progress of media file.
Referring to Fig. 2, it is a kind of media file playing method of intelligent gateway provided by the invention, it is used to pass through intelligence Energy gateway control media file plays in a Baffle Box of Bluetooth, and the media file playing method of the intelligent gateway is including following Step:
S110:Corresponding control command is set to the media file that need to be operated and searches for available Baffle Box of Bluetooth;
S120:Receive the control command of media file, the URL for the media file that need to be operated and the available bluetooth sound set Case information;
S130:Obtain the URL of the media file received and parse available Baffle Box of Bluetooth information with obtaining corresponding MAC Location exports;
S140:The Baffle Box of Bluetooth of corresponding MAC Address is connected to play corresponding media file, if playing successfully, is entered Enter step S150, if failure is played, into step S180;
S150:The currently playing progress of monitoring media file;
S160:Report current schedules;
S170:Show current schedules;
S180:Display plays failure.
In step s 110, user is set by interface display unit 116 using the setting unit 112 of mobile phone A pp modules The control command for the media file that need to be operated(Such as PLAY), and search for available Baffle Box of Bluetooth using search unit 114.
In the step s 120, institute is received from mobile phone A pp modules by creating socket communications using gateway proxy module 120 The control command of the media file of setting, the URL for the media file that need to be operated and available Baffle Box of Bluetooth information.
In step s 130, Mplayer is called, specifies the URL of media file and the MAC Address of Baffle Box of Bluetooth.Mplayer It is operated under slave patterns, by way of writing pipeline, realizes the control to broadcasting, and the acquisition of broadcast information.
In step S140, ALSA audio drivens are called, ALSA creates socket and the hcid processes of bluetooth are communicated, ALSA to hcid by sending out message, to control the MAC Address of hcid connection Baffle Box of Bluetooth, controls the broadcasting media text of Baffle Box of Bluetooth Part.
In step S150, Mplayer processes are called, by the technology " echoget_time_pos for writing pipeline>/tmp/ My_fifo " obtains current schedules.
In step S160, the current schedules of media file are reported into gateway proxy module 120 using Mplayer140.
In step S170, current schedules are transmitted to control module 110 using gateway proxy module 120 and shown through interface Show that unit 116 shows the currently playing progress of media file.
In step S180, when Baffle Box of Bluetooth 160 fails playback of media files, mobile phone interface display unit 116 is aobvious Show broadcasting failure.
In the media file-playing system 100 and method of intelligent gateway provided by the invention, set on intelligent gateway device The interactive operation of control module 110 of playing module 140 and electronic equipment is put to realize media control and media play, gateway proxy The playing progress rate and real-time report electronic equipment of the monitoring media of module 120 show playing progress rate, and turning into intelligent gateway has matchmaker The family multi-media playback equipment of body playing function.
It is understood that for the person of ordinary skill of the art, it can be conceived with the technique according to the invention and done Go out other various corresponding changes and deformation, and all these changes and deformation should all belong to the protection model of the claims in the present invention Enclose.

Claims (9)

1. a kind of media file-playing system of intelligent gateway, it is used for by intelligent gateway control media file in a bluetooth Played in audio amplifier, the media file-playing system of the intelligent gateway includes:
One control module, it, which is arranged on, is used to set corresponding control command to the media file that need to be operated and searches in mobile phone Available Baffle Box of Bluetooth;Control module is the cell phone application module being arranged in mobile phone, cell phone application module and gateway proxy module Between directly can be communicated by socket;
One gateway proxy module, it is set is used for the control life for receiving the media file that the control module is set in a gateway The URL (Uniform Resource Location, URL) for the media file that make, need to be operated and available indigo plant Tooth audio amplifier information;
One playing module, it is set is used for the URL for obtaining the media file that the gateway proxy module receives simultaneously in a gateway Available Baffle Box of Bluetooth information is parsed to obtain corresponding media access control address (Media Access Control Address, MAC) address output;
One bluetooth module, it is used to connect the Baffle Box of Bluetooth of corresponding MAC Address to play corresponding media file.
2. the media file-playing system of intelligent gateway as claimed in claim 1, it is characterised in that the control module includes One setting unit, a search unit and an interface display unit, the setting unit are used for the media text to that need to operate Part sets corresponding operational order, and the search unit is used to search for available Baffle Box of Bluetooth information, the setting unit and institute Search unit is stated to interact with user by the interface display unit.
3. the media file-playing system of intelligent gateway as claimed in claim 2, it is characterised in that the playing module is in indigo plant The current schedules of media file are obtained when tooth audio amplifier successfully plays media file and report to the gateway proxy module, it is described Current schedules are transmitted to the control module and show working as media file through the interface display unit by gateway proxy module Preceding playing progress rate.
4. the media file-playing system of intelligent gateway as claimed in claim 2, it is characterised in that the interface display unit Broadcasting failure is shown when playback of media files fails.
5. the media file-playing system of intelligent gateway as claimed in claim 1, it is characterised in that the playing module be regarding Frequency player (Movie player, Mplayer).
6. the media file-playing system of intelligent gateway as claimed in claim 1, it is characterised in that the control module is hand Application (Application, APP) module of machine.
7. a kind of media file playing method of intelligent gateway, it is used for by intelligent gateway control media file in a bluetooth Played in audio amplifier, the media file playing method of the intelligent gateway comprises the following steps:
Corresponding control command is set to the media file that need to be operated and searches for available Baffle Box of Bluetooth;
Receive the control command of media file, the URL for the media file that need to be operated and the available Baffle Box of Bluetooth information set;
Obtain the URL of the media file received and parse available Baffle Box of Bluetooth information and exported with obtaining corresponding MAC Address;
The Baffle Box of Bluetooth of corresponding MAC Address is connected to play corresponding media file.
8. the media file playing method of intelligent gateway as claimed in claim 7, it is characterised in that the matchmaker of the intelligent gateway It is further comprising the steps of in body document play-back method:
The current schedules of media file are obtained in playback of media files success;
Report the current schedules of media file
Show the current schedules of media file.
9. the media file playing method of intelligent gateway as claimed in claim 7, it is characterised in that the matchmaker of the intelligent gateway It is further comprising the steps of in body document play-back method:Show that playback of media files fails when playback of media files fails.
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 CN103929661A (en) 2014-07-16
CN103929661B true 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)

Families Citing this family (2)

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

Citations (3)

* 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
CN102938717A (en) * 2012-10-11 2013-02-20 中兴通讯股份有限公司 Method, equipment and system for carrying out play control on DLNA (Digital Living Network Alliance) equipment
CN103517089A (en) * 2012-06-29 2014-01-15 深圳市快播科技有限公司 Method, device and system for access to audio and video on demand services

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102870392B (en) * 2010-04-30 2016-07-13 交互数字专利控股公司 Light weight protocol in network service and agency
EP3793175A1 (en) * 2010-11-19 2021-03-17 IOT Holdings, Inc. Machine-to-machine (m2m) interface procedures for announce and de-announce of resources
CN103095535B (en) * 2011-11-02 2016-01-20 中国移动通信集团公司 Operation requests processing method, domestic network system and equipment

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN103929661A (en) 2014-07-16

Similar Documents

Publication Publication Date Title
CN1937852B (en) Audio playing system and audio playing control method
CN104635501B (en) Intelligent home furnishing control method and system
CA2839685A1 (en) Sonic signaling communication for user devices
CN104732989B (en) Intelligent music broadcasting control system and its control method
CN104834623A (en) Audio playing method and audio playing device
CN102103884B (en) Audio playing device
CN109819303A (en) Data output method and relevant device
CN109271130A (en) Audio frequency playing method, medium, device and calculating equipment
CN106686639A (en) Network configuration method and device for intelligent voice interaction equipment, and related equipment
CN105072146A (en) Music information sharing method and device
CN104363509A (en) Terminal, video conversion method and device and video playing system
CN101674446A (en) Multimedia file sharing device and method
CN102595215B (en) Method, device and communication system for program information communication
CN103929661B (en) The media file-playing system and method for intelligent gateway
CN103501442A (en) Method and system controlling output of terminal voice of smart television
CN107105337A (en) Radio multimedium playing method and device
CN203352726U (en) DLNA/Airplay/Miracast wireless technology-based audio/video player
CN102904891A (en) Multimedia data sharing method and device and multimedia playing equipment
CN105657533B (en) Data file player method and device
CN104427635A (en) Data sharing device based on WiFi
CN104426914A (en) Audio or image wireless sharing method
CN102421016A (en) Method, system and terminal for acquiring request program information
CN1627672B (en) Network system, electronic equipment terminal, server apparatus and method for distributing and reproducing the contents
CN204836448U (en) Accuse system is broadcast to wireless audio frequency
CN105744344B (en) Control method for playing back and system

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