WO2022179481A1 - Resource issuing method, apparatus and device, and storage medium - Google Patents

Resource issuing method, apparatus and device, and storage medium Download PDF

Info

Publication number
WO2022179481A1
WO2022179481A1 PCT/CN2022/077189 CN2022077189W WO2022179481A1 WO 2022179481 A1 WO2022179481 A1 WO 2022179481A1 CN 2022077189 W CN2022077189 W CN 2022077189W WO 2022179481 A1 WO2022179481 A1 WO 2022179481A1
Authority
WO
WIPO (PCT)
Prior art keywords
duration
resources
resource
unplayed
feed stream
Prior art date
Application number
PCT/CN2022/077189
Other languages
French (fr)
Chinese (zh)
Inventor
杨典
严冰
Original Assignee
北京字跳网络技术有限公司
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 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2022179481A1 publication Critical patent/WO2022179481A1/en

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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • 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
    • 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/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
    • H04N21/26283Content 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 for associating distribution time parameters to content, e.g. to generate electronic program guide data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring 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
    • 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/43Processing 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/442Monitoring 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/44213Monitoring of end-user related data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • 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/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Definitions

  • the embodiments of the present disclosure relate to the technical field of streaming media processing, for example, to a resource delivery method, apparatus, device, and storage medium.
  • the server sends resources to the user's feed stream in batches.
  • the server sends resources to the feed stream in real time according to user preferences, tags, historical behaviors, etc. for user consumption.
  • the server In order to improve the user's viewing experience and reduce the delay and the length of the first frame, the server usually sends the next batch of resources to the user before the resources in the current feed stream are consumed. For example, if there are less than 2 unplayed resources in the current feed stream, a new batch of resources is delivered to the client.
  • the above resource delivery method cannot dynamically adjust the timing of video resource delivery.
  • Embodiments of the present disclosure provide a resource delivery method, apparatus, device, and storage medium to dynamically adjust the timing of video resource delivery.
  • an embodiment of the present disclosure provides a method for delivering resources, including:
  • the timing for delivering the supplementary resource is determined.
  • an embodiment of the present disclosure further provides a resource delivery device, including:
  • the playback duration prediction module is set to determine the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model;
  • the delivery timing determination module is configured to determine the delivery timing of the supplementary resource based on the comparison result between the estimated playback duration and the preset duration.
  • an embodiment of the present disclosure further provides a resource delivery device, including:
  • processors one or more processors
  • memory arranged to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the resource delivery method according to any one of the embodiments of the present disclosure.
  • an embodiment of the present disclosure further provides a medium, where the medium stores a computer program, and when the computer program is executed by a processor, implements the resource delivery method according to any one of the embodiments of the present disclosure.
  • FIG. 1 is a flowchart of a method for delivering resources provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of a duration prediction model provided by an embodiment of the present disclosure
  • FIG. 3 is a flowchart of a method for delivering resources provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of interaction between a server and a client provided by an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of an apparatus for delivering resources provided by an embodiment of the present disclosure.
  • FIG. 6 is a structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the term “including” and variations thereof are open-ended inclusions, ie, "including but not limited to”.
  • the term “based on” is “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • the “feed” in the embodiment of the present disclosure may be a content aggregator that combines several news sources actively subscribed by the user to help the user continuously obtain the latest feed content.
  • the feed is a Really Simple Syndication (RSS) The interface used to receive the source of this information.
  • RSS Really Simple Syndication
  • the feed stream in the embodiment of the present disclosure is a continuously updated information stream, which can push the information in the RSS to the user.
  • timeline-based presentation form timeline is the most typical feed stream presentation method, which is updated according to the feed stream content.
  • rank is to calculate the weight of the feed stream content according to certain factors, so as to determine the sequence of the feed stream content display.
  • the server In the push mode, if a user updates the dynamic information, the server will push the dynamic information to each follower who follows the user, store the pushed resources in the server's cache pool and push it to each follower If the amount of information to be pushed is relatively large, it needs to occupy a large amount of server cache resources.
  • the server determines that the user requests to access its own feed stream according to the user's active request, it will push the resource requested by the user in the feed stream to the user and cache it in the server's cache pool.
  • Pull mode saves a lot of resources, but users need to perform feed pull operation first when accessing their own content, which makes users may need to wait for a while, which increases the delay and the length of the first frame, which affects the user experience. For this reason, the server usually delivers the next batch of videos to the client before the video resources in the current feed stream are consumed. For example, if there are less than 4 unplayed video resources in the current feed stream, a new batch of video resources is delivered to the client.
  • the drawback of the above method is that the timing of delivering video resources cannot be dynamically adjusted. For example: the remaining 4 unplayed resources may be content that the user does not like to watch, and the user may skip it and not play it. Since the fifth resource has not been delivered, when the user requests the fifth resource to be delivered, it will be delivered Loading may cause the playback of the 5th resource to freeze.
  • the embodiments of the present disclosure provide a resource delivery method, device, device, and storage medium, which utilize the result of comparing the estimated playback duration of unplayed resources in the feed stream with the preset duration to determine the delivery timing of supplementary resources, thereby realizing the feed
  • the effect of dynamically delivering stream resources When the playback time of the remaining resources is insufficient, resources are added to the feed stream in a timely manner. By adding resources to the feed stream in advance, the supplemented resources can also be preloaded and other strategies, reducing the phenomenon of subsequent resource playback freezes. The playback experience is improved. When the remaining playback time is sufficient, the distribution of resources is suspended, and relatively more real-time user behaviors and operations are collected to achieve better recommendation effects.
  • FIG. 1 is a flowchart of a method for delivering resources provided by an embodiment of the present disclosure. This embodiment is applicable to a situation in which video resources in a feed stream are dynamically delivered.
  • the method can be executed by a resource delivery device.
  • the apparatus can be implemented by means of software and/or hardware.
  • the resource delivery method is applied to computer equipment.
  • the computer device is installed with an application program that executes the feed stream playback, for example, the resource delivery method is performed by the client side that installs the feed stream playback application program.
  • the resource distribution method provided in this embodiment can be used on computer equipment, and can be considered to be executed by a resource distribution device integrated on the computer equipment, wherein the computer equipment can specifically include processing A computer device that includes a processor, memory, input device, and output device.
  • a computer device that includes a processor, memory, input device, and output device.
  • the resource delivery method provided by the embodiments of the present disclosure can also be applied to other smart devices having the same functions as computer devices.
  • the embodiments of the present disclosure describe the application scenarios and application devices of the above-mentioned resource delivery, but are not limited.
  • the method for delivering resources mainly includes steps S11 and S12.
  • the feed stream can be a list of resources that can be continuously loaded by sliding down, and each feed entry is an independent resource.
  • the resources in the feed stream can be text, images, videos, and even actionable cards.
  • the current feed stream refers to the feed stream that the server has pushed to the client and the client is playing.
  • the current feed stream mainly includes broadcast resources, current resources and unplayed resources. Played resources refer to resources that have been played by the client and have been watched by the user; current resources refer to the resources that are being played by the client and are being watched by the user; unplayed resources refer to the resources that have not yet been played by the client.
  • the estimated playback duration of the unplayed resources in the current feed stream refers to the possible viewing time of the unplayed resources in the current feed stream.
  • the total duration of unplayed resources may be 10 minutes, but due to the user's personal preference or network freezes and other reasons, if one chooses to skip one of the resources and does not play, then the actual playback duration of the unplayed resources will be less than The total duration of unplayed resources.
  • the duration prediction model is obtained by pre-training, and the user's historical behavior, user-defined information, type of unplayed resources, number of unplayed resources, duration of each unplayed resource, and total duration of unplayed resources are input.
  • the duration prediction model outputs the estimated playback duration of the unplayed resources in the current feed stream.
  • the duration prediction model is obtained by pre-training, and the user's historical behavior, user-defined information, unplayed resource types, the number of unplayed resources, and the duration of each unplayed resource are input into the duration prediction model, and the duration The prediction model outputs the expected playback ratio of unplayed assets in the current feed stream. Based on this ratio and the total duration of the unplayed resources, calculate the estimated playback duration of the unplayed resources. For example, the product of the ratio and the total duration of the unplayed resources may be determined as the expected playing duration of the unplayed resources.
  • a training method for a duration prediction model which mainly includes the following steps: using historical user behavior, user-defined information, type of broadcasted resources, number of broadcasted resources, total duration of broadcasted resources, The neural network model is trained based on characteristics such as the type of broadcast resources, the number of unbroadcast resources, the duration of each unbroadcast resource, and the total duration of unbroadcast resources, and the duration prediction model is obtained.
  • the input of the duration prediction model is to use the user's historical behavior, user-defined information, the type of unplayed resources, the number of unplayed resources, and the number of unplayed resources for each unplayed resource.
  • the resource duration and the total duration of unplayed resources is the estimated playback duration of the unplayed resources in the current feed stream under the current user's behavior mode.
  • FIG. 2 is a schematic structural diagram of a duration prediction model provided by an embodiment of the present disclosure.
  • the duration prediction model mainly includes an input layer, n intermediate layers and an output layer, and the feature parameters received by the input layer mainly include: User historical behavior, user-defined information, video type, and playback duration of broadcast resources, etc.
  • the output layer After learning and prediction by n intermediate layers, the output layer outputs the expected playback duration of unplayed resources.
  • the preset duration refers to a reference threshold determined according to the resource delivery time, and the preset duration may be set according to parameters such as network upload and download speed.
  • the preset duration can be 10 seconds, 30 seconds, or 1 minute, etc.
  • the specific value of the preset duration is not specifically limited in this embodiment.
  • the supplementary resources refer to the resources delivered by the server to the user and supplemented to the feed stream.
  • the delivery timing refers to the time when the server delivers supplementary resources to the feed stream.
  • Resource delivery means that the server sends the relevant information of the resource to the user, which can be the loading address and loading method of the resource.
  • the server For example, based on the comparison result between the estimated playback duration and the preset duration, it is determined whether the server needs to deliver supplementary resources at the current moment.
  • the server will deliver supplementary resources to the feed stream of the client at the current moment.
  • the supplemented resources can be preloaded, etc. strategy to reduce the phenomenon of subsequent resource playback freezes and other phenomena. If the expected playback duration is greater than the preset duration, it is determined that the unplayed resources in the feed stream at the current moment can be used by the user, and the server does not need to deliver supplementary resources to the feed stream of the user.
  • An embodiment of the present disclosure provides a method for delivering resources, which includes: determining an expected playback duration of unplayed resources in a current feed stream based on a duration prediction model;
  • the result of comparing the estimated playback duration of the unplayed resources in the feed stream with the preset duration is used to determine the delivery timing of the supplementary resources, thereby realizing the effect of dynamically delivering the video resources of the feed stream.
  • video resources are added to the feed stream in a timely manner.
  • the supplemented videos can also be pre-loaded and other strategies, reducing subsequent video playback freezes and other phenomena. The playback experience is improved.
  • the remaining playback time is sufficient, the video resources will be temporarily released, and relatively more real-time user behaviors and operations will be collected to achieve a better recommendation effect.
  • FIG. 3 is a flowchart of a resource delivery method provided by the embodiments of the present disclosure. As shown in FIG. 3 , the embodiments of the present disclosure provide The resource distribution method mainly includes the following steps:
  • the expected playing duration of the unplayed resource in the current feed stream is determined based on the duration prediction model.
  • the detection of the start of playback of the current resource may be the detection of the first frame of the current resource to start playback, and the detection of the start of playback of the current resource may also be or detected that the user executes an operation instruction corresponding to the start of the broadcast, such as detecting that the user clicks the start button. The user performs a slide-up or slide-down operation. It is also detected that the current resource starts to play and a resource switching instruction can also be detected. In this embodiment, only the manner in which the current resource is detected to start playing is described, but not limited.
  • the expected playback duration of the unplayed resources in the current feed stream is predicted, and the time point is specified for predicting the playback duration of the unplayed resources, so as to avoid frequent prediction, resulting in Waste of resources, can effectively save memory resources.
  • determining the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model includes: acquiring historical user behavior and unplayed resource parameters, where the unplayed resource parameters include unplayed resource types, unplayed resource types, and unplayed resource parameters. The number, duration of unplayed resources, and total duration of unplayed resources; input the user's historical behavior and parameters of unplayed resources into the duration prediction model to obtain the expected playback duration of unplayed resources in the current feed stream.
  • the user's historical behavior refers to the relevant operation behavior of the user's previous viewing of historical resources, such as: liking, commenting, following, adding to favorites, downloading, and sharing.
  • Resource type is a parameter that characterizes the resource category, such as action, funny, eating and broadcasting, beauty and so on.
  • user-defined information can also be obtained while obtaining the user's historical behavior and parameters of unplayed resources.
  • the user's historical behavior, user-defined information and unplayed resource parameters are input into the duration prediction model to obtain the expected playing duration of the unplayed resources in the current feed stream.
  • the above-mentioned user-defined information refers to the personal information disclosed by the user on the user terminal, for example, it may be a user's nickname, a user type, and the like.
  • the input of the duration prediction model is to use the user's historical behavior, user-defined information, the type of unplayed resources, the number of unplayed resources, each The duration of unplayed resources and the total duration of unplayed resources. Get the estimated playback time of the unplayed resources in the current feed stream under the behavior mode of the current user.
  • the multi-dimensional feature input pre-trained neural network model is used to obtain the technical solution of the estimated playback duration of the unplayed resources in the current feed stream under the behavior mode of the current user, which can improve the accuracy of the estimated playback duration.
  • the expected playback duration is greater than the preset duration, it indicates that the unplayed resources in the current feed stream are sufficient, and there is no need to request the server for resource delivery. At this time, the delivery of video resources is suspended, and the user terminal collects relatively more real-time user behavior operations to achieve a better recommendation effect.
  • the next resource refers to the resource to be played after the current resource in the current feed stream is played. Detecting the playback state of the next resource can be understood as detecting whether the next resource starts playing in real time.
  • the step of determining the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model is re-executed, and the prediction supplement is determined.
  • the timing of resource delivery avoids frequent predictions and waste of resources, which can effectively save memory resources.
  • triggering the start of delivery of the supplementary resource includes: sending a resource delivery request to the server, where the resource delivery request is used to request the server to deliver the resource.
  • the client sends a resource delivery request to the server.
  • the server delivers pre-prepared resources.
  • the client when the client sends a resource delivery request to the server, the client can also send user behavior information to the server.
  • the server selects multiple candidate videos from the massive videos according to the user behavior information, and scores and sorts the candidate videos. , select the personalized top N videos and send them to the current user's feed stream.
  • preloading the supplementary resources is performed, which reduces the phenomenon of subsequent playback jams and the like, and improves the overall playback experience.
  • the result of comparing the estimated playback duration of the unplayed resources in the feed stream with the preset duration is used to determine the delivery timing of the supplementary resources, thereby realizing the effect of dynamically delivering the video resources of the feed stream.
  • video resources are added to the feed stream in a timely manner.
  • the supplemented videos can also be pre-loaded and other strategies, reducing subsequent video playback freezes and other phenomena.
  • the playback experience is improved.
  • the remaining playback time is sufficient, the video resources will be temporarily released, and relatively more real-time user behaviors and operations will be collected to achieve a better recommendation effect.
  • the comparison result between the estimated playback duration of the unplayed resources in the current feed stream and the preset duration is directly output by the duration prediction model.
  • the output of the duration prediction model is the expected playback duration of the unplayed resources in the current feed stream, that is, a time value.
  • the comparison between the expected playback duration and the preset duration is performed by the resource delivery device.
  • the estimated playback duration of the unplayed resources in the current feed stream is an intermediate variable in the duration prediction model, and the duration prediction model can directly compare the estimated playback duration of the unplayed resources in the current feed stream with the preset duration.
  • the output of the duration prediction model is a binary variable, that is, the output content is: "Yes" or "No".
  • the duration prediction model in response to determining that the expected playback duration is less than or equal to a preset duration, the duration prediction model outputs "Yes", and in response to determining that the expected playback duration is greater than the preset duration, the duration prediction model outputs "No". For example, when the duration prediction model outputs "Yes”, it triggers the delivery of supplementary resources, and when the duration prediction model outputs "No", the delivery of supplementary resources is prohibited.
  • the comparison result is directly output by the duration prediction model, which can reduce the computing time of the resource delivery device and improve the speed of determining the resource delivery timing.
  • the unplayed resource is a video resource as an example for description.
  • FIG. 4 is a schematic diagram of the interaction between the server and the user provided by the embodiment of the present disclosure. As shown in FIG. 4 , after the client detects that the video is started, Send the corresponding features to the trained duration prediction model for prediction, and determine whether the playback duration of the unplayed video in the feed stream is greater than the preset duration x seconds. If the playback duration of the unplayed video is longer than the preset duration x seconds, the logic for sending more videos will not be triggered, and the judgment will be made when the next video is played.
  • the logic for delivering more videos is triggered, that is, the client sends a video delivery request to the server to request the server to deliver the video.
  • the client sends the user's historical behavior to the server, and the server selects multiple candidate videos from the massive videos according to the user's historical behavior, scores and sorts the candidate videos, and selects the personalized top N videos and sends them to the current user's in the feed stream.
  • the effect of dynamically delivering short video resources of the feed stream is achieved.
  • video resources are added to the feed stream in a timely manner, and video resources are added to the feed stream in advance by adding video resources to the feed stream.
  • the supplemented video can be pre-loaded and other strategies, which reduce the phenomenon of subsequent video playback stuttering and other phenomena, and improve the overall playback experience; when the remaining playback time is sufficient, the delivery of video resources is postponed, and relatively more real-time user behaviors and operations are collected. achieve a better recommendation effect.
  • FIG. 5 is a schematic diagram of an apparatus for delivering resources provided by an embodiment of the present disclosure. This embodiment is applicable to the case of dynamically delivering video resources in a feed stream, and the apparatus may be implemented by means of software and/or hardware. .
  • the resource issuing device is configured in computer equipment.
  • the computer device is installed with an application program that executes the feed stream playback, for example, the resource delivery method is performed by the client side that installs the feed stream playback application program.
  • the resource delivery apparatus mainly includes a playback duration prediction module 51 and a delivery timing determination module 52 .
  • the playback duration prediction module 51 is set to determine the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model;
  • the delivery timing determination module 52 is configured to determine the delivery timing of the supplementary resource based on the comparison result between the estimated playback duration and the preset duration.
  • An embodiment of the present disclosure provides a resource delivery device, which is mainly configured to perform the following operations: determine the expected playback duration of unplayed resources in the current feed stream based on a duration prediction model; based on the comparison result between the expected playback duration and the preset duration, Determine the timing for issuing supplementary resources.
  • the result of comparing the estimated playback duration of the unplayed resources in the feed stream with the preset duration is used to determine the delivery timing of the supplementary resources, thereby realizing the effect of dynamically delivering the video resources of the feed stream.
  • the method further includes: determining, based on the duration prediction model, a comparison result between the expected playback duration of the unplayed resources in the current feed stream and a preset duration, and performing a comparison based on the comparison result between the expected playback duration and the preset duration to determine the supplementary Operation of resource delivery timing.
  • the playback duration prediction module 51 is configured to, in response to detecting that the current resource starts playing, determine the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model.
  • the playback duration prediction module 51 is configured to obtain user historical behavior and unplayed resource parameters, where the unplayed resource parameters include unplayed resource type, number of unplayed resources, unplayed resource duration and unplayed resources total duration;
  • the delivery timing determination module 52 is configured to trigger the supplementary resource to start delivering in response to determining that the expected playback duration is less than or equal to a preset duration; in response to determining that the expected playback duration is greater than the preset duration, Supplementary resource distribution is prohibited.
  • the method in response to determining that the expected playback duration is greater than the preset duration, after prohibiting the delivery of the supplementary resource, the method further includes: detecting the playback state of the next resource; in response to detecting that the playback state of the next resource is to start playing , to perform the operation of determining the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model.
  • triggering the start of delivery of the supplementary resource includes: sending a resource delivery request to the server, where the resource delivery request is used to request the server to deliver the resource.
  • the resource distribution apparatus provided in this embodiment can execute the resource distribution method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the resource distribution method.
  • FIG. 6 it shows a schematic structural diagram of an electronic device (eg, a terminal device or a server in FIG. 6 ) 600 suitable for implementing an embodiment of the present disclosure.
  • Terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like.
  • the electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • an electronic device 600 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 601 that may be loaded into random access according to a program stored in a read only memory (ROM) 602 or from a storage device 606
  • a program in a memory (RAM) 603 executes various appropriate actions and processes.
  • the processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input/output (I/O) interface 605 is also connected to bus 604 .
  • I/O interface 605 input devices 608 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 606 of a computer, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609.
  • Communication means 609 may allow electronic device 600 to communicate wirelessly or by wire with other devices to exchange data.
  • FIG. 6 shows an electronic device 600 having various means, it should be understood that not all of the illustrated means are required to be implemented or available. More or fewer devices may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication device 609, or from the storage device 608, or from the ROM 602.
  • the processing device 601 the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the client and the server can use any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) to communicate, and can communicate with digital data in any form or medium.
  • Data communications eg, communication networks
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device:
  • the timing for delivering the supplementary resource is determined.
  • Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and This includes conventional procedural programming languages - such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLDs Complex Programmable Logical Devices
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • a method, apparatus, device, and medium for delivering resources including:
  • the timing for delivering the supplementary resource is determined.
  • a method, apparatus, device, and medium for delivering resources are provided, further comprising:
  • a resource delivery method, apparatus, device, and medium are provided, and the estimated playback duration of the unplayed resources in the current feed stream is determined based on a duration prediction model, including:
  • the expected playing duration of the unplayed resource in the current feed stream is determined based on the duration prediction model.
  • a resource delivery method, apparatus, device, and medium are provided, and the estimated playback duration of the unplayed resources in the current feed stream is determined based on a duration prediction model, including:
  • parameters of unplayed resources include the type of unplayed resources, the number of unplayed resources, the duration of unplayed resources, and the total duration of unplayed resources;
  • a method, apparatus, device, and medium for delivering resources are provided. Based on the comparison result between the estimated playback duration and the preset duration, determining the timing for delivering supplementary resources includes:
  • the delivery of supplementary resources is prohibited.
  • a method, device, device and medium for delivering resources are provided, and in response to determining that the expected playback duration is greater than the preset duration, after forbidding the issuance of supplementary resources, it also includes:
  • an operation of determining the expected playing duration of the unplayed resource in the current feed stream based on the duration prediction model is performed.
  • a method, apparatus, device and medium for delivering resources are provided to trigger a video resource delivery operation, including:
  • Trigger the delivery of supplementary resources including:
  • a resource delivery request is sent to the server, where the resource delivery request is used to request the server to deliver resources.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided in embodiments of the present disclosure are a resource issuing method, apparatus and device, and a storage medium. The resource issuing method comprises: on the basis of a duration prediction model, determining an estimated play duration of a resource, which is not played, in the current feed stream; and on the basis of a result of comparison between the estimated play duration and a preset duration, determining an occasion of issuing a supplementary resource.

