CN111200743A - Media resource playing method and device, storage medium and electronic device - Google Patents

Media resource playing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111200743A
CN111200743A CN201811369250.7A CN201811369250A CN111200743A CN 111200743 A CN111200743 A CN 111200743A CN 201811369250 A CN201811369250 A CN 201811369250A CN 111200743 A CN111200743 A CN 111200743A
Authority
CN
China
Prior art keywords
played
media
target
resources
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811369250.7A
Other languages
Chinese (zh)
Other versions
CN111200743B (en
Inventor
吕建超
耿薇薇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811369250.7A priority Critical patent/CN111200743B/en
Publication of CN111200743A publication Critical patent/CN111200743A/en
Application granted granted Critical
Publication of CN111200743B publication Critical patent/CN111200743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/262Content 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/266Channel 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities

Landscapes

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

Abstract

The invention discloses a method and a device for playing media resources, a storage medium and an electronic device. Wherein, the method comprises the following steps: detecting that a first number of times that media resources to be played in a media resource group are actually played in total in a first time period is less than a first preset number of times, wherein the at least two media resources to be played are preset to be played in total in the first preset number of times in the first time period; acquiring a second preset number according to the first number and the first preset number; and setting the media resources needing to be played additionally in the media resource group to be played for the second predetermined times in total in the second time period. The invention solves the technical problem of low compensation efficiency caused by independently compensating each media resource needing to be compensated and played in the related technology, thereby achieving the technical effect of improving the compensation efficiency of the media resources.

Description

Media resource playing method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for playing media resources, a storage medium, and an electronic apparatus.
Background
In the related art, the amount of compensation in the playing process of a media resource is shown in fig. 1, where resources 1 to 4 (squares) are used as original resources of the same schedule, and each of the resources with the shortage is individually compensated without completing the playing according to a preset schedule (i.e., the shortage), four resources of compensation resources 4 to 7 are sequentially generated, and then the four resources with the shortage are not enough compensated, and it may be necessary to continuously compensate the four resources with the shortage, and generate four resources of compensation resources 8 to 11, respectively, theoretically, more compensation resources may be generated later, which results in generation of a large amount of compensation resources, and it is difficult to trace back the original resources of the compensation resources, and it is troublesome to count.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for playing media resources, a storage medium and an electronic device, which are used for improving the compensation efficiency of the media resources.
According to an aspect of the embodiments of the present invention, there is provided a method for playing a media resource, including: detecting that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first preset number of times, wherein the at least two media resources to be played are preset to be played in total in the first preset number of times in the first time period; acquiring a second preset number according to the first number and the first preset number; and setting the media resources needing to be played additionally in the media resource group to be played for a total increase of the second preset times in a second time period.
According to another aspect of the embodiments of the present invention, there is provided a method for playing a media resource, including: detecting that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first preset number of times, wherein the media resource group comprises at least two media resources to be played, and the at least two media resources to be played are preset to be played in total in the first time period for the first preset number of times; adjusting the first preset times to target preset times according to the first times, wherein the target preset times are smaller than the first preset times; and transferring target account resources corresponding to the played media resources in the media resource group to a target account according to the target preset times, wherein the target account resources correspond to the target preset times.
According to another aspect of the embodiments of the present invention, there is also provided a device for playing a media resource, including: a first detecting unit, configured to detect that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first predetermined number of times, where the at least two media resources to be played are preset to be played in total in the first time period for the first predetermined number of times; a first obtaining unit, configured to obtain a second predetermined number of times according to the first number of times and the first predetermined number of times; and the first setting unit is used for setting the media resources which need to be played in a supplementing way in the media resource group to be played for the second preset times in total in a second time period.
According to another aspect of the embodiments of the present invention, there is also provided a device for playing a media resource, including: a third detecting unit, configured to detect that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first predetermined number of times, where the at least two media resources to be played are preset to be played in total in the first time period for the first predetermined number of times; an adjusting unit, configured to adjust the first predetermined number of times to a target predetermined number of times according to the first number of times, where the target predetermined number of times is smaller than the first predetermined number of times; a transfer unit, configured to transfer, according to the target predetermined times, a target account resource corresponding to a media resource that has been played in the media resource group to a target account, where the target account resource corresponds to the target predetermined times.
According to a further aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to perform the above method when executed.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method by the computer program.
In the embodiment of the present invention, it is detected that a first number of times that media assets to be played in a media asset group are actually played in total in a first time period is less than a first predetermined number of times, where the at least two media assets to be played are preset to be played in total in the first predetermined number of times in the first time period; acquiring a second preset number according to the first number and the first preset number; and setting the media resources needing to be played additionally in the media resource group to be played for the second predetermined times in total in the second time period. The media resources needing to be complemented and played are set with a total playing increasing number by taking a group as a unit, and the technical problem of low complementing efficiency caused by independently complementing each media resource needing to be complemented and played in the related technology is solved, so that the technical effect of improving the complementing efficiency of the media resources is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a diagram illustrating a complementary amount of a media asset according to the related art;
FIG. 2 is a diagram illustrating an application environment of a method for playing a media asset according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating an alternative method for playing a media asset according to an embodiment of the invention;
FIG. 4 is a diagram illustrating an alternative method for playing a media asset according to an embodiment of the invention;
FIG. 5 is a flow chart illustrating an alternative method for playing a media asset according to an embodiment of the invention;
FIG. 6 is a schematic structural diagram of an alternative media asset playback apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram of a playing device of a media asset according to another alternative embodiment of the present invention;
FIG. 8 is a block diagram of a playing device for media assets according to yet another alternative embodiment of the present invention;
FIG. 9 is a block diagram of a playing device for media assets according to yet another alternative embodiment of the present invention;
FIG. 10 is a block diagram of a playing device of a media asset according to yet another alternative embodiment of the present invention;
FIG. 11 is a block diagram of a playing device for media assets according to yet another alternative embodiment of the present invention;
FIG. 12 is a schematic structural diagram of an alternative media asset playback device according to an embodiment of the present invention;
FIG. 13 is a block diagram of a playback device for media assets in accordance with an alternative embodiment of the present invention;
fig. 14 is a block diagram (seven) of a playing apparatus of a media asset according to another alternative embodiment of the present invention;
FIG. 15 is a schematic diagram of an alternative electronic device according to an embodiment of the invention;
fig. 16 is a schematic structural diagram of another alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present invention, a method for playing a media resource is provided. Alternatively, the above-mentioned playing method of the media resource can be applied, but not limited, to the application environment shown in fig. 2. As shown in fig. 2, the playing system 102 of the media resource receives a complementary amount application, wherein the complementary amount application at least includes a first number (e.g., 100) of times and a first predetermined number (e.g., 200) of times that the media resources to be played in the media resource group are actually played in total in a first time period; when the playing system 102 of the media resource detects that the first number of times is less than the first predetermined number of times, a second predetermined number of times (e.g., 200 times) is obtained according to the first number of times and the first predetermined number of times, and the media resources that need to be played in a supplemented manner in the media resource group are set to be played for the second predetermined number of times in a second time period; the playback system 102 of the media asset then returns the augmentation result (the second predetermined number of times) to the user terminal 104 and displays it.
Optionally, in this embodiment, the terminal may include, but is not limited to, at least one of the following: mobile phones, tablet computers, and the like. The playing system of the media resource may include, but is not limited to, at least one of the following: PCs and other devices used for computing services. The above is only an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, as an optional implementation manner, as shown in fig. 3, the method for playing a media resource may include:
s302, detecting that the total number of actually played first times of at least two media resources to be played in a media resource group in a first time period is less than a first preset number of times, wherein the total number of played first preset times of the at least two media resources to be played in the first time period is preset;
s304, acquiring a second preset number according to the first number and the first preset number;
s306, setting the media resources needing to be played in a supplementing way in the media resource group to be played for the second preset times in total in the second time period.
It should be noted that the media resources include, but are not limited to: video, audio, text, and the like. The above is only an example, and the present embodiment is not limited to this.
It should be noted that the first time period and the second time period include, but are not limited to: a whole day, a week, a month, etc. The above is only an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, the media resource group is divided, but not limited to: the type of media asset, the region in which the media asset is played, the playback period of the media asset, etc. The above is only an example, and the present embodiment is not limited to this.
Through the steps S302 to S306, it is detected that a total first number of times that at least two media resources to be played in the media resource group are actually played in a first time period is less than a first predetermined number of times, where the total first predetermined number of times that the at least two media resources to be played are set to be played in the first time period in advance; acquiring a second preset number according to the first number and the first preset number; and setting the media resources needing to be played additionally in the media resource group to be played for the second predetermined times in total in the second time period. That is, the media resources that need to be complemented and played are set with a total number of times of increasing and playing in a group unit, and in the related art, each media resource that needs to be complemented and played is separately complemented, which results in a technical problem of low complementing efficiency, thereby achieving a technical effect of improving the complementing efficiency of the media resources.
In an optional embodiment, before setting the media resources that need to be played in a supplemental manner in the set of media resources to be played increasingly for the second predetermined number of times in total in the second time period, the method further includes:
step S11, a first target media resource is searched in the media resource group, wherein the number of times that the first target media resource is actually played in the first time period is less than the predetermined number of times of the first target media resource, and the first target media resource is regarded as a media resource that needs to be played additionally in the media resource group.
For example, assume that the media resource group includes media resource 1, media resource 2, and media resource 3, where the number of times that media resource 1 is actually played in a day is 10, and the predetermined number of times that media resource 1 is 20; the actual playing frequency of the media resource 2 in one day is 20, and the preset frequency of the media resource 2 is 20; the number of times that the media asset 3 is actually played in a day is 10, and the predetermined number of times that the media asset 3 is played is 10, in this case, the media asset 1 can be regarded as only the media asset that needs to be played in addition in the media asset group.
For another example, assume that the media resource group includes media resource 1, media resource 2, and media resource 3, where the number of times that media resource 1 is actually played in a day is 10, and the predetermined number of times that media resource 1 is 20; the number of times that the media resource 2 is actually played in a day is 20, and the predetermined number of times of the media resource 2 is 30; the number of times that media asset 3 is actually played in a day is 10, and the predetermined number of times that media asset 3 is 10, then in this case, media asset 1 and media asset 2 can be regarded as media assets in the media asset group that need to be played in a complementary manner.
Through the step S11, the media resources meeting the condition are searched in the media resource group to obtain one or more media resources that need to be played in a complementary manner, so as to provide a certain basis for subsequently supplementing the media resources that need to be played in a complementary manner in a group unit.
Wherein the searching for the first target media resource in the media resource group involved in the step S11 includes:
step S12, acquiring at least two media resources in the media resource group, wherein the actual playing times of the media resources are less than the target playing times;
it should be noted that the number of the target playing times is multiple, and each media resource corresponds to one target playing time.
Step S13, packing the at least two media resources to obtain the first target media resource.
Through the steps S12 to S13, the target media resources that need to be supplemented and played can be effectively determined from the media resource group, and the technical effect of the efficiency of supplementing the media resources is further improved.
Optionally, the obtaining a second predetermined number of times according to the first number of times and the first predetermined number of times includes:
step S21, increasing the difference between the first predetermined number of times and the first number of times to obtain a target difference;
step S22, the target difference is set to the second predetermined number of times.
The algorithm for increasing the difference between the first predetermined number of times and the first number of times includes, but is not limited to: and increased in proportion.
For example, assuming that the first predetermined number of times is 100 times, the first number of times is 50 times, and the difference between the first predetermined number of times and the first number of times is 50 times, the second predetermined number of times may be set to 100 times.
For another example, assuming that the first predetermined number of times is 100 times, the first number of times is 50 times, and the difference between the first predetermined number of times and the first number of times is 50 times, the second predetermined number of times may be 200 times.
Optionally, in this embodiment, in consideration of an error between the number of times that the media resource monitored by the third-party device is played and the first number of times monitored by the media side, a difference between the first predetermined number of times and the first number of times is increased during the amount supplementing instead of directly performing the amount supplementing according to the difference between the first predetermined number of times and the first number of times, so as to avoid a problem that the amount supplementing efficiency is low due to the fact that the amount supplementing is continuously required when the amount supplementing is found to be insufficient.
Optionally, increasing the difference between the first predetermined number of times and the first number of times to obtain a target difference includes:
step S31, obtaining a ratio between the first number of times and the total number of times that the media resource to be played in the media resource group monitored by the third-party device is played in the first time period, so as to obtain a first target ratio;
step S32, multiplying the difference between the first predetermined number of times and the first number of times by the first target ratio to obtain the target difference.
Optionally, in this embodiment, the total number of times that the media resources to be played in the set of media resources monitored by the third party device are played in the first time period is generally less than the first predetermined number of times.
Optionally, in this embodiment, when the target difference is not an integer, rounding up may be performed.
For example, if the first predetermined number of times is 200 times, the first number of times is 100 times, and the total number of times that the media resource to be played in the set of media resources monitored by the third-party device is played in the first time period is 50 times, the target difference is 200 times.
For another example, the first predetermined number of times is 200 times, the first number of times is 70 times, and the difference between the first predetermined number of times and the first number of times is 60 times, and the second predetermined number of times may be 152 times.
The number of times of compensation is reduced by increasing the difference between the first predetermined number of times and the first number of times to obtain the target difference through the steps S31 to S32.
In an optional embodiment, after setting the media resources needing to be played in a supplemental manner in the set of media resources to be played additionally for the second predetermined number of times in the second time period, the method further includes the following steps:
step S41, detecting that the total number of times of actually playing the media resources that need to be supplemented and played in the media resource group in the second time period is less than the second predetermined number of times;
step S42, obtaining a third predetermined number of times according to the second number of times and the second predetermined number of times;
step S43, setting the media assets needing secondary supplementary playing in the media assets needing supplementary playing to be played for a third predetermined number of times in total in a third time period.
Optionally, in this embodiment, if it is found that there is a shortage after the first complementary playing, the media resources to be played in the media resource group and the media resources that need to be complemented for playing in the first complementary playing may be complemented as a whole, that is, a third predetermined number of times of increasing playing in total in a third time period is set.
Through the steps from the step S41 to the step S43, the generation of the complementary resources is reduced, so that the original resource tracing of the complementary resources is clearer.
Optionally, before setting the media assets needing to be complementarily played twice in the media assets needing to be complementarily played to be increasingly played for the third predetermined number of times in total in a third time period, the method further includes the following steps:
step S51, a second target media resource is searched for from the media resources that need to be complementarily played, wherein the number of times that the second target media resource is actually played in the second time period is smaller than the predetermined number of times of the second target media resource, and the second target media resource is regarded as a media resource that needs to be secondarily complementarily played in the media resource group.
In this embodiment, if there is a shortage after the second complementary playing, the complementary playing may be performed three times, for example, the following steps may be performed:
step S61, detecting that a third actual number of times that the media resources required to be played in a supplemented manner in the media resource group are played in total in the third time period is less than the third predetermined number of times;
step S62, obtaining a fourth predetermined number of times according to the third actual number of times and the third predetermined number of times;
step S63, setting the media assets needing three times of supplementary playing in the media assets needing supplementary playing to increase the playing of the fourth predetermined times in total in the fourth time period.
And before setting the media assets needing three times of supplementary playing in the media assets needing supplementary playing to be played additionally for the fourth predetermined times in total in the fourth time period, the method further comprises the following steps:
step S71, a third target media resource is searched for from the media resources that need to be complementarily played, wherein the number of times that the third target media resource is actually played in the third time period is smaller than the predetermined number of times of the third target media resource, and the third target media resource is regarded as a media resource that needs to be complementarily played three times in the set of media resources.
The present embodiment will be described below with reference to specific examples.
As shown in fig. 4, resources 1-4 (square) are used as original resources of the same schedule, and are not broadcast (lack) according to the preset schedule, a concept of media resource group is established, and the resources needing to be compensated in the same schedule are packed together to be compensated, so that only one compensation resource is generated each time, and if the compensation is performed for the second time, the original resources 1-4 and the compensation resource 5 are packed together to generate a compensation resource 6, so that the original resource tracing of the compensation resource is very clear, statistics is convenient, the generation of the compensation resource is greatly reduced, and operation monitoring and management are convenient.
According to another aspect of the embodiment of the present invention, a method for playing a media resource is provided. As shown in fig. 5, the method for playing a media resource may include:
s502, detecting that the total number of actually played first times of media resources to be played in a media resource group in a first time period is less than a first preset number of times, wherein the at least two media resources to be played are preset to be played for the total number of the first preset times in the first time period;
s504, adjusting the first preset times to target preset times according to the first times, wherein the target preset times are less than the first preset times;
s506, transferring the target account resources corresponding to the played media resources in the media resource group to the target account according to the target preset times, wherein the target account resources correspond to the target preset times.
It should be noted that the media resources include, but are not limited to: video, audio, text, and the like. The above is only an example, and the present embodiment is not limited to this.
It should be noted that the first time period and the second time period include, but are not limited to: a whole day, a week, a month, etc. The above is only an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, the media resource group is divided, but not limited to: the type of media asset, the region in which the media asset is played, the playback period of the media asset, etc. The above is only an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, the application scenarios of the playing method of the media resource include, but are not limited to: and in the process of playing the media resources, managing account resources corresponding to the media resources in real time. In the application scenario, it is detected that a first number of times that media resources to be played in a media resource group are actually played in total in a first time period is less than a first predetermined number of times, where the at least two media resources to be played are preset to be played in total in the first time period for the first predetermined number of times; adjusting the first preset times to target preset times according to the first times, wherein the target preset times are less than the first preset times; and transferring target account resources corresponding to the played media resources in the media resource group to a target account according to the target preset times, wherein the target account resources correspond to the target preset times. That is, when it is detected that the total number of times that media resources to be played in a media resource group are actually played in a first time period is less than a first predetermined number of times, account resource transfer is performed in real time, so that the actual playing number of times is matched with account resources corresponding to the actual playing number of times, and further, the problem that account resources are inaccurate due to the fact that a predetermined error exists between the actually played amount and the predetermined amount due to the fact that predetermined amount allocation is performed on the account resources in the related art is solved, and the technical effect of improving the management efficiency of the account resources of the media resources is achieved.
In an alternative embodiment, adjusting the first predetermined number of times to a target predetermined number of times based on the first number of times comprises:
step S81, obtaining a second target ratio, where the second target ratio is a ratio between the first predetermined number of times and the first number of times;
step S82, obtaining a number of times to be adjusted, where the number of times to be adjusted is a product of the second target ratio and a total number of times that the media resource to be played in the media resource group monitored by the third-party device is played in the first time period, and the number of times to be adjusted is rounded up;
step S83, subtracting a preset difference from the to-be-adjusted number of times to obtain the target preset number of times, where the preset difference is a difference between the to-be-adjusted number of times and a total number of times that the to-be-played media resource in the media resource group monitored by the third-party device is played in the first time period.
It should be noted that, if a product between the second target ratio and the total number of times that the media resource to be played in the media resource group monitored by the third-party device is played in the first time period is directly an integer, the integer may be used as the number of times to be adjusted, and an operation of rounding up is not required.
For example, if the first predetermined number of times is 200 times, the first number of times is 100 times, and the total number of times that the media resource to be played in the media resource group monitored by the third-party device is played in the first time period is 50 times, the number of times to be adjusted is obtained as 100 times, and the target predetermined number of times is 50 times.
For another example, if the first predetermined number of times is 200 times, the first number of times is 70 times, and the total number of times that the media resource to be played in the set of media resources monitored by the third-party device is played in the first time period is 60 times, the number of times to be adjusted is obtained as 86 times, and the target predetermined number of times is 60 times.
Through the steps S81 to S83, the target preset times are obtained, a certain basis is provided for transferring the target account resources corresponding to the played media resources in the media resource group to the target account according to the target preset times, and therefore the problem that account resources are inaccurate due to the fact that a preset error exists between the actually played amount and the preset amount due to the fact that the preset amount is allocated to the account resources in the related art is solved, and the technical effect of improving the management efficiency of the account resources of the media resources is achieved.
In an optional embodiment, the transferring the target account resources corresponding to the played media resources in the media resource group to the target account according to the target predetermined number of times includes the following steps:
step S91, obtaining the adjusted times of each played media resource according to the target preset times, wherein the sum of the adjusted times of all the played media resources is the target preset times;
step S92, acquiring account resources to be transferred corresponding to each of the played media resources, where the account resources to be transferred corresponding to each of the played media resources is a product of the adjusted number of times of the played media resources and the account resources to be transferred for each playing of the played media resources;
step S93, transferring the account resources to be transferred corresponding to each played media resource to the target account, wherein the sum of the account resources to be transferred corresponding to all the played media resources is the target account resource.
Optionally, in this embodiment, the manner of obtaining the adjusted number of times of each played media resource according to the target predetermined number of times includes, but is not limited to, the following manner:
firstly, distributing the target preset times to the sum of the adjusted times of each played media resource according to a preset proportion;
secondly, distributing the target preset times to the sum of the adjusted times of each played media resource according to an internal competition mechanism;
and thirdly, distributing the target preset times to the sum of the adjusted times of each played media resource according to the internal matching degree.
For example, assuming that the played media resources include media resource 1, media resource 2, and media resource 3, after the predetermined number of times is determined to be 6 times, the media resource 1, the media resource 2, and the media resource 3 may be allocated 2 times respectively in a manner of 1:1: 1.
For another example, assuming that the played media resources include media resource 1, media resource 2, and media resource 3, after the predetermined number of times is determined to be 6, the media resource 1 may be allocated 4 times, the media resource 2 may be allocated 2 times, and the media resource 3 may be allocated 0 times in an internal contention manner.
For another example, assuming that the played media resources include media resource 1, media resource 2, and media resource 3, after the predetermined number of times of the target is determined to be 6 times, the media resource 1 may be allocated 6 times, the media resource 2 may be allocated 0 times, and the media resource 3 may be allocated 0 times in the manner of internal matching degree.
In this way, the target preset times are matched with the sum of the adjusted times of each played media resource.
The present embodiment will be described below with reference to specific examples.
In this example, the main idea of adjusting the first predetermined number of times to the target predetermined number of times based on the first number of times is to split the two processes into an idea of "divide and conquer", thereby simplifying a complicated problem.
The first process is to distribute the monitoring data of the third-party equipment by a preset amount according to the proportion, and carry out rounding-up when distributing (ensuring that the sum of the final distribution is not less than the monitoring amount of the third-party equipment).
The second procedure is to smooth out the amount of the more dispense possible in the first procedure described above. The two separate processes are separated rather than being put together, and the logical branches of the algorithm are more and confusing when the two processes are put together, so that the error rate of the algorithm is higher and the algorithm is more difficult to maintain. And one part of the logic is extracted for balancing the third formula amount, so that code coupling is reduced, the two parts of the logic are clearer, the maintenance is easy, and the algorithm time complexity is optimized.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
According to an aspect of the embodiment of the present invention, a device for playing a media resource in a scene for implementing the method for playing a media resource is provided, and optionally, the embodiment of the present invention may be applied to the hardware environment shown in fig. 2, which is not described herein again. As shown in fig. 6, the apparatus for playing back a media asset comprises:
1) a first detecting unit 62, configured to detect that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first predetermined number of times, where the first number of times that the at least two media resources to be played are set to be played in total in the first time period in advance;
2) a first obtaining unit 64 configured to obtain a second predetermined number of times according to the first number of times and the first predetermined number of times;
3) a first setting unit 66, configured to set the media resources needing to be played supplementarily in the set of media resources to be played increasingly for the second predetermined number of times in total in the second time period.
By the apparatus shown in fig. 6, it is detected that a first number of times that media assets to be played in a media asset group are actually played in total in a first time period is less than a first predetermined number of times, where the at least two media assets to be played are preset to be played in total in the first time period for the first predetermined number of times; acquiring a second preset number according to the first number and the first preset number; and setting the media resources needing to be played additionally in the media resource group to be played for the second predetermined times in total in the second time period. That is, the media resources that need to be complemented and played are set with a total number of times of increasing and playing in a group unit, and in the related art, each media resource that needs to be complemented and played is separately complemented, which results in a technical problem of low complementing efficiency, thereby achieving a technical effect of improving the complementing efficiency of the media resources.
In an alternative implementation manner, fig. 7 is a block diagram (a) of a playing apparatus of a media resource according to another alternative embodiment of the present invention, as shown in fig. 7, the apparatus includes, in addition to the units shown in fig. 6:
1) the first searching unit 72 is configured to search for a first target media resource in the set of media resources, where a number of times that the first target media resource is actually played in the first time period is smaller than a predetermined number of times of the first target media resource, and the first target media resource is regarded as a media resource that needs to be additionally played in the set of media resources.
By the apparatus shown in fig. 7, media resources meeting the conditions are searched in the media resource group to obtain one or more media resources that need to be played in a complementary manner, so as to provide a certain basis for subsequently supplementing the media resources that need to be played in a complementary manner in a group unit.
Wherein the searching for the first target media resource in the media resource group comprises: acquiring at least two media resources of which the actual playing times are less than the target playing times in the media resource group; the at least two media resources are packaged to obtain the first target media resource, so that the target media resource needing to be supplemented and played can be effectively determined from the media resource group, and the technical effect of the supplement efficiency of the media resources is further improved.
It should be noted that the number of the target playing times is multiple, and each media resource corresponds to one target playing time.
In an alternative implementation manner, fig. 8 is a block diagram (ii) of a playing apparatus of a media resource according to another alternative embodiment of the present invention, and as shown in fig. 8, the first obtaining unit 64 includes:
1) a first obtaining module 82, configured to increase a difference between the first predetermined number of times and the first number of times to obtain a target difference;
2) a setting module 84 for setting the target difference value to the second predetermined number of times.
In an alternative implementation manner, fig. 9 is a block diagram (iii) of a playing apparatus of a media resource according to another alternative embodiment of the present invention, and as shown in fig. 9, the first obtaining module 82 includes:
1) a first obtaining submodule 92, configured to obtain a ratio between the first number of times and a total number of times that the media resource to be played in the media resource group monitored by the third-party device is played in the first time period, so as to obtain a first target ratio;
2) the second obtaining sub-module 94 is configured to multiply the difference between the first predetermined number of times and the first number of times by the first target ratio to obtain the target difference.
The number of complements is reduced by increasing the difference between the first predetermined number of times and the first number of times by the apparatus shown in fig. 9 to obtain the target difference.
In an alternative implementation manner, fig. 10 is a block diagram (iv) of a playing apparatus of a media resource according to another alternative embodiment of the present invention, as shown in fig. 10, the apparatus includes, in addition to the units shown in fig. 6:
1) a second detecting unit 102, configured to detect that a second actual number of times that the media resources in the media resource group that need to be played in a supplementing manner are played in total in a second time period is less than a second predetermined number of times after the media resources in the media resource group that need to be played in a supplementing manner are set to be played in total in an increasing manner in the second time period;
2) a second obtaining unit 104, configured to obtain a third predetermined number according to the second actual number and the second predetermined number;
3) a second setting unit 106, configured to set, in the media assets needing to be complementarily played for the second time, the media assets needing to be complementarily played for the third predetermined number of times in total in the third time period.
By the device shown in fig. 10, the generation of the complementary resources is reduced, so that the original resource tracing of the complementary resources is clearer.
In an alternative implementation manner, fig. 11 is a block diagram (five) of a playing apparatus of a media resource according to another alternative embodiment of the present invention, as shown in fig. 11, the apparatus includes, in addition to the units shown in fig. 10:
1) a second searching unit 112, configured to search a second target media resource in the media resource that needs to be complementarily played twice before setting the media resource that needs to be complementarily played twice in the media resource that needs to be complementarily played to be additionally played the third predetermined number of times in a third time period, where an actual number of times that the second target media resource is played in the second time period is smaller than the predetermined number of times of the second target media resource, and the second target media resource is regarded as the media resource that needs to be complementarily played twice in the media resource group.
According to another aspect of the embodiment of the present invention, as shown in fig. 12, the apparatus for playing back a media asset includes:
1) a third detecting unit 122, configured to detect that a first number of times that media resources to be played in a media resource group are actually played in total in a first time period is less than a first predetermined number of times, where the media resource group includes at least two media resources to be played, and the at least two media resources to be played are preset to be played in total in the first time period for the first predetermined number of times;
2) an adjusting unit 124, configured to adjust the first predetermined number of times to a target predetermined number of times according to the first number of times, where the target predetermined number of times is smaller than the first predetermined number of times;
3) a transferring unit 126, configured to transfer, according to the target predetermined times, a target account resource corresponding to a media resource that has been played in the media resource group to a target account, where the target account resource corresponds to the target predetermined times.
In an alternative implementation manner, fig. 13 is a block diagram (six) of a playing apparatus of a media resource according to another alternative embodiment of the present invention, and as shown in fig. 13, the adjusting unit 124 includes:
1) a second obtaining module 132, configured to obtain a second target ratio, where the second target ratio is a ratio between the first predetermined number of times and the first number of times;
2) a third obtaining module 134, configured to obtain a number of times to be adjusted, where the number of times to be adjusted is a product of the second target ratio and a total number of times that the media resource to be played in the media resource group monitored by the third-party device is played in the first time period, and the number of times to be adjusted is rounded up;
3) a fourth obtaining module 136, configured to subtract a preset difference from the to-be-adjusted number of times to obtain the target preset number of times, where the preset difference is a difference between the to-be-adjusted number of times and a total number of times that the to-be-played media resource in the media resource group monitored by the third-party device is played in the first time period.
The device shown in fig. 13 is used to obtain the target predetermined times, and provide a certain basis for transferring the target account resources corresponding to the media resources that have been played in the media resource group to the target account according to the target predetermined times, thereby solving the problem in the related art that account resources are inaccurate due to a predetermined error between the actually played amount and the predetermined amount caused by the predetermined amount allocation of the account resources, and achieving the technical effect of improving the management efficiency of the account resources of the media resources.
In an alternative implementation manner, fig. 14 is a block diagram (seven) of a playing apparatus of a media resource according to another alternative embodiment of the present invention, and as shown in fig. 14, the transferring unit 126 includes:
1) a fifth obtaining module 142, configured to obtain the adjusted times of each played media resource according to the target preset times, where a sum of the adjusted times of all the played media resources is the target preset times;
2) a sixth obtaining module 146, configured to obtain an account resource to be transferred corresponding to each played media resource, where the account resource to be transferred corresponding to each played media resource is a product of the number of times the played media resource is adjusted and an account resource to be transferred for each playing of the played media resource;
3) a transferring module 148, configured to transfer the account resources to be transferred corresponding to each played media resource to the target account, where a sum of the account resources to be transferred corresponding to all the played media resources is the target account resource.
In an exemplary embodiment, the embodiment of the present invention further provides a storage medium, where the storage medium may be a storage medium such as an optical disc, a flash memory, or a magnetic disc, and may be a non-transitory storage medium. The storage medium has stored therein a computer program, wherein the computer program is arranged to execute the steps in any of the embodiments of the method for playing back a media asset described above when running.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s11, detecting that the total number of actually played first times of at least two media resources to be played in a media resource group in a first time period is less than a first preset number of times, wherein the total number of played first times of the at least two media resources to be played is preset to be the first preset number of times in the first time period;
s12, acquiring a second preset number according to the first number and the first preset number;
and S13, setting the media resources needing to be played additionally in the media resource group to be played for a second predetermined number of times in a second time period.
Optionally, in this embodiment, the storage medium may be further configured to store a computer program for executing the following steps:
s21, detecting that the total number of actually played first times of at least two media resources to be played in a media resource group in a first time period is less than a first preset number of times, wherein the total number of played first times of the at least two media resources to be played is preset to be the first preset number of times in the first time period;
s22, adjusting the first preset times to target preset times according to the first times, wherein the target preset times are less than the first preset times;
s23, transferring the target account resources corresponding to the played media resources in the media resource group to the target account according to the target preset times, wherein the target account resources correspond to the target preset times.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
An electronic device for implementing the method for playing back a media asset according to an embodiment of the present invention is further provided, as shown in fig. 15, the electronic device includes a memory 1502 and a processor 1504, where the memory 1502 stores a computer program, and the processor 1504 is configured to execute the steps in any one of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s11, detecting that the total number of actually played first times of at least two media resources to be played in a media resource group in a first time period is less than a first preset number of times, wherein the total number of played first times of the at least two media resources to be played is preset to be the first preset number of times in the first time period;
s12, acquiring a second preset number according to the first number and the first preset number;
and S13, setting the media resources needing to be played additionally in the media resource group to be played for a second predetermined number of times in a second time period.
An electronic device for implementing the method for playing back a media asset according to an embodiment of the present invention is further provided, and as shown in fig. 16, the electronic device includes a memory 1502 and a processor 1504, where the memory 1502 stores a computer program therein, and the processor 1504 is configured to execute the steps in any one of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor 1504 may be further configured to execute the following steps by a computer program:
s21, detecting that the total number of actually played first times of at least two media resources to be played in a media resource group in a first time period is less than a first preset number of times, wherein the total number of played first times of the at least two media resources to be played is preset to be the first preset number of times in the first time period;
s22, adjusting the first preset times to target preset times according to the first times, wherein the target preset times are less than the first preset times;
s23, transferring the target account resources corresponding to the played media resources in the media resource group to the target account according to the target preset times, wherein the target account resources correspond to the target preset times.
Alternatively, it can be understood by those skilled in the art that the structures shown in fig. 15 and fig. 16 are only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, and a Mobile Internet Device (MID), a PAD, and the like. Fig. 15 and 16 do not limit the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 15, 16, or have a different configuration than shown in fig. 15, 16.
The memory 1502 may be used for storing software programs and modules, such as program instructions/modules corresponding to the method and apparatus for playing back a media resource in the embodiment of the present invention, and the processor 1504 executes various functional applications and data processing by running the software programs and modules stored in the memory 1502, that is, implements the method for playing back a media resource. The memory 1502 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1502 can further include memory located remotely from the processor 1504, which can be coupled to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1502 may be, but not limited to, used for storing information such as a playing flow of a media resource. As an example, as shown in fig. 15, the memory 1502 may include, but is not limited to, a first detecting unit 62, a first obtaining unit 64, and a first setting unit 66 in a playing apparatus including the media resource. As another example, as shown in fig. 16, the memory 1502 may further include, but is not limited to, a third detecting unit 122, an adjusting unit 124, and a transferring unit 126 in the playing apparatus that includes the media resource. In addition, the media resources may further include, but are not limited to, other module units in the playing apparatus of the media resources, which are not described in this example again.
Optionally, the transmission device 1506 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1506 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 1506 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1508 for displaying the results of the playing of the media assets; and a connection bus 1510 for connecting the respective module parts in the above-described electronic apparatus.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for playing a media asset, comprising:
detecting that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first preset number of times, wherein the at least two media resources to be played are preset to be played in total in the first preset number of times in the first time period;
acquiring a second preset time according to the first time and the first preset time;
and setting the media resources needing to be played additionally in the media resource group to be played for the second predetermined times in total in the second time period.
2. The method of claim 1, before setting media assets of the set of media assets that require supplemental playback to be played back to increase play back the second predetermined number of times in total over a second time period, the method further comprising:
and searching a first target media resource in the media resource group, wherein the number of times that the first target media resource is actually played in the first time period is less than the preset number of times of the first target media resource, and the first target media resource is regarded as a media resource needing to be played additionally in the media resource group.
3. The method of claim 2, finding a first target media resource in the set of media resources comprises:
acquiring at least two media resources, of which the actual playing times are smaller than the target playing times, in the media resource group, wherein the target playing times are multiple, and each media resource corresponds to one target playing time;
and packaging the at least two media resources to obtain the first target media resource.
4. The method of claim 1, said obtaining a second predetermined number of times based on said first number of times and said first predetermined number of times comprising:
increasing the difference between the first preset times and the first times to obtain a target difference;
setting the target difference value to the second predetermined number of times.
5. The method of claim 4, wherein increasing the difference between the first predetermined number of times and the first number of times to obtain a target difference comprises:
acquiring the ratio of the first times to the total actual playing times of the media resources to be played in the media resource group monitored by the third-party equipment in the first time period to obtain a first target ratio;
and multiplying the difference value between the first preset times and the first times by the first target ratio to obtain the target difference value.
6. The method of claim 1, after setting media assets of the set of media assets that require supplemental playback to be played back to increase play back the second predetermined number of times in total over a second time period, the method further comprising:
detecting that the total second number of times of actually playing the media resources needing to be supplemented and played in the media resource group in the second time period is less than the second preset number of times;
acquiring a third preset time according to the second time and the second preset time;
and setting the media resources needing secondary supplementary playing in the media resources needing supplementary playing to be played for a third predetermined number of times in total in a third time period.
7. The method of claim 6, before setting media assets of the media assets needing complementary playing that need secondary complementary playing to be played at a third predetermined number of times in total increased playing within a third time period, the method further comprising:
and searching a second target media resource in the media resources needing to be complementarily played, wherein the actual playing times of the second target media resource in the second time period are less than the preset times of the second target media resource, and the second target media resource is regarded as the media resource needing to be secondarily complementarily played in the media resource group.
8. A method for playing a media asset, comprising:
detecting that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first preset number of times, wherein the at least two media resources to be played are preset to be played in total in the first preset number of times in the first time period;
adjusting the first preset times to target preset times according to the first times, wherein the target preset times are smaller than the first preset times;
and transferring target account resources corresponding to the played media resources in the media resource group to a target account according to the target preset times, wherein the target account resources correspond to the target preset times.
9. The method of claim 8, wherein adjusting the first predetermined number of times to a target predetermined number of times based on the first number of times comprises:
acquiring a second target ratio, wherein the second target ratio is the ratio between the first preset times and the first times;
acquiring the number of times to be adjusted, wherein the number of times to be adjusted is the product of the second target ratio and the total number of times of playing the media resources to be played in the media resource group monitored by the third-party equipment in the first time period, and the number of times to be adjusted is rounded up;
subtracting a preset difference value from the number of times to be adjusted to obtain the target preset number of times, wherein the preset difference value is a difference value between the number of times to be adjusted and the total number of times that the media resources to be played in the media resource group monitored by the third-party equipment are played in the first time period.
10. The method of claim 8, wherein transferring the target account resources corresponding to the played media resources in the set of media resources to the target account a predetermined number of times comprises:
acquiring the adjusted times of each played media resource according to the target preset times, wherein the sum of the adjusted times of all the played media resources is the target preset times;
acquiring account resources to be transferred corresponding to each played media resource, wherein the account resources to be transferred corresponding to each played media resource are the product of the number of times of adjustment of the played media resources and the account resources to be transferred for each playing of the played media resources;
and transferring the account resources to be transferred corresponding to each played media resource to the target account, wherein the sum of the account resources to be transferred corresponding to all the played media resources is the target account resource.
11. The method of claim 10, wherein obtaining the adjusted number of times of each of the played media assets according to the target predetermined number of times comprises:
and distributing the target preset times to the sum of the adjusted times of each played media resource according to a preset proportion.
12. An apparatus for playing a media asset, comprising:
a first detection unit, configured to detect that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first predetermined number of times, where the at least two media resources to be played are preset to play the first predetermined number of times in total in the first time period;
a first obtaining unit, configured to obtain a second predetermined number of times according to the first number of times and the first predetermined number of times;
and the first setting unit is used for setting the media resources needing to be played additionally in the media resource group to be played for the second preset times in total in a second time period.
13. An apparatus for playing a media asset, comprising:
a third detecting unit, configured to detect that a first number of times that at least two media resources to be played in a media resource group are actually played in total in a first time period is less than a first predetermined number of times, where the at least two media resources to be played are preset to play the first predetermined number of times in total in the first time period;
the adjusting unit is used for adjusting the first preset times to target preset times according to the first times, wherein the target preset times are smaller than the first preset times;
and the transfer unit is used for transferring the target account resources corresponding to the played media resources in the media resource group to the target account according to the target preset times, wherein the target account resources correspond to the target preset times.
14. A storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the method of any of claims 1 to 7 or 8 to 11 when executed.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 or 8 to 11 by means of the computer program.
CN201811369250.7A 2018-11-16 2018-11-16 Media resource playing method and device, storage medium and electronic device Active CN111200743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811369250.7A CN111200743B (en) 2018-11-16 2018-11-16 Media resource playing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811369250.7A CN111200743B (en) 2018-11-16 2018-11-16 Media resource playing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111200743A true CN111200743A (en) 2020-05-26
CN111200743B CN111200743B (en) 2022-03-25

