CN107872727B - Media playing control method, media playing control device and electronic terminal - Google Patents

Media playing control method, media playing control device and electronic terminal Download PDF

Info

Publication number
CN107872727B
CN107872727B CN201711172593.XA CN201711172593A CN107872727B CN 107872727 B CN107872727 B CN 107872727B CN 201711172593 A CN201711172593 A CN 201711172593A CN 107872727 B CN107872727 B CN 107872727B
Authority
CN
China
Prior art keywords
media playing
media
playing
configuration file
format
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
CN201711172593.XA
Other languages
Chinese (zh)
Other versions
CN107872727A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711172593.XA priority Critical patent/CN107872727B/en
Publication of CN107872727A publication Critical patent/CN107872727A/en
Application granted granted Critical
Publication of CN107872727B publication Critical patent/CN107872727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4516Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a media playing control method, a media playing control device, an electronic terminal and a computer readable storage medium, wherein the media playing control method comprises the following steps: receiving a media playing request; responding to the media playing request, and acquiring equipment description information of media playing equipment, wherein the media playing equipment is equipment used for playing media files at the time; based on the device description information of the media playing device, searching a configuration file related to the media playing device in a preset database, wherein the configuration file is a file containing a playing control instruction; and if the configuration file related to the media playing equipment is found, performing media playing control on the media playing equipment based on a playing control instruction contained in the configuration file. The technical scheme of the application can avoid media playing control aiming at different media playing devices.

Description

Media playing control method, media playing control device and electronic terminal
Technical Field
The present application relates to a media playing control method, a media playing control device, an electronic terminal and a computer-readable storage medium.
Background
With the rapid development of mobile devices and the diversification of storage and playing modes of multimedia files in a home, it will be an important development trend to implement sharing, pushing and interoperation of multimedia files between mobile devices and home multimedia devices.
At present, many media playing devices (e.g. a blu-ray disc player and a set-top box) support Digital Living Network Alliance (DLNA), and the DLNA aims to enjoy music, pictures and videos anytime and anywhere. DLNA aims to solve the interworking of wireless and wired networks between Personal Computers (PCs), consumer electronics and mobile devices, enabling unlimited sharing and growth of digital media and content services.
Based on the DLNA protocol, a user may request to play a media file on a media playing device through a terminal (e.g., a mobile phone, a tablet computer, etc.). Since media playing devices produced by different manufacturers are different, how to control media playing for different media playing devices becomes an urgent problem to be solved in the industry.
Disclosure of Invention
In view of the above, the present application provides a media playing control method, a media playing control device, an electronic terminal and a computer readable storage medium, which can perform media playing control for different media playing devices.
A first aspect of an embodiment of the present application provides a media playing control method, including:
receiving a media playing request;
responding to the media playing request, and acquiring equipment description information of media playing equipment, wherein the media playing equipment is equipment used for playing media files at the time;
based on the device description information of the media playing device, searching a configuration file related to the media playing device in a preset database, wherein the configuration file is a file containing a playing control instruction;
and if the configuration file related to the media playing equipment is found, performing media playing control on the media playing equipment based on a playing control instruction contained in the configuration file.
Based on the first aspect of the present application, in a first possible implementation manner, the configuration file further includes: format compatible information, the format compatible information is used for indicating a media format which allows the media playing equipment to play;
before the controlling the media playing to the media playing device based on the playing control instruction contained in the configuration file, the method further includes:
judging whether the format of the media file to be played at this time is a format allowing the media playing equipment to play or not based on format compatible information contained in the configuration file;
the media playing control of the media playing device based on the playing control instruction contained in the configuration file comprises:
and when the format of the media file to be played at the present time is a format allowing the media playing device to play, performing media playing control on the media playing device based on a playing control instruction contained in the configuration file.
Based on the first possible implementation manner of the first aspect of the present application, in a second possible implementation manner, after the determining whether the format of the media file to be played at this time is a format that allows the media playing device to play, the method further includes:
and when the format of the media file to be played at the time is not the format which allows the media playing equipment to play, outputting prompt information in a preset format to prompt a user that the media file to be played cannot be played through the media playing equipment.
Based on the first aspect of the present application, or the first possible implementation manner of the first aspect of the present application, or the second possible implementation manner of the first aspect of the present application, in a third possible implementation manner, the database is a database that is locally disposed, and the media playing control method further includes:
and when a new configuration file exists in a preset server, updating the database based on the new configuration file.
In a third possible implementation manner based on the first aspect of the present application, in a fourth possible implementation manner, the media playing control method further includes:
and when the digital living network alliance function is started, detecting whether a new configuration file exists in the server.
A second aspect of the present application provides a media playback control apparatus, including:
a receiving unit, configured to receive a media play request;
an obtaining unit, configured to obtain device description information of a media playing device in response to the media playing request, where the media playing device is a device that is used to play a media file at this time;
the searching unit is used for searching a configuration file related to the media playing equipment in a preset database based on the equipment description information of the media playing equipment, wherein the configuration file is a file containing a playing control instruction;
and the control unit is used for controlling the media playing of the media playing device based on the playing control instruction contained in the configuration file when the searching unit searches the configuration file related to the media playing device.
Based on the second aspect of the present application, in a first possible implementation manner, the configuration file further includes: format compatible information, the format compatible information is used for indicating a media format which allows the media playing equipment to play;
the media playback control apparatus further includes:
the judging unit is used for judging whether the format of the media file to be played at this time is a format allowing the media playing equipment to play or not based on format compatible information contained in the configuration file when the searching unit finds the configuration file related to the media playing equipment;
and the control unit is triggered when the judgment result of the judgment unit is yes.
Based on the first possible implementation manner of the second aspect of the present application, in a second possible implementation manner, the media playing control device further includes;
and the prompting unit is used for outputting prompting information in a preset format to prompt a user that the media file to be played cannot be played through the media playing equipment when the judgment result of the judging unit is negative.
Based on the second aspect of the present application, or the first possible implementation manner of the second aspect of the present application, or the second possible implementation manner of the second aspect of the present application, in a third possible implementation manner, the database is a database that is locally provided, and the media playback control apparatus further includes:
and the updating unit is used for updating the database based on the new configuration file when the new configuration file exists in the preset server.
Based on the third possible implementation manner of the second aspect of the present application, in a fourth possible implementation manner, the media playing control device further includes:
and the detection unit is used for detecting whether a new configuration file exists in the server or not when the DLNA function is started.
A third aspect of the present application provides an electronic terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the media playing control method mentioned in the first aspect or any possible implementation manner of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the media playback control method mentioned in the first aspect or any of the possible implementation manners of the first aspect.
A fifth aspect of the present application provides a computer program product comprising a computer program that, when executed by one or more processors, implements the media playback control method mentioned in the above first aspect or any of the possible implementations of the above first aspect.
As can be seen from the above, when a media playing request is received, the device description information of the media playing device is obtained, a configuration file related to the media playing device is searched in a preset database based on the device description information, and when the configuration file related to the media playing device is searched, media playing control is performed on the media playing device based on a playing control instruction included in the configuration file. Because the media playing device is controlled to play media based on the configuration files related to the media playing device stored in the database, the configuration files related to the media playing devices are preset and stored in the database aiming at different media playing devices, and the media playing control can be carried out aiming at different media playing devices.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart illustrating a media playing control method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another embodiment of a media playing control method provided in the present application;
fig. 3 is a schematic structural diagram of an embodiment of a media playback control apparatus provided in the present application;
fig. 4 is a schematic structural diagram of an embodiment of an electronic terminal provided in the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the sequence numbers of the steps in the method embodiments described below do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of each embodiment.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Example one
The embodiment of the present application provides a media playing control method, which can be applied to a media playing control device, where the media playing control device may be an independent device, or the media playing control device may also be integrated in an electronic terminal (e.g., a mobile phone, a tablet computer, a wearable device, etc.). Optionally, the operating system installed on the device or the electronic terminal integrating the media playing control apparatus may be an ios system, an android system, a windows system, or another operating system, which is not limited herein.
Referring to fig. 1, a method for controlling media playback in an embodiment of the present application may include:
step 101, receiving a media playing request;
in this embodiment of the application, the media playing request is used to request the media playing device to play the media file. Specifically, the media playing request may include the following indication information: information for indicating the media file to be played at this time, and information for indicating the media playing device used to play the media file at this time.
In this embodiment of the application, the media playing request may be input by triggering a preset control in the media playing control device, and before that, the media playing control device and at least one media playing device may be connected to the same local area network (e.g., a WiFi network). The Media playing device may be a Media renderer (DMR) in the DLNA specification, and the Media playing control apparatus may be a DMC (Digital Media Controller) in the DLNA specification, that is, the Media playing control apparatus serves as a remote Controller. The control function of the DMC on the whole playing process of the DMR can be provided by an AVTransport service in the DMR.
Step 102, responding to the media playing request, and acquiring equipment description information of the media playing equipment;
in this embodiment, the media playing device is a device for playing the media file at this time. In step 102, in response to the media playing request, device description information of the media playing device is first obtained, so that the device description information is used to obtain information about a model, a manufacturer, and other relevant devices of the media playing device.
Step 103, searching a configuration file related to the media playing device in a preset database based on the device description information of the media playing device;
the configuration file is a file containing a play control instruction.
In the embodiment of the present application, related configuration files may be set in advance for different media playing devices (for example, media playing devices of different models, media playing devices produced by different manufacturers), and the related configuration files are stored in a preset database. In step 103, based on the device description information obtained in step 102, a configuration file related to the media playing device may be searched in a preset database.
In an application scenario, the configuration file may further include device information of the media playing device, where the device information may be set correspondingly based on the device description information of the media playing device, for example, in a general case, the device description information of the media playing device includes vendor information, and correspondingly, the device information may be brief information of the vendor information of the corresponding media playing device, and of course, the device information may also be consistent with the device description information of the media playing device. In this application scenario, the device description information obtained in step 102 is matched with the device information included in the configuration file stored in the database, so that the configuration file can be searched.
In another application scenario, the corresponding relationship information between the media playing device and the configuration file may also be directly stored in the database, and then in step 103, based on the device description information obtained in step 102 and the corresponding relationship information, the configuration file may be searched for.
Of course, based on the idea of the present application, the configuration file may also be searched by setting other indexes, which is not limited herein.
In this embodiment of the present application, the database may be a database that is locally set, and step 103 may be specifically expressed as: and searching a configuration file related to the media playing equipment in a local preset database based on the equipment description information of the media playing equipment. Further, when a new configuration file exists in the preset server, the database can be automatically updated based on the new configuration file. Specifically, it may be detected whether a new configuration file exists in a preset server periodically or in an event, or when a local device (for example, a media playing control device) is powered on to start or the local device starts a DLNA function, and if so, the configuration file in the local database is updated. Wherein, the new configuration file includes but is not limited to: a configuration file of a newly introduced media playing device, or a configuration file of an already introduced media playing device after being updated.
Or, the database may be set in a server, and step 103 may be specifically expressed as: and searching a configuration file related to the media playing equipment in a database preset in a server based on the equipment description information of the media playing equipment.
Step 104, if the configuration file related to the media playing device is found, performing media playing control on the media playing device based on a playing control instruction contained in the configuration file;
in step 104, when the configuration file related to the media playing device is found, the media playing device is controlled to play media based on the playing control instruction included in the found configuration file. The media playing control may be, for example: and directly playing the media file or playing the media file after delaying the preset time. For example, when the playback control instruction included in the found configuration file is: setMusicPath- > delay 0.5 sec- > Play, the media playing device may be controlled to obtain the media file played this time based on "setMusicPath" and Play the media file after delaying for 0.5 sec; for another example, when the playback control instruction included in the searched configuration file is: and setMusicPath- > Play, the media playing device can be controlled to Play the media file after acquiring the media file played this time based on the setMusicPath.
Of course, the above media playing control is only an example, and in practical applications, other playing control instructions may be set to perform corresponding media playing control on the above media playing device.
Further, if the configuration file related to the media playing device is not found in step 103, the media playing device may be controlled to play media based on a default playing control instruction set locally. Or, the media playing device is triggered to play the media file according to the playing mode defined in the media playing device, which is not limited here.
As can be seen from the above, in the embodiment of the present application, when a media playing request is received, device description information of a media playing device is obtained, a configuration file related to the media playing device is searched in a preset database based on the device description information, and when the configuration file related to the media playing device is found, media playing control is performed on the media playing device based on a playing control instruction included in the configuration file. Because the media playing device is controlled to play media based on the configuration files related to the media playing device stored in the database, the configuration files related to the media playing devices are preset and stored in the database aiming at different media playing devices, and the media playing control can be carried out aiming at different media playing devices.
Example two
The difference between the embodiment of the present application and the first embodiment is that, in the embodiment of the present application, before performing media playing control on a media playing device, compatibility detection is performed on formats of media files to be played first, so as to avoid bad problems such as playing jamming or abnormal sound when the media playing device with poor playing capability plays media files with certain formats. Specifically, as shown in fig. 2, the media playing control method in the embodiment of the present application includes:
step 201, receiving a media playing request;
in this embodiment of the application, the media playing request is used to request the media playing device to play the media file. Specifically, the media playing request may include the following indication information: information for indicating the media file to be played at this time, and information for indicating the media playing device used to play the media file at this time.
In this embodiment of the application, the media playing request may be input by triggering a preset control in the media playing control device, and before that, the media playing control device and at least one media playing device may be connected to the same local area network (e.g., a WiFi network). The Media playing device may be a Media renderer (DMR) in the DLNA specification, and the Media playing control apparatus may be a DMC (Digital Media Controller) in the DLNA specification, that is, the Media playing control apparatus serves as a remote Controller. The control function of the DMC on the whole playing process of the DMR can be provided by an AVTransport service in the DMR.
Step 202, responding to the media playing request, and acquiring device description information of the media playing device;
in this embodiment, the media playing device is a device for playing the media file at this time. In step 202, in response to the media playing request, device description information of the media playing device is first obtained, so that the device description information is used to obtain information about a model, a manufacturer, and other relevant devices of the media playing device.
Step 203, searching a configuration file related to the media playing device in a preset database based on the device description information of the media playing device;
specifically, step 203 refers to the description of step 103 in the embodiment shown in fig. 1, and is not described herein again.
Step 204, if the configuration file related to the media playing device is found, judging whether the format of the media file to be played at this time is a format allowing the media playing device to play based on format compatible information contained in the configuration file;
in this embodiment of the present application, the configuration file includes format compatibility information, where the format compatibility information is used to indicate a media format that the media playing device is allowed to play, and in step 204, when the configuration file related to the media playing device is found, based on the format compatibility information included in the configuration file, it may be determined whether the format of the media file to be played at this time is a format that the media playing device is allowed to play.
If the format of the media file to be played at this time is determined to be a format that allows the media playing device to play, step 205 is entered, otherwise, step 206 may be entered or the process may be directly ended.
Step 205, performing media playing control on the media playing device based on the playing control instruction contained in the configuration file;
in step 205, when it is determined in step 204 that the format of the media file to be played at this time is a format that allows the media playing device to play, the media playing device is controlled to play media based on the playing control instruction included in the searched configuration file. The media playing control may be, for example: and directly playing the media file or playing the media file after delaying the preset time. For example, when the playback control instruction included in the found configuration file is: setMusicPath- > delay 0.5 sec- > Play, the media playing device may be controlled to obtain the media file played this time based on "setMusicPath" and Play the media file after delaying for 0.5 sec; for another example, when the playback control instruction included in the searched configuration file is: and setMusicPath- > Play, the media playing device can be controlled to Play the media file after acquiring the media file played this time based on the setMusicPath.
Of course, the above media playing control is only an example, and in practical applications, other playing control instructions may be set to perform corresponding media playing control on the above media playing device.
Step 206, outputting prompt information in a preset format;
in step 206, when it is determined in step 204 that the format of the media file to be played at this time is not the format that allows the media playing device to play, a prompt message is output in a preset format to prompt the user that the media file to be played cannot be played by the media playing device.
Further, if the configuration file related to the media playing device is not found in step 203, the media playing device may be controlled to play media based on a default playing control instruction set locally. Or, the media playing device is triggered to play the media file according to the playing mode defined in the media playing device, which is not limited here.
It should be noted that the media playing control method in the embodiment of the present application may be applied to a media playing control device, where the media playing control device may be an independent device, or the media playing control device may also be integrated in an electronic terminal (e.g., a mobile phone, a tablet computer, a wearable device, etc.). Optionally, the operating system installed on the device or the electronic terminal integrating the media playing control apparatus may be an ios system, an android system, a windows system, or another operating system, which is not limited herein.
As can be seen from the above, in the embodiment of the present application, when a media playing request is received, device description information of a media playing device is obtained, a configuration file related to the media playing device is searched in a preset database based on the device description information, when the configuration file related to the media playing device is found, it is determined whether a format of a media file to be played at this time is a format that allows the media playing device to play, and when it is determined that the format of the media file to be played at this time is a format that allows the media playing device to play, media playing control is performed on the media playing device based on a playing control instruction included in the configuration file. On one hand, because the media playing device is controlled to play media based on the configuration files related to the media playing device stored in the database, the configuration files related to the media playing devices are preset and stored in the database aiming at different media playing devices, and therefore, the media playing control can be carried out aiming at different media playing devices. On the other hand, when the format of the media file to be played at this time is determined to be the format that allows the media playing device to play, the media playing device is controlled to play the media based on the playing control instruction contained in the configuration file, so that the problem that the media playing device with poor playing capability plays media files with certain formats, such as playing jamming or abnormal sound, can be avoided.
EXAMPLE III
As shown in fig. 3, the media playing control device 300 in this embodiment of the present application includes:
a receiving unit 301, configured to receive a media playing request;
an obtaining unit 302, configured to obtain device description information of a media playing device in response to the media playing request, where the media playing device is a device that is used to play a media file at this time;
a searching unit 303, configured to search, based on the device description information of the media playing device, a configuration file related to the media playing device in a preset database, where the configuration file is a file containing a playing control instruction;
a control unit 304, configured to, when the search unit 303 finds the configuration file related to the media playing device, perform media playing control on the media playing device based on a playing control instruction included in the configuration file.
Optionally, the configuration file further includes: format compatibility information indicating a media format that a corresponding media playback device is allowed to play. The media playing control device of the embodiment of the application further comprises: a determining unit, configured to determine, when the searching unit 303 finds the configuration file related to the media playing device, whether the format of the media file to be played at this time is a format that allows the media playing device to play based on format compatibility information included in the configuration file; the control unit 304 is triggered when the judgment result of the judgment unit is yes.
Optionally, the media playing control apparatus in this embodiment of the application further includes; and the prompting unit is used for outputting prompting information in a preset format to prompt a user that the media file to be played cannot be played through the media playing equipment when the judgment result of the judging unit is negative.
Optionally, the database is a database arranged locally. The media playing control device in the embodiment of the application further includes: and the updating unit is used for updating the database based on the new configuration file when the new configuration file exists in the preset server.
Optionally, the media playing control apparatus in this embodiment of the application may further include: and the detection unit is used for detecting whether a new configuration file exists in the server or not when the DLNA function is started.
It should be noted that the media playing control device in the embodiment of the present application may be a stand-alone device, or the media playing control device may also be integrated in an electronic terminal (for example, a mobile phone, a tablet computer, a wearable device, and the like). Optionally, the operating system installed on the device or the electronic terminal integrating the media playing control apparatus may be an ios system, an android system, a windows system, or another operating system, which is not limited herein.
As can be seen from the above, in the embodiment of the present application, when a media playing request is received, device description information of a media playing device is obtained, a configuration file related to the media playing device is searched in a preset database based on the device description information, when the configuration file related to the media playing device is found, it is determined whether a format of a media file to be played at this time is a format that allows the media playing device to play, and when it is determined that the format of the media file to be played at this time is a format that allows the media playing device to play, media playing control is performed on the media playing device based on a playing control instruction included in the configuration file. On one hand, because the media playing device is controlled to play media based on the configuration files related to the media playing device stored in the database, the configuration files related to the media playing devices are preset and stored in the database aiming at different media playing devices, and therefore, the media playing control can be carried out aiming at different media playing devices. On the other hand, when the format of the media file to be played at this time is determined to be the format that allows the media playing device to play, the media playing device is controlled to play the media based on the playing control instruction contained in the configuration file, so that the problem that the media playing device with poor playing capability plays media files with certain formats, such as playing jamming or abnormal sound, can be avoided.
Example four
An embodiment of the present application provides an electronic terminal, please refer to fig. 4, where the electronic terminal in the embodiment of the present application includes: a memory 401, one or more processors 402 (only one shown in fig. 4), and computer programs stored on the memory 401 and executable on the processors. Wherein: the memory 401 is used to store software programs and modules, and the processor 402 executes various functional applications and data processing by operating the software programs and units stored in the memory 401. Specifically, the processor 402, by running the above-mentioned computer program stored in the memory 401, implements the steps of:
receiving a media playing request;
responding to the media playing request, and acquiring equipment description information of media playing equipment, wherein the media playing equipment is equipment used for playing media files at the time;
based on the device description information of the media playing device, searching a configuration file related to the media playing device in a preset database, wherein the configuration file is a file containing a playing control instruction;
and if the configuration file related to the media playing equipment is found, performing media playing control on the media playing equipment based on a playing control instruction contained in the configuration file.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the configuration file further includes: format compatible information, the format compatible information is used for indicating a media format which allows the corresponding media playing equipment to play;
before the controlling the media playing to the media playing device based on the playing control instruction contained in the configuration file, the method further includes:
judging whether the format of the media file to be played at this time is a format allowing the media playing equipment to play or not based on format compatible information contained in the configuration file;
the media playing control of the media playing device based on the playing control instruction contained in the configuration file comprises:
and when the format of the media file to be played at the present time is a format allowing the media playing device to play, performing media playing control on the media playing device based on a playing control instruction contained in the configuration file.
In a third possible implementation manner provided on the basis of the second possible implementation manner, after the determining whether the format of the media file to be played at this time is a format that allows the media playing device to play, the method further includes:
and when the format of the media file to be played at the time is not the format which allows the media playing equipment to play, outputting prompt information in a preset format to prompt a user that the media file to be played cannot be played through the media playing equipment.
In a fourth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, or the third possible implementation manner, the database is a locally-provided database, and the processor 402 further implements the following steps when executing the computer program stored in the memory 401:
and when a new configuration file exists in a preset server, updating the database based on the new configuration file.
In a fifth possible implementation manner provided as a basis for the fourth possible implementation manner, the processor 402 further implements the following steps when executing the above computer program stored in the memory 401: and when the digital living network alliance function is started, detecting whether a new configuration file exists in the server.
Optionally, as shown in fig. 4, the electronic terminal may further include: one or more input devices 403 (only one shown in fig. 4) and one or more output devices 404 (only one shown in fig. 4). The memory 401, processor 402, input device 403, and output device 404 are connected by a bus 405.
It should be understood that in the embodiments of the present Application, the Processor 402 may be a Central Processing Unit (CPU), and the Processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 403 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 404 may include a display, a speaker, etc.
Memory 404 may include both read-only memory and random access memory and provides instructions and data to processor 401. Some or all of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
As can be seen from the above, when a media playing request is received, the device description information of the media playing device is obtained, a configuration file related to the media playing device is searched in a preset database based on the device description information, and when the configuration file related to the media playing device is searched, media playing control is performed on the media playing device based on a playing control instruction included in the configuration file. Because the media playing device is controlled to play media based on the configuration files related to the media playing device stored in the database, the configuration files related to the media playing devices are preset and stored in the database aiming at different media playing devices, and the media playing control can be carried out aiming at different media playing devices.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media excludes electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A media playback control method, comprising:
receiving a media playing request, wherein the media playing request comprises information used for indicating a media file to be played at the current time and information used for indicating a media playing device used for playing the media file at the current time; the media playing request is input by triggering a preset control in a media playing control device, and the media playing control device and at least one media playing device are connected to the same local area network;
responding to the media playing request, and acquiring equipment description information of the media playing equipment;
based on the device description information of the media playing device, searching a configuration file related to the media playing device in a preset database, wherein the configuration file is a file which is preset for different media playing devices, related to the media playing devices and contains playing control instructions, and the related configuration file is stored in the preset database in advance so as to realize media playing control on different media playing devices;
if the configuration file related to the media playing equipment is found, performing media playing control on the media playing equipment based on a playing control instruction contained in the configuration file;
and if the configuration file related to the media playing equipment cannot be found, carrying out media playing control on the media playing equipment based on a default playing control instruction set locally.
2. The media playback control method according to claim 1, wherein the configuration file further includes: format compatible information, the format compatible information is used for indicating a media format which allows the media playing equipment to play;
before the controlling the media playing to the media playing device based on the playing control instruction contained in the configuration file, the method further includes:
judging whether the format of the media file to be played at this time is a format allowing the media playing equipment to play or not based on format compatible information contained in the configuration file;
the media playing control of the media playing device based on the playing control instruction contained in the configuration file comprises:
and when the format of the media file to be played at the present time is a format allowing the media playing device to play, performing media playing control on the media playing device based on a playing control instruction contained in the configuration file.
3. The media playing control method according to claim 2, wherein after determining whether the format of the media file to be played at this time is a format that allows the media playing device to play, the method further comprises:
and when the format of the media file to be played at the time is not the format which allows the media playing equipment to play, outputting prompt information in a preset format to prompt a user that the media file to be played cannot be played through the media playing equipment.
4. The media playback control method according to any one of claims 1 to 3, wherein the database is a locally-provided database, and the media playback control method further includes:
and when a new configuration file exists in a preset server, updating the database based on the new configuration file.
5. The media playback control method according to claim 4, further comprising:
and when the digital living network alliance function is started, detecting whether a new configuration file exists in the server.
6. A media playback control apparatus, comprising:
the media playing device comprises a receiving unit, a playing unit and a playing unit, wherein the receiving unit is used for receiving a media playing request which comprises information used for indicating a media file to be played at the time and information used for indicating a media playing device used for playing the media file at the time; the media playing request is input by triggering a preset control in a media playing control device, and the media playing control device and at least one media playing device are connected to the same local area network;
an obtaining unit, configured to obtain device description information of the media playing device in response to the media playing request;
the searching unit is used for searching a configuration file related to the media playing device in a preset database based on the device description information of the media playing device, wherein the configuration file is a file which is preset for different media playing devices, related to the media playing devices and contains playing control instructions, and the related configuration file is stored in the preset database in advance so as to realize media playing control on different media playing devices;
the control unit is used for carrying out media playing control on the media playing equipment based on a playing control instruction contained in the configuration file when the searching unit searches the configuration file related to the media playing equipment;
the control unit is further configured to perform media playing control on the media playing device based on a locally set default playing control instruction when the configuration file related to the media playing device is not found.
7. The media playback control device of claim 6, wherein the configuration file further comprises: format compatible information, the format compatible information is used for indicating a media format which allows the media playing equipment to play;
the media playback control apparatus further includes:
the judging unit is used for judging whether the format of the media file to be played at this time is a format allowing the media playing equipment to play or not based on format compatible information contained in the configuration file when the searching unit finds the configuration file related to the media playing equipment;
and the control unit is triggered when the judgment result of the judgment unit is yes.
8. The media playback control device according to claim 7, further comprising;
and the prompting unit is used for outputting prompting information in a preset format to prompt a user that the media file to be played cannot be played through the media playing equipment when the judgment result of the judging unit is negative.
9. An electronic terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 5 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201711172593.XA 2017-11-22 2017-11-22 Media playing control method, media playing control device and electronic terminal Active CN107872727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711172593.XA CN107872727B (en) 2017-11-22 2017-11-22 Media playing control method, media playing control device and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711172593.XA CN107872727B (en) 2017-11-22 2017-11-22 Media playing control method, media playing control device and electronic terminal

Publications (2)

Publication Number Publication Date
CN107872727A CN107872727A (en) 2018-04-03
CN107872727B true CN107872727B (en) 2021-01-26

Family

ID=61754471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711172593.XA Active CN107872727B (en) 2017-11-22 2017-11-22 Media playing control method, media playing control device and electronic terminal

Country Status (1)

Country Link
CN (1) CN107872727B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040787B (en) * 2018-09-05 2020-10-09 湖南华诺科技有限公司 Method for content distribution network of distributed autonomous set top box
CN114500657A (en) * 2022-01-26 2022-05-13 京东方科技集团股份有限公司 Media playing control method and device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015146106A (en) * 2014-02-03 2015-08-13 三菱電機株式会社 Information reproduction system, information reproduction method, and information reproduction device
CN205827917U (en) * 2016-06-21 2016-12-21 深圳市云耳科技有限公司 Integrated 4G network sharing and the music player of vehicle diagnostics function

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9186548B2 (en) * 2009-07-20 2015-11-17 Disney Enterprises, Inc. Play sequence visualization and analysis
CN102892214B (en) * 2012-09-10 2016-05-04 东莞宇龙通信科技有限公司 Terminal and link management method
CN103024509B (en) * 2012-12-07 2017-02-01 深圳Tcl新技术有限公司 Method and device for displaying multimedia file information on television
CN107277627A (en) * 2017-06-14 2017-10-20 环球智达科技(北京)有限公司 A kind of detecting system of video and audio ability to play
CN107135409A (en) * 2017-06-14 2017-09-05 环球智达科技(北京)有限公司 A kind of detection method of video and audio ability to play
CN107135410A (en) * 2017-06-14 2017-09-05 环球智达科技(北京)有限公司 A kind of detection method of video and audio ability to play

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015146106A (en) * 2014-02-03 2015-08-13 三菱電機株式会社 Information reproduction system, information reproduction method, and information reproduction device
CN205827917U (en) * 2016-06-21 2016-12-21 深圳市云耳科技有限公司 Integrated 4G network sharing and the music player of vehicle diagnostics function

Also Published As

Publication number Publication date
CN107872727A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
US9749329B2 (en) Network connection managing device, system and method
US8327410B2 (en) Networked-enabled mass storage dongle with networked media content aggregation
KR101303474B1 (en) Remote control signal learning and processing by a host device and accessory
KR101566037B1 (en) System and method for configuring a client electronic device
WO2017201935A1 (en) Video playing method and apparatus
US11921781B2 (en) Display apparatus, background music providing method thereof and background music providing system
US20120124244A1 (en) Mobile computing device with adaptive response based on accessory firmware
US11157231B2 (en) Method and apparatus for controlling sound signal output
EP3091756A1 (en) Method and system for setting alarm clock of wireless music system
KR102502655B1 (en) Method for contents playback with continuity and electronic device therefor
CN107872727B (en) Media playing control method, media playing control device and electronic terminal
US9384752B2 (en) Audio device and storage medium
US10964316B2 (en) Performing action on active media content
US10847021B1 (en) Determining commands on a media device interface
CN106776847B (en) Method and device for deleting media file and mobile terminal
WO2017113528A1 (en) Method, apparatus, device and system for pairing smart home appliance
KR20090020327A (en) Method and apparatus for receiving/transmitting contents automatically
CN105657533A (en) Data file playing method and device
JP2014115552A (en) Content reproduction device and program
WO2022267601A1 (en) Automatic locking method and apparatus for smoking set in public place, and electronic device
CN106250096B (en) Method and device for automatically playing music by audio equipment
US20210068178A1 (en) Electronic device paired with external electronic device, and control method for electronic device
CN105006242B (en) A kind of control method and terminal of wireless sound box system
KR20190048337A (en) Electronic device and control method thereof
CN113329125B (en) Broadcast control method and device based on message content identification in near-field broadcast scene

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant