CN105843865B - Media file playing method and device - Google Patents

Media file playing method and device Download PDF

Info

Publication number
CN105843865B
CN105843865B CN201610154443.5A CN201610154443A CN105843865B CN 105843865 B CN105843865 B CN 105843865B CN 201610154443 A CN201610154443 A CN 201610154443A CN 105843865 B CN105843865 B CN 105843865B
Authority
CN
China
Prior art keywords
target
information
file
media
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
CN201610154443.5A
Other languages
Chinese (zh)
Other versions
CN105843865A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610154443.5A priority Critical patent/CN105843865B/en
Publication of CN105843865A publication Critical patent/CN105843865A/en
Application granted granted Critical
Publication of CN105843865B publication Critical patent/CN105843865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/435Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Abstract

The disclosure relates to a media file playing method and device, and belongs to the field of electronic technology application. The method comprises the following steps: acquiring environmental information of a target terminal; acquiring target file information associated with the environmental information from a media library according to the environmental information; and playing the target media file indicated by the target file information. The method and the device solve the problem of single media file playing mode and achieve the effect of enriching the media file playing mode. The present disclosure is for media file playback.

Description

Media file playing method and device
Technical Field
The present disclosure relates to the field of electronic technology application, and in particular, to a method and an apparatus for playing a media file.
Background
With the rapid development of electronic technology, electronic products based on electronic technology are also more and more widely applied. Among them, a terminal such as a smart phone, a tablet computer, a vehicle-mounted terminal, etc. is a typical electronic product.
In the related art, when a user wants to listen to a song, the user may input a name of the song on a search interface provided by the terminal, and then click a search button to trigger the terminal to search for a corresponding song file, and after the song file is searched, the terminal may play the song file according to the operation of the user.
Disclosure of Invention
In order to solve the problem of single media file playing mode, the disclosure provides a media file playing method and a media file playing device. The technical scheme is as follows:
according to a first aspect of the present disclosure, there is provided a media file playing method, the method comprising:
acquiring environmental information of a target terminal;
acquiring target file information associated with the environmental information from a media library according to the environmental information;
and playing the target media file indicated by the target file information.
Optionally, the environment information includes: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information.
Optionally, the playing the target media file indicated by the target file information includes:
and playing the target media file indicated by the target file information through the target terminal or other terminals establishing communication connection with the target terminal.
Optionally, playing, by the target terminal, the target media file indicated by the target file information includes:
detecting whether a target player of the target terminal is operated, wherein the target player is a player capable of playing the target media file;
when the target player is operated, detecting whether the target player plays a media file currently;
when the target player plays the media file currently, after the target player finishes playing the currently played media file, playing the target media file;
when the target player does not run, adding the target file information to a play list of the target player;
and when the target player runs, playing the target media file indicated by the target file information.
Optionally, the media library is a local media library or a server media library.
Optionally, the playing the target media file indicated by the target file information includes:
when the number of the target file information is at least two, determining the association degree of each target file information of the at least two target file information and the environment information;
sorting the at least two pieces of target file information according to the relevance;
and sequentially playing the target media files indicated by each target file information according to the sequencing result.
Optionally, the sorting the at least two pieces of target file information according to the size of the association degree includes:
deleting the association degrees which are less than or equal to a preset association degree threshold from the at least two association degrees;
and sequencing the corresponding target file information according to the relevance degree which is greater than the preset relevance degree threshold value in the at least two relevance degrees.
According to a second aspect of the present disclosure, there is provided a media file playing apparatus, the apparatus comprising:
the environment acquisition module is configured to acquire environment information of the target terminal;
the file acquisition module is configured to acquire target file information associated with the environment information from a media library according to the environment information;
and the file playing module is configured to play the target media file indicated by the target file information.
Optionally, the environment information includes: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information.
Optionally, the file playing module is configured to:
and playing the target media file indicated by the target file information through the target terminal or other terminals establishing communication connection with the target terminal.
Optionally, the file playing module includes:
a first play sub-module configured to:
detecting whether a target player of the target terminal is operated, wherein the target player is a player capable of playing the target media file;
when the target player is operated, detecting whether the target player plays a media file currently;
when the target player plays the media file currently, after the target player finishes playing the currently played media file, playing the target media file;
when the target player does not run, adding the target file information to a play list of the target player;
and when the target player runs, playing the target media file indicated by the target file information.
Optionally, the media library is a local media library or a server media library.
Optionally, the file playing module includes;
the determining submodule is configured to determine the association degree of each piece of target file information and the environment information in at least two pieces of target file information when the number of the pieces of target file information is at least two;
the sorting submodule is configured to sort the at least two pieces of target file information according to the relevance degree;
and the playing sub-module is configured to play the target media files indicated by each piece of target file information in sequence according to the sorting result.
Optionally, the sorting sub-module is configured to:
deleting the association degrees which are less than or equal to a preset association degree threshold from the at least two association degrees;
and sequencing the corresponding target file information according to the relevance degree which is greater than the preset relevance degree threshold value in the at least two relevance degrees.
According to a third aspect of the present disclosure, there is provided a media file playing apparatus comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring environmental information of a target terminal;
acquiring target file information associated with the environmental information from a media library according to the environmental information;
and playing the target media file indicated by the target file information.
The technical scheme provided by the disclosure can have the following beneficial effects;
according to the media file playing method and device, the environment information of the target terminal is obtained, the target file information related to the environment information is obtained from the media library according to the environment information, and the target media file indicated by the target file information is played. The media file can be played according to the environment information of the target terminal, so that the problem of single playing mode of the media file is solved, and the effect of enriching the playing mode of the media file is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure, the drawings that are needed to be used in the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a schematic block diagram of an implementation environment to which various embodiments of the present disclosure relate;
FIG. 2 is a method flow diagram illustrating a method of media file playback in accordance with an exemplary embodiment;
FIG. 3-1 is a method flow diagram illustrating a method of media file playback in accordance with another exemplary embodiment;
FIG. 3-2 is an environmental information selection interface diagram provided by the embodiment shown in FIG. 3-1;
3-3 is a flow diagram of a method for retrieving target file information from a server media library according to the embodiment shown in FIG. 3-1;
3-4 are flow diagrams of a method for playing a target media file according to the embodiment shown in FIG. 3-1;
3-5 are flow diagrams of a method for sorting target file information by relevance according to the embodiment shown in FIG. 3-1;
3-6 are flow diagrams of a method for playing a target media file according to the embodiment shown in FIG. 3-1;
FIG. 4 is a block diagram illustrating a media file playback device in accordance with an exemplary embodiment;
FIG. 5-1 is a block diagram illustrating a media file playback device in accordance with another exemplary embodiment;
FIG. 5-2 is a block diagram of a file playing module provided in the embodiment shown in FIG. 5-1;
FIG. 5-3 is a block diagram of another file playing module provided by the embodiment shown in FIG. 5-1;
fig. 6 is a block diagram illustrating a media file playback device according to an example embodiment.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more clear, the present disclosure will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments, which can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort, shall fall within the scope of protection of the present disclosure.
Fig. 1 is a schematic diagram of an implementation environment according to various embodiments of the present disclosure. Referring to fig. 1, the implementation environment includes: a first terminal 120, a server 140, and a second terminal 160, wherein the server 140 and the second terminal 160 are optional devices.
The first terminal 120, the server 140 and the second terminal 160 may be connected through a wired network or a wireless network, wherein the wired network may include, but is not limited to: universal Serial Bus (USB), wireless networks may include, but are not limited to: wireless Fidelity (WIFI for short), bluetooth, infrared, Zigbee, data, and the like.
The first terminal 120 and the second terminal 160 may be a smart phone, a tablet computer, a smart television, a desktop computer, a motion Picture Experts Group Audio L layer iv (MP 4 for short), a motion Picture Experts Group Audio L layer III (MP 3 for short), a smart camera, a vehicle-mounted target terminal, an Audio device, and the like, and the first terminal 120 and the second terminal 160 may be the same or different.
The server 140 may be a media file server, and the server 140 may be, for example, one server, a server cluster composed of several servers, or a cloud computing service center.
The first terminal 120 may obtain environment information of the first terminal 120, obtain target file information associated with the environment information from a local media library or a server media library according to the environment information, and play a target media file indicated by the target file information through a target player on the first terminal 120 or a target player on the second terminal 160. Wherein the environment information includes: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight information, the server media library being a media library on the server 140. In the embodiment of the present disclosure, it is assumed that the first terminal 120 is a target terminal, and the second terminal 160 is another terminal that establishes a communication connection with the target terminal.
Fig. 2 is a flowchart illustrating a method for playing a media file according to an exemplary embodiment, where this embodiment is illustrated by applying the method for playing a media file to a target terminal, which may be the first terminal 120 in the implementation environment shown in fig. 1, and referring to fig. 2, the method for playing a media file may include the following steps:
in step 201, environment information of a target terminal is acquired.
In step 202, target file information associated with the environment information is obtained from the media library according to the environment information.
In step 203, the target media file indicated by the target file information is played.
To sum up, the media file playing method provided by the embodiment of the present disclosure obtains the environment information of the target terminal, and obtains the target file information associated with the environment information from the media library according to the environment information, and plays the target media file indicated by the target file information. The media file can be played according to the environment information of the target terminal, so that the problem of single playing mode of the media file is solved, and the effect of enriching the playing mode of the media file is achieved.
Optionally, the environment information includes: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information.
Optionally, step 203 may comprise:
and playing the target media file indicated by the target file information through the target terminal or other terminals establishing communication connection with the target terminal.
Optionally, playing, by the target terminal, the target media file indicated by the target file information includes:
detecting whether a target player of a target terminal is operated, wherein the target player is a player capable of playing a target media file;
when the target player is operated, detecting whether the target player plays the media file currently;
when the target player plays the media file currently, after the target player finishes playing the currently played media file, playing the target media file;
when the target player does not run, adding the target file information to a play list of the target player;
and when the target player runs, playing the target media file indicated by the target file information.
Optionally, the media library is a local media library or a server media library.
Optionally, step 203 may comprise:
when the number of the target file information is at least two, determining the association degree of each target file information and the environment information in the at least two pieces of target file information;
sorting at least two pieces of target file information according to the degree of association;
and sequentially playing the target media files indicated by each target file information according to the sequencing result.
Optionally, sorting the at least two pieces of target file information according to the size of the association degree, including:
deleting the association degrees which are less than or equal to a preset association degree threshold from the at least two association degrees;
and sequencing the corresponding target file information according to the relevance degree which is greater than a preset relevance degree threshold value in the at least two relevance degrees.
To sum up, the media file playing method provided by the embodiment of the present disclosure obtains the environment information of the target terminal, and obtains the target file information associated with the environment information from the media library according to the environment information, and plays the target media file indicated by the target file information. The media file can be played according to the environment information of the target terminal, so that the problem of single playing mode of the media file is solved, and the effect of enriching the playing mode of the media file is achieved.
Fig. 3-1 is a flowchart illustrating a method for playing a media file according to another exemplary embodiment, which is illustrated by applying the method for playing a media file to the implementation environment shown in fig. 1, and referring to fig. 3-1, the method for playing a media file may include the following steps:
in step 301, environment information of a target terminal is acquired. Step 302 is performed.
In the embodiment of the present disclosure, the target terminal may obtain environment information of the target terminal, where the environment information includes: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information.
Illustratively, the target terminal may acquire season information such as "winter" or the like through a season server; the target terminal can acquire weather information such as 'rain and snow, -2 degrees (centigrade)' and the like through a weather server; the target terminal can acquire time information such as 11:00 a.m. through a clock carried by the target terminal or a clock client installed in the target terminal; the target terminal can acquire geographical position information such as Beijing, Guangdong province, Guangxi province, Guilin City and the like through a geographical position acquisition component in the target terminal; the target terminal can obtain symbolic scenery spot information such as Tiananmen and wild gooses through a camera of the target terminal.
Optionally, in this embodiment of the present disclosure, the geographic position obtaining component may obtain the geographic position information through at least one of a Global Positioning System (GPS), a beidou satellite navigation System, WIFI, and a mobile data network, which is not limited in this embodiment of the present disclosure.
Optionally, the target terminal may capture an image of the landmark sight point through a camera of the target terminal according to an operation of the user, and then analyze the image of the landmark sight point to obtain landmark sight point information, which is not limited in the embodiment of the present disclosure.
It should be noted that, in the embodiment of the present disclosure, the target terminal may provide an environment information selection interface for the user, and the user may select and set the environment information in the environment information selection interface in advance, so that the target terminal can obtain the corresponding environment information in real time or when the environment information of the target terminal changes, for example, the environment information selection interface provided by the target terminal is as shown in fig. 3-2, see fig. 3-2, the environment information selection interface includes an environment information selection frame 320, the environment information is displayed in the environment information selection frame 320, the environment information includes season information, weather information, time information, geographic position information, and landmark scenic spot information, the environment information selection frame 320 further displays a determination button and a cancel button, and the user may click the corresponding environment information and click the determination button to trigger a selection instruction for the environment information, and the setting of the environment information is realized. For example, when the user clicks the geographic location information and clicks the determination button, a selection instruction for the geographic location information is triggered, and the target terminal sets the geographic location information as the environment information selected by the user, which is not limited in the embodiment of the present disclosure.
In step 302, target file information associated with the environment information is obtained from the media library according to the environment information. Step 303 is performed.
After the target terminal obtains the environment information, the target terminal can obtain target file information associated with the environment information from the media library. The target terminal can extract keywords or keywords in the environmental information, and then target file information related to the environmental information is obtained from the media library according to the keywords or keywords in the environmental information.
Optionally, in this embodiment of the present disclosure, the media library may be a local media library or a server media library. The local media library is a media library on the target terminal, and media files in the local media library are stored in the target terminal; the server media library is a media library on a server, and media files in the server media library are all stored on the server, and the server media library may be, for example, a media library on the server 140 in the implementation environment shown in fig. 1, which is not limited by the embodiment of the present disclosure.
Since the media library may be a local media library or a server media library, the obtaining, by the target terminal, the target file information associated with the environment information from the media library may include: the target terminal acquires target file information associated with the environmental information from the local media library according to the environmental information; or the target terminal acquires the target file information associated with the environment information from the server media library according to the environment information.
The obtaining, by the target terminal, the target file information associated with the environment information from the local media library according to the environment information may include: and the target terminal searches the local media library according to the environment information to obtain target file information associated with the environment information in the local media library, and then obtains the target file information. Optionally, the target terminal may extract a keyword or a keyword in the environment information, search the local media library according to the keyword or the keyword in the environment information, and obtain target file information associated with the environment information from the local media library.
For example, assuming that the environment information is geographic location information and the geographic location information is "sekkai city, guangdong province", the target terminal extracts keywords in the geographic location information to be "guangdong" and "sekkai", then the target terminal searches the local media library for "guangdong" and "sekkai", respectively, obtains file information associated with "guangdong" and "sekkai", and then takes the file information associated with "guangdong" and "sekkai" as the target file information associated with the environment information "sekkai city, guangdong province" and obtains the target file information. Optionally, the target terminal searches for "guangdong" and "pearl sea" in the local media library to obtain names of cantonese songs such as target file information "wanshui qianshan always-in", and the target terminal obtains the target file information "wanshui qianshan always-in", and the like.
Further illustratively, assuming that the environment information is geographical location information and the geographical location information is "Guangxi province Guilin City", the target terminal extracts that the keywords in the geographical location information may be "Guangxi" and "Guilin", then the target terminal searches for "Guangxi" and "Guilin" in the local media library respectively to obtain file information associated with "Guangxi" and "Guilin", and then the file information associated with "Guangxi" and "Guilin" is used as target file information associated with the environment information "Guangxi province Guilin City" and obtains the target file information. Optionally, the target terminal searches for "guangxi" and "Guilin" in the local media library to obtain names of songs of the target file information "I want to go to the Guilin", "want to the Guilin", and the like, and the target terminal obtains the target file information "I want to go to the Guilin", "want to the Guilin", and the like.
Further exemplarily, assuming that the environment information is landmark sight spot information and the landmark sight spot information is "Tiananmen", the target terminal extracts that the keyword in the geographic position information may be "Tiananmen", then the target terminal searches for "Tiananmen" in the local media library to obtain file information associated with "Tiananmen", and then the target terminal takes the file information associated with "Tiananmen" as target file information associated with the environment information "Tiananmen" and obtains the target file information. Optionally, the target terminal searches for "Tiananmen" in the local media library to obtain the name of a song of the target file information "i love beijing Tiananmen", and the target terminal obtains the target file information "i love beijing Tiananmen", and the like.
Referring to fig. 3-3, it is a flowchart illustrating a method for obtaining target file information associated with environment information from a server media library according to the embodiment shown in fig. 3-1, and referring to fig. 3-3, the method may include the following steps:
in sub-step 3021, the target terminal sends an acquisition request to the server, where the acquisition request carries the environment information.
The target terminal can generate an acquisition request carrying the environment information according to the environment information, and then sends the acquisition request to the server. Illustratively, the target terminal generates an acquisition request Q carrying geographic location information "Guangxi province Guilin City" according to the geographic location information "Guangxi province Guilin City", and then sends the acquisition request Q to the server.
In sub-step 3022, the server searches for target file information associated with the environmental information from the server media library based on the environmental information.
When the target terminal sends an acquisition request to the server, the server may receive the acquisition request sent by the target terminal, and then query, according to the environmental information in the acquisition request, target file information associated with the environmental information from the server media library. Optionally, the server may first parse the obtaining request to obtain the environment information, then extract a keyword or a keyword in the environment information, further query the server media library according to the keyword or the keyword in the environment information to obtain the target file information associated with the environment information, and obtain the target file information associated with the environment information.
Illustratively, the server analyzes the acquisition request Q to obtain geographic position information of Guangxi province Guilin City, then extracts key words of Guangxi province and Guilin from the geographic position information, further queries the key words of Guangxi province and Guilin from a server media library, obtains file information associated with the key words of Guangxi province and Guilin, further takes the file information associated with the key words of Guangxi province and Guilin as target file information associated with environment information of Guangxi province Guilin City, and acquires the target file information. Optionally, the server searches for "guangxi" and "Guilin" in the server media library, obtains names of songs of the target file information "I want to go to Guilin", "want to Guilin", "Guimeilin", and the like, and the server obtains the target file information "I want to go to Guilin", "want to Guilin", "Guimeilin", and the like, which is not limited in the embodiment of the present disclosure.
In sub-step 3023, the server sends an acquisition response to the target terminal, the acquisition response including the target file information.
After acquiring the target file information associated with the environment information, the server may send an acquisition response to the target terminal, where the acquisition response may include the target file information. The server may generate an acquisition response including the target file information according to the target file information, and then send the acquisition response to the target terminal.
Illustratively, the server generates an acquisition response X according to the target file information "i want to go to Guilin", "want to Guilin", "Guimeilin", and the like, and sends the acquisition response X to the target terminal.
In sub-step 3024, the target terminal parses the acquisition response to obtain the target file information.
When the server sends the acquisition response to the target terminal, the target terminal can receive the acquisition response and then analyze the acquisition response to obtain the target file information. Illustratively, the target terminal receives the acquisition response X, and then analyzes the acquisition response X to obtain target file information "i want to go to Guilin", "want to Guilin", "Guimeilin", and the like.
It should be noted that, in this embodiment of the present disclosure, on one hand, when the target terminal obtains the target file information associated with the environment information from the server media library, it needs to interact with the server, and needs to consume network resources; on the other hand, since the file information stored in the local media library is usually the file information of the media file that the user prefers, the target terminal preferentially obtains the target file information associated with the environment information from the local media library, and when the target file information associated with the environment information does not exist in the local media library, the target terminal obtains the target file information associated with the environment information from the media server, which is not limited in the embodiment of the present disclosure.
In step 303, the target media file indicated by the target file information is played.
And after the target terminal acquires the target file information associated with the environment information, the target terminal can play the target media file indicated by the target file information. It should be noted that in practical applications, the number of the target file information acquired by the target terminal may be large, and therefore, the target terminal may play the target media file indicated by each piece of target file information according to a certain rule.
Referring to fig. 3-4, there is shown a flowchart of a method for playing a target media file indicated by target file information according to the embodiment shown in fig. 3-1, and referring to fig. 3-4, the method may include the following steps:
in sub-step 3031, when the number of the target file information is at least two, the association degree of each of the at least two target file information and the environment information is determined. Sub-step 3032 is performed.
When the number of the target file information acquired by the target terminal is at least two, the target terminal may determine the association degree between each of the at least two pieces of target file information and the environment information. Optionally, the target terminal may determine the association degree of each piece of target file information and the piece of environment information according to the matching degree of each piece of target file information and the piece of environment information, where the association degree of each piece of target file information and the piece of environment information is positively correlated with the matching degree of each piece of target file information and the piece of environment information.
Illustratively, assuming that the target file information is "i want to go to Guilin", "want to Guilin", "Guimeilin", "Guilin" and "Guilin girl", and the environmental information is geographical location information "Guangxi province Guilin City", the target terminal respectively determines the matching degree of "i want to go to Guilin" and "Guangxi province Guilin City", the matching degree of "Guimeilin" and "Guangxi province Guilin City", the matching degree of "want to go to Guilin" and "Guangxi province Guilin", and further determines the correlation degree of "want to go to Guilin" and "Guangxi province Guilin" according to the matching degree of "want to go to Guilin" and "Guangxi province Guilin", and determines the correlation degree of "want to go to Guilin" and "Guangxi province Guilin" according to the matching degree of "want to go to Guilin" and "Guangxi province Guilin",City ", the method comprises the steps of determining the matching degree of the Guimeilin and the Guangxi province Guilin city according to the matching degree of the Guimeilin and the Guangxi province Guilin city, determining the association degree of the Guilin and the Guangxi province Guilin city according to the matching degree of the Guilin and the Guangxi province Guilin city, and determining the association degree of the Guilin cury and the Guangxi province Guilin city according to the matching degree of the Guilin cury and the Guangxi province Guilin city. The process of determining the matching degree between each piece of target file information and the environmental information by the target terminal may refer to related technologies, which is not limited in the embodiments of the present disclosure.
Optionally, in the embodiment of the present disclosure, the association degree of the target file information "i want to go to Guilin", "want to Guilin", "Guimeilin", "Guilin" and "Guilin girl" and the environmental information "Guangxi province Guilin City" may be as shown in table 1 below:
TABLE 1
Figure BDA0000943839880000121
Referring to table 1, the association degree of "i want to go to Guilin" and "Guangxi province Guilin City" is G1, the association degree of "want to Guilin" and "Guangxi province Guilin City" is G2, the association degree of "Guimeilin" and "Guangxi province Guilin City" is G3, the association degree of "Guilin" and "Guangxi province Guilin City" is G4, and the association degree of "Guilin Niger" and "Guangxi province Guilin City" is G5.
It should be noted that, in the embodiment of the present disclosure, the target terminal determines the association degree of the target file information and the environment information according to the matching degree of the target file information and the environment information, in practical applications, the target terminal may also determine the association degree of the target file information and the environment information according to the semantic correlation degree of the target file information and the environment information, and details of the embodiment of the present disclosure are not repeated here.
In sub-step 3032, at least two pieces of target file information are sorted according to the magnitude of the degree of association. Sub-step 3033 is performed.
After determining the association degree of each piece of target file information and the environmental information, the target terminal may sort at least two pieces of target file information according to the association degree. Optionally, after determining at least two pieces of target file information according to the magnitude of the association degree and sorting the at least two pieces of target file information, the target terminal may obtain the priority of the at least two pieces of target file information, where the magnitude of the priority is positively correlated with the magnitude of the association degree, and for example, the priority of the target file information with a greater association degree with the environment information is greater than the priority of the target file information with a smaller association degree with the environment information. It should be noted that, in order to simplify the sorting process and save network resources of the target media file indicated by the target file information obtained from the server, the target terminal may filter at least two association degrees and target file information corresponding to the at least two association degrees, and then sort the target file information corresponding to the association degrees obtained by the filtering.
Referring to fig. 3-5, which is a flowchart illustrating a method for sorting at least two pieces of target file information according to the size of the relevance according to the embodiment shown in fig. 3-1, and referring to fig. 3-5, the method may include the following steps:
in sub-step 30321, the association degrees less than and equal to the preset association degree threshold are deleted from the at least two association degrees. Sub-step 30322 is performed.
The preset association threshold may be G, and a specific numerical value of the preset association threshold may be set according to actual needs, which is not limited in the embodiment of the present disclosure.
Optionally, the target terminal may determine, by comparing each of the at least two association degrees with a preset association degree threshold, an association degree smaller than or equal to the preset association degree threshold in the at least two association degrees, and delete the association degree smaller than or equal to the preset association degree threshold in the at least two association degrees, so as to discard the association degree smaller than or equal to the preset association degree threshold. In the embodiment of the present disclosure, assuming that G1, G2, G4, and G5 are all greater than G, and G3 is less than G, the target terminal deletes the association degree G3.
In sub-step 30322, the corresponding target file information is sorted according to the size of the relevance degree larger than the preset relevance degree threshold in at least two relevance degrees.
After deleting the association degrees smaller than or equal to the preset association degree threshold value from the at least two association degrees, the target terminal can obtain the association degrees larger than the preset association degree threshold value from the at least two association degrees, and then the target terminal can sort the corresponding target file information according to the association degrees larger than the preset association degree threshold value from the at least two association degrees.
Optionally, the target terminal may sort the association degrees greater than the preset association degree threshold among the at least two association degrees, and then sort the target file information corresponding to the association degrees greater than the preset association degree threshold among the at least two association degrees according to a sorting order of the association degrees greater than the preset association degree threshold among the at least two association degrees, so as to obtain a priority order of the target file information corresponding to the association degrees greater than the preset association degree threshold among the at least two association degrees.
For example, the target terminal sorts the association degrees G1, G2, G4, and G5 from large to small, and the obtained sorting order is: g4> G2> G5> G1, and the target terminal performs priority ranking on the target file information corresponding to G1, G2, G4 and G5 according to the ranking order, so that the ranking priority order of the target file information corresponding to the association degrees G1, G2, G4 and G5 is shown in the following table 2:
TABLE 2
Priority order Object file information Sequence of degree of association
1 Guilin G4
2 Xianggui forest G2
3 Guilin girl G5
4 I want to go to Guilin G1
Referring to table 2, it can be seen that the priorities of "i want to go to Guilin", "want to Guilin", "Guilin" and "Guilin Niger" are sequentially reduced according to the order of "Guilin", "want to Guilin", "Guilin Niger" and "i want to go to Guilin".
In sub-step 3033, the target media files indicated by each target file information are played in turn according to the sorting result.
After at least two pieces of target file information are sorted according to the relevance of each piece of target file information and the environment information and the size of the relevance, the target terminal can play the target media files indicated by each piece of target file information in sequence according to the sorting result. Optionally, the target terminal sequentially plays the target media file indicated by each piece of target file information according to the priority order of at least two pieces of target file information.
For example, the target terminal plays "Guilin" first, and then plays "think Guilin", and the like, which is not limited in the embodiment of the present disclosure.
In this embodiment of the present disclosure, the playing, by the target terminal, the target media file indicated by the target file information may include: the target terminal plays the target media file indicated by the target file information through the target terminal; or playing the target media file indicated by the target file information by other terminals which establish communication connection with the target terminal. For example, the target terminal for executing the media file playing method provided by the embodiment of the present disclosure may be the first terminal 120 in the implementation environment shown in fig. 1, and the first terminal 120 may play the target media file indicated by the target file information, or the second terminal 160 may play the target media file indicated by the target file information, which is not limited in the embodiment of the present disclosure. The present disclosure takes an example in which the target terminal plays the target media file indicated by the target file information.
Referring to fig. 3-6, which is a flowchart illustrating a method for playing a target media file indicated by target file information according to the embodiment shown in fig. 3-1, referring to fig. 3-6, the method may include the following steps:
in sub-step 30331, it is detected whether a target player of the target terminal is already running, the target player being a player capable of playing the target media file. When the target player is already running, performing sub-step 30332; when the target player is not running, sub-step 30335 is performed.
The target terminal detects whether a target player on the target terminal is already running, wherein the target player is a player capable of playing a target media file, for example, when the target media file is a song file, the target player may be: QQ music players, cool me music players, hundredth music players, cool dog music players, etc., which are not limited by the embodiments of the present disclosure. The process of detecting whether the target player of the target terminal has been operated by the target terminal may refer to related technologies, and details of the embodiments of the present disclosure are not repeated herein.
In sub-step 30332, when the target player is already running, it is detected whether the target player is currently playing a media file. Performing sub-step 30333 when the target player is currently playing the media file; sub-step 30334 is performed when the target player is not currently playing a media file.
If the target terminal determines that the target player is already running in sub-step 30331, the target terminal detects whether the target player currently plays the media file, where a process of the target terminal detecting whether the target player currently plays the media file may refer to related technologies, and details of the embodiment of the present disclosure are not repeated here.
In sub-step 30333, when the target player is currently playing the media file, the target media file is played after the target player has finished playing the currently played media file.
If the target terminal determines that the target player currently plays the media file in sub-step 30332, the target terminal plays the target media file after the target player finishes playing the currently played media file. For example, assuming that the media file currently played by the target player is the song "the most dazzling ethnic wind", the target terminal plays the songs "Guilin", "XiangGuilin", "Guilin girl", "I want to go to Guilin" and the like after the target player has played the song "the most dazzling ethnic wind", which is not limited in the embodiment of the present disclosure.
In sub-step 30334, the target media file is played when the target player is not currently playing the media file.
If the target terminal determines that the target player is not currently playing the media file in sub-step 30332, the target terminal plays the target media file. Illustratively, the target terminal plays songs "Guilin", "want to Guilin", "Guilin girl", "I want to go to Guilin" in sequence.
In sub-step 30335, when the target player is not running, target file information is added to the target player's playlist. Sub-step 30336 is performed.
If the target terminal determines in sub-step 30331 that the target player is not running, the target terminal may add the target file information to the playlist of the target player. Illustratively, the target terminal adds "i want to go to Guilin", "want to Guilin", "Guilin", and "Guilin girl" to the playlist of the target player. The implementation process of adding the target file information to the playlist of the target player by the target terminal may refer to related technologies, and details of the embodiment of the disclosure are not repeated herein.
It should be noted that the target terminal may sequentially add the target file information to the playlist of the target player according to the priority order, so that the target terminal can sequentially play the target media files indicated by the target file information according to the priority order.
In sub-step 30336, the target media file indicated by the target file information is played while the target player is running.
After the target terminal adds the target file information to the playlist of the target player, when the target player runs, the target terminal may play the target media file indicated by the target file information, for example, the target terminal may play the target media file indicated by the target file information according to the playlist sequence, which is not described herein again in this disclosure.
It should be noted that, in the embodiment of the present disclosure, the target terminal may obtain the file content of the target media file indicated by the target file information according to the target file information, and then play the target media file according to the file content of the target media file. For example, the target terminal obtains the file content of the song file indicated by the "Guilin" according to the "Guilin" and then plays the song Guilin according to the file content of the song file indicated by the "Guilin", which is not described herein again in the embodiments of the present disclosure.
It should be further noted that, in the embodiment of the present disclosure, the target terminal plays the target media file indicated by the target file information as an example, when the target terminal plays the target media file indicated by the target file information through another terminal, the target terminal may send the target file information to another terminal, so that the other terminal plays the target media file indicated by the target file information, which is not described herein again.
It should be added that, with the media file playing method provided in the embodiment of the present disclosure, the target terminal obtains the environment information, and further obtains the target file information associated with the environment information, and plays the target media file indicated by the target file information, so that the user experience can be improved.
It should be added that the order of the steps of the media file playing method provided in the embodiment of the present disclosure may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily conceived by a person skilled in the art within the technical scope of the present disclosure is included in the protection scope of the present disclosure, and therefore, the details are not described again.
To sum up, the media file playing method provided by the embodiment of the present disclosure obtains the environment information of the target terminal, and obtains the target file information associated with the environment information from the media library according to the environment information, and plays the target media file indicated by the target file information. The media file can be played according to the environment information of the target terminal, so that the problem of single playing mode of the media file is solved, and the effect of enriching the playing mode of the media file is achieved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 4 is a block diagram illustrating a media file playback apparatus 400 according to an exemplary embodiment, where the media file playback apparatus 400 may be implemented by software, hardware or a combination thereof as part or all of a target terminal, which may be the first terminal 120 in the implementation environment shown in fig. 1. Referring to fig. 4, the media file playing apparatus 400 may include:
an environment acquisition module 410 configured to acquire environment information of the target terminal.
And the file acquisition module 420 is configured to acquire target file information associated with the environment information from the media library according to the environment information.
And a file playing module 430 configured to play the target media file indicated by the target file information.
To sum up, the media file playing apparatus provided in the embodiment of the present disclosure obtains the environment information of the target terminal, and obtains the target file information associated with the environment information from the media library according to the environment information, and plays the target media file indicated by the target file information. The media file can be played according to the environment information of the target terminal, so that the problem of single playing mode of the media file is solved, and the effect of enriching the playing mode of the media file is achieved.
Fig. 5-1 is a block diagram illustrating a media file playback apparatus 500 according to another exemplary embodiment, where the media file playback apparatus 500 may be implemented by software, hardware or a combination of both as part or all of a target terminal, which may be the first terminal 120 in the implementation environment shown in fig. 1. Referring to fig. 5-1, the media file playing apparatus 500 may include, but is not limited to:
an environment acquisition module 510 configured to acquire environment information of a target terminal;
a file obtaining module 520 configured to obtain target file information associated with the environment information from the media library according to the environment information;
and a file playing module 530 configured to play the target media file indicated by the target file information.
Optionally, the environment information includes: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information.
Optionally, the file playing module 530 is configured to play the target media file indicated by the target file information through the target terminal or another terminal that establishes a communication connection with the target terminal.
Optionally, referring to fig. 5-2, which shows a block diagram of a file playing module 530 provided in the embodiment shown in fig. 5-1, referring to fig. 5-2, the file playing module 530 includes:
a first play sub-module 531A configured to:
detecting whether a target player of a target terminal is operated, wherein the target player is a player capable of playing a target media file;
when the target player is operated, detecting whether the target player plays the media file currently;
when the target player plays the media file currently, after the target player finishes playing the currently played media file, playing the target media file;
when the target player does not run, adding the target file information to a play list of the target player;
and when the target player runs, playing the target media file indicated by the target file information.
Optionally, the media library is a local media library or a server media library.
Optionally, referring to fig. 5-3, which is a block diagram of another file playing module 530 provided in the embodiment shown in fig. 5-1, referring to fig. 5-3, the file playing module 530 includes:
the determining submodule 531B is configured to determine, when the number of the target file information is at least two, a degree of association between each of the at least two pieces of target file information and the environment information;
the sorting submodule 532B is configured to sort the at least two pieces of target file information according to the relevance degree;
the playing sub-module 533B is configured to sequentially play the target media files indicated by each target file information according to the sorting result.
Optionally, the sorting submodule 532B is configured to:
deleting the association degrees which are less than or equal to a preset association degree threshold from the at least two association degrees;
and sequencing the corresponding target file information according to the relevance degree which is greater than a preset relevance degree threshold value in the at least two relevance degrees.
To sum up, the media file playing apparatus provided in the embodiment of the present disclosure obtains the environment information of the target terminal, and obtains the target file information associated with the environment information from the media library according to the environment information, and plays the target media file indicated by the target file information. The media file can be played according to the environment information of the target terminal, so that the problem of single playing mode of the media file is solved, and the effect of enriching the playing mode of the media file is achieved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating a media file playback device 600 according to an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, a vehicle device, a smart camera, and so forth.
Referring to fig. 6, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, media file playback, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on the apparatus 600, contact data, phonebook data, messages, pictures, video, audio, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile storage devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, and magnetic or optical disks.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user, in some embodiments, the screen may include a liquid crystal display (L CD) and a Touch Panel (TP). if the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 may include a Microphone (MIC) configured to receive external audio signals when the device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of the components, such as a display and keypad of the device 600, the sensor component 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), programmable logic devices (P L D), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, instructions in the storage medium, when executed by a processor of a device 600, enable the device 600 to perform a media file playback method, the media file playback method comprising:
acquiring environmental information of a target terminal;
acquiring target file information associated with the environmental information from a media library according to the environmental information;
and playing the target media file indicated by the target file information.
Optionally, the environment information includes: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information.
Optionally, playing the target media file indicated by the target file information includes:
and playing the target media file indicated by the target file information through the target terminal or other terminals establishing communication connection with the target terminal.
Optionally, playing, by the target terminal, the target media file indicated by the target file information includes:
detecting whether a target player of a target terminal is operated, wherein the target player is a player capable of playing a target media file;
when the target player is operated, detecting whether the target player plays the media file currently;
when the target player plays the media file currently, after the target player finishes playing the currently played media file, playing the target media file;
when the target player does not run, adding the target file information to a play list of the target player;
and when the target player runs, playing the target media file indicated by the target file information.
Optionally, the media library is a local media library or a server media library.
Optionally, playing the target media file indicated by the target file information includes:
when the number of the target file information is at least two, determining the association degree of each target file information and the environment information in the at least two pieces of target file information;
sorting at least two pieces of target file information according to the degree of association;
and sequentially playing the target media files indicated by each target file information according to the sequencing result.
Optionally, sorting the at least two pieces of target file information according to the size of the association degree, including:
deleting the association degrees which are less than or equal to a preset association degree threshold from the at least two association degrees;
and sequencing the corresponding target file information according to the relevance degree which is greater than a preset relevance degree threshold value in the at least two relevance degrees.
To sum up, the media file playing apparatus provided in the embodiment of the present disclosure obtains the environment information of the target terminal, and obtains the target file information associated with the environment information from the media library according to the environment information, and plays the target media file indicated by the target file information. The media file can be played according to the environment information of the target terminal, so that the problem of single playing mode of the media file is solved, and the effect of enriching the playing mode of the media file is achieved.
The term "at least one of a and B" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, at least one of a and B may mean: a exists alone, A and B exist simultaneously, and B exists alone. Similarly, "A, B and at least one of C" indicates that there may be seven relationships that may indicate: seven cases of A alone, B alone, C alone, A and B together, A and C together, C and B together, and A, B and C together exist. Similarly, "A, B, C and at least one of D" indicates that there may be fifteen relationships, which may indicate: fifteen cases of a alone, B alone, C alone, D alone, a and B together, a and C together, a and D together, C and B together, D and B together, C and D together, A, B and C together, A, B and D together, A, C and D together, B, C and D together, A, B, C and D together exist.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (7)