Family

ID=70747364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811369250.7A Active CN111200743B (en) 2018-11-16 2018-11-16 Media resource playing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111200743B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022179481A1 (en) * 2021-02-26 2022-09-01 北京字跳网络技术有限公司 Resource issuing method, apparatus and device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1697511A (en) * 2005-06-03 2005-11-16 上海惠晨信息技术有限公司 Resource allocation method for system of playing and controlling media dispatched through dynamic preengage
US20060136340A1 (en) * 2004-12-16 2006-06-22 Soo-Min Park Post-paid billing system and method for multimedia files
CN101419622A (en) * 2008-11-17 2009-04-29 深圳华为通信技术有限公司 Media file tabular display method and terminal
CN105979398A (en) * 2006-11-10 2016-09-28 乐威指南公司 System and method for using playlist

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136340A1 (en) * 2004-12-16 2006-06-22 Soo-Min Park Post-paid billing system and method for multimedia files
CN1697511A (en) * 2005-06-03 2005-11-16 上海惠晨信息技术有限公司 Resource allocation method for system of playing and controlling media dispatched through dynamic preengage
CN105979398A (en) * 2006-11-10 2016-09-28 乐威指南公司 System and method for using playlist
CN101419622A (en) * 2008-11-17 2009-04-29 深圳华为通信技术有限公司 Media file tabular display method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022179481A1 (en) * 2021-02-26 2022-09-01 北京字跳网络技术有限公司 Resource issuing method, apparatus and device, and storage medium