Description

资源下发方法、装置、设备和存储介质Resource delivery method, apparatus, device and storage medium
本申请要求在2021年2月26日提交中国专利局、申请号为202110220305.3的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 202110220305.3 filed with the China Patent Office on February 26, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本公开实施例涉及流媒体处理技术领域,例如涉及一种资源下发方法、装置、设备和存储介质。The embodiments of the present disclosure relate to the technical field of streaming media processing, for example, to a resource delivery method, apparatus, device, and storage medium.
背景技术Background technique
随着移动互联网的发展和智能终端的普及,短视频业务迎来爆发式的增长。在信息feed流资源场景下,服务端分批次向用户端的feed流中下发资源。服务端每次根据用户爱好、标签、历史行为等实时下发资源到feed流中供用户消费。With the development of the mobile Internet and the popularization of smart terminals, the short video business has ushered in explosive growth. In the information feed stream resource scenario, the server sends resources to the user's feed stream in batches. The server sends resources to the feed stream in real time according to user preferences, tags, historical behaviors, etc. for user consumption.
为了提升用户的观看体验,减少卡顿和首帧时长,服务端通常会在当前feed流中的资源被消费完之前向用户端下发下一批次资源。例如,当前feed流中未播放资源少于2个,向用户端下发新一批资源。上述资源下发方法不能动态地调整视频资源下发的时机。In order to improve the user's viewing experience and reduce the delay and the length of the first frame, the server usually sends the next batch of resources to the user before the resources in the current feed stream are consumed. For example, if there are less than 2 unplayed resources in the current feed stream, a new batch of resources is delivered to the client. The above resource delivery method cannot dynamically adjust the timing of video resource delivery.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供一种资源下发方法、装置、设备和存储介质,实现动态地调整视频资源下发的时机。Embodiments of the present disclosure provide a resource delivery method, apparatus, device, and storage medium to dynamically adjust the timing of video resource delivery.
第一方面,本公开实施例提供了一种资源下发方法,包括:In a first aspect, an embodiment of the present disclosure provides a method for delivering resources, including:
基于时长预测模型确定当前信息feed流中未播资源的预计播放时长;Determine the expected playback duration of the unplayed resources in the current information feed stream based on the duration prediction model;
基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。Based on the comparison result between the predicted playback duration and the preset duration, the timing for delivering the supplementary resource is determined.
第二方面,本公开实施例还提供了一种资源下发装置,包括:In a second aspect, an embodiment of the present disclosure further provides a resource delivery device, including:
播放时长预测模块,设置为基于时长预测模型确定当前feed流中未播资源的预计播放时长;The playback duration prediction module is set to determine the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model;
下发时机确定模块,设置为基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。The delivery timing determination module is configured to determine the delivery timing of the supplementary resource based on the comparison result between the estimated playback duration and the preset duration.
第三方面,本公开实施例还提供了一种资源下发设备,包括:In a third aspect, an embodiment of the present disclosure further provides a resource delivery device, including:
一个或多个处理器;one or more processors;
存储器,设置为存储一个或多个程序;memory, arranged to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开实施例中任一项所述的资源下发方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the resource delivery method according to any one of the embodiments of the present disclosure.
第四方面,本公开实施例还提供了一种介质,所述介质存储有计算机程序,所述计算机程序被处理器执行时实现如本公开实施例中任一项所述的资源下发方法。In a fourth aspect, an embodiment of the present disclosure further provides a medium, where the medium stores a computer program, and when the computer program is executed by a processor, implements the resource delivery method according to any one of the embodiments of the present disclosure.
附图说明Description of drawings
贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
图1是本公开实施例提供的一种资源下发方法的流程图;1 is a flowchart of a method for delivering resources provided by an embodiment of the present disclosure;
图2是本公开实施例提供的一种时长预测模型的结构示意图;2 is a schematic structural diagram of a duration prediction model provided by an embodiment of the present disclosure;
图3是本公开实施例提供的一种资源下发方法的流程图;3 is a flowchart of a method for delivering resources provided by an embodiment of the present disclosure;
图4是本公开实施例提供的服务端与用户端的交互示意图;4 is a schematic diagram of interaction between a server and a client provided by an embodiment of the present disclosure;
图5是本公开实施例提供的一种资源下发装置的示意图;5 is a schematic diagram of an apparatus for delivering resources provided by an embodiment of the present disclosure;
图6是本公开实施例提供的一种电子设备的结构图。FIG. 6 is a structural diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过多种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for the purpose of A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the multiple steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "including" and variations thereof are open-ended inclusions, ie, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "a" and "a plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, they should be understood as "one or a plurality of". multiple".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.
首先,对本公开中出现的词语进行解释。First, words appearing in the present disclosure are explained.
本公开实施例中的“feed”可以是将用户主动订阅的若干消息源组合在一起形成内容聚合器,帮助用户持续地获取最新的订阅源内容,feed是简易信息聚合(Really Simple Syndication,RSS)中用来接收该信息来源的接口。The “feed” in the embodiment of the present disclosure may be a content aggregator that combines several news sources actively subscribed by the user to help the user continuously obtain the latest feed content. The feed is a Really Simple Syndication (RSS) The interface used to receive the source of this information.
本公开实施例中的feed流,又称为信息流,是一种持续更新的信息流,可以将RSS中的信息推送给用户。The feed stream in the embodiment of the present disclosure, also referred to as an information stream, is a continuously updated information stream, which can push the information in the RSS to the user.
其中,feed流的展现形式有很多种,包括但不限于:基于时间线的展现形式timeline、基于智能排序的展现形式rank,其中,timeline是最典型的feed流展示方式,按照feed流内容更新的时间先后顺序,将内容展示给用户;rank是按照某些因素计算feed流内容的权重,从而决定feed流内容展示的先后顺序。Among them, there are many forms of presentation of feed streams, including but not limited to: timeline-based presentation form timeline, smart sorting-based presentation form rank, among which timeline is the most typical feed stream presentation method, which is updated according to the feed stream content. Time sequence, the content is displayed to the user; rank is to calculate the weight of the feed stream content according to certain factors, so as to determine the sequence of the feed stream content display.
目前服务端向用户端下发feed流资源的形式主要由以下几种:At present, there are mainly the following forms in which the server sends the feed stream resources to the user:
推Push模式下,若某个用户更新了动态信息,服务端会向关注该用户的每个关注者进行 该动态信息的推送,将推送的资源存放在服务器的缓存池中并推送到每个关注者的feed流中,占用缓存资源,若需要推送的信息量比较大,则需要占用大量的服务器缓存资源。In the push mode, if a user updates the dynamic information, the server will push the dynamic information to each follower who follows the user, store the pushed resources in the server's cache pool and push it to each follower If the amount of information to be pushed is relatively large, it needs to occupy a large amount of server cache resources.
拉Pull模式,服务端根据用户的主动请求,确定用户请求访问自身的feed流时,会将feed流中该用户请求访问的资源推送给该用户并缓存到服务器的缓存池中。In the Pull mode, when the server determines that the user requests to access its own feed stream according to the user's active request, it will push the resource requested by the user in the feed stream to the user and cache it in the server's cache pool.
拉Pull模式,节省了大量资源占用,但用户在访问自己的关注内容时要先进行feed拉取操作,使得用户可能需要等待一段时间,增加了卡顿和首帧时长,影响用户体验。为此,服务端通常会在当前feed流中的视频资源被消费完之前向用户端下发下一批次视频。例如,当前feed流中未播放视频资源少于4个,向用户端下发新一批视频资源。上述方法的缺陷在于不能动态地调整视频资源下发的时机。例如:剩余4个未播放资源可能都是用户不喜欢观看的内容,用户可能直接跳过并未播放,由于第5个资源并未下发,当用户请求第5个资源下发,并下发加载,可能导致第5个资源的播放卡顿。Pull mode saves a lot of resources, but users need to perform feed pull operation first when accessing their own content, which makes users may need to wait for a while, which increases the delay and the length of the first frame, which affects the user experience. For this reason, the server usually delivers the next batch of videos to the client before the video resources in the current feed stream are consumed. For example, if there are less than 4 unplayed video resources in the current feed stream, a new batch of video resources is delivered to the client. The drawback of the above method is that the timing of delivering video resources cannot be dynamically adjusted. For example: the remaining 4 unplayed resources may be content that the user does not like to watch, and the user may skip it and not play it. Since the fifth resource has not been delivered, when the user requests the fifth resource to be delivered, it will be delivered Loading may cause the playback of the 5th resource to freeze.
本公开实施例提供了一种资源下发方法、装置、设备和存储介质,利用feed流中未播资源的预计播放时长与预设时长比较的结果,确定补充资源的下发时机,实现了feed流的资源动态下发的效果。在剩余资源的播放时长不足时,及时地向feed流中补充资源,通过提前向feed流中补充资源,补充进来的资源也可以进行预加载等策略,减少了后续资源播放卡顿等现象,整体播放体验提升。在剩余播放时长充足时,暂缓下发资源,收集相对更实时的用户行为、操作,达到更好的推荐效果。The embodiments of the present disclosure provide a resource delivery method, device, device, and storage medium, which utilize the result of comparing the estimated playback duration of unplayed resources in the feed stream with the preset duration to determine the delivery timing of supplementary resources, thereby realizing the feed The effect of dynamically delivering stream resources. When the playback time of the remaining resources is insufficient, resources are added to the feed stream in a timely manner. By adding resources to the feed stream in advance, the supplemented resources can also be preloaded and other strategies, reducing the phenomenon of subsequent resource playback freezes. The playback experience is improved. When the remaining playback time is sufficient, the distribution of resources is suspended, and relatively more real-time user behaviors and operations are collected to achieve better recommendation effects.
下面结合具体的实施例,对本公开实施例提供的资源下发方法、装置、设备和存储介质进行详细介绍。The resource delivery method, apparatus, device, and storage medium provided by the embodiments of the present disclosure will be described in detail below with reference to specific embodiments.
图1是本公开实施例提供的一种资源下发方法的流程图,本实施例可适用于动态下发feed流中的视频资源的情况,该方法可以由资源下发装置来执行,所述装置可以通过软件和/或硬件的方式来实现。所述资源下发方法应用于计算机设备中。所述计算机设备中安装由执行feed流播放的应用程序,例如,所述资源下发方法由安装feed流播放的应用程序的用户端来执行。FIG. 1 is a flowchart of a method for delivering resources provided by an embodiment of the present disclosure. This embodiment is applicable to a situation in which video resources in a feed stream are dynamically delivered. The method can be executed by a resource delivery device. The apparatus can be implemented by means of software and/or hardware. The resource delivery method is applied to computer equipment. The computer device is installed with an application program that executes the feed stream playback, for example, the resource delivery method is performed by the client side that installs the feed stream playback application program.
需要说明的是,本实施例所提供的资源下发方法具体可以在计算机设备上使用,并可认为具体由集成在计算机设备上的资源下发装置执行,其中,计算机设备具体可以是包括了处理器、存储器、输入装置和输出装置的计算机设备。如笔记本电脑、台式计算机、平板电脑以及智能终端等。It should be noted that the resource distribution method provided in this embodiment can be used on computer equipment, and can be considered to be executed by a resource distribution device integrated on the computer equipment, wherein the computer equipment can specifically include processing A computer device that includes a processor, memory, input device, and output device. Such as notebook computers, desktop computers, tablet computers and smart terminals.
本公开实施例提供的资源下发方法也可应用于其他与计算机设备具有相同功能的智能设备,本公开实施例对上述资源下发的应用场景及应用设备进行说明,而非限定。The resource delivery method provided by the embodiments of the present disclosure can also be applied to other smart devices having the same functions as computer devices. The embodiments of the present disclosure describe the application scenarios and application devices of the above-mentioned resource delivery, but are not limited.
如图1所示,本实施例提供的资源下发方法主要包括步骤S11、S12。As shown in FIG. 1 , the method for delivering resources provided by this embodiment mainly includes steps S11 and S12.
S11、基于时长预测模型确定当前feed流中未播资源的预计播放时长。S11. Determine, based on the duration prediction model, the expected playback duration of the unplayed resources in the current feed stream.
其中,feed流可以是一列可以不断向下滑动不断加载的资源列表,每个feed条目都是一个独立的资源。feed流中的资源可以是文字、图片、视频,甚至是可操作的卡片等。Among them, the feed stream can be a list of resources that can be continuously loaded by sliding down, and each feed entry is an independent resource. The resources in the feed stream can be text, images, videos, and even actionable cards.
当前feed流是指服务端已经推送到用户端,用户端正在执行播放的feed流。当前feed流中主要包括已播资源,当前资源和未播资源。已播资源是指用户端已经播放,用户已经观看过的资源;当前资源是指用户端正在播放,用户正在观看的资源;未播资源是指用户端还没有播放的资源。The current feed stream refers to the feed stream that the server has pushed to the client and the client is playing. The current feed stream mainly includes broadcast resources, current resources and unplayed resources. Played resources refer to resources that have been played by the client and have been watched by the user; current resources refer to the resources that are being played by the client and are being watched by the user; unplayed resources refer to the resources that have not yet been played by the client.
当前feed流中未播资源的预计播放时长是指当前feed流中未播资源可能会观看的时长。在实际应用中,未播资源的总时长可能是10分钟,但是由于用户个人喜好,或者网络卡顿等 原因,选择跳过其中一个资源,不进行播放,那么未播资源的实际播放时长要小于未播资源的总时长。The estimated playback duration of the unplayed resources in the current feed stream refers to the possible viewing time of the unplayed resources in the current feed stream. In practical applications, the total duration of unplayed resources may be 10 minutes, but due to the user's personal preference or network freezes and other reasons, if one chooses to skip one of the resources and does not play, then the actual playback duration of the unplayed resources will be less than The total duration of unplayed resources.
为了更准确的确定下一批次feed流资源的下发时机,需要对未播资源的可能播放时长进行预测,以得到当前feed流中未播资源的预计播放时长。In order to more accurately determine the delivery timing of the next batch of feed stream resources, it is necessary to predict the possible playback duration of the unplayed resources to obtain the estimated playback duration of the unplayed resources in the current feed stream.
在一个实施方式中,通过预训练的方式得到时长预测模型,将用户历史行为、用户自定义信息、未播资源类型、未播资源个数、每个未播资源时长和未播资源总时长输入至时长预测模型,时长预测模型输出当前feed流中未播资源的预计播放时长。In one embodiment, the duration prediction model is obtained by pre-training, and the user's historical behavior, user-defined information, type of unplayed resources, number of unplayed resources, duration of each unplayed resource, and total duration of unplayed resources are input. To the duration prediction model, the duration prediction model outputs the estimated playback duration of the unplayed resources in the current feed stream.
在一个实施方式中,通过预训练的方式得到时长预测模型,将用户历史行为、用户自定义信息、未播资源类型、未播资源个数和每个未播资源时长输入至时长预测模型,时长预测模型输出当前feed流中未播资源的预计播放比例。基于该比例与未播资源的总时长计算未播资源的预计播放时长。例如,可以是将该比例与未播资源的总时长之积确定为未播资源的预计播放时长。In one embodiment, the duration prediction model is obtained by pre-training, and the user's historical behavior, user-defined information, unplayed resource types, the number of unplayed resources, and the duration of each unplayed resource are input into the duration prediction model, and the duration The prediction model outputs the expected playback ratio of unplayed assets in the current feed stream. Based on this ratio and the total duration of the unplayed resources, calculate the estimated playback duration of the unplayed resources. For example, the product of the ratio and the total duration of the unplayed resources may be determined as the expected playing duration of the unplayed resources.
在本公开实施例中,提供一种时长预测模型的训练方法,主要包括如下步骤:利用用户历史行为、用户自定义信息、已播资源类型、已播资源个数、已播资源总时长、未播资源类型、未播资源个数、每个未播资源时长和未播资源总时长等特征训练神经网络模型,得到时长预测模型。In an embodiment of the present disclosure, a training method for a duration prediction model is provided, which mainly includes the following steps: using historical user behavior, user-defined information, type of broadcasted resources, number of broadcasted resources, total duration of broadcasted resources, The neural network model is trained based on characteristics such as the type of broadcast resources, the number of unbroadcast resources, the duration of each unbroadcast resource, and the total duration of unbroadcast resources, and the duration prediction model is obtained.
在使用时长预测模型预测当前feed流中未播资源的预计播放时长时,时长预测模型的输入是利用用户历史行为、用户自定义信息、未播资源类型、未播资源个数、每个未播资源时长和未播资源总时长,输出是当前feed流中未播资源在当前用户的行为模式下预计播放时长。When using the duration prediction model to predict the expected playback duration of the unplayed resources in the current feed stream, the input of the duration prediction model is to use the user's historical behavior, user-defined information, the type of unplayed resources, the number of unplayed resources, and the number of unplayed resources for each unplayed resource. The resource duration and the total duration of unplayed resources. The output is the estimated playback duration of the unplayed resources in the current feed stream under the current user's behavior mode.
需要说明的是,由于上述两个实施方式中,时长预测模型的输出结果不相同,其仅是模型训练过程中设置的模型参数不相同。使用时长预测模型时的输出结果和其训练的输出结果一致即可。It should be noted that, since the output results of the duration prediction models in the above two embodiments are different, it is only the model parameters set in the model training process that are different. The output results of using the duration prediction model can be consistent with the output results of its training.
图2是本公开实施例提供的一种时长预测模型的结构示意图,如图2所示,时长预测模型主要包括输入层,n个中间层和输出层,输入层接收到的特征参数主要包括:用户历史行为、用户自定义信息、视频类型和已播资源播放时长等。经过n个中间层进行学习和预测之后,输出层输出未播资源的预计播放时长。FIG. 2 is a schematic structural diagram of a duration prediction model provided by an embodiment of the present disclosure. As shown in FIG. 2 , the duration prediction model mainly includes an input layer, n intermediate layers and an output layer, and the feature parameters received by the input layer mainly include: User historical behavior, user-defined information, video type, and playback duration of broadcast resources, etc. After learning and prediction by n intermediate layers, the output layer outputs the expected playback duration of unplayed resources.
S12、基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。S12. Determine the timing for delivering the supplementary resource based on the comparison result between the predicted playback duration and the preset duration.
在本实施例中,预设时长是指根据资源下发时间确定的一个参考阈值,预设时长可以根据网络上传下载速度等参数进行设定。预设时长可以是10秒,30秒,或者1分钟等。本实施例中不具体限定预设时长的具体数值。In this embodiment, the preset duration refers to a reference threshold determined according to the resource delivery time, and the preset duration may be set according to parameters such as network upload and download speed. The preset duration can be 10 seconds, 30 seconds, or 1 minute, etc. The specific value of the preset duration is not specifically limited in this embodiment.
其中,补充资源是指服务端下发到用户端,补充到feed流中的资源。下发时机是指服务端下发补充资源到feed流中的时间点。资源下发是指服务端将资源的相关信息发送至用户端,可以是资源的加载地址,加载方式等。Among them, the supplementary resources refer to the resources delivered by the server to the user and supplemented to the feed stream. The delivery timing refers to the time when the server delivers supplementary resources to the feed stream. Resource delivery means that the server sends the relevant information of the resource to the user, which can be the loading address and loading method of the resource.
例如,基于所述预计播放时长与预设时长的比较结果,确定当前时刻是否要服务端下发补充资源。For example, based on the comparison result between the estimated playback duration and the preset duration, it is determined whether the server needs to deliver supplementary resources at the current moment.
例如,如果预计播放时长小于或等于预设时长,则确定当前时刻服务端要下发补充资源到用户端的feed流中,通过提前向feed流中补充视频资源,补充进来的资源可以进行预加载等策略,减少了后续资源播放卡顿等现象。如果预计播放时长大于预设时长,则确定当前时刻feed流中的未播资源可以供用户使用,不需要服务端要下发补充资源到用户端的feed流中。For example, if the expected playback duration is less than or equal to the preset duration, it is determined that the server will deliver supplementary resources to the feed stream of the client at the current moment. By supplementing video resources to the feed stream in advance, the supplemented resources can be preloaded, etc. strategy to reduce the phenomenon of subsequent resource playback freezes and other phenomena. If the expected playback duration is greater than the preset duration, it is determined that the unplayed resources in the feed stream at the current moment can be used by the user, and the server does not need to deliver supplementary resources to the feed stream of the user.
本公开实施例提供一种资源下发方法包括:基于时长预测模型确定当前feed流中未播资源的预计播放时长;基于预计播放时长与预设时长的比较结果,确定补充资源的下发时机。本公开实施例的技术方案中利用feed流中未播资源的预计播放时长与预设时长比较的结果,确定补充资源的下发时机,实现了feed流的视频资源动态下发的效果。在剩余播放时长不足时,及时地向feed流中补充视频资源,通过提前向feed流中补充视频资源,补充进来的视频也可以进行预加载等策略,减少了后续视频播放卡顿等现象,整体播放体验提升。在剩余播放时长充足时,暂缓下发视频资源,收集相对更实时的用户行为、操作,达到更好的推荐效果。An embodiment of the present disclosure provides a method for delivering resources, which includes: determining an expected playback duration of unplayed resources in a current feed stream based on a duration prediction model; In the technical solution of the embodiment of the present disclosure, the result of comparing the estimated playback duration of the unplayed resources in the feed stream with the preset duration is used to determine the delivery timing of the supplementary resources, thereby realizing the effect of dynamically delivering the video resources of the feed stream. When the remaining playback time is insufficient, video resources are added to the feed stream in a timely manner. By adding video resources to the feed stream in advance, the supplemented videos can also be pre-loaded and other strategies, reducing subsequent video playback freezes and other phenomena. The playback experience is improved. When the remaining playback time is sufficient, the video resources will be temporarily released, and relatively more real-time user behaviors and operations will be collected to achieve a better recommendation effect.
在上述实施例的基础上,本公开实施例细化了资源下发方法,图3是本公开实施例提供的一种资源下发方法的流程图,如图3所示,本公开实施例提供的资源下发方法主要包括如下步骤:On the basis of the above embodiments, the embodiments of the present disclosure refine the resource delivery method. FIG. 3 is a flowchart of a resource delivery method provided by the embodiments of the present disclosure. As shown in FIG. 3 , the embodiments of the present disclosure provide The resource distribution method mainly includes the following steps:
S21、基于时长预测模型确定当前feed流中未播资源的预计播放时长。S21. Determine, based on the duration prediction model, the expected playback duration of the unplayed resources in the current feed stream.
在一个实施方式中,响应于检测到当前资源开始播放,基于时长预测模型确定当前feed流中未播资源的预计播放时长。In one embodiment, in response to detecting that the current resource starts playing, the expected playing duration of the unplayed resource in the current feed stream is determined based on the duration prediction model.
其中,检测到当前资源开始播放可以是检测到当前资源的首帧开始播放,检测到当前资源开始播放也可以是或者检测到用户执行开播对应的操作指令,如检测到用户点击开播按钮,检测到用户执行上滑或者下滑操作。还检测到当前资源开始播放也可以检测到资源切换指令。本实施例中,仅对检测到当前资源开始播放的方式进行说明,而非限定。Wherein, the detection of the start of playback of the current resource may be the detection of the first frame of the current resource to start playback, and the detection of the start of playback of the current resource may also be or detected that the user executes an operation instruction corresponding to the start of the broadcast, such as detecting that the user clicks the start button. The user performs a slide-up or slide-down operation. It is also detected that the current resource starts to play and a resource switching instruction can also be detected. In this embodiment, only the manner in which the current resource is detected to start playing is described, but not limited.
在本实施例中,检测到当前资源开始播放后,再预测当前feed流中未播资源的预计播放时长,对预测未播资源的播放时长规定了时间点,避免了频繁的进行预测,导致的资源浪费,可以有效节省内存资源。In this embodiment, after it is detected that the current resource starts to play, the expected playback duration of the unplayed resources in the current feed stream is predicted, and the time point is specified for predicting the playback duration of the unplayed resources, so as to avoid frequent prediction, resulting in Waste of resources, can effectively save memory resources.
在一个实施方式中,基于时长预测模型确定当前feed流中未播资源的预计播放时长,包括:获取用户历史行为和未播资源参数,所述未播资源参数包括未播资源类型、未播资源个数、未播资源时长和未播资源总时长;将所述用户历史行为和未播资源参数输入至所述时长预测模型,得到当前feed流中未播资源的预计播放时长。In one embodiment, determining the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model includes: acquiring historical user behavior and unplayed resource parameters, where the unplayed resource parameters include unplayed resource types, unplayed resource types, and unplayed resource parameters. The number, duration of unplayed resources, and total duration of unplayed resources; input the user's historical behavior and parameters of unplayed resources into the duration prediction model to obtain the expected playback duration of unplayed resources in the current feed stream.
其中,用户历史行为是指用户先前观看历史资源的相关操作行为,例如:点赞、评论、关注、添加收藏、下载和分享等。资源类型是表征资源类别的参数,例如:动作、搞笑、吃播、美妆等。Among them, the user's historical behavior refers to the relevant operation behavior of the user's previous viewing of historical resources, such as: liking, commenting, following, adding to favorites, downloading, and sharing. Resource type is a parameter that characterizes the resource category, such as action, funny, eating and broadcasting, beauty and so on.
例如,在上述实施例的基础上,还可以在获取用户历史行为和未播资源参数的同时,获取用户自定义信息。并将所述用户历史行为、用户自定义信息和未播资源参数输入至所述时长预测模型,得到当前feed流中未播资源的预计播放时长。For example, on the basis of the above embodiment, user-defined information can also be obtained while obtaining the user's historical behavior and parameters of unplayed resources. The user's historical behavior, user-defined information and unplayed resource parameters are input into the duration prediction model to obtain the expected playing duration of the unplayed resources in the current feed stream.
其中,上述用户自定义信息是指用户在用户端公开的个人信息,例如:可以是用户昵称、用户类型等。The above-mentioned user-defined information refers to the personal information disclosed by the user on the user terminal, for example, it may be a user's nickname, a user type, and the like.
例如,在使用时长预测模型预测当前feed流中未播资源的预计播放时长时,时长预测模型的输入是利用用户历史行为、用户自定义信息、未播资源类型、未播资源个数、每个未播资源时长和未播资源总时长。得到当前feed流中未播资源在当前用户的行为模式下预计播放时长。For example, when using the duration prediction model to predict the expected playback duration of the unplayed resources in the current feed stream, the input of the duration prediction model is to use the user's historical behavior, user-defined information, the type of unplayed resources, the number of unplayed resources, each The duration of unplayed resources and the total duration of unplayed resources. Get the estimated playback time of the unplayed resources in the current feed stream under the behavior mode of the current user.
需要说明的是,时长预测模型的训练方式和结构可以参照上述实施例中的描述,本实施例中不进行限定。It should be noted that, for the training method and structure of the duration prediction model, reference may be made to the description in the foregoing embodiment, which is not limited in this embodiment.
本实施例中,采用多维特征输入预训练的神经网络模型得到当前feed流中未播资源在当前用户的行为模式下预计播放时长的技术方案,可以提高预计播放时长的准确性。In this embodiment, the multi-dimensional feature input pre-trained neural network model is used to obtain the technical solution of the estimated playback duration of the unplayed resources in the current feed stream under the behavior mode of the current user, which can improve the accuracy of the estimated playback duration.
S22、基于时长预测模型确定当前feed流中未播资源的预计播放时长与预设时长的比较结果。S22. Determine, based on the duration prediction model, a comparison result between the expected playback duration of the unplayed resources in the current feed stream and the preset duration.
S23、判断预计播放时长是否大于预设时长,基于预计播放时长大于预设时长的判断结果,执行S24,基于预计播放时长小于或等于预设时长的判断结,执行S27。S23. Determine whether the expected playback duration is greater than the preset duration, and perform S24 based on the judgment result that the expected playback duration is greater than the preset duration, and perform S27 based on the judgment result that the expected playback duration is less than or equal to the preset duration.
S24、响应于确定所述预计播放时长大于预设时长,禁止补充资源下发。S24. In response to determining that the expected playback duration is greater than a preset duration, forbid the delivery of supplementary resources.
在本实施例中,如果预计播放时长大于预设时长,则表明当前feed流中的未播资源充足,不需要向服务端请求资源下发。此时,暂缓下发视频资源,用户端收集相对更实时的用户行为操作,达到更好的推荐效果。In this embodiment, if the expected playback duration is greater than the preset duration, it indicates that the unplayed resources in the current feed stream are sufficient, and there is no need to request the server for resource delivery. At this time, the delivery of video resources is suspended, and the user terminal collects relatively more real-time user behavior operations to achieve a better recommendation effect.
S25、检测下一资源的播放状态。S25. Detect the play state of the next resource.
在本实施例中,下一资源是指当前feed流中当前资源播放之后进行播放资源。检测下一资源的播放状态可以理解为实时检测下一资源是否开始播放。In this embodiment, the next resource refers to the resource to be played after the current resource in the current feed stream is played. Detecting the playback state of the next resource can be understood as detecting whether the next resource starts playing in real time.
S26、响应于检测到下一资源的播放状态是开始播放,返回执行S21。S26. In response to detecting that the playing state of the next resource is to start playing, return to executing S21.
如果检测到下一资源的播放状态是开始播放,则表明用户开始观看下一资源,此时,重新执行于时长预测模型确定当前feed流中未播资源的预计播放时长的步骤,并判断预测补充资源的下发时机,避免了频繁的进行预测,导致的资源浪费,可以有效节省内存资源。If it is detected that the playback status of the next resource is starting to play, it indicates that the user starts to watch the next resource. At this time, the step of determining the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model is re-executed, and the prediction supplement is determined. The timing of resource delivery avoids frequent predictions and waste of resources, which can effectively save memory resources.
S27、响应于确定预计播放时长小于或等于预设时长,触发补充资源开始下发。S27. In response to determining that the expected playback duration is less than or equal to the preset duration, trigger the delivery of the supplementary resource.
在一个实施方式中,触发补充资源开始下发,包括:向服务端发送资源下发请求,所述资源下发请求用于请求服务端下发资源。In one embodiment, triggering the start of delivery of the supplementary resource includes: sending a resource delivery request to the server, where the resource delivery request is used to request the server to deliver the resource.
在本实施例中,如果预计播放时长小于或等于预设时长,则表明剩余播放时长不足,需要向当前feed流中补充新的资源,此时,客户端向服务端发送资源下发请求,请求服务端下发预先准备的资源。In this embodiment, if the expected playback duration is less than or equal to the preset duration, it indicates that the remaining playback duration is insufficient, and new resources need to be added to the current feed stream. At this time, the client sends a resource delivery request to the server. The server delivers pre-prepared resources.
例如,客户端向服务端发送资源下发请求的同时,用户端还可以发送用户行为信息至服务端,服务端根据用户行为信息从海量视频中筛选出多个候选视频,并将候选视频打分排序,选取个性化的前N个视频下发到当前用户的feed流中。For example, when the client sends a resource delivery request to the server, the client can also send user behavior information to the server. The server selects multiple candidate videos from the massive videos according to the user behavior information, and scores and sorts the candidate videos. , select the personalized top N videos and send them to the current user's feed stream.
例如,接收到服务端下发的补充资源后,对补充资源进行预加载操作,减少了后续播放卡顿等现象,整体播放体验提升。For example, after receiving the supplementary resources issued by the server, preloading the supplementary resources is performed, which reduces the phenomenon of subsequent playback jams and the like, and improves the overall playback experience.
本公开实施例的技术方案中利用feed流中未播资源的预计播放时长与预设时长比较的结果,确定补充资源的下发时机,实现了feed流的视频资源动态下发的效果。在剩余播放时长不足时,及时地向feed流中补充视频资源,通过提前向feed流中补充视频资源,补充进来的视频也可以进行预加载等策略,减少了后续视频播放卡顿等现象,整体播放体验提升。在剩余播放时长充足时,暂缓下发视频资源,收集相对更实时的用户行为、操作,达到更好的推荐效果。In the technical solution of the embodiment of the present disclosure, the result of comparing the estimated playback duration of the unplayed resources in the feed stream with the preset duration is used to determine the delivery timing of the supplementary resources, thereby realizing the effect of dynamically delivering the video resources of the feed stream. When the remaining playback time is insufficient, video resources are added to the feed stream in a timely manner. By adding video resources to the feed stream in advance, the supplemented videos can also be pre-loaded and other strategies, reducing subsequent video playback freezes and other phenomena. The playback experience is improved. When the remaining playback time is sufficient, the video resources will be temporarily released, and relatively more real-time user behaviors and operations will be collected to achieve a better recommendation effect.
在上述实施例的基础上,提供另一种实施方式,基于时长预测模型确定当前feed流中未播资源的预计播放时长与预设时长的比较结果。On the basis of the above-mentioned embodiment, another implementation is provided, in which a comparison result between the expected playback duration of the unplayed resources in the current feed stream and the preset duration is determined based on the duration prediction model.
在本实施例中,当前feed流中未播资源的预计播放时长与预设时长的比较结果由时长预测模型直接输出。In this embodiment, the comparison result between the estimated playback duration of the unplayed resources in the current feed stream and the preset duration is directly output by the duration prediction model.
需要说明的是,在上述实施例中,时长预测模型输出的是当前feed流中未播资源的预计 播放时长,即是一个时间值。预计播放时长和预设时长的比较由资源下发装置来执行。在本实施例中,当前feed流中未播资源的预计播放时长是时长预测模型其中的一个中间变量,时长预测模型可以直接比较当前feed流中未播资源的预计播放时长与预设时长的大小,此时时长预测模型的输出结果是二分类变量,即输出内容是:“是”或者“否”。例如,响应于确定所述预计播放时长小于或等于预设时长,时长预测模型输出“是”,响应于确定所述预计播放时长大于预设时长,时长预测模型输出“否”。例如,时长预测模型输出“是”时,触发补充资源开始下发,时长预测模型输出“否”时,禁止补充资源下发。It should be noted that, in the above embodiment, the output of the duration prediction model is the expected playback duration of the unplayed resources in the current feed stream, that is, a time value. The comparison between the expected playback duration and the preset duration is performed by the resource delivery device. In this embodiment, the estimated playback duration of the unplayed resources in the current feed stream is an intermediate variable in the duration prediction model, and the duration prediction model can directly compare the estimated playback duration of the unplayed resources in the current feed stream with the preset duration. , the output of the duration prediction model is a binary variable, that is, the output content is: "Yes" or "No". For example, in response to determining that the expected playback duration is less than or equal to a preset duration, the duration prediction model outputs "Yes", and in response to determining that the expected playback duration is greater than the preset duration, the duration prediction model outputs "No". For example, when the duration prediction model outputs "Yes", it triggers the delivery of supplementary resources, and when the duration prediction model outputs "No", the delivery of supplementary resources is prohibited.
本公开实施例中,通过时长预测模型直接输出比较结果,可以减少资源下发装置的运算时间,提高资源下发时机确定速度。In the embodiment of the present disclosure, the comparison result is directly output by the duration prediction model, which can reduce the computing time of the resource delivery device and improve the speed of determining the resource delivery timing.
在一个应用性实例中,以未播资源是视频资源为例进行说明,图4是本公开实施例提供的服务端与用户端的交互示意图,如图4所示,客户端检测到视频开播之后,将对应的特征发送至训练好的时长预测模型中进行预测,判断feed流中未播视频的播放时长能否大于预设时长x秒。若未播视频的播放时长大于到预设时长x秒,则不触发下发更多视频逻辑,等待下一次视频播放时再行判断。若未播视频的播放时长小于或等于预设时长x秒,则触发下发更多视频逻辑,即用户端向服务端发送视频下发请求,请求服务端下发视频。同时,用户端发送用户历史行为至服务端,服务端根据用户历史行为从海量视频中筛选出多个候选视频,并将候选视频打分排序,选取个性化的前N个视频下发到当前用户的feed流中。In an application example, the unplayed resource is a video resource as an example for description. FIG. 4 is a schematic diagram of the interaction between the server and the user provided by the embodiment of the present disclosure. As shown in FIG. 4 , after the client detects that the video is started, Send the corresponding features to the trained duration prediction model for prediction, and determine whether the playback duration of the unplayed video in the feed stream is greater than the preset duration x seconds. If the playback duration of the unplayed video is longer than the preset duration x seconds, the logic for sending more videos will not be triggered, and the judgment will be made when the next video is played. If the playback duration of the unplayed video is less than or equal to the preset duration x seconds, the logic for delivering more videos is triggered, that is, the client sends a video delivery request to the server to request the server to deliver the video. At the same time, the client sends the user's historical behavior to the server, and the server selects multiple candidate videos from the massive videos according to the user's historical behavior, scores and sorts the candidate videos, and selects the personalized top N videos and sends them to the current user's in the feed stream.
经过本实施例中的预测、判断流程,达到了feed流的短视频资源动态下发的效果,在剩余播放时长不足时及时地向feed流中补充视频资源,通过提前向feed流中补充视频资源,补充进来的视频可以进行预加载等策略,减少了后续视频播放卡顿等现象,整体播放体验提升;在剩余播放时长充足时,暂缓下发视频资源,收集相对更实时的用户行为、操作,达到更好的推荐效果。Through the prediction and judgment process in this embodiment, the effect of dynamically delivering short video resources of the feed stream is achieved. When the remaining playing time is insufficient, video resources are added to the feed stream in a timely manner, and video resources are added to the feed stream in advance by adding video resources to the feed stream. , the supplemented video can be pre-loaded and other strategies, which reduce the phenomenon of subsequent video playback stuttering and other phenomena, and improve the overall playback experience; when the remaining playback time is sufficient, the delivery of video resources is postponed, and relatively more real-time user behaviors and operations are collected. achieve a better recommendation effect.
图5是本公开实施例提供的一种资源下发装置的示意图,本实施例可适用于动态下发feed流中的视频资源的情况,所述装置可以通过软件和/或硬件的方式来实现。所述资源下发装置配置于计算机设备中。所述计算机设备中安装由执行feed流播放的应用程序,例如,所述资源下发方法由安装feed流播放的应用程序的用户端来执行。FIG. 5 is a schematic diagram of an apparatus for delivering resources provided by an embodiment of the present disclosure. This embodiment is applicable to the case of dynamically delivering video resources in a feed stream, and the apparatus may be implemented by means of software and/or hardware. . The resource issuing device is configured in computer equipment. The computer device is installed with an application program that executes the feed stream playback, for example, the resource delivery method is performed by the client side that installs the feed stream playback application program.
如图5所示,本实施例提供的资源下发装置主要包括播放时长预测模块51和下发时机确定模块52。As shown in FIG. 5 , the resource delivery apparatus provided in this embodiment mainly includes a playback duration prediction module 51 and a delivery timing determination module 52 .
其中,播放时长预测模块51,设置为基于时长预测模型确定当前feed流中未播资源的预计播放时长;Wherein, the playback duration prediction module 51 is set to determine the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model;
下发时机确定模块52,设置为基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。The delivery timing determination module 52 is configured to determine the delivery timing of the supplementary resource based on the comparison result between the estimated playback duration and the preset duration.
本公开实施例提供一种资源下发装置,主要设置为执行如下操作:基于时长预测模型确定当前feed流中未播资源的预计播放时长;基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。本公开实施例的技术方案中利用feed流中未播资源的预计播放时长与预设时长比较的结果,确定补充资源的下发时机,实现了feed流的视频资源动态下发的效果。An embodiment of the present disclosure provides a resource delivery device, which is mainly configured to perform the following operations: determine the expected playback duration of unplayed resources in the current feed stream based on a duration prediction model; based on the comparison result between the expected playback duration and the preset duration, Determine the timing for issuing supplementary resources. In the technical solution of the embodiment of the present disclosure, the result of comparing the estimated playback duration of the unplayed resources in the feed stream with the preset duration is used to determine the delivery timing of the supplementary resources, thereby realizing the effect of dynamically delivering the video resources of the feed stream.
在一个实施方式中,还包括:基于时长预测模型确定当前feed流中未播资源的预计播放时长与预设时长的比较结果,执行基于所述预计播放时长与预设时长的比较结果,确定补充 资源的下发时机的操作。In one embodiment, the method further includes: determining, based on the duration prediction model, a comparison result between the expected playback duration of the unplayed resources in the current feed stream and a preset duration, and performing a comparison based on the comparison result between the expected playback duration and the preset duration to determine the supplementary Operation of resource delivery timing.
在一个实施方式中,播放时长预测模块51,设置为响应于检测到当前资源开始播放,基于时长预测模型确定当前feed流中未播资源的预计播放时长。In one embodiment, the playback duration prediction module 51 is configured to, in response to detecting that the current resource starts playing, determine the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model.
在一个实施方式中,播放时长预测模块51,设置为获取用户历史行为和未播资源参数,所述未播资源参数包括未播资源类型、未播资源个数、未播资源时长和未播资源总时长;In one embodiment, the playback duration prediction module 51 is configured to obtain user historical behavior and unplayed resource parameters, where the unplayed resource parameters include unplayed resource type, number of unplayed resources, unplayed resource duration and unplayed resources total duration;
将所述用户历史行为和未播资源参数输入至所述时长预测模型,得到当前feed流中未播资源的预计播放时长。Input the user's historical behavior and unplayed resource parameters into the duration prediction model to obtain the expected playing duration of the unplayed resources in the current feed stream.
在一个实施方式中,下发时机确定模块52,设置为响应于确定所述预计播放时长小于或等于预设时长,触发补充资源开始下发;响应于确定所述预计播放时长大于预设时长,禁止补充资源下发。In one embodiment, the delivery timing determination module 52 is configured to trigger the supplementary resource to start delivering in response to determining that the expected playback duration is less than or equal to a preset duration; in response to determining that the expected playback duration is greater than the preset duration, Supplementary resource distribution is prohibited.
在一个实施方式中,响应于确定所述预计播放时长大于预设时长,禁止补充资源下发之后,还包括:检测下一资源的播放状态;响应于检测到下一资源的播放状态是开始播放,执行基于时长预测模型确定当前feed流中未播资源的预计播放时长的操作。In one embodiment, in response to determining that the expected playback duration is greater than the preset duration, after prohibiting the delivery of the supplementary resource, the method further includes: detecting the playback state of the next resource; in response to detecting that the playback state of the next resource is to start playing , to perform the operation of determining the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model.
在一个实施方式中,触发补充资源开始下发,包括:向服务端发送资源下发请求,所述资源下发请求用于请求服务端下发资源。In one embodiment, triggering the start of delivery of the supplementary resource includes: sending a resource delivery request to the server, where the resource delivery request is used to request the server to deliver the resource.
本实施例所提供的资源下发装置可执行本公开任意实施例所提供的资源下发方法,具备执行资源下发方法相应的功能模块和有益效果。The resource distribution apparatus provided in this embodiment can execute the resource distribution method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the resource distribution method.
下面参考图6,其示出了适于用来实现本公开实施例的电子设备(例如图6中的终端设备或服务端)600的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring next to FIG. 6 , it shows a schematic structural diagram of an electronic device (eg, a terminal device or a server in FIG. 6 ) 600 suitable for implementing an embodiment of the present disclosure. Terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置606加载到随机访问存储器(RAM)603中的程序而执行多种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的多种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , an electronic device 600 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 601 that may be loaded into random access according to a program stored in a read only memory (ROM) 602 or from a storage device 606 A program in a memory (RAM) 603 executes various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604 .
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置608;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置606;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有多种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 605: input devices 608 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 606 of a computer, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. Communication means 609 may allow electronic device 600 to communicate wirelessly or by wire with other devices to exchange data. Although FIG. 6 shows an electronic device 600 having various means, it should be understood that not all of the illustrated means are required to be implemented or available. More or fewer devices may alternatively be implemented or provided.
例如,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法 中限定的上述功能。For example, the processes described above with reference to the flowcharts may be implemented as computer software programs according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 609, or from the storage device 608, or from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
在一些实施方式中,用户端、服务端可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can use any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) to communicate, and can communicate with digital data in any form or medium. Data communications (eg, communication networks) are interconnected. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device:
基于时长预测模型确定当前feed流中未播资源的预计播放时长;Determine the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model;
基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。Based on the comparison result between the predicted playback duration and the preset duration, the timing for delivering the supplementary resource is determined.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务端上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and This includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的 功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
根据本公开的一个或多个实施例,提供了资源下发方法、装置、设备和介质,包括:According to one or more embodiments of the present disclosure, a method, apparatus, device, and medium for delivering resources are provided, including:
基于时长预测模型确定当前信息feed流中未播资源的预计播放时长;Determine the expected playback duration of the unplayed resources in the current information feed stream based on the duration prediction model;
基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。Based on the comparison result between the predicted playback duration and the preset duration, the timing for delivering the supplementary resource is determined.
根据本公开的一个或多个实施例,提供了资源下发方法、装置、设备和介质,还包括:According to one or more embodiments of the present disclosure, a method, apparatus, device, and medium for delivering resources are provided, further comprising:
基于时长预测模型确定当前feed流中未播资源的预计播放时长与预设时长的比较结果,执行基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机的操作。Based on the duration prediction model, determine the comparison result between the expected playback duration and the preset duration of the unplayed resources in the current feed stream, and perform the operation of determining the delivery timing of the supplementary resource based on the comparison result between the expected playback duration and the preset duration.
根据本公开的一个或多个实施例,提供了资源下发方法、装置、设备和介质,基于时长预测模型确定当前feed流中未播资源的预计播放时长,包括:According to one or more embodiments of the present disclosure, a resource delivery method, apparatus, device, and medium are provided, and the estimated playback duration of the unplayed resources in the current feed stream is determined based on a duration prediction model, including:
响应于检测到当前资源开始播放,基于时长预测模型确定当前feed流中未播资源的预计播放时长。In response to detecting that the current resource starts to play, the expected playing duration of the unplayed resource in the current feed stream is determined based on the duration prediction model.
根据本公开的一个或多个实施例,提供了资源下发方法、装置、设备和介质,基于时长预测模型确定当前feed流中未播资源的预计播放时长,包括:According to one or more embodiments of the present disclosure, a resource delivery method, apparatus, device, and medium are provided, and the estimated playback duration of the unplayed resources in the current feed stream is determined based on a duration prediction model, including:
获取用户历史行为和未播资源参数,所述未播资源参数包括未播资源类型、未播资源个数、未播资源时长和未播资源总时长;Obtaining the user's historical behavior and parameters of unplayed resources, where the parameters of unplayed resources include the type of unplayed resources, the number of unplayed resources, the duration of unplayed resources, and the total duration of unplayed resources;
将所述用户历史行为和未播资源参数输入至所述时长预测模型,得到当前feed流中未播资源的预计播放时长。Input the user's historical behavior and unplayed resource parameters into the duration prediction model to obtain the expected playing duration of the unplayed resources in the current feed stream.
根据本公开的一个或多个实施例,提供了资源下发方法、装置、设备和介质,基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机,包括:According to one or more embodiments of the present disclosure, a method, apparatus, device, and medium for delivering resources are provided. Based on the comparison result between the estimated playback duration and the preset duration, determining the timing for delivering supplementary resources includes:
响应于确定所述预计播放时长小于或等于预设时长,触发补充资源开始下发;In response to determining that the expected playback duration is less than or equal to the preset duration, triggering the start of delivery of supplementary resources;
响应于确定所述预计播放时长大于预设时长,禁止补充资源下发。In response to determining that the expected playback duration is greater than the preset duration, the delivery of supplementary resources is prohibited.
根据本公开的一个或多个实施例,提供了资源下发方法、装置、设备和介质,响应于确 定所述预计播放时长大于预设时长,禁止补充资源下发之后,还包括:According to one or more embodiments of the present disclosure, a method, device, device and medium for delivering resources are provided, and in response to determining that the expected playback duration is greater than the preset duration, after forbidding the issuance of supplementary resources, it also includes:
检测下一资源的播放状态;Detect the playback status of the next resource;
响应于检测到下一资源的播放状态是开始播放,执行基于时长预测模型确定当前feed流中未播资源的预计播放时长的操作。In response to detecting that the playing state of the next resource is to start playing, an operation of determining the expected playing duration of the unplayed resource in the current feed stream based on the duration prediction model is performed.
根据本公开的一个或多个实施例,提供了资源下发方法、装置、设备和介质,触发视频资源下发操作,包括:According to one or more embodiments of the present disclosure, a method, apparatus, device and medium for delivering resources are provided to trigger a video resource delivery operation, including:
触发补充资源开始下发,包括:Trigger the delivery of supplementary resources, including:
向服务端发送资源下发请求,所述资源下发请求用于请求服务端下发资源。A resource delivery request is sent to the server, where the resource delivery request is used to request the server to deliver resources.
以上描述仅为本公开的示例实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The foregoing descriptions are merely exemplary embodiments of the present disclosure and illustrative of the technical principles employed. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) with similar functions.
此外,虽然采用特定次序描绘了多操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的多种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Additionally, although operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although the above discussion contains several implementation-specific details, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

