CN111782831A - Media file display method, device, medium and electronic equipment - Google Patents

Media file display method, device, medium and electronic equipment Download PDF

Info

Publication number
CN111782831A
CN111782831A CN202010633845.XA CN202010633845A CN111782831A CN 111782831 A CN111782831 A CN 111782831A CN 202010633845 A CN202010633845 A CN 202010633845A CN 111782831 A CN111782831 A CN 111782831A
Authority
CN
China
Prior art keywords
target
country
media file
user
tuple
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010633845.XA
Other languages
Chinese (zh)
Other versions
CN111782831B (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010633845.XA priority Critical patent/CN111782831B/en
Publication of CN111782831A publication Critical patent/CN111782831A/en
Application granted granted Critical
Publication of CN111782831B publication Critical patent/CN111782831B/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/44Browsing; Visualisation therefor
    • 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/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists
    • G06F16/4393Multimedia presentations, e.g. slide shows, multimedia albums
    • 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
    • G06F16/483Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • 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
    • G06F16/487Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a media file display method, a device, a medium and an electronic device, wherein the method comprises the following steps: determining a plurality of target media files to be displayed to a target user and a country corresponding to each target media file; determining the country of the target user; acquiring similarity characteristic information corresponding to each target media file, wherein the similarity characteristic information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media file; and determining the display sequence of the plurality of target media files according to the similarity characteristic information. By the technical scheme, the use preference of users in different countries to the media files is considered, and the target media files are not sequenced according to a random sequence, so that the display sequence of the target media files is more in line with the expectation of the target user, the experience of the target user is improved, and the reasonability of the display sequence of the target media files is improved.

Description

Media file display method, device, medium and electronic equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method, an apparatus, a medium, and an electronic device for displaying a media file.
Background
The media files may include audio, Video, etc. files, where the audio files include, for example, Music, songs, and the Video files include, for example, short videos, Music Videos (MVs).
With the increasing popularization of terminal devices, terminal devices such as smart phones and tablet computers are used more and more widely, and users can listen to music, watch videos and the like through the terminal devices. Due to the fact that the number of the media files is large, when the terminal displays the media files such as music and videos to a user, the media files are displayed in any sequence, and user experience is directly affected. In the related art, a plurality of media files are usually displayed in a random order, and the display order is not reasonable enough and the user experience is not good.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a method for displaying a media file, the method including: determining a plurality of target media files to be displayed to a target user and a country corresponding to each target media file; determining the country of the target user; acquiring similarity characteristic information corresponding to each target media file, wherein the similarity characteristic information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files; and determining the display sequence of the target media files according to the similarity characteristic information.
In a second aspect, the present disclosure provides an apparatus for displaying a media file, the apparatus comprising: the system comprises a first determination module, a second determination module and a display module, wherein the first determination module is configured to be used for determining a plurality of target media files to be displayed for a target user and a country corresponding to each target media file; a second determination module configured to determine a country in which the target user is located; the acquisition module is configured to acquire similarity feature information corresponding to each target media file, wherein the similarity feature information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files; a third determining module configured to determine a display order of the plurality of target media files according to the similarity characteristic information.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method provided by the first aspect of the present disclosure.
In a fourth aspect, the present disclosure provides an electronic device comprising: a storage device having a computer program stored thereon; processing means for executing the computer program in the storage means to implement the steps of the method provided by the first aspect of the present disclosure.
According to the technical scheme, the target media file is a media file to be displayed to a target user, and the similarity characteristic information corresponding to the target media file can be used for representing the use preference similarity of the user of the country where the target user is located and the user of the country corresponding to the target media file to the media file. The target user may prefer to select a target media file with high corresponding similarity characteristic information, and therefore, when determining the presentation order of a plurality of target media files, the target media file with high corresponding similarity characteristic information may be ranked before the target media file with low corresponding similarity characteristic information. Therefore, when a plurality of target media files are displayed for a user, the using preferences of the users in different countries to the media files are considered, the user can browse the target media files which are preferred to be selected by the user at first, the target media files are not sequenced according to a random sequence, the display sequence of the target media files is more consistent with the expectation of the target user, the experience of the target user is improved, and the reasonability of the display sequence of the target media files is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart illustrating a presentation method of a media file according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of obtaining target usage preference information according to an example embodiment.
Fig. 3 is a flow diagram illustrating a method for iteratively updating usage preference information for respective target countries based on tuples and objective functions in accordance with an exemplary embodiment.
FIG. 4 is a block diagram illustrating a presentation device of media files according to an exemplary embodiment.
Fig. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
An application scenario of the present disclosure is first introduced. In an application scenario of the present disclosure, different countries may have media files with the same name, for example, country a and country B both have a media file named "XX", and when a user searches for the media file named "XX", the present disclosure may determine a presentation order of the media file named "XX" in country a and the media file named "XX" in country B according to usage preferences of the users in different countries for the media files.
Of course, the application scenario of the present disclosure is not limited to the above scenario based on user search and the same-name media files. For example, when pushing a user with a media file that may be of interest to the user, such as a newly released plurality of media files, different media files may be from different countries, the presentation order of the plurality of media files pushed to the user may be determined in the present disclosure according to the usage preferences of the user in the different countries for the media files.
Fig. 1 is a flowchart illustrating a presentation method of a media file according to an exemplary embodiment, which may be applied to an electronic device with processing capability, such as a terminal, a server, and the like. As shown in FIG. 1, the method may include S101-S104.
In S101, a plurality of target media files to be presented to a target user and a country corresponding to each target media file are determined.
In one embodiment, the target media file may be a media file associated with the search information determined based on the search information input by the target user. Illustratively, the retrieval information input by the target user may be a name of a media file, such as a song title of a song, and the plurality of target media files may be a plurality of media files that are the same as or similar to the name. In another embodiment, the target media file may be a media file pushed to the user that may be of interest to the user, such as a newly released media file, or a trending media file, etc.
The countries corresponding to different target media files may be different, wherein the country corresponding to the target media file may be the country from which the target media file originates, i.e., the country from which the target media file is first published. For example, if the target media file a is first published in country a, the country corresponding to the target media file a may be country a.
In S102, the country in which the target user is located is determined.
The country of the target user can be determined according to the current position information of the target user.
In S103, similarity characteristic information corresponding to each target media file is acquired.
For example, users in different countries may have different preferences for the genre of music, e.g., users in some countries may prefer to select a soothing type of music, users in some countries may prefer to select a rock type of music, i.e., users in different countries may have different preferences for use of media files. If users in both countries prefer a soothing type of music, it may be characterized that users in both countries prefer a similar usage preference for media files. If a user in one country prefers a soothing type of music and a user in another country prefers a rock type of music, it may be characterized that the users in the two countries have greater preference for use of the media file. It should be noted that the above description of the usage preference of the media file according to the preference of the user for the music type is only an exemplary illustration and does not limit the embodiments of the present disclosure.
The similarity characteristic information corresponding to the target media file can be used for representing the use preference similarity of the media file between the user of the country where the target user is located and the user of the country corresponding to the target media file. Illustratively, the country corresponding to the target media file a is country a, the country corresponding to the target media file B is country B, and the country where the target user is located is country C. If the usage preferences of the user in country C and the user in country a for the media file are similar, the similarity characteristic information corresponding to the target media file a is relatively high. If the usage preferences of the user in country C and the user in country B for the media file are different greatly, the similarity characteristic information corresponding to the target media file B is relatively low.
In S104, the display order of the plurality of target media files is determined according to the similarity characteristic information.
The target user may prefer to select a target media file with high corresponding similarity characteristic information, and therefore, when determining the presentation order of a plurality of target media files, the target media file with high corresponding similarity characteristic information may be ranked before the target media file with low corresponding similarity characteristic information.
Following the above example, the user of country C in which the target user is located may have a preference for media files that is more similar to the user of country a, and thus the target user may have a preference for selecting target media file a, which may be arranged in front of target media file b when determining the presentation order of the plurality of target media files.
According to the technical scheme, the target media file is a media file to be displayed to a target user, and the similarity characteristic information corresponding to the target media file can be used for representing the use preference similarity of the user of the country where the target user is located and the user of the country corresponding to the target media file to the media file. The target user may prefer to select a target media file with high corresponding similarity characteristic information, and therefore, when determining the presentation order of a plurality of target media files, the target media file with high corresponding similarity characteristic information may be ranked before the target media file with low corresponding similarity characteristic information. Therefore, when a plurality of target media files are displayed for a user, the using preferences of the users in different countries to the media files are considered, the user can browse the target media files which are preferred to be selected by the user at first, the target media files are not sequenced according to a random sequence, the display sequence of the target media files is more consistent with the expectation of the target user, the experience of the target user is improved, and the reasonability of the display sequence of the target media files is improved.
In this disclosure, the obtaining of the similarity characteristic information corresponding to each target media file in the step S103 may include:
and for each target media file, determining similarity characteristic information corresponding to the target media file according to a first distance between target use preference information of the user of the country where the target user is located and the target use preference information of the user of the country corresponding to the target media file.
The target usage preference information may be used to characterize usage preferences of users of a country for media files. In one embodiment, the target usage preference information may be represented in the form of a vector, wherein the dimension of the vector may be set in advance, for example, may be set to any dimension between 32-128 dimensions. The first distance between the target usage preference information may be a euclidean distance between vectors.
If the usage preferences of users in two countries for media files are more similar, the target usage preference information corresponding to the two countries is more similar, and the first distance between the target usage preference information is smaller. Illustratively, for example, the reciprocal of the first distance may be used as the similarity characteristic information corresponding to the target media file. The smaller the first distance is, the greater the corresponding similarity characteristic information is, and the higher the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file is.
In the present disclosure, the target usage preference information corresponding to each country may be pre-trained, for example, pre-trained according to the historical usage of the media file by the user in each country. In an alternative embodiment, the similarity characteristic information corresponding to the target media file may be predetermined, for example, predetermined according to target usage preference information corresponding to a trained country, and stored in a terminal or a server, and the terminal or the server may directly obtain the similarity characteristic information. In another alternative embodiment, the similarity characteristic information corresponding to the target media file may also be determined according to the target usage preference information corresponding to the country trained in advance after S102.
Fig. 2 is a flow chart illustrating a method of obtaining target usage preference information according to an example embodiment. As shown in FIG. 2, the method may include S201-S204.
In S201, for each media file, historical usage information of the media file in a plurality of target countries is acquired.
The media files may be selected songs, music clips, etc., and may also include the target media files to be presented to the user. Which countries are used as target countries can be preset, and the target countries can include the country where the target user is located and the country corresponding to the target media file.
The historical usage information of the media file in the target country may be usage information of the media file by the user in the target country within a preset historical period (e.g., the past week, month). Illustratively, the historical usage information may include, for example, a media file usage amount, a media file play completion amount, a number of times the media file was used as a background media file. The usage amount of the media file may include the number of times the media file is played, the number of times the media file is searched, and the like. The media file play completion amount may refer to the number of times the media file is completed to be played. The number of times a media file is used as a background media file may refer to the number of times the media file is set by a user as a mobile phone ring tone, short video background music, etc.
In S202, the positive example country and the negative example country of the media file are respectively determined according to the historical usage information of the media file in each target country.
The positive case country may be a target country that satisfies the preset usage condition of the media file, and the negative case country may be a target country that does not satisfy the preset usage condition of the media file. Wherein the preset use condition may include at least one of the following: the usage amount of the media file is larger than a preset usage amount threshold value; the playing completion amount of the media file is larger than a preset playing amount threshold value; the number of times the media file is used as a background media file is greater than a preset number threshold. The preset usage threshold, the preset playing amount threshold and the preset number threshold can be preset, and values of the thresholds are not specifically limited in the disclosure. Moreover, the preset use conditions may be the same or different for different media files, and the disclosure is not limited in particular.
The preset usage condition may include one or more of the above conditions, and when a plurality of the above conditions are included, when the regular country is determined, the target country may be the regular country as the media file if the target country simultaneously satisfies the plurality of conditions, or may be the regular country as the media file if the target country satisfies one of the plurality of conditions. In determining the negative example country, the target country may be taken as the negative example country of the media file if none of the target countries satisfies the plurality of conditions.
In addition, when determining the negative example country of the media file, in addition to considering whether the target country meets the preset use condition of the media file, the overall use condition of the target country for the media file, that is, the total amount of use of the media file by the users in the country, can be considered. If the target country does not satisfy the preset use condition of the media file and the total amount of the media file used by the users of the target country is relatively large, the target country can be taken as a negative example country. The reason is mainly that if the total amount of use of the media file by the user of the target country is large, the probability of the target country being a positive example country is large, and the probability of the target country being a negative example country is small, and in order to balance the probabilities of the target country being the positive example country and the negative example country, the target country may be the negative example country.
For example, for the media file C, country a and country C both satisfy the preset usage condition of the media file C, and country B does not satisfy the preset usage condition of the media file C, then country a and country C may be taken as the positive example country of the media file C, and country B may be taken as the negative example country of the media file C.
In S203, at least one tuple corresponding to the media file is established. Wherein each tuple can include a plurality of positive example countries of the media file and at least one negative example country of the media file.
The present disclosure is not particularly limited with respect to the number of positive and negative example countries in the tuple.
In S204, the usage preference information of each target country is iteratively updated according to the tuple and the objective function to obtain the target usage preference information.
After at least one tuple corresponding to each media file is established for each media file, the use preference information of each target country can be iteratively updated according to the established tuples and the target function, so as to obtain the target use preference information corresponding to each target country. In the present disclosure, each tuple may be used to iteratively update the usage preference information of the country involved in the tuple, and the iterative update process is a process of continuously optimizing the usage preference information. With the increase of the number of times of iterative updating, the use preference information is continuously optimized, so that the finally obtained target use preference information is more accurate, and the use preference condition of the user in the target country to the media file can be reflected better.
Each target country may have its own initial usage preference information, which may be preset, for example, expressed in a vector form. The initial usage preference information of each target country may be the same or different, and the present disclosure is not particularly limited.
The above exemplary embodiment of iteratively updating the usage preference information of each target country according to the tuple and the objective function in S204 may be as shown in fig. 3, including S301 to S306.
In S301, one of the multi-tuples that has not been traversed is obtained as a target multi-tuple, and a target parameter corresponding to the target multi-tuple is determined according to the current usage preference information and the target function of the country to which the target multi-tuple relates.
The target tuple may be any one of the non-traversed tuples. Illustratively, in an alternative embodiment of the present disclosure, the tuple includes two positive example countries and one negative example country. The step S301 may include:
determining a second distance between the current use preference information of two regular countries in the target multi-tuple and a third distance between the current use preference information of one regular country in the target multi-tuple and the current use preference information of a negative regular country in the target multi-tuple; and calculating the target parameter according to the second distance, the third distance and the target function. Wherein the usage preference information may be represented in the form of vectors, and the second distance and the third distance may be euclidean distances between the vectors.
By way of example, the objective function may be:
Y=D1-min(β,D2)
where Y represents the target parameter, D1 represents the second distance, D2 represents the third distance, and β represents the preset distance threshold.
Following the above example, country A and country C may be the positive example countries of media file C, and country B may be the negative example countries of media file C. One of the multi-element groups corresponding to the media file C may be (country a, country C, country B). For example, using the tuple as the target tuple, a second distance between the current usage preference information of country a and the current usage preference information of country C and a third distance between the current usage preference information of country a and the current usage preference information of country B can be calculated. And then, inputting the second distance and the third distance into an objective function to obtain corresponding objective parameters.
In S302, it is determined whether the target parameter satisfies a preset update condition. If yes, executing S303; in the case of non-satisfaction, S304 is executed.
For the regular countries of a media file, which all satisfy the preset usage condition of the media file, the usage preference for the media file is similar, so the second distance should be small enough. And the usage preference for the media file is different between the positive and negative example countries, the third distance described above should be sufficiently large. In this way, the objective of iterative optimization can be translated into minimizing the target parameters.
The preset updating condition may be that the target parameter is greater than a preset value, and if the target parameter is greater than the preset value, it may be characterized that the target parameter satisfies the preset updating condition. If the target parameter is less than or equal to the preset value, the target parameter can be represented not to meet the preset updating condition.
In S303, the current usage preference information of the country to which the target tuple relates is adjusted.
Under the condition that the target parameter meets the preset updating condition, the current use preference information of the country related to the target tuple can be adjusted according to the difference value between the target parameter and the preset value, for example, a gradient descent method can be adopted for adjustment, so that the current use preference information of the country can better reflect the use preference of users of the country on the media files.
In S304, the current usage preference information of the country to which the target tuple relates is kept unchanged.
When the target parameter does not satisfy the preset update condition, the current usage preference information of the country related to the target multi-component group may not be updated.
In S305, it is determined whether there is a tuple that has not been traversed. If so, returning to S301; in the absence, S306 is executed.
In S306, the current usage preference information of the target country is taken as the target usage preference information of the target country.
In the case where there are tuples that have not been traversed, S301 may be re-executed. In the present disclosure, each tuple may be used to iteratively update the usage preference information of the country to which the tuple relates, and the larger the number of tuples is, the more times the usage preference information is iteratively updated is, the more accurate the finally obtained target usage preference information is. When all the tuples have been traversed, i.e. the iterative update of the usage preference information of the country is completed, the current usage preference information may be used as the target usage preference information of the target country.
Through the technical scheme, the multi-tuple corresponding to each media file can be established for each media file, and each multi-tuple can comprise a plurality of positive example countries and at least one negative example country. According to the multiple groups and the objective function, the objective use preference information corresponding to each country can be trained by iteratively updating the use preference information of the country. As the use preference information is updated iteratively more times, the finally obtained target use preference information is more accurate and can reflect the use preference condition of the user in the target country to the media file more.
When the method for displaying the media file provided by the present disclosure is applied to a terminal, the method may further include:
and displaying the plurality of target media files according to the display sequence.
The terminal may be a terminal device used by a target user, and may be a device such as a smart phone, a tablet computer, a personal computer, and the like. After the terminal determines the display sequence of the plurality of media files, the terminal can display the plurality of target media files according to the display sequence, so that a user can browse the target media files which are preferably selected by the user.
When the method for displaying a media file provided by the present disclosure is applied to a server, the method may further include:
and sending the determined result of the display sequence to the terminal so that the terminal displays the plurality of target media files according to the display sequence.
After determining the display sequence of the plurality of target media files, the server can send the determination result of the display sequence to the terminal used by the target user. And after receiving the determination result of the display sequence, the terminal can display a plurality of target media files according to the display sequence.
Based on the same inventive concept, the present disclosure also provides a presentation apparatus of a media file, and fig. 4 is a block diagram illustrating a presentation apparatus of a media file according to an exemplary embodiment. As shown in fig. 4, the apparatus 400 may include:
a first determining module 401, configured to determine a plurality of target media files to be presented to a target user and a country corresponding to each of the target media files;
a second determining module 402 configured to determine a country in which the target user is located;
an obtaining module 403, configured to obtain similarity feature information corresponding to each target media file, where the similarity feature information is used to characterize similarity of usage preferences of the media files between a user in a country where the target user is located and a user in a country corresponding to the target media file;
a third determining module 404 configured to determine a presentation order of the plurality of target media files according to the similarity characteristic information.
According to the technical scheme, the target media file is a media file to be displayed to a target user, and the similarity characteristic information corresponding to the target media file can be used for representing the use preference similarity of the user of the country where the target user is located and the user of the country corresponding to the target media file to the media file. The target user may prefer to select a target media file with high corresponding similarity characteristic information, and therefore, when determining the presentation order of a plurality of target media files, the target media file with high corresponding similarity characteristic information may be ranked before the target media file with low corresponding similarity characteristic information. Therefore, when a plurality of target media files are displayed for a user, the using preferences of the users in different countries to the media files are considered, the user can browse the target media files which are preferred to be selected by the user at first, the target media files are not sequenced according to a random sequence, the display sequence of the target media files is more consistent with the expectation of the target user, the experience of the target user is improved, and the reasonability of the display sequence of the target media files is improved.
Optionally, the obtaining module includes: and the determining sub-module is configured to determine, for each target media file, similarity feature information corresponding to the target media file according to a first distance between target usage preference information of the user of the country where the target user is located on the media file and target usage preference information of the user of the country corresponding to the target media file on the media file.
Optionally, the apparatus 400 may further include: a presentation module configured to present the plurality of target media files in the presentation order; or, the sending module is configured to send the determination result of the presentation order to a terminal, so that the terminal presents the target media files according to the presentation order.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
Referring now to FIG. 5, a block diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining a plurality of target media files to be displayed to a target user and a country corresponding to each target media file; determining the country of the target user; acquiring similarity characteristic information corresponding to each target media file, wherein the similarity characteristic information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files; and determining the display sequence of the target media files according to the similarity characteristic information.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module does not in some cases constitute a limitation of the module itself, for example, the first determining module may also be described as a "target media file determining module".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Example 1 provides a method of presenting a media file, the method comprising: determining a plurality of target media files to be displayed to a target user and a country corresponding to each target media file; determining the country of the target user; acquiring similarity characteristic information corresponding to each target media file, wherein the similarity characteristic information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files; and determining the display sequence of the target media files according to the similarity characteristic information.
Example 2 provides the method of example 1, and the obtaining similarity characteristic information corresponding to each of the target media files includes: and for each target media file, determining similarity characteristic information corresponding to the target media file according to a first distance between target use preference information of the user of the country where the target user is located and the target use preference information of the user of the country corresponding to the target media file.
Example 3 provides the method of example 2, the target usage preference information being obtained by: acquiring historical use information of each media file in a plurality of target countries; respectively determining a positive example country and a negative example country of the media file according to the historical use information of the media file in each target country, wherein the positive example country is a target country meeting the preset use condition of the media file, and the negative example country is a target country not meeting the preset use condition of the media file; establishing at least one tuple corresponding to the media file, wherein each tuple comprises a plurality of positive example countries of the media file and at least one negative example country of the media file; and according to the multi-element group and the target function, performing iterative updating on the use preference information of each target country to obtain the target use preference information.
Example 4 provides the method of example 3, the preset use condition including at least one of: the usage amount of the media file is larger than a preset usage amount threshold value; the playing completion amount of the media file is larger than a preset playing amount threshold value; the number of times the media file is used as a background media file is greater than a preset number threshold.
Example 5 provides the method of example 3, each of the target countries having respective initial usage preference information, in accordance with one or more embodiments of the present disclosure; the iteratively updating the use preference information of each target country according to the tuple and the target function to obtain the target use preference information includes: acquiring one of the multi-tuples from the non-traversed multi-tuples as a target multi-tuple, and determining a target parameter corresponding to the target multi-tuple according to the current use preference information of the country related to the target multi-tuple and the target function; under the condition that the target parameters meet preset updating conditions, adjusting the current use preference information of the countries related to the target multi-component group; under the condition that the target parameter does not meet the preset updating condition, keeping the current use preference information of the country related to the target multi-element group unchanged; under the condition that the non-traversed tuples exist, re-executing the step of acquiring one tuple from the non-traversed tuples as a target tuple, and determining a target parameter corresponding to the target tuple according to the current use preference information of the country related to the target tuple and the target function; and under the condition that all the tuples are traversed, taking the current use preference information of the target country as the target use preference information of the target country.
Example 6 provides the method of example 5, the tuple comprising two positive example countries and one negative example country, according to one or more embodiments of the present disclosure; the determining the target parameter corresponding to the target tuple according to the current usage preference information of the country related to the target tuple and the target function includes: determining a second distance between the current use preference information of two regular countries in the target multi-tuple and a third distance between the current use preference information of one regular country in the target multi-tuple and the current use preference information of a negative regular country in the target multi-tuple; and calculating the target parameter according to the second distance, the third distance and the target function.
Example 7 provides the method of example 6, the objective function being:
Y=D1-min(a,D2)
wherein Y represents the target parameter, D1 represents the second distance, D2 represents the third distance, and a represents a preset distance threshold.
Example 8 provides the method of any one of examples 1 to 7, further comprising, in accordance with one or more embodiments of the present disclosure: displaying the plurality of target media files according to the display sequence; or sending the determined result of the display sequence to a terminal so that the terminal displays the target media files according to the display sequence.
Example 9 provides, in accordance with one or more embodiments of the present disclosure, an apparatus for presentation of a media file, the apparatus comprising: the system comprises a first determination module, a second determination module and a display module, wherein the first determination module is configured to be used for determining a plurality of target media files to be displayed for a target user and a country corresponding to each target media file; a second determination module configured to determine a country in which the target user is located; the acquisition module is configured to acquire similarity feature information corresponding to each target media file, wherein the similarity feature information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files; a third determining module configured to determine a display order of the plurality of target media files according to the similarity characteristic information.
Example 10 provides a computer readable medium having stored thereon a computer program that, when executed by a processing apparatus, performs the steps of the method of any one of examples 1 and 8 of the present disclosure.
Example 11 provides, in accordance with one or more embodiments of the present disclosure, an electronic device, comprising: a storage device having a computer program stored thereon; processing means for executing said computer program in said storage means to carry out the steps of the method of any one of examples 1 to 8.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. 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.

Claims (11)

1. A method for presenting a media file, the method comprising:
determining a plurality of target media files to be displayed to a target user and a country corresponding to each target media file;
determining the country of the target user;
acquiring similarity characteristic information corresponding to each target media file, wherein the similarity characteristic information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files;
and determining the display sequence of the target media files according to the similarity characteristic information.
2. The method according to claim 1, wherein the obtaining of the similarity characteristic information corresponding to each of the target media files comprises:
and for each target media file, determining similarity characteristic information corresponding to the target media file according to a first distance between target use preference information of the user of the country where the target user is located and the target use preference information of the user of the country corresponding to the target media file.
3. The method of claim 2, wherein the target usage preference information is obtained by:
acquiring historical use information of each media file in a plurality of target countries; respectively determining a positive example country and a negative example country of the media file according to the historical use information of the media file in each target country, wherein the positive example country is a target country meeting the preset use condition of the media file, and the negative example country is a target country not meeting the preset use condition of the media file; establishing at least one tuple corresponding to the media file, wherein each tuple comprises a plurality of positive example countries of the media file and at least one negative example country of the media file;
and according to the multi-element group and the target function, performing iterative updating on the use preference information of each target country to obtain the target use preference information.
4. The method of claim 3, wherein the preset use condition comprises at least one of:
the usage amount of the media file is larger than a preset usage amount threshold value; the playing completion amount of the media file is larger than a preset playing amount threshold value; the number of times the media file is used as a background media file is greater than a preset number threshold.
5. The method of claim 3, wherein each of the target countries has respective initial usage preference information;
the iteratively updating the use preference information of each target country according to the tuple and the target function to obtain the target use preference information includes:
acquiring one of the multi-tuples from the non-traversed multi-tuples as a target multi-tuple, and determining a target parameter corresponding to the target multi-tuple according to the current use preference information of the country related to the target multi-tuple and the target function;
under the condition that the target parameters meet preset updating conditions, adjusting the current use preference information of the countries related to the target multi-component group; under the condition that the target parameter does not meet the preset updating condition, keeping the current use preference information of the country related to the target multi-element group unchanged;
under the condition that the non-traversed tuples exist, re-executing the step of acquiring one tuple from the non-traversed tuples as a target tuple, and determining a target parameter corresponding to the target tuple according to the current use preference information of the country related to the target tuple and the target function;
and under the condition that all the tuples are traversed, taking the current use preference information of the target country as the target use preference information of the target country.
6. The method of claim 5, wherein the tuple comprises two positive example countries and one negative example country;
the determining the target parameter corresponding to the target tuple according to the current usage preference information of the country related to the target tuple and the target function includes:
determining a second distance between the current use preference information of two regular countries in the target multi-tuple and a third distance between the current use preference information of one regular country in the target multi-tuple and the current use preference information of a negative regular country in the target multi-tuple;
and calculating the target parameter according to the second distance, the third distance and the target function.
7. The method of claim 6, wherein the objective function is:
Y=D1-min(a,D2)
wherein Y represents the target parameter, D1 represents the second distance, D2 represents the third distance, and a represents a preset distance threshold.
8. The method according to any one of claims 1-7, further comprising:
displaying the plurality of target media files according to the display sequence; or,
and sending the determined result of the display sequence to a terminal so that the terminal displays the target media files according to the display sequence.
9. An apparatus for presenting media files, the apparatus comprising:
the system comprises a first determination module, a second determination module and a display module, wherein the first determination module is configured to be used for determining a plurality of target media files to be displayed for a target user and a country corresponding to each target media file;
a second determination module configured to determine a country in which the target user is located;
the acquisition module is configured to acquire similarity feature information corresponding to each target media file, wherein the similarity feature information is used for representing the similarity of the use preference of the user of the country where the target user is located and the user of the country corresponding to the target media file for the media files;
a third determining module configured to determine a display order of the plurality of target media files according to the similarity characteristic information.
10. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 8.
11. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 8.
CN202010633845.XA 2020-07-02 2020-07-02 Media file display method and device, media and electronic equipment Active CN111782831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010633845.XA CN111782831B (en) 2020-07-02 2020-07-02 Media file display method and device, media and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010633845.XA CN111782831B (en) 2020-07-02 2020-07-02 Media file display method and device, media and electronic equipment

Publications (2)

Publication Number Publication Date
CN111782831A true CN111782831A (en) 2020-10-16
CN111782831B CN111782831B (en) 2024-08-09

Family

ID=72759669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010633845.XA Active CN111782831B (en) 2020-07-02 2020-07-02 Media file display method and device, media and electronic equipment

Country Status (1)

Country Link
CN (1) CN111782831B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153292A1 (en) * 2008-12-11 2010-06-17 Microsoft Corporation Making Friend and Location Recommendations Based on Location Similarities
US20140279202A1 (en) * 2013-03-15 2014-09-18 Sears Brands, L.L.C. Recommendations Based Upon Explicit User Similarity
CN105843865A (en) * 2016-03-17 2016-08-10 北京小米移动软件有限公司 Media file playing method and device
CN109241441A (en) * 2018-09-30 2019-01-18 北京达佳互联信息技术有限公司 Content recommendation method, device, electronic equipment and storage medium
CN110941739A (en) * 2018-09-22 2020-03-31 北京微播视界科技有限公司 Media file recommendation method and device, media file server and storage medium
CN111191055A (en) * 2020-01-02 2020-05-22 广州虎牙科技有限公司 Multimedia data processing method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153292A1 (en) * 2008-12-11 2010-06-17 Microsoft Corporation Making Friend and Location Recommendations Based on Location Similarities
US20140279202A1 (en) * 2013-03-15 2014-09-18 Sears Brands, L.L.C. Recommendations Based Upon Explicit User Similarity
CN105843865A (en) * 2016-03-17 2016-08-10 北京小米移动软件有限公司 Media file playing method and device
CN110941739A (en) * 2018-09-22 2020-03-31 北京微播视界科技有限公司 Media file recommendation method and device, media file server and storage medium
CN109241441A (en) * 2018-09-30 2019-01-18 北京达佳互联信息技术有限公司 Content recommendation method, device, electronic equipment and storage medium
CN111191055A (en) * 2020-01-02 2020-05-22 广州虎牙科技有限公司 Multimedia data processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111782831B (en) 2024-08-09

Similar Documents

Publication Publication Date Title
US20220394340A1 (en) Video recommendation method and apparatus, electronic device, and computer-readable medium
CN111414498B (en) Multimedia information recommendation method and device and electronic equipment
CN111368185B (en) Data display method and device, storage medium and electronic equipment
CN111414543B (en) Method, device, electronic equipment and medium for generating comment information sequence
CN110516159B (en) Information recommendation method and device, electronic equipment and storage medium
CN110634047A (en) Method and device for recommending house resources, electronic equipment and storage medium
CN110674400B (en) Sorting method, sorting device, electronic equipment and computer-readable storage medium
CN114443897B (en) Video recommendation method and device, electronic equipment and storage medium
CN111324700A (en) Resource recall method and device, electronic equipment and computer-readable storage medium
CN111444356A (en) Search-based recommendation method and device
CN111291258A (en) Recommendation method and device for searching hot words, electronic equipment and readable medium
CN110619095A (en) Sorting method and device
CN111274819A (en) Resource acquisition method and device
CN111209432A (en) Information acquisition method and device, electronic equipment and computer readable medium
CN113934938A (en) Information display method and device, readable medium and electronic equipment
CN111597439A (en) Information processing method and device and electronic equipment
CN111737571A (en) Searching method and device and electronic equipment
CN111797353A (en) Information pushing method and device and electronic equipment
CN111782831B (en) Media file display method and device, media and electronic equipment
CN111782895B (en) Retrieval processing method and device, readable medium and electronic equipment
CN112669816B (en) Model training method, voice recognition method, device, medium and equipment
CN109284350B (en) Method and device for updating search content, storage medium and electronic equipment
CN113626715A (en) Query result display method, device, medium and electronic equipment
CN111783440A (en) Intention recognition method and device, readable medium and electronic equipment
CN111368204A (en) Content pushing method and device, electronic equipment and computer readable medium

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
GR01 Patent grant
GR01 Patent grant