Also Published As

Publication number Publication date
CN111200743B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN108255847B (en) Page generation method and device
CN106909333B (en) Screen configuration method and device for display screen
US20170116299A1 (en) Method and electronic device for synchronizing member benefits among multiple devices
CN106293765A (en) A kind of layout updates method and device
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN111124617B (en) Method and device for creating block chain system, storage medium and electronic device
CN108829868A (en) data display method and device, storage medium and electronic device
CN105302925A (en) Method and device for pushing voice search data
CN113079139B (en) Block chain-based consensus group master node determination method, device and system
CN109151025A (en) Load-balancing method, device, computer storage medium and equipment based on URL
CN110263276A (en) Message distributing method, device, equipment and storage medium
US20220391447A1 (en) Method and apparatus for retrieving a data package
CN111200743B (en) Media resource playing method and device, storage medium and electronic device
CN107590682B (en) Advertisement putting method, server, hotspot device and system
CN108174227A (en) Display methods, device and the storage medium of virtual objects
CN102523250B (en) Content distribution system
CN109857325A (en) Display interface switching method, electronic equipment and computer readable storage medium
CN102665096B (en) System and method for wireless distribution system proxy caches
CN104599092A (en) Order business monitoring method and equipment
CN110349263A (en) A kind of intelligent article packing method and device
CN117499465A (en) Cloud platform Internet of things access method and system based on Internet of things configuration
CN109361929A (en) A kind of method and relevant device of determining direct broadcasting room label
CN112866223B (en) Routing method and device for homomorphic encryption request
CN109224451A (en) Development of games method, equipment and storage medium based on block chain subchain
CN109191042A (en) Articles from the storeroom management method and Related product

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