1. A method for playing a media file, the method comprising:
acquiring environment information of a target terminal, wherein the environment information is selected and set in an environment information selection interface provided by the target terminal in advance by a user, and the environment information comprises: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information;
extracting keywords or keywords in the environmental information, and acquiring target file information associated with the environmental information from a media library according to the keywords or the keywords, wherein the media library is a local media library or a server media library;
playing the target media file indicated by the target file information;
wherein, the playing the target media file indicated by the target file information includes:
when the number of the target file information is at least two, determining the association degree of each target file information of the at least two target file information and the environment information;
deleting the association degrees which are less than or equal to a preset association degree threshold from the at least two association degrees; sorting the corresponding target file information according to the relevance degree which is greater than the preset relevance degree threshold value in the at least two relevance degrees;
sequentially playing the target media files indicated by each target file information according to the sequencing result;
the acquiring of the target file information associated with the environmental information from the media library according to the keywords or the keywords comprises:
and acquiring target file information associated with the environmental information from the local media library according to the keywords or the keywords, and acquiring the target file information associated with the environmental information from the server media library when the target file information associated with the environmental information does not exist in the local media library.
2. The method according to claim 1, wherein playing the target media file indicated by the target file information comprises:
and playing the target media file indicated by the target file information through the target terminal or other terminals establishing communication connection with the target terminal.
3. The method of claim 2, wherein playing, by the target terminal, the target media file indicated by the target file information comprises:
detecting whether a target player of the target terminal is operated, wherein the target player is a player capable of playing the target media file;
when the target player is operated, detecting whether the target player plays a media file currently;
when the target player plays the media file currently, after the target player finishes playing the currently played media file, playing the target media file;
when the target player does not run, adding the target file information to a play list of the target player;
and when the target player runs, playing the target media file indicated by the target file information.
4. An apparatus for playing a media file, the apparatus comprising:
an environment obtaining module configured to obtain environment information of a target terminal, where the environment information is selected and set in an environment information selection interface provided by the target terminal in advance by a user, and the environment information includes: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information;
the file acquisition module is configured to extract keywords or keywords in the environmental information, and acquire target file information associated with the environmental information from a media library according to the keywords or keywords, wherein the media library is a local media library or a server media library;
the file playing module is configured to play the target media file indicated by the target file information;
wherein, the file playing module comprises:
the determining submodule is configured to determine the association degree of each piece of target file information and the environment information in at least two pieces of target file information when the number of the pieces of target file information is at least two;
the sorting sub-module is configured to delete the association degrees smaller than or equal to a preset association degree threshold value from the at least two association degrees according to the keywords or the keywords and sort the corresponding target file information according to the association degrees larger than the preset association degree threshold value from the at least two association degrees;
the playing submodule is configured to play the target media files indicated by the information of each target file in sequence according to the sequencing result;
the file acquisition module is further configured to acquire target file information associated with the environmental information from the local media library, and acquire the target file information associated with the environmental information from the server media library when the target file information associated with the environmental information does not exist in the local media library.
5. The apparatus of claim 4, wherein the file playing module is configured to:
and playing the target media file indicated by the target file information through the target terminal or other terminals establishing communication connection with the target terminal.
6. The apparatus of claim 5, wherein the file playing module comprises:
a first play sub-module configured to:
detecting whether a target player of the target terminal is operated, wherein the target player is a player capable of playing the target media file;
when the target player is operated, detecting whether the target player plays a media file currently;
when the target player plays the media file currently, after the target player finishes playing the currently played media file, playing the target media file;
when the target player does not run, adding the target file information to a play list of the target player;
and when the target player runs, playing the target media file indicated by the target file information.
7. A media file playback apparatus, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring environment information of a target terminal, wherein the environment information is selected and set in an environment information selection interface provided by the target terminal in advance by a user, and the environment information comprises: at least one of seasonal information, weather information, time information, geographic location information, and landmark sight spot information;
extracting keywords or keywords in the environmental information, and acquiring target file information associated with the environmental information from a media library according to the keywords or the keywords, wherein the media library is a local media library or a server media library;
playing the target media file indicated by the target file information;
wherein, the playing the target media file indicated by the target file information includes:
when the number of the target file information is at least two, determining the association degree of each target file information of the at least two target file information and the environment information;
deleting the association degrees which are less than or equal to a preset association degree threshold from the at least two association degrees; sorting the corresponding target file information according to the relevance degree which is greater than the preset relevance degree threshold value in the at least two relevance degrees;
sequentially playing the target media files indicated by each target file information according to the sequencing result;
the acquiring of the target file information associated with the environmental information from the media library according to the keywords or the keywords comprises:
and acquiring target file information associated with the environmental information from the local media library according to the keywords or the keywords, and acquiring the target file information associated with the environmental information from the server media library when the target file information associated with the environmental information does not exist in the local media library.
CN201610154443.5A 2016-03-17 2016-03-17 Media file playing method and device Active CN105843865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610154443.5A CN105843865B (en) 2016-03-17 2016-03-17 Media file playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610154443.5A CN105843865B (en) 2016-03-17 2016-03-17 Media file playing method and device