Claims (10)

  1. 一种资源下发方法,包括:A method for delivering resources, comprising:
    基于时长预测模型确定当前信息feed流中未播资源的预计播放时长;Determine the expected playback duration of the unplayed resources in the current information feed stream based on the duration prediction model;
    基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。Based on the comparison result between the predicted playback duration and the preset duration, the timing for delivering the supplementary resource is determined.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1, further comprising:
    基于所述时长预测模型确定所述当前feed流中未播资源的预计播放时长与预设时长的比较结果。Based on the duration prediction model, a comparison result between the expected playback duration of the unplayed resources in the current feed stream and the preset duration is determined.
  3. 根据权利要求1所述的方法,其中,所述基于时长预测模型确定当前feed流中未播资源的预计播放时长,包括:The method according to claim 1, wherein the determining the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model comprises:
    响应于检测到当前资源开始播放,基于时长预测模型确定当前feed流中未播资源的预计播放时长。In response to detecting that the current resource starts to play, the expected playing duration of the unplayed resource in the current feed stream is determined based on the duration prediction model.
  4. 根据权利要求1或2所述的方法,其中,所述基于时长预测模型确定当前feed流中未播资源的预计播放时长,包括:The method according to claim 1 or 2, wherein the determining the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model comprises:
    获取用户历史行为和未播资源参数,所述未播资源参数包括未播资源类型、未播资源个数、未播资源时长和未播资源总时长;Obtaining the user's historical behavior and parameters of unplayed resources, where the parameters of unplayed resources include the type of unplayed resources, the number of unplayed resources, the duration of unplayed resources, and the total duration of unplayed resources;
    将所述用户历史行为和所述未播资源参数输入至所述时长预测模型,得到当前feed流中未播资源的预计播放时长。The user's historical behavior and the unplayed resource parameters are input into the duration prediction model to obtain the expected playing duration of the unplayed resources in the current feed stream.
  5. 根据权利要求1或2所述的方法,其中,所述基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机,包括:The method according to claim 1 or 2, wherein the determining the timing for delivering the supplementary resource based on the comparison result between the expected playback duration and the preset duration includes:
    响应于确定所述预计播放时长小于或等于预设时长,触发补充资源开始下发;In response to determining that the expected playback duration is less than or equal to the preset duration, triggering the start of delivery of supplementary resources;
    响应于确定所述预计播放时长大于所述预设时长,禁止所述补充资源下发。In response to determining that the expected playback duration is greater than the preset duration, distributing the supplementary resource is prohibited.
  6. 根据权利要求5所述的方法,所述响应于确定所述预计播放时长大于预设时长,禁止所述补充资源下发之后,还包括:The method according to claim 5, wherein in response to determining that the expected playback duration is greater than a preset duration, after prohibiting the delivery of the supplementary resource, the method further comprises:
    检测下一资源的播放状态;Detect the playback status of the next resource;
    响应于检测到所述下一资源的播放状态是开始播放,执行所述基于时长预测模型确定当前feed流中未播资源的预计播放时长的操作。In response to detecting that the playing state of the next resource is to start playing, the operation of determining the expected playing duration of the unplayed resource in the current feed stream based on the duration prediction model is performed.
  7. 根据权利要求5所述的方法,其中,所述触发补充资源开始下发,包括:The method according to claim 5, wherein the triggering the start of issuing the supplementary resource comprises:
    向服务端发送资源下发请求,所述资源下发请求用于请求服务端下发资源。A resource delivery request is sent to the server, where the resource delivery request is used to request the server to deliver resources.
  8. 一种资源下发装置,包括:A resource distribution device, comprising:
    播放时长预测模块,设置为基于时长预测模型确定当前feed流中未播资源的预计播放时长;The playback duration prediction module is set to determine the expected playback duration of the unplayed resources in the current feed stream based on the duration prediction model;
    下发时机确定模块,设置为基于所述预计播放时长与预设时长的比较结果,确定补充资源的下发时机。The delivery timing determination module is configured to determine the delivery timing of the supplementary resource based on the comparison result between the estimated playback duration and the preset duration.
  9. 一种资源下发设备,包括:A resource delivery device, including:
    一个或多个处理器;one or more processors;
    存储器,设置为存储一个或多个程序;memory, arranged to store one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7任一项所述的资源下发方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the resource delivery method according to any one of claims 1-7.
  10. 一种计算机可读存储介质,所述介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-7任一项所述的资源下发方法。A computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the resource delivery method according to any one of claims 1-7.
PCT/CN2022/077189 2021-02-26 2022-02-22 Resource issuing method, apparatus and device, and storage medium WO2022179481A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110220305.3 2021-02-26
CN202110220305.3A CN114979679A (en) 2021-02-26 2021-02-26 Resource issuing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022179481A1 true WO2022179481A1 (en) 2022-09-01

Family

ID=82972937

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/077189 WO2022179481A1 (en) 2021-02-26 2022-02-22 Resource issuing method, apparatus and device, and storage medium

Country Status (2)

Country Link
CN (1) CN114979679A (en)
WO (1) WO2022179481A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916414A (en) * 2012-12-31 2014-07-09 华为技术有限公司 Transmission rate configuration method, terminal device, server and system
US20150026310A1 (en) * 2009-09-17 2015-01-22 Adobe Systems Incorporated Stream duration management
CN105635254A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Method and device for downloading multimedia resource
CN110149540A (en) * 2018-04-27 2019-08-20 腾讯科技(深圳)有限公司 Recommendation process method, apparatus, terminal and the readable medium of multimedia resource
CN111200743A (en) * 2018-11-16 2020-05-26 腾讯科技(北京)有限公司 Media resource playing method and device, storage medium and electronic device
CN112004120A (en) * 2019-05-27 2020-11-27 广州虎牙信息科技有限公司 Method, device, equipment and storage medium for predicting platform network resource playing amount

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163336B (en) * 2020-01-19 2021-07-27 北京字节跳动网络技术有限公司 Video resource pushing method and device, electronic equipment and computer readable medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026310A1 (en) * 2009-09-17 2015-01-22 Adobe Systems Incorporated Stream duration management
CN103916414A (en) * 2012-12-31 2014-07-09 华为技术有限公司 Transmission rate configuration method, terminal device, server and system
CN105635254A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Method and device for downloading multimedia resource
CN110149540A (en) * 2018-04-27 2019-08-20 腾讯科技(深圳)有限公司 Recommendation process method, apparatus, terminal and the readable medium of multimedia resource
CN111200743A (en) * 2018-11-16 2020-05-26 腾讯科技(北京)有限公司 Media resource playing method and device, storage medium and electronic device
CN112004120A (en) * 2019-05-27 2020-11-27 广州虎牙信息科技有限公司 Method, device, equipment and storage medium for predicting platform network resource playing amount

Also Published As

Publication number Publication date
CN114979679A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
WO2021052141A1 (en) List flow implementation method and apparatus, electronic device, and storage medium
WO2022083427A1 (en) Landscape interaction method and apparatus, electronic device, and storage medium
US20220368733A1 (en) Interaction method and apparatus, and electronic device
WO2022156638A1 (en) Interaction method and apparatus, and electronic device and storage medium
WO2021223752A1 (en) Display method and apparatus, and electronic device
CN110708602A (en) Video starting method and device, electronic equipment and storage medium
WO2023103889A1 (en) Video processing method and apparatus, electronic device, and storage medium
WO2022078159A1 (en) Broadcasting method and device for live broadcast
CN111258736B (en) Information processing method and device and electronic equipment
US20220342925A1 (en) Material presentation method, electronic device, and storage medium
CN115474085A (en) Media content playing method, device, equipment, storage medium and program product
CN114363686B (en) Method, device, equipment and medium for publishing multimedia content
CN111723309B (en) Method and device for web page searching
WO2024056040A1 (en) Multimedia information display method and apparatus, and electronic device
WO2023241373A1 (en) Image record generation method and apparatus, and electronic device and storage medium
WO2022188618A1 (en) Resource preloading method, apparatus and device, and storage medium
CN115474086B (en) Play control method, device, electronic equipment and storage medium
WO2022179481A1 (en) Resource issuing method, apparatus and device, and storage medium
WO2023029821A1 (en) Video buffer playing method and apparatus, and electronic device and storage medium
WO2022095932A1 (en) Livestreaming room page jumping method and apparatus, livestreaming room page returning method and apparatus, and electronic device
CN113163483B (en) Timestamp updating method and device and electronic equipment
CN114820060A (en) Advertisement recommendation method, device, equipment and medium
CN112181249A (en) Play control method and device, electronic equipment and storage medium
WO2022171039A1 (en) Video pre-loading method and apparatus, and device and medium
WO2023226742A1 (en) Video transcoding method and apparatus, and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22758845

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17/01/2024)