CN110460885B - Multimedia file playing method and device, server and client equipment - Google Patents
Multimedia file playing method and device, server and client equipment Download PDFInfo
- Publication number
- CN110460885B CN110460885B CN201910830411.6A CN201910830411A CN110460885B CN 110460885 B CN110460885 B CN 110460885B CN 201910830411 A CN201910830411 A CN 201910830411A CN 110460885 B CN110460885 B CN 110460885B
- Authority
- CN
- China
- Prior art keywords
- playing
- target
- mode
- duration
- multimedia file
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 92
- 238000013139 quantization Methods 0.000 claims description 52
- 238000004891 communication Methods 0.000 claims description 34
- 238000004364 calculation method Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 12
- 230000000694 effects Effects 0.000 abstract description 9
- 230000008569 process Effects 0.000 description 12
- 239000012634 fragment Substances 0.000 description 11
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
- H04N21/26241—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the time of distribution, e.g. the best time of the day for inserting an advertisement or airing a children program
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/2668—Creating a channel for a dedicated end-user group, e.g. insertion of targeted commercials based on end-user profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
- H04N21/44222—Analytics of user selections, e.g. selection of programs or purchase activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/466—Learning process for intelligent management, e.g. learning user preferences for recommending movies
- H04N21/4667—Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/466—Learning process for intelligent management, e.g. learning user preferences for recommending movies
- H04N21/4668—Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/812—Monomedia components thereof involving advertisement data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a multimedia file playing method, a multimedia file playing device, a server and client equipment. Receiving a playing request sent by client equipment, wherein the playing request carries a file identifier of a multimedia file to be played and a target playing mode selected by a user; the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes; determining a target advertisement time length according to an advertisement time length determining mode corresponding to the target playing mode; and feeding back the target advertisement with the duration conforming to the target advertisement duration and the multimedia file corresponding to the file identifier to the client device so as to enable the client device to play the target advertisement and the multimedia file. The method and the device can solve the problem that the acceptance degree of the advertisement duration of the user is not matched with the feedback advertisement duration, so that the advertisement putting effect of the client device and the user experience can be improved.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a multimedia file playing method, a multimedia file playing device, a server and client equipment.
Background
In the field of internet technology, it is a common means to deliver advertisements during the process of playing multimedia files by a client device. In this process, the advertisements to be delivered at the client device are determined by the server to which the client device corresponds.
In the prior art, the process of playing a multimedia file includes: after receiving a playing instruction for playing a multimedia file, the client device sends a multimedia file playing request carrying the multimedia file to the server, and then the server feeds back a predetermined advertisement and the multimedia file corresponding to the file identifier to the client device, so that the client device plays the advertisement and the multimedia file.
However, the inventor finds that the prior art has at least the following problems in the process of implementing the invention:
when any multimedia file playing request is received, the server directly feeds back a preset advertisement to the client device, so that the receiving degree of the advertisement duration by the user is possibly not matched with the duration of the fed-back advertisement, and the advertisement putting effect and the user experience are influenced.
Disclosure of Invention
The embodiment of the invention aims to provide a multimedia file playing method, a multimedia file playing device, a server and client equipment, and aims to solve the problem that the acceptance degree of a user on advertisement duration is not matched with the duration of a fed-back advertisement in the prior art, so that the advertisement putting effect of the client equipment and the user experience are improved. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a multimedia file playing method, which is applied to a server, and the method includes:
receiving a playing request sent by client equipment, wherein the playing request carries a file identifier of a multimedia file to be played and a target playing mode selected by a user; the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes;
determining a target advertisement duration according to an advertisement duration determining mode corresponding to the target playing mode;
feeding back a target advertisement with the duration conforming to the target advertisement duration and a multimedia file corresponding to the file identification to the client device so as to enable the client device to play the target advertisement and the multimedia file.
Optionally, the plurality of predetermined play modes include: the method comprises the following steps of firstly, playing in a first playing mode with the advertisement duration being a preset duration and automatically determining a second playing mode with the advertisement duration;
determining the target advertisement duration according to the advertisement duration determining mode corresponding to the target playing mode comprises the following steps:
when the target playing mode is the first playing mode, determining the preset time length as a target advertisement time length;
when the target playing mode is the second playing mode, obtaining reference information, and determining the target advertisement duration based on the reference information; the reference information is: information that affects the user's acceptance of the length of the advertisement.
Optionally, the step of determining a target advertisement duration based on the reference information includes:
determining a quantization value corresponding to the reference information by using a quantization mode corresponding to the reference information;
and calculating the target advertisement time length by using a preset time length calculation formula according to the calculated quantization value.
Optionally, the obtained reference information is one, and the predetermined time period calculation formula is:
T=Tmax×R;
wherein T is the target advertisement duration, TmaxAnd R is a quantization value corresponding to the reference information.
Optionally, the obtained reference information is multiple, and the predetermined time period calculation formula is:
wherein T is the target advertisement duration, TmaxThe maximum value corresponding to the target advertisement duration is obtained; riThe quantized value corresponding to the ith reference information is n not less than 2; w is aiIs RiAnd corresponding preset weight.
Optionally, the reference information includes: one or more of current time, popularity information of the multimedia file and duration information of the multimedia file;
wherein the popularity information is: information characterizing the popularity of a multimedia file by a user.
In a second aspect, an embodiment of the present invention provides a multimedia file playing method, which is applied to a client device, and the method includes:
acquiring a playing instruction for playing the multimedia file; the playing instruction carries a file identifier of a multimedia file to be played;
determining a target playing mode corresponding to the playing instruction, wherein the target playing mode is one of a plurality of preset playing modes selected by a user, and different preset playing modes correspond to different advertisement duration determining modes;
sending a playing request carrying the target playing mode and the file identification to a server, so that the server determines a target advertisement duration according to an advertisement duration determining mode corresponding to the target playing mode, and feeds back a target advertisement with a duration according with the target advertisement duration and a multimedia file corresponding to the file identification;
and when the multimedia file and the target advertisement fed back by the server are received, playing the multimedia file and the target advertisement.
Optionally, the plurality of predetermined play modes include: the method comprises the following steps of (1) a first playing mode with the advertisement duration being a preset duration and a second playing mode with the advertisement duration automatically calculated; the first playing mode corresponds to a playing instruction sent by a clicking mode; the second play mode corresponds to a play instruction issued by the long press mode.
In a third aspect, an embodiment of the present invention provides a multimedia file playing apparatus, which is applied to a server, and the apparatus includes:
the system comprises a receiving module, a playing module and a playing module, wherein the receiving module is used for receiving a playing request sent by client equipment, and the playing request carries a file identifier of a multimedia file to be played and a target playing mode selected by a user; the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes;
the determining module is used for determining the target advertisement duration according to the advertisement duration determining mode corresponding to the target playing mode;
and the feedback module is used for feeding back the target advertisement with the duration conforming to the target advertisement duration and the multimedia file corresponding to the file identifier to the client equipment so as to enable the client equipment to play the target advertisement and the multimedia file.
Optionally, the plurality of predetermined play modes include: the method comprises the following steps of firstly, playing in a first playing mode with the advertisement duration being a preset duration and automatically determining a second playing mode with the advertisement duration;
the determining module comprises a first determining submodule or a second determining submodule;
the first determining submodule is configured to determine the predetermined duration as a target advertisement duration when the target play mode is the first play mode;
the second determining submodule is configured to obtain reference information when the target play mode is the second play mode, and determine a target advertisement duration based on the reference information; the reference information is: information that affects the user's acceptance of the length of the advertisement.
Optionally, the second determining sub-module determines the target advertisement duration based on the reference information, including:
determining a quantization value corresponding to the reference information by using a quantization mode corresponding to the reference information;
and calculating the target advertisement time length by using a preset time length calculation formula according to the calculated quantization value.
Optionally, the reference information obtained by the second determining submodule is one, and the predetermined time period calculation formula is as follows:
T=Tmax×R;
wherein T is the target advertisement duration, TmaxIs the maximum value corresponding to the target advertisement duration, and R is the reference information correspondenceThe quantized value of (a).
Optionally, the reference information obtained by the second determining submodule is multiple, and the predetermined time period calculation formula is:
wherein T is the target advertisement duration, TmaxThe maximum value corresponding to the target advertisement duration is obtained; riThe quantized value corresponding to the ith reference information is n not less than 2; w is aiIs RiAnd corresponding preset weight.
Optionally, the reference information comprises one or more of the following information;
the current time, the popularity information of the multimedia file and the duration information of the multimedia file;
wherein the popularity information is: information characterizing the popularity of a multimedia file by a user.
In a fourth aspect, an embodiment of the present invention provides a multimedia file playing apparatus, which is applied to a client device, and the apparatus includes:
the obtaining module is used for obtaining a playing instruction for playing the multimedia file; the playing instruction carries a file identifier of a multimedia file to be played;
a play mode determining module, configured to determine a target play mode corresponding to the play instruction, where the target play mode is one of multiple predetermined play modes selected by a user, and different predetermined play modes correspond to different advertisement duration determining manners;
a sending module, configured to send a play request carrying the target play mode and the file identifier to a server, so that the server determines a target advertisement duration according to an advertisement duration determination manner corresponding to the target play mode, and feeds back a target advertisement having a duration that corresponds to the target advertisement duration and a multimedia file corresponding to the file identifier;
and the playing module is used for playing the multimedia file and the target advertisement when receiving the multimedia file and the target advertisement fed back by the server.
Optionally, the plurality of predetermined play modes include: the method comprises the following steps of (1) a first playing mode with the advertisement duration being a preset duration and a second playing mode with the advertisement duration automatically calculated; the first playing mode corresponds to a playing instruction sent by a clicking mode; the second play mode corresponds to a play instruction issued by the long press mode.
In a fifth aspect, an embodiment of the present invention provides a server, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor for implementing the video playback method of any one of the preceding claims when executing the program stored in the memory.
In a sixth aspect, an embodiment of the present invention provides a client device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any video playing method when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any one of the above-mentioned multimedia file playing methods.
In another aspect of the present invention, there is also provided a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the above multimedia file playing methods.
In the multimedia file playing method provided by the embodiment of the invention, the playing request sent by the client device carries the target playing mode selected by the user, the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes. When the user selects a preset playing mode, the mode of determining the advertising time length in the mode approved by the user is explained. Furthermore, the target advertisement duration determined according to the advertisement duration determining mode is easier to accept for users. Therefore, the method and the device can solve the problem that the acceptance degree of the user to the advertisement time length is not matched with the fed-back advertisement time length in the prior art, and therefore the advertisement putting effect of the client device and the user use experience are improved. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a multimedia file playing method applied to a server according to an embodiment of the present invention;
fig. 2 is a flowchart of a multimedia file playing method applied to a client device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a multimedia file playing apparatus applied to a server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a multimedia file playing apparatus applied to a client device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a client device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to solve the problem that the acceptance degree of the advertisement duration by the user is not matched with the feedback advertisement duration in the prior art, the embodiment of the invention provides a multimedia file playing method, a multimedia file playing device, a server and client equipment. Here, the multimedia file may include: pictures, audio-visual, and text, etc.
In the embodiment of the invention, the multimedia file playing method comprises the following steps: the method is applied to a server and a client device. The execution main body of the multimedia file playing method applied to the server is a multimedia file playing device applied to the server; the execution main body of the multimedia file playing method applied to the client equipment is a multimedia file playing device applied to the client equipment. It can be understood that both of the above-mentioned multimedia file playing devices are software functional modules.
First, a multimedia file playing method applied to a server according to an embodiment of the present invention will be described in detail. As shown in fig. 1, the method for playing a multimedia file applied to a server according to an embodiment of the present invention may include the following steps:
s101: receiving a playing request sent by client equipment, wherein the playing request carries a file identifier of a multimedia file to be played and a target playing mode selected by a user; the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement time length determining modes.
It is understood that the file identifier of the multimedia file to be played and the target play mode selected by the user may be two request parameters in the play request sent by the client device. The play request sent by the client device to the server may be in various forms. For example, in one implementation, the client device may send a play request to the server through a URL (Uniform Resource Locator); in the URL sent to the server by the client device, a field for indicating a file identifier of the multimedia file and a field for indicating a target play mode may be set; in this way, the server can obtain the file identifier of the multimedia file to be played and the target play mode selected by the user from the received URL.
For example, assume that the play request sent by the client device is a URL (Uniform Resource Locator), which is www.abc.comid ═ 022& mode ═ 1; com is a website domain name of a multimedia content provider; id is a field for indicating the file identifier of the multimedia file, and id 022 represents the file identifier of the multimedia file to be played and is 022; mode is a field for indicating a target play mode, and mode 1 represents that the target play mode selected by the user is mode 1. It can be understood that, in practical applications, the URL sent by the client device may further include other fields, and the content indicated by the other fields is not related to the scheme of the present invention, and therefore, the details are not described herein.
It should be noted that the specific form of the play request sent by the client device to the server is not limited to the above list, and any form of the play request sent by the client device to the server may be used in the multimedia file playing method provided in the embodiment of the present invention.
It can be understood that, in the multiple predetermined play modes, different predetermined play modes correspond to different advertisement duration determination modes, so that the user selects a desired target play mode, that is, selects an advertisement duration determination mode that the user can accept.
In addition, in the embodiment of the present invention, a plurality of predetermined play modes may exist, and a plurality of different predetermined play modes may be preset according to different advertisement duration determination modes. Illustratively, the plurality of predetermined play modes may include: the system comprises a first playing mode and a second playing mode, wherein the advertising time length is a preset time length, and the second playing mode automatically determines the advertising time length. It is understood that, when the first play mode selected by the user is the target play mode, then the user is more receptive to playing the advertisement for a predetermined time; when the second play mode selected by the user is the target play mode, then the user is more receptive to the automatically determined length of time of the advertisement. For clarity of the scheme and clarity of layout, the advertisement duration determination manner of the first play mode and the second play mode will be exemplarily described in S102.
S102: and determining the target advertisement time length according to the advertisement time length determining mode corresponding to the target playing mode.
When the target playing mode is the first playing mode, the predetermined time length can be determined as the target advertisement time length. For example, assuming that the predetermined time period is 60 seconds, the target advertisement time period is 60 seconds when the target play mode is the first play mode. In addition, the preset time length can be various, and when the target playing mode is the first playing mode, one preset time length can be randomly selected, so that the advertisement with the corresponding time length can be played. For example, it is assumed that the predetermined time period includes a predetermined time period of 15 seconds, a predetermined time period of 30 seconds, a predetermined time period of 60 seconds, and a predetermined time period of 80 seconds. When the target playing mode is the first playing mode and the randomly selected predetermined time is 80 seconds, the target advertisement time is 80 seconds.
When the target play mode is the second play mode, the determining of the advertisement duration corresponding to the second play mode may include: acquiring reference information, and determining the target advertisement duration based on the reference information; the reference information is: information that affects the user's acceptance of the length of the advertisement.
In practical applications, there may be many kinds of information that affect the acceptance degree of the advertisement duration by the user, and therefore, there may be many kinds of reference information in the embodiment of the present invention. For example, the reference information may include one or more of the following information: the current time, the popularity information of the multimedia files and the duration information of the multimedia files; wherein the popularity information is: information characterizing the popularity of a multimedia file by a user.
It will be appreciated that when the reference information includes a wide variety, any of which may be used to determine the targeted advertising time period. For example, it is assumed that the optional reference information includes a current time, popularity information of the multimedia file, and duration information of the multimedia file. If the multimedia file is a video-audio file, the target advertisement duration can be determined according to three reference information, namely the current time, the popularity information of the video-audio file and the duration information of the video-audio file. And if the multimedia file is a text file, the target advertisement duration can be determined according to two reference information, namely the current time and the popularity information of the text file.
It should be noted that the types of the reference information shown here are only examples, and should not be construed as limiting the present invention, and any information that can affect the acceptance of the advertisement duration by the user may be used as the reference information in the present invention.
And, there are various specific implementation manners for determining the target advertisement duration based on the reference information. For example, in a first implementation manner, when the obtained reference information is one type, the step of determining the target advertisement duration based on the reference information may include:
and calculating the advertisement time length corresponding to the value of the obtained reference message by using a linear interpolation method according to the corresponding relation between the preset advertisement time lengths and the value of the reference information, and taking the calculated advertisement time length as the target advertisement time length.
In a second implementation manner, when the obtained reference information is multiple, the step of determining the target advertisement duration based on the reference information may include:
aiming at each piece of reference information, calculating the advertisement duration corresponding to the value of the obtained reference information by utilizing a linear interpolation method according to the corresponding relation between a plurality of preset advertisement durations and the value of the reference information;
calculating the average value of the advertisement time lengths obtained by calculation, and taking the average value as the target advertisement time length; or, the maximum value of the calculated advertisement time lengths is used as the target advertisement time length.
In the above two implementation manners, for each reference information, a list may be formed according to a corresponding relationship between a preset advertisement duration and a value of the reference information. In the list, each value of the reference information corresponds to an advertisement duration. When the reference information is obtained and the value of the reference information is determined, the advertisement duration corresponding to the value can be searched from the list. When there is no advertisement duration corresponding to the value, two values closest to the value can be found from the list, one is greater than the value and the other is less than the value; then, by using a linear interpolation method, the advertisement duration corresponding to the value can be calculated.
In a third implementation manner, the step of determining the target advertisement duration based on the reference information may include:
determining a quantization value corresponding to the reference information by using a quantization mode corresponding to the reference information;
and calculating the target advertisement time length by using a preset time length calculation formula according to the calculated quantization value.
In this implementation, when the obtained reference information is one, the predetermined time length calculation formula may be:
T=Tmax×R;
wherein T is the target advertisement duration, TmaxAnd R is a quantization value corresponding to the reference information.
When the reference information is obtained in a plurality of types, the predetermined time period calculation formula may be:
wherein T is the target advertisement duration, TmaxThe maximum value corresponding to the target advertisement duration is set; riThe quantized value corresponding to the ith reference information is n not less than 2; w is aiIs RiAnd corresponding preset weight.
In addition, when the calculated target advertisement time length is too long and exceeds the preset threshold time length, such as 5 minutes, the preset multiplication factor can be used for returning the target advertisement time length to the normal value. For example, setting the multiplication factor to 0.2, when the target advertisement duration exceeds 2 minutes, the multiplication factor is used to multiply the target advertisement duration to obtain a reasonable target advertisement duration. Or, when the target advertisement duration calculated by the duration calculation formula is too long and exceeds the preset threshold duration, the maximum value of the target advertisement duration can be directly determined as the target advertisement duration.
Also, when the calculated target advertisement duration is not an integer number of seconds or minutes, it may be rounded to an integer number of seconds or minutes.
It is understood that different reference information corresponds to different quantization modes. For clarity of the scheme and clarity of layout, the quantization modes corresponding to different reference information are exemplarily described later.
S103: and feeding back the target advertisement with the duration conforming to the target advertisement duration and the multimedia file corresponding to the file identifier to the client device so as to enable the client device to play the target advertisement and the multimedia file.
Here, the target advertisement with the duration according with the target advertisement duration is fed back to the client device, and may specifically be the target advertisement with the duration equal to the target advertisement duration is fed back to the client device; alternatively, targeted advertisements having durations close to but less than the targeted advertisement duration are fed back to the client device. Here, a smaller threshold may be preset, and when the target advertisement is fed back to the client device, the difference between the target advertisement duration and the duration of the fed-back target advertisement is made smaller than the threshold. In this way, feedback to the client device of a targeted advertisement having a duration that is close to but less than the targeted advertisement duration may be achieved. For example, assuming that the threshold is 3 seconds and the target advertisement duration is 60 seconds, the duration of the target advertisement fed back to the client device is at least greater than 57 seconds, and of course, the duration of the target advertisement fed back to the client device is also equal to or less than 60 seconds.
In the multimedia file playing method applied to the server provided by the embodiment of the invention, the playing request received by the server carries the target playing mode selected by the user, the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes. When the user selects a preset playing mode, the mode of determining the advertising time length in the mode approved by the user is explained. Furthermore, the target advertisement duration determined according to the advertisement duration determining mode is easier to accept for users. Therefore, the scheme can solve the problem that the acceptance degree of the user to the advertisement time length is not matched with the fed-back advertisement time length in the prior art, and therefore the advertisement putting effect of the client device and the user use experience can be improved.
For clarity of the scheme and clarity of layout, the following describes an exemplary quantization manner corresponding to different reference information.
For example, when the reference information is the current time, the quantization mode corresponding to the current time may include:
determining a target time period to which the current time belongs, wherein the target time period is one of a plurality of preset time periods;
determining a quantization value corresponding to the target time period; wherein, different preset time periods can correspond to different quantization values;
for example, assume that the plurality of preset time periods include: a night time period of 22:59-5:00, a morning time period of 5:01-9:00, a daytime time period of 9:01-18:00, and a golden time period of 18:01-23: 00. Wherein, the quantization value corresponding to the night time period may be 1; the corresponding quantization value for the morning time period may be 0.5; the quantized value corresponding to the daytime period may be 1.5; the gold time period may correspond to a quantized value of 0.2.
It can be understood that in the early time period and the golden time period, the user is not easy to accept to play the advertisement for a long time, so the quantization value is low; in the night time period and the day time period, the time of the user is relatively abundant, and the user can easily accept the advertisement played for a long time, so the quantization value is relatively high.
When the reference information is popularity information of a multimedia file, the popularity information may include various kinds. For example, the popularity information of the multimedia file may include the number of times the multimedia file is viewed or the user rating of the multimedia file, etc.
When the reference information is the number of times the multimedia file is viewed, the quantization mode corresponding to the number of times the multimedia file is viewed may include:
determining the number of times the multimedia file is viewed;
determining a target frequency range to which the frequency belongs; the target frequency range is one of a plurality of preset frequency ranges;
determining a quantization value corresponding to the target frequency range; wherein, different preset times ranges can correspond to different quantization values.
For example, assume that the predetermined number of times ranges include: range 1 from 0 to 1000 times; 1001 st range 2 of 5000 times; 5001-10000 times range 3; range 4 of 10001-; 50001-range 5 to infinity; wherein, the quantization value corresponding to the range 1 may be 0.2; the quantization value for range 2 may be 0.4; the quantized value for range 3 may be 0.6; the quantized value for range 4 may be 0.8; the range 5 may correspond to a quantization value of 1.
It is understood that the more multimedia files are viewed, the higher the popularity. Therefore, when the user watches the multimedia file, the multimedia file is easy to accept even if the advertising time is long. Therefore, when the multimedia file is viewed for a large number of times, the corresponding quantization value is relatively large. In addition, multimedia files that are viewed a small number of times may be undesirable multimedia files or multimedia files that have just come online. At this time, if the advertisement duration is long, the user may not easily accept the advertisement, and therefore, when the multimedia file is viewed a small number of times, the corresponding quantization value is relatively small.
In addition, when the reference information is the user score of the multimedia file, the quantization mode corresponding to the user score of the multimedia file may include:
and dividing the user score of the multimedia file by the full score corresponding to the user score to obtain a calculation result, and taking the calculation result as a quantitative value.
It will be appreciated that the higher the user score of a multimedia file, the greater the quantization value calculated and the greater the popularity of the multimedia file.
In addition, when the multimedia file is a video/audio file, the video/audio file also has duration information, so when the reference information is the duration information of the video/audio file, the quantization mode corresponding to the duration information of the video/audio file may include:
determining the file duration of the video and audio files;
determining a target length range to which the file duration belongs; the target length range is one of a plurality of preset length ranges;
determining a quantization value corresponding to the target length range; wherein, different preset length ranges may correspond to different quantization values.
For example, assume that the plurality of predetermined length ranges include: range 1 from 0 to 5 minutes; range 2 of 5 minutes to half an hour; range 3 of half an hour to 2 hours; range 4 from 2 hours to 5 hours; wherein, the quantization value corresponding to the range 1 may be 0.2; the quantization value for range 2 may be 0.3; the quantized value for range 3 may be 0.8; the range 4 may correspond to a quantization value of 1.2.
It can be understood that the shorter the file duration of the video/audio file is, the shorter the advertisement duration that can be accepted by the user is, and therefore, the shorter the file duration of the multimedia file is, the smaller the quantization value is, and the longer the file duration of the multimedia file is, the larger the quantization value is.
It should be noted that the preset quantization manners corresponding to the various reference information are only used as examples, and should not be construed as limitations of the present invention.
In addition, by using the multimedia file playing method provided by the embodiment of the invention, the advertisement putting effect and the user experience of the client equipment can be improved, and the flow can be reduced for the user. At this time, the user who does not need to reduce the traffic can select the first play mode; while users who need to reduce traffic may select the second play mode.
Specifically, in the first play mode, the predetermined time period for playing the advertisement may be set to a shorter time period, such as 20 seconds. Thus, a user who does not need to reduce traffic only has to watch 20 seconds of advertisements. In the second play mode, the length of time that the advertisement needs to be viewed by the user needing to be traffic-reduced is determined by the server based on one or more reference information. For example, assume that the server determines the target advertisement duration based on three reference information, i.e., the current time, the popularity information of the multimedia file, and the duration information of the multimedia file. Then, when the user needing to reduce traffic volume selects the second play mode, the time length of the advertisement needing to be watched is determined by the time period of the current time, the popularity of the multimedia file and the time length of the multimedia file. It can be understood that, under the setting of the exempt traffic, the more popular the multimedia file to be played by the user is, the longer the duration of the multimedia file is, the longer the advertisement time the user needs to watch. In addition, in the above embodiment, when the current time belongs to the golden time period, the quantized value corresponding to the golden time period is small, which is based on the consideration that the user is not easy to accept to play the advertisement for a long time in the golden time period. However, under the setting of the exemption flow rate, the user trades the exemption of the flow rate by watching the advertisement, and at the moment, the quantized value corresponding to the golden time period can be properly increased and even higher than the quantized values corresponding to other time periods.
It can be understood that the example of reducing traffic to the user by using the multimedia file playing method provided by the embodiment of the present invention is an application scenario applicable to a plurality of predetermined playing modes including a first playing mode and a second playing mode. In the embodiment of the invention, a plurality of preset playing modes can be flexibly set, so that the multimedia file playing method provided by the embodiment of the invention is suitable for more application scenes.
It should be noted that the server in the above embodiments is a definition of functionality. In practical applications, the functions implemented by the server may be cooperatively implemented by various background control systems, operator proxy servers, and CDN (Content Delivery Network) servers, which are opposite to the client device. For clarity of the scheme and clear layout, after a multimedia file playing method applied to the client device is described later, an actual implementation process of reducing and avoiding traffic by using the multimedia file playing method provided by the embodiment of the invention is described.
Corresponding to the multimedia file playing method applied to the server, the embodiment of the invention also provides a multimedia file playing method applied to the client device. As shown in fig. 2, the method for playing a multimedia file applied to a client device according to an embodiment of the present invention may include the following steps:
s201: and obtaining a playing instruction for playing the multimedia file.
Wherein, the playing instruction carries the file identification of the multimedia file to be played; the playback instruction may be a playback instruction given by a user of the client device.
S202: and determining a target playing mode corresponding to the playing instruction, wherein the target playing mode is one of a plurality of preset playing modes selected by a user, and different preset playing modes correspond to different advertisement duration determining modes.
In the embodiment of the invention, a plurality of preset playing modes can be flexibly set. For example, the plurality of predetermined play modes may include: the system comprises a first playing mode and a second playing mode, wherein the advertising time length is preset time length, and the second playing mode automatically calculates the advertising time length. The first playing mode and the second playing mode respectively correspond to the first playing mode and the second playing mode in the multimedia file playing method applied to the server.
In addition, there are various ways in which the user selects the target play mode. For example, a user selects a first play mode by clicking a play key, and selects a second play mode by long-pressing the play key; or, it is reasonable to provide different buttons or the like for different play modes on the software interface of the client device.
S203: and sending a playing request carrying a target playing mode and a file identifier to a server so that the server determines the target advertisement time length according to an advertisement time length determining mode corresponding to the target playing mode and feeds back the target advertisement with the time length conforming to the target advertisement time length and the multimedia file corresponding to the file identifier.
It can be understood that the client device sends the play request carrying the target play mode and the file identifier to the server, and may specifically send the play request containing two parameters, namely the target play mode and the file identifier, to the server. Also, the play request sent by the client device to the server may exist in a number of different forms. For example, in one implementation, the client device may send a play request to the server through a URL (Uniform Resource Locator); in the URL sent to the server by the client device, a field for indicating a file identifier of the multimedia file and a field for indicating a target play mode may be set; in this way, the server can obtain the file identifier of the multimedia file to be played and the target play mode selected by the user from the received URL.
For example, assume that the play request sent by the client device is a URL (Uniform Resource Locator), which is www.abc.comid ═ 022& mode ═ 1; com is a website domain name of a multimedia content provider; id is a field for indicating the file identifier of the multimedia file, and id 022 represents the file identifier of the multimedia file to be played and is 022; mode is a field for indicating a target play mode, and mode 1 represents that the target play mode selected by the user is mode 1. It can be understood that, in practical applications, the URL sent by the client device to the server may further include other fields, and the content indicated by the other fields is not related to the scheme of the present invention, and therefore, the details are not described here.
It should be noted that the specific form of the play request sent by the client device to the server is not limited to the above list, and any form of the play request sent by the client device to the server may be used in the multimedia file playing method provided in the embodiment of the present invention.
In addition, the specific implementation of the server determining the target advertisement duration according to the advertisement duration determining manner corresponding to the target playing mode has already been described in detail in the multimedia file playing method applied to the server, and is not repeated here.
S204: and when the multimedia file and the target advertisement fed back by the server are received, playing the multimedia file and the target advertisement.
In practical applications, there are various specific implementation manners for the client device to play the multimedia file and the target advertisement. For example, in one implementation, the client device may play the targeted advertisement first, and then play the multimedia file.
In another implementation, the targeted advertisement may comprise a plurality of targeted advertisements, such that the client device may play one or more of the plurality of targeted advertisements prior to playing the multimedia file; the rest target advertisements can be played according to the preset advertisement playing time point in the process of playing the multimedia file.
In another implementation, the user may also autonomously select when to play the targeted advertisement. For example, the target advertisement is played within a certain time period after the multimedia file is played, and so on.
In addition, when the multimedia file is detected to be a certain episode in the series of contents, all the received target advertisements or one or more of the received target advertisements can be played every time the next episode is automatically played.
It should be noted that the specific implementation of the client device playing the multimedia file and playing the target advertisement is shown as an example, and should not be construed as limiting the present invention.
In the multimedia file playing method applied to the client device, the playing request sent to the server carries a target playing mode selected by the user, the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes. When the user selects a preset playing mode, the mode of determining the advertising time length in the mode approved by the user is explained. Therefore, after the server determines the target advertisement duration and feeds back the target advertisement according to the advertisement duration determining mode corresponding to the target playing mode, the duration of the target advertisement is easier to accept than that of the user. Therefore, the scheme can solve the problem that the acceptance degree of the user to the advertisement time length is not matched with the fed-back advertisement time length in the prior art, and therefore the advertisement putting effect of the client device and the user use experience can be improved.
Optionally, in an implementation manner, the first play mode corresponds to a play instruction issued by a click manner; the second play mode corresponds to a play instruction issued by the long press mode.
It can be understood that, when a user sends a play instruction in a click manner at the client device, the target play mode carried in the play request sent by the client device to the server is the first play mode; at this time, the target advertisement fed back by the server is an advertisement of a predetermined time length. When a user sends a playing instruction in a long-press mode at the client device, a target playing mode carried in a playing request sent to the server by the client device is a second playing mode; at this time, the duration of the target advertisement fed back by the server is in accordance with the duration of the target advertisement determined by the server based on the reference information.
In addition, when the multimedia file playing method applied to the client device provided by the embodiment of the present invention is applied to a scenario of exemption traffic, for a multimedia file supporting the exemption traffic, the multimedia file supporting the exemption traffic may be prompted to a user in the client device. For example, it is reasonable to provide an icon representing the reduced traffic on the multimedia file that supports the reduced traffic, or to prompt the user for "the multimedia file supports reduced traffic, long press of the play key can reduce traffic", etc. When the user presses the play key for a long time, the second play mode for automatically calculating the advertisement duration is selected; when the user does not press the play key for a long time but clicks the play key, the first play mode with the advertisement duration being the preset duration is selected.
For clarity of the scheme and clarity of the layout, an actual implementation process for implementing traffic exemption by using the multimedia file playing method provided by the embodiment of the invention is described below. Specifically, the method comprises the following steps:
when receiving a play instruction of pressing a play key for a long time, the client device sends a play request carrying a second play mode and a file identifier of a multimedia file to be played to a background play control system;
the broadcasting control system determines the target advertisement duration based on the reference information;
the broadcasting control system requests an advertisement identification of a target advertisement with the duration conforming to the target advertisement duration from a background advertisement system, and determines a fragment file identification of each fragment file corresponding to the file identification;
the broadcast control system feeds back an advertisement identifier and a fragment file identifier to the client equipment;
the client equipment requests a background scheduling system for a target advertisement corresponding to the advertisement identifier and a fragment file corresponding to the fragment file identifier in sequence, and when the target advertisement and the fragment file identifier are requested, the advertisement identifier and the fragment file identifier are sent to the scheduling system, and a second play mode is also sent to the scheduling system so as to inform the scheduling system that the current request is a request for reducing or avoiding flow;
correspondingly, the scheduling system feeds back the CDN server address where the target advertisement is located and the CDN server address where the fragment file is located to the client device, and feeds back the address of an operator-specified proxy server for reducing and avoiding flow to the client device;
after receiving the CDN server address and the proxy server address of the target advertisement and the fragment file, the client device sequentially sends the CDN server addresses to the proxy server;
and the proxy server sequentially acquires the target advertisement and the fragment file from each CDN server and feeds back the target advertisement and the fragment file to the client equipment.
In the above, the actual implementation process of reducing and avoiding the flow is realized by using the multimedia file playing method provided by the embodiment of the invention. It can be understood that the scheme of traffic reduction and exemption implemented by the multimedia file playing method provided by the embodiment of the invention not only reduces traffic for users, but also can promote advertising revenue for multimedia service operators.
Corresponding to the multimedia file playing method applied to the server, the embodiment of the invention also provides a multimedia file playing device applied to the server. As shown in fig. 3, the apparatus may include:
a receiving module 301, configured to receive a play request sent by a client device, where the play request carries a file identifier of a multimedia file to be played and a target play mode selected by a user; the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes;
a determining module 302, configured to determine a target advertisement duration according to an advertisement duration determining manner corresponding to the target playing mode;
a feedback module 303, configured to feed back, to the client device, a target advertisement with a duration that matches the target advertisement duration and a multimedia file corresponding to the file identifier, so that the client device plays the target advertisement and the multimedia file.
Optionally, the plurality of predetermined play modes include: the method comprises the following steps of firstly, playing in a first playing mode with the advertisement duration being a preset duration and automatically determining a second playing mode with the advertisement duration;
the determining module 302 may include a first determining sub-module or a second determining sub-module;
the first determining submodule is configured to determine the predetermined duration as a target advertisement duration when the target play mode is the first play mode;
the second determining submodule is configured to obtain reference information when the target play mode is the second play mode, and determine a target advertisement duration based on the reference information; the reference information is: information that affects the user's acceptance of the length of the advertisement.
Optionally, the determining the target advertisement duration by the second determining sub-module based on the reference information may include:
determining a quantization value corresponding to the reference information by using a quantization mode corresponding to the reference information;
and calculating the target advertisement time length by using a preset time length calculation formula according to the calculated quantization value.
Optionally, the reference information obtained by the second determining submodule is one, and the predetermined time period calculation formula is as follows:
T=Tmax×R;
wherein T is the target advertisement duration, TmaxAnd R is a quantization value corresponding to the reference information.
Optionally, the reference information obtained by the second determining submodule is multiple, and the predetermined time period calculation formula is:
wherein T is the target advertisement duration, TmaxThe maximum value corresponding to the target advertisement duration is set; riThe quantized value corresponding to the ith reference information is n not less than 2; w is aiIs RiAnd corresponding preset weight.
Optionally, the reference information comprises one or more of the following information;
the current time, the popularity information of the multimedia file and the duration information of the multimedia file;
wherein the popularity information is: information characterizing the popularity of a multimedia file by a user.
In the multimedia file playing device provided by the embodiment of the present invention, the received playing request carries a target playing mode selected by the user, the target playing mode is one of a plurality of predetermined playing modes, and different predetermined playing modes correspond to different advertisement duration determination manners. When the user selects a preset playing mode, the mode of determining the advertising time length in the mode approved by the user is explained. Furthermore, the target advertisement duration determined according to the advertisement duration determining mode is easier to accept for users. Therefore, the scheme can solve the problem that the acceptance degree of the user to the advertisement time length is not matched with the fed-back advertisement time length in the prior art, and therefore the advertisement putting effect of the client device and the user use experience can be improved.
Corresponding to the above-mentioned multimedia file playing method applied to the client device, an embodiment of the present invention further provides a multimedia file playing apparatus, which is applied to the client device, and as shown in fig. 4, the apparatus may include:
an obtaining module 401, configured to obtain a playing instruction for playing a multimedia file; the playing instruction carries a file identifier of a multimedia file to be played;
a play mode determining module 402, configured to determine a target play mode corresponding to the play instruction, where the target play mode is one of multiple predetermined play modes selected by a user, and different predetermined play modes correspond to different advertisement duration determining manners;
a sending module 403, configured to send a play request carrying the target play mode and the file identifier to a server, so that the server determines a target advertisement duration according to an advertisement duration determining manner corresponding to the target play mode, and feeds back a target advertisement having a duration according with the target advertisement duration and a multimedia file corresponding to the file identifier;
a playing module 404, configured to play the multimedia file and the target advertisement when receiving the multimedia file and the target advertisement fed back by the server.
Optionally, the plurality of predetermined play modes include: the method comprises the following steps of (1) a first playing mode with the advertisement duration being a preset duration and a second playing mode with the advertisement duration automatically calculated; the first playing mode corresponds to a playing instruction sent by a clicking mode; the second play mode corresponds to a play instruction issued by the long press mode.
The multimedia file playing device applied to the client device, provided by the embodiment of the invention, carries the target playing mode selected by the user in the playing request sent to the server, wherein the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes. When the user selects a preset playing mode, the mode of determining the advertising time length in the mode approved by the user is explained. Therefore, after the server determines the target advertisement duration and feeds back the target advertisement according to the advertisement duration determining mode corresponding to the target playing mode, the duration of the target advertisement is easier to accept than that of the user. Therefore, the scheme can solve the problem that the acceptance degree of the user to the advertisement time length is not matched with the fed-back advertisement time length in the prior art, and therefore the advertisement putting effect of the client device and the user use experience can be improved.
The embodiment of the present invention further provides a server, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to implement any one of the above-described multimedia file playing methods applied to the server when executing the program stored in the memory 503.
The embodiment of the present invention further provides a client device, as shown in fig. 6, which includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement any one of the above-described methods for playing a multimedia file applied to a client device when executing a program stored in the memory 603.
The communication bus mentioned above may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the server or client device described above and other devices.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, there is also provided a computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to execute the multimedia file playing method applied to a server according to any one of the above embodiments.
In another embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to execute the multimedia file playing method applied to the client device as described in any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the multimedia file playing method applied to a server according to any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for playing a multimedia file applied to a client device as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the server, the client device, the storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (14)
1. A multimedia file playing method is applied to a server, and the method comprises the following steps:
receiving a playing request sent by client equipment, wherein the playing request carries a file identifier of a multimedia file to be played and a target playing mode selected by a user; the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes;
determining a target advertisement duration according to an advertisement duration determining mode corresponding to the target playing mode;
feeding back a target advertisement with the duration conforming to the target advertisement duration and a multimedia file corresponding to the file identification to the client device so that the client device can play the target advertisement and the multimedia file;
the plurality of predetermined play modes include: the method comprises the following steps of firstly, playing in a first playing mode with the advertisement duration being a preset duration and automatically determining a second playing mode with the advertisement duration;
determining the target advertisement duration according to the advertisement duration determining mode corresponding to the target playing mode comprises the following steps:
when the target playing mode is the first playing mode, determining the preset time length as a target advertisement time length;
when the target playing mode is the second playing mode, obtaining reference information, and determining the target advertisement duration based on the reference information; the reference information is: information that affects the user's acceptance of the length of the advertisement.
2. The method of claim 1, wherein the step of determining a target advertisement duration based on the reference information comprises:
determining a quantization value corresponding to the reference information by using a quantization mode corresponding to the reference information;
and calculating the target advertisement time length by using a preset time length calculation formula according to the calculated quantization value.
3. The method according to claim 2, wherein the obtained reference information is one, and the predetermined time period is calculated by the formula:
T=Tmax×R;
wherein T is the target advertisement duration, TmaxAnd R is a quantization value corresponding to the reference information.
4. The method according to claim 2, wherein the reference information is obtained in a plurality of types, and the predetermined period of time is calculated by:
wherein T is the target advertisement duration, TmaxThe maximum value corresponding to the target advertisement duration is obtained; riThe quantized value corresponding to the ith reference information is n not less than 2; w is aiIs RiAnd corresponding preset weight.
5. The method of claim 1, wherein the reference information comprises: one or more of current time, popularity information of the multimedia file and duration information of the multimedia file;
wherein the popularity information is: information characterizing the popularity of a multimedia file by a user.
6. A multimedia file playing method is applied to a client device, and comprises the following steps:
acquiring a playing instruction for playing the multimedia file; the playing instruction carries a file identifier of a multimedia file to be played;
determining a target playing mode corresponding to the playing instruction, wherein the target playing mode is one of a plurality of preset playing modes selected by a user, and different preset playing modes correspond to different advertisement duration determining modes;
sending a playing request carrying the target playing mode and the file identification to a server, so that the server determines a target advertisement duration according to an advertisement duration determining mode corresponding to the target playing mode, and feeds back a target advertisement with a duration according with the target advertisement duration and a multimedia file corresponding to the file identification;
when the multimedia file and the target advertisement fed back by the server are received, playing the multimedia file and the target advertisement;
the plurality of predetermined play modes include: the method comprises the following steps of (1) a first playing mode with the advertisement duration being a preset duration and a second playing mode with the advertisement duration automatically calculated; the first playing mode corresponds to a playing instruction sent by a clicking mode; the second play mode corresponds to a play instruction issued by the long press mode.
7. A multimedia file playing apparatus, applied to a server, the apparatus comprising:
the system comprises a receiving module, a playing module and a playing module, wherein the receiving module is used for receiving a playing request sent by client equipment, and the playing request carries a file identifier of a multimedia file to be played and a target playing mode selected by a user; the target playing mode is one of a plurality of preset playing modes, and different preset playing modes correspond to different advertisement duration determining modes;
the determining module is used for determining the target advertisement duration according to the advertisement duration determining mode corresponding to the target playing mode;
the feedback module is used for feeding back a target advertisement with the duration conforming to the target advertisement duration and a multimedia file corresponding to the file identifier to the client equipment so that the client equipment can play the target advertisement and the multimedia file;
the plurality of predetermined play modes include: the method comprises the following steps of firstly, playing in a first playing mode with the advertisement duration being a preset duration and automatically determining a second playing mode with the advertisement duration;
the determining module comprises a first determining submodule or a second determining submodule;
the first determining submodule is configured to determine the predetermined duration as a target advertisement duration when the target play mode is the first play mode;
the second determining submodule is configured to obtain reference information when the target play mode is the second play mode, and determine a target advertisement duration based on the reference information; the reference information is: information that affects the user's acceptance of the length of the advertisement.
8. The apparatus of claim 7, wherein the second determining sub-module determines a target advertisement duration based on the reference information, comprising:
determining a quantization value corresponding to the reference information by using a quantization mode corresponding to the reference information;
and calculating the target advertisement time length by using a preset time length calculation formula according to the calculated quantization value.
9. The apparatus according to claim 8, wherein the reference information obtained by the second determining submodule is one, and the predetermined period of time is calculated by:
T=Tmax×R;
wherein T is the target advertisement duration, TmaxAnd R is a quantization value corresponding to the reference information.
10. The apparatus according to claim 8, wherein the reference information obtained by the second determining submodule is plural, and the predetermined period calculation formula is:
wherein T is the target advertisement duration, TmaxThe maximum value corresponding to the target advertisement duration is obtained; riThe quantized value corresponding to the ith reference information is n not less than 2; w is aiIs RiAnd corresponding preset weight.
11. The apparatus of claim 7, wherein the reference information comprises one or more of the following information;
the current time, the popularity information of the multimedia file and the duration information of the multimedia file;
wherein the popularity information is: information characterizing the popularity of a multimedia file by a user.
12. A multimedia file playing apparatus, applied to a client device, the apparatus comprising:
the obtaining module is used for obtaining a playing instruction for playing the multimedia file; the playing instruction carries a file identifier of a multimedia file to be played;
a play mode determining module, configured to determine a target play mode corresponding to the play instruction, where the target play mode is one of multiple predetermined play modes selected by a user, and different predetermined play modes correspond to different advertisement duration determining manners;
a sending module, configured to send a play request carrying the target play mode and the file identifier to a server, so that the server determines a target advertisement duration according to an advertisement duration determination manner corresponding to the target play mode, and feeds back a target advertisement having a duration that corresponds to the target advertisement duration and a multimedia file corresponding to the file identifier;
the playing module is used for playing the multimedia file and the target advertisement when receiving the multimedia file and the target advertisement fed back by the server;
the plurality of predetermined play modes include: the method comprises the following steps of (1) a first playing mode with the advertisement duration being a preset duration and a second playing mode with the advertisement duration automatically calculated; the first playing mode corresponds to a playing instruction sent by a clicking mode; the second play mode corresponds to a play instruction issued by the long press mode.
13. A server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
14. The client device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of claim 6 when executing a program stored in the memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910830411.6A CN110460885B (en) | 2019-09-04 | 2019-09-04 | Multimedia file playing method and device, server and client equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910830411.6A CN110460885B (en) | 2019-09-04 | 2019-09-04 | Multimedia file playing method and device, server and client equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110460885A CN110460885A (en) | 2019-11-15 |
| CN110460885B true CN110460885B (en) | 2021-08-27 |
Family
ID=68490517
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910830411.6A Active CN110460885B (en) | 2019-09-04 | 2019-09-04 | Multimedia file playing method and device, server and client equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110460885B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112837088B (en) * | 2021-01-12 | 2023-07-18 | 北京奇艺世纪科技有限公司 | Advertisement putting method, advertisement putting device, advertisement putting medium and electronic equipment |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105828116A (en) * | 2016-04-29 | 2016-08-03 | 乐视控股(北京)有限公司 | Advertisement pushing method and device |
| CN108881968A (en) * | 2017-05-15 | 2018-11-23 | 北京国双科技有限公司 | A kind of network video advertisement put-on method and system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9544647B2 (en) * | 2012-11-21 | 2017-01-10 | Google Technology Holdings LLC | Attention-based advertisement scheduling in time-shifted content |
-
2019
- 2019-09-04 CN CN201910830411.6A patent/CN110460885B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105828116A (en) * | 2016-04-29 | 2016-08-03 | 乐视控股(北京)有限公司 | Advertisement pushing method and device |
| CN108881968A (en) * | 2017-05-15 | 2018-11-23 | 北京国双科技有限公司 | A kind of network video advertisement put-on method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110460885A (en) | 2019-11-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11659054B2 (en) | Media stream including embedded contextual markers | |
| US12047615B2 (en) | Methods and systems for dynamic routing of content using a static playlist manifest | |
| US9003443B2 (en) | Systems, methods and articles to provide content in networked environment | |
| US7971223B2 (en) | Method and system of queued management of multimedia storage | |
| US11812075B2 (en) | Enhanced service compatibility with clients | |
| US9936265B2 (en) | Method, system, and website server for playing website video | |
| US10248378B2 (en) | Dynamically inserting additional content items targeting a variable duration for a real-time content stream | |
| US11106732B2 (en) | Systems and methods for sharing audio feeds | |
| US11563786B2 (en) | Selectively storing identifiers based on media type indicator | |
| US12470759B2 (en) | Methods and systems for redirecting content players | |
| CN110460885B (en) | Multimedia file playing method and device, server and client equipment | |
| US8185435B2 (en) | Methods, systems, and computer program products for facilitating content-based selection of long-tail business models and billing | |
| US12301939B2 (en) | Systems and methods to insert additional content | |
| CN105979380A (en) | Test broadcasting method and device for multimedia contents on demand | |
| WO2016184288A1 (en) | Advertisement putting method, device and system | |
| US20080256176A1 (en) | Internet radio system and the broadcasting method thereof | |
| CN111427914A (en) | Data obtaining method and device | |
| CN119562110A (en) | Video playback method, device, electronic device and storage medium | |
| CN110740342A (en) | Storage medium, streaming media transmission and playing method, and slicing method and device |
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 |