Publications (2)

Publication Number Publication Date
CN105843865A CN105843865A (en) 2016-08-10
CN105843865B true CN105843865B (en) 2020-07-10

Family

ID=56587176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610154443.5A Active CN105843865B (en) 2016-03-17 2016-03-17 Media file playing method and device

Country Status (1)

Country Link
CN (1) CN105843865B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776999A (en) * 2016-12-07 2017-05-31 北京小米移动软件有限公司 Multi-medium data recommends method and device
CN106777151A (en) * 2016-12-20 2017-05-31 珠海市魅族科技有限公司 A kind of multimedia file output intent and device
CN111782831A (en) * 2020-07-02 2020-10-16 北京字节跳动网络技术有限公司 Media file display method, device, medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8117193B2 (en) * 2007-12-21 2012-02-14 Lemi Technology, Llc Tunersphere
EP2375316B1 (en) * 2010-04-06 2019-11-27 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN103729363A (en) * 2012-10-12 2014-04-16 上海聚力传媒技术有限公司 Method and device for providing personalized video service through software and hardware environment of user
CN104090921B (en) * 2014-06-19 2017-06-16 小米科技有限责任公司 Method for broadcasting multimedia file, device, terminal and server
CN104851440B (en) * 2015-04-27 2017-11-14 广东欧珀移动通信有限公司 A kind of music shuffle method and intelligent sound box

Also Published As

Publication number Publication date
CN105843865A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN109299384B (en) Scene recommendation method, device and system and storage medium
CN103403705B (en) Loading a mobile computing device with media files
WO2017177630A1 (en) Method and device for recommending personalized information
RU2614137C2 (en) Method and apparatus for obtaining information
US20180314390A1 (en) User Interface, Method and System for Crowdsourcing Event Notification Sharing Using Mobile Devices
KR102281882B1 (en) Real-time audio stream retrieval and presentation system
CN105488154A (en) Theme application recommendation method and device
CN110020148B (en) Information recommendation method and device and information recommendation device
US20150317353A1 (en) Context and activity-driven playlist modification
CN107656938B (en) Recommendation method and device and recommendation device
CN111417009B (en) Predictive media routing
CN110147467A (en) A kind of generation method, device, mobile terminal and the storage medium of text description
CN107315487B (en) Input processing method and device and electronic equipment
CN104850238A (en) Method and device for sorting candidate items generated by input method
CN111382339B (en) Search processing method and device for search processing
CN111858971A (en) Multimedia resource recommendation method, device, terminal and server
EP2835981A1 (en) Information processing device, information processing method, and program
CN105843865B (en) Media file playing method and device
CN105447149A (en) Interaction method, apparatus and electronic device for network searching
CN105373580A (en) Method and device for displaying subjects
CN107402937B (en) Searching method and device and electronic equipment
CN112784142A (en) Information recommendation method and device
CN113727169A (en) Video playing method, device, equipment and storage medium
CN111984749A (en) Method and device for ordering interest points
CN111696549A (en) Picture searching method and device, electronic equipment and storage medium

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