On-demand hotspot resource preloading playing method and device, electronic equipment and medium

By pulling and caching hot video resources in advance during on-demand video playback, the problem of video lag caused by users dragging the progress bar is solved, and the video can be played in seconds, improving the user experience.

CN118803280APending Publication Date: 2024-10-18CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410399099.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-03
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, in the on-demand video playback scenario, the user drags the progress bar, causing the video to freeze. This is mainly due to the failure to cache hot video resources in advance, resulting in re-downloading from the cloud, resulting in playback freezes.

Method used

By pulling the hotspot video sorting list from the cloud management and control platform, determining the number of cacheable hotspot slices based on the available memory and video slice capacity, preloading the video slices, retrieving from the buffer pool and pushing it to the player based on the user's sliding operation, realizing video Playback starts in seconds.

Benefits of technology

It effectively shortens the time it takes for hot video clips to be re-downloaded from the cloud, and enables instant playback when dragging videos, improving user experience and avoiding playback lags.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803280A_ABST
    Figure CN118803280A_ABST
Patent Text Reader

Abstract

The invention provides an on-demand hotspot resource preloading playing method and device, electronic equipment and a medium, and the method comprises the steps: pulling a hotspot video sorting list from a cloud management and control platform when the type of a media asset file is an on-demand file; determining the quantity of cache hotspot slices based on the current available memory and the average video slice capacity; preloading subsequent corresponding video slices based on the quantity of the cacheable hotspot slices and the hotspot video sorting list, and arranging and loading the preloaded video slices into a buffer pool according to a sorting sequence; and retrieving a corresponding preloaded video slice from the buffer pool according to the sliding operation of the target user, and pushing the retrieved preloaded video slice to a player for playing. According to the method, when the event that the user drags the progress bar occurs, the hot video slices preloaded in advance are sent to the player for video playing, and compared with a sequential cache playing mode, the duration of downloading the hot video slices from the video cloud again is effectively shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of home terminal application technology, and in particular to a method, device, electronic device and medium for preloading and playing on-demand hotspot resources. Background Art

[0002] Currently, the preloading methods used in Mobai and on-demand playback do not have a method for preloading and caching according to the content of cloud data hotspot resources. The conventional method is to cache 3-5 ts video slices in advance according to the normal HLS (HyperText TransferProtocol Live Streaming, HTTP streaming media transmission protocol) playback index order to cope with the video freeze caused by the slow download speed due to fluctuations in the network environment and the video playback progress being lower than the progress.

[0003] However, this type of method for caching video slices is to cache sequentially based on the current video slice playback position according to the m3u8 index sequence. In the face of some users actively dragging the progress bar to fast forward / fast rewind to the hot video progress positioning playback scenario, there is a lack of effective hot video preloading methods. Because the popularity represents the probability that the user wants to view the content. After the user drags the progress bar to fast forward and rewind to the hot video segment, the video preloading service needs to re-pull the corresponding video stream from the video cloud CDN (Content Delivery Network) service. When the video bit rate is high and the network environment is average, it is bound to cause obvious playback jams, buffer loading and other playback behaviors, causing a decline in user experience. Summary of the invention

[0004] The present invention provides a method, device, electronic device and medium for preloading and playing on-demand hotspot resources, so as to solve the defect in the prior art that in the on-demand video playback scenario, a user drags a progress bar to cause skipped playback, and the corresponding video clip resources cannot be cached in advance, resulting in playback jams caused by re-downloading from the cloud.

[0005] The present invention provides a method for preloading and playing on-demand hotspot resources, comprising:

[0006] In the case where the type of the media file is a video-on-demand file, a hot video ranking list is pulled from the cloud management and control platform; the type of the media file is determined by the player initiating a play and download request of the media file to the dispatch center; the type of the media file includes a live broadcast file and a video-on-demand file;

[0007] Based on the current available memory and the average video slice capacity, determine the number of cacheable hotspot slices;

[0008] Preloading subsequent corresponding video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, and arranging the preloaded video slices in sorted order and loading them into the buffer pool;

[0009] The corresponding preloaded video slice is retrieved from the buffer pool according to the sliding operation of the target user, and the retrieved preloaded video slice is pushed to the player for playing.

[0010] According to a method for preloading and playing on-demand hotspot resources provided by the present invention, the hotspot video sorting list is determined based on the following steps:

[0011] Determine the effective number of playbacks, where the effective number of playbacks is determined by monitoring a fast-forward playback event or a fast-rewind playback event generated by a user dragging a progress bar of the player, and viewing a video slice corresponding to the fast-forward playback time or the fast-rewind playback event;

[0012] The effective number of playbacks is sent to the cloud-based management and control platform, so that the cloud-based management and control platform determines a ranking list of candidate hot videos associated with a region based on the effective number of playbacks, and determines a ranking list of hot videos associated with a timeliness based on the ranking list of candidate hot videos.

[0013] According to a method for preloading and playing on-demand hotspot resources provided by the present invention, the method of determining a sorted list of candidate hotspot videos associated with a region based on the number of valid plays includes:

[0014] Counting the number of valid playbacks under the first type, and when the number of valid playbacks under the first type is less than a statistical threshold, determining a ranking list of candidate hot videos associated with the region based on the number of valid playbacks under the second type;

[0015] When the number of valid playbacks under the first type is greater than or equal to the statistical threshold, the candidate hot video ranking list is determined based on the first hot video ranking list determined by the valid playback number under the first type and the second hot video ranking list determined by the valid playback number under the second type.

[0016] According to a method for preloading and playing on-demand hotspot resources provided by the present invention, the method of determining a hotspot video ranking list associated with timeliness based on the candidate hotspot video ranking list comprises:

[0017] Determine a counting cycle threshold, and determine the candidate hot video ranking list based on the valid playback times within the counting cycle threshold and the candidate hot video ranking list determined by the valid playback times under the second type, to determine the hot video ranking list.

[0018] According to a method for preloading and playing on-demand hotspot resources provided by the present invention, the method retrieves the corresponding preloaded video slices from the buffer pool according to the sliding operation of the target user, and pushes the retrieved preloaded video slices to the player for playing, and then further includes:

[0019] In a case where the preloaded video slice does not belong to the first maximum cached number of slices in the hot video sorting list, the preloaded video slice is cleared.

[0020] According to a method for preloading and playing on-demand hotspot resources provided by the present invention, the method further includes:

[0021] When the type of the media asset file is the live broadcast file, returning the source video CDN slice;

[0022] The video CDN slice is obtained by the player initiating a playback and downloading request for the media asset file to the scheduling center, so that the scheduling center schedules the media asset file to be downloaded to the video CDN source server.

[0023] The present invention also provides a device for preloading and playing on-demand hotspot resources, comprising:

[0024] A pulling unit is used to pull a hot video sorting list from a cloud management and control platform when the type of the media file is a video-on-demand file; the type of the media file is a media file play download request initiated by the player to the scheduling center so as to be determined by the scheduling center; the type of the media file includes a live broadcast file and a video-on-demand file;

[0025] A unit for determining the number of cacheable hotspot slices is used to determine the number of cacheable hotspot slices based on currently available memory and average video slice capacity;

[0026] A preloading unit, configured to preload subsequent corresponding video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, and load the preloaded video slices into a buffer pool in sorted order;

[0027] The playing unit is used to retrieve the corresponding preloaded video slice from the buffer pool according to the sliding operation of the target user, and push the retrieved preloaded video slice to the player for playing.

[0028] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the on-demand hotspot resource preloading and playback method as described in any one of the above is implemented.

[0029] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for preloading and playing on-demand hot spot resources as described in any one of the above is implemented.

[0030] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for preloading and playing on-demand hotspot resources.

[0031] The on-demand hotspot resource preloading and playback method, device, electronic device and medium provided by the present invention, when the type of the media asset file is an on-demand file, pulls the hotspot video sorting list from the cloud control platform, the type of the media asset file is that the player initiates a playback and download request of the media asset file to the dispatch center, so that the dispatch center determines, and then based on the current available memory and the average video slice capacity, determines the number of cacheable hotspot slices, then, based on the number of cacheable hotspot slices and the hotspot video sorting list, preloads the subsequent corresponding video slices, and loads the preloaded video slices into the buffer pool in sorted order, and finally, retrieves the corresponding preloaded video slices from the buffer pool according to the sliding operation of the target user, and pushes the retrieved preloaded video slices to the player for playback. When the user drags the progress bar event, the method directly sends the preloaded hotspot video slices directly to the player for video playback. Compared with the sequential cache playback method, the method effectively shortens the time for the hotspot video clips to be re-downloaded from the video cloud CDN, thereby realizing the hotspot video drag and drop video opening in seconds, and the playback without lag switching, which improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 This is one of the flow charts of the on-demand hotspot resource preloading and playing method provided by the present invention;

[0034] Figure 2 It is a schematic diagram of the ordering of on-demand hot video slices provided by the present invention;

[0035] Figure 3 It is a schematic diagram of the sorting of the regional hot spot video slices of the on-demand video provided by the present invention;

[0036] Figure 4 It is a schematic diagram of temporal hot spot video slice sorting of on-demand video provided by the present invention;

[0037] Figure 5 This is the second flow chart of the method for preloading and playing on-demand hotspot resources provided by the present invention;

[0038] Figure 6 This is the third flow chart of the method for preloading and playing on-demand hotspot resources provided by the present invention;

[0039] Figure 7 It is a structural schematic diagram of a device for preloading and playing on-demand hotspot resources provided by the present invention;

[0040] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] In the related technology, (1) Player cache: In order to prevent the impact of network jitter on the download speed of network bandwidth, the Mobaihe player will download video stream slices from the cloud server in advance, usually caching 2-3 video slices to ensure that the player can play the video normally and smoothly.

[0043] (2) Video on demand playback: Based on the characteristics of the HLS protocol, the video on demand file is composed of an m3u8 index file superimposed with a series of ts slice download addresses. Each video slice has an absolute / relative file download address. The video player downloads the video files in the index sequence in sequence according to the m3u8 index value and plays them until the index reaches the EXT-X-ENDLIST flag to end the playback. Here, HLS is Apple's dynamic bitrate adaptive technology. It is mainly used for audio and video services on PC and Apple terminals. It includes an m3u(8) index file, TS media segment file and key encryption string file.

[0044] (3) Video progress positioning: By dragging the progress bar below the player, the control will dynamically calculate the position of the dragged position relative to the entire progress bar, thereby locating the specific slice position of the m3u8 index to jump the video playback, thereby realizing fast forward / fast rewind playback of the progress bar. At the same time, the player will throw an offset position event.

[0045] (4) Video slice size detection: Use FFmpeg (Fast Forward moving picture expert group, multimedia video processing tool) to detect the size of video slices. Call FFmpeg internally in Mobaihe to count the size memory of ts files in the cache area, so as to use the number of hot video clips that can be cached in advance as a basis for the streaming agent to determine. FFmpeg is an open source computer program that can be used to record and convert digital audio and video and convert them into streams. It has very powerful functions including video acquisition, video format conversion, video capture, video watermarking, etc. In the present invention, FFmpeg is mainly used to obtain the average capacity of ts video slices in the streaming agent cache area to determine the number of hot video clips to be cached.

[0046] (5) Intra-provincial Http scheduling: Intra-provincial http requests will request the dispatching center within the province. After domain name resolution, the request will be transferred to the dispatching center within the province. The dispatching center can redirect the request to the service and port of the destination node based on actual business needs, such as load balancing, cross-plane, traffic balancing, etc.

[0047] (6) Highlight / hotspot video production method: The common method for determining hotspot / high-energy clips is usually to manually screen the video slices in the on-demand file, involving content production and editing hotspot video clips to identify hotspot videos.

[0048] The present invention provides a method for preloading and playing on-demand hotspot resources. Figure 1 FIG. 1 is a flow chart of a method for preloading and playing on-demand hotspot resources provided by the present invention. Figure 1 As shown, the method includes:

[0049] Step 110, when the type of the media file is a video-on-demand file, a hot video sorting list is pulled from the cloud management and control platform; the type of the media file is determined by the player initiating a playback and download request for the media file to the dispatch center; the type of the media file includes live broadcast files and video-on-demand files.

[0050] Specifically, Mobaihe includes a player and a streaming proxy service. The player initiates a playback http download request for live / on-demand media asset files to the provincial dispatch center. The provincial dispatch center determines whether the playback download request is an on-demand file or a live file by crawling the m3u8 index of the corresponding media asset file. The types of media asset files include live files and on-demand files.

[0051] According to the HLS protocol, if there is an EXT-X-ENDLIST flag at the end of the m3u8 index, the video slice list has an end mark, and it is judged to be a VOD file. The dispatch center redirects the playback download request to the local Mobaihe streaming proxy service; if it is a live broadcast file, it is normally dispatched to the video CDN source server for download and playback, and the proxy streaming service returns to the source CDN to download video slices to ensure smooth playback.

[0052] Correspondingly, when the type of media asset file is a on-demand file, the proxy streaming service pulls the hot video sorting list from the cloud management and control platform. Here, the hot video sorting list is a hot video sorting list that takes into account both regionality and timeliness, and the video slices are downloaded into the cache area in priority from high to low based on the sorting results in the hot video sorting list.

[0053] Step 120, determining the number of cacheable hotspot slices based on the current available memory and the average video slice capacity;

[0054] Step 130, preload the subsequent corresponding video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, and load the preloaded video slices into the buffer pool in sorted order.

[0055] Specifically, after obtaining the ranked list of hot videos, the proxy streaming service can download the hot video slices based on its own cache. That is, the proxy streaming service can determine the number of cacheable hot slices based on the current available memory and the average video slice capacity, and then preload the subsequent corresponding video slices based on the number of cacheable hot slices and the ranked list of hot videos.

[0056] Here, while the proxy streaming service is caching the hot on-demand video in real time, it uses FFmpeg to detect the average video slice capacity of the video slice cache area and uses the meminfo system command to view the current available memory ratio.

[0057] The formula for determining the number of cacheable hotspot slices based on the current available memory and the average video slice capacity is as follows:

[0058] The number of cacheable hotspot slices = (currently available memory / average video slice capacity)*80%.

[0059] After preloading the subsequent corresponding video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, the preloaded video slices can be loaded into the buffer pool in sorted order.

[0060] Step 140: retrieve the corresponding preloaded video slice from the buffer pool according to the sliding operation of the target user, and push the retrieved preloaded video slice to the player for playing.

[0061] Specifically, the corresponding preloaded video slices are retrieved from the buffer pool according to the target user's sliding operation, and the retrieved preloaded video slices are pushed to the player for playback. Compared with the sequential cache playback method, this method effectively shortens the time it takes to re-download the hot video clips from the video cloud CDN, thereby achieving the hot video drag and drop video opening in seconds, and playback without lag switching, which improves the user experience.

[0062] Furthermore, the proxy streaming service dynamically adjusts the cached video slices. After the user plays a video slice, the proxy streaming service determines in real time whether the video slice is in the top maximum cached slice number in the hot video sorting list. If not, it determines that the current device does not have the ability to cache the hot video slice and releases the video slice in a timely manner to dynamically make room for caching more hot slice videos.

[0063] Accordingly, when a user fast-forwards or rewinds a video due to subjective preference factors when watching a video-on-demand file, the proxy streaming service searches the cache. If the corresponding hot video clip is cached, it is pushed to the player for playback, greatly reducing the playback download delay and achieving a video playback experience in seconds. If it does not belong to the source CDN video server, the video slice is pulled and played. At the same time, after the user successfully plays the video slice as a result of this drag and drop, the proxy streaming service synchronizes the video slice jump hit event as the effective hot video measurement number to the video cloud management and control platform, providing data support for the statistical analysis of hot videos.

[0064] As a result, users can finally watch on-demand hot videos without lags and enjoy the viewing experience of switching videos in seconds.

[0065] It can be understood that the method provided by the embodiment of the present invention separates the player from the proxy streaming service by means of a proxy streaming service, relies on the provincial scheduling platform to identify the business type of accessing the media asset files, and performs differentiated business scheduling. When the on-demand media asset request is identified, the player's request is directed to the local streaming agent, and the subsequent cache strategy of the hot resource preloading by the streaming agent provides streaming for the video playback of the player. This method is less invasive to the transformation of the mobile home Magic 100, and only a service apk of the streaming agent is issued in the Magic 100 to start monitoring. There is no need to customize the player, reducing the impact of the service process load being too high and stuck caused by the player service caching a large amount of video content. At the same time, it also reduces the compatibility transformation of the existing home Magic 100. Only a streaming application is issued. This way of cloud scheduling and local application collaboration can greatly facilitate the deployment and adoption of the entire network, greatly reducing the cost of transformation applications.

[0066] The method provided by the embodiment of the present invention, when the type of the media file is a video-on-demand file, pulls a hot video sorting list from the cloud management and control platform. The type of the media file is that the player initiates a request for the playback and download of the media file to the dispatch center, so that the dispatch center determines it, and then determines the number of cacheable hot slices based on the current available memory and the average video slice capacity. Then, based on the number of cacheable hot slices and the hot video sorting list, the subsequent corresponding video slices are preloaded, and the preloaded video slices are loaded into the buffer pool in sorted order. Finally, according to the sliding operation of the target user, the corresponding preloaded video slices are retrieved from the buffer pool, and the retrieved preloaded video slices are pushed to the player for playback. When the user drags the progress bar event, the method directly sends the preloaded hot video slices to the player for video playback. Compared with the sequential cache playback method, this method effectively shortens the time it takes for the hot video clips to be re-downloaded from the video cloud CDN, thereby realizing the hot video drag video opening in seconds, and the playback without lag switching, which improves the user experience.

[0067] Based on the above embodiments, Figure 2 Schematic diagram of the on-demand hot video slice sorting provided by the present invention, such as Figure 2 As shown, the hot video ranking list is determined based on the following steps:

[0068] Step 210, determining the effective number of playbacks, wherein the effective number of playbacks is determined by monitoring a fast-forward playback event or a fast-rewind playback event generated by a user dragging the progress bar of the player, and viewing the video slice corresponding to the fast-forward playback time or the fast-rewind playback event;

[0069] Step 220, sending the effective playback times to the cloud-based management and control platform, so that the cloud-based management and control platform determines a ranking list of candidate hot videos associated with a region based on the effective playback times, and determines a ranking list of hot videos associated with a timeliness based on the ranking list of candidate hot videos.

[0070] Specifically, the proxy streaming service monitors the fast-forward playback event or fast-rewind playback event generated by the user dragging the progress bar of the player, and takes into account the randomness of the user dragging the progress bar. In the embodiment of the present invention, the fast-forward playback event or fast-rewind playback event is used as a valid playback number only after the user successfully watches the hot segment content after dragging. That is, after the user stays at the jump position and plays one ts slice sequentially, the captured event is sent to the cloud management and control platform as a valid playback number.

[0071] After receiving the valid playback times, the cloud management and control platform can determine a ranking list of candidate hot videos associated with a region based on the valid playback times, and determine a ranking list of hot videos associated with a timeliness based on the ranking list of candidate hot videos.

[0072] Specifically, the cloud management and control platform records the number of valid slice hit downloads (valid playback times) corresponding to the drag and drop, and adds 1 to the corresponding flag. By monitoring the number of ts slice jump hits of each index of the specific on-demand resource through the cloud management and control platform, the popularity of the hot ts video slices in the m3u8 sequence can be judged from the cloud management and control platform. Considering that the corresponding hot segments of on-demand videos will change with the fermentation of time, some on-demand video content has the characteristics of regional convergence, and mobile home Magic Box is usually placed in the user's home and is not easy to migrate. The cloud management and control platform can independently count the effective playback times of the effective fast-forward / fast-rewind slices in real time by region and time interval.

[0073] The method provided by the embodiment of the present invention is that the cloud management and control platform counts the effective number of fast forward / fast rewind playbacks of the TS slice sequence of the m3u8 of the same on-demand resource. For example, users usually choose some highlights and full-information video clips to jump to watch when watching on-demand videos, such as goal moments in football matches, plot reversals in TV dramas, high-energy clips, etc. Usually, the number of effective playbacks will be high. The cloud management and control platform sends the determined hot video clips to the video proxy streaming service in advance for pre-caching. When the user drags the progress bar event, the pre-cached hot video slices are directly sent to the player for video playback. Compared with the sequential cache playback method, this method effectively solves the time it takes for the hot video clips to be re-downloaded from the video cloud CDN, thereby realizing the hot video drag and drop video opening in seconds, and the playback is switched without lag, thereby improving the user experience.

[0074] Based on the above embodiments, Figure 3 FIG. 1 is a schematic diagram of the sorting of the regional hot spot video slices of the on-demand video provided by the present invention, such as Figure 3 As shown, the step 220 of determining the regionally associated candidate hot video ranking list based on the effective playback times includes:

[0075] Step 221, counting the number of valid playbacks under the first type, and when the number of valid playbacks under the first type is less than a statistical threshold, determining a ranking list of candidate hot videos associated with the region based on the number of valid playbacks under the second type;

[0076] Step 222, when the number of valid playbacks under the first type is greater than or equal to the statistical threshold, determine the candidate hot video ranking list based on the first hot video ranking list determined by the valid playback number under the first type and the second hot video ranking list determined by the valid playback number under the second type.

[0077] Specifically, the number of valid playbacks under the first type may be counted, and when the number of valid playbacks under the first type is less than a statistical threshold, a ranked list of candidate hot videos associated with a region may be determined based on the number of valid playbacks under the second type.

[0078] Among them, the first type is the district / county / prefecture-level city type, and the second type is the province-wide type. Specifically, through the user's home address information of Mobaihe, independent calculations are first performed according to the districts and counties to determine whether the total statistical sample of effective playback times in the districts and counties is sufficient. If the statistical number of effective on-demand playback times in the area does not reach a certain statistical threshold (usually 1000), the statistical scope will be expanded to the prefecture-level city. If the prefecture-level city still does not reach the statistical threshold, it is determined that the area does not have the conditions for regional aggregation analysis of on-demand video content, and the statistical data of the province will be used.

[0079] When the number of valid playbacks under the first type is greater than or equal to the statistical threshold, a candidate hot video ranking list is determined based on a first hot video ranking list determined by the number of valid playbacks under the first type and a second hot video ranking list determined by the number of valid playbacks under the second type.

[0080] That is, if the regional statistics reach the statistical threshold, the top 30% hot slice indexes in the first hot video ranking list are compared with the top 30% hot slice indexes in the province in the second hot video ranking list. If 80% of the slices in the region are identical to the provincial plane statistics, it is determined that the on-demand video does not have the characteristics of regional convergence; if more than 20% of the video slices are inconsistent, it is determined that the on-demand video has strong regional characteristics, and the subsequent ranking is based on the regional video hot ranking of the first hot video ranking list, and the province's hot video ranking list is not taken, that is, the second hot video ranking list is not taken.

[0081] It can be understood that, the higher the number of valid playbacks under the first type, the higher the ranking of the hot video in the first hot video ranking list; the lower the number of valid playbacks under the first type, the lower the ranking of the hot video in the first hot video ranking list.

[0082] It can be understood that, the higher the number of valid playbacks under the second type, the higher the ranking of the hot video in the second hot video ranking list; the lower the number of valid playbacks under the second type, the lower the ranking of the hot video in the second hot video ranking list.

[0083] The method provided by the embodiment of the present invention counts the number of valid playbacks under the first type, and when the number of valid playbacks under the first type is less than the statistical threshold, determines a candidate hot video ranking list with regional association based on the valid playback number under the second type, and when the number of valid playbacks under the first type is greater than or equal to the statistical threshold, determines a candidate hot video ranking list based on the first hot video ranking list determined by the valid playback number under the first type and the second hot video ranking list determined by the valid playback number under the second type, that is, the candidate hot video ranking list is a hot video ranking list with regional association, so that the video heat ranking is automatically and timely adjusted based on the candidate hot video ranking list, and the hot video ranking list of the final video slice is obtained, so that the video slices with higher heat can be preloaded, so that the user can quickly obtain the corresponding video content after dragging the progress bar.

[0084] Based on the above embodiments, Figure 4 Schematic diagram of the temporal hotspot video slice sorting of the on-demand video provided by the present invention, such as Figure 4 As shown, the step 220 of determining the time-effectiveness-associated hot video ranking list based on the candidate hot video ranking list includes:

[0085] Determine a counting cycle threshold, and determine the candidate hot video ranking list based on the valid playback times within the counting cycle threshold and the candidate hot video ranking list determined by the valid playback times under the second type, to determine the hot video ranking list.

[0086] Specifically, a counting cycle threshold is determined, wherein the counting cycle threshold can be set to be greater than 1000 valid playback times. Then, based on the candidate hot video ranking list determined by the valid playback times within the counting cycle threshold and the candidate hot video ranking list determined by the valid playback times under the second type, a hot video ranking list is determined.

[0087] Specifically, the top 30% of the hot slices in the candidate hot video ranking list of the most recent counting cycle are compared with the top 30% of the hot slices in the province. If more than 80% of the indexes are identical to the slice indexes of the entire time period, it is determined that the on-demand video does not have the characteristic of large short-term popularity changes in the counting cycle. On the contrary, if more than 20% of the video slices are inconsistent, it is determined that the on-demand content has increased popularity in the short term, and the video has a strong timeliness feature. It is necessary to focus on identifying the identified video clips as hot video clips. The cloud management and control platform returns to Mobaihe the timeliness video slice heat ranking, rather than the ranking result of the number of valid slice hit downloads in the entire time period.

[0088] It is understandable that the hot video popularity list that the cloud management platform ultimately returns to users takes into account both regionality and timeliness, and the ranking will infer the probability of subsequent users watching the segments they are interested in based on the subjective behavior of historical users dragging the progress bar, which can better reflect the current popularity of each content segment in the on-demand file.

[0089] The method provided by the embodiment of the present invention automatically and timely adjusts the video popularity ranking according to regionality and timeliness, and obtains a hot video ranking list of the final video slices, so that the video slices with higher popularity can be preloaded so that the user can quickly obtain the corresponding video content after dragging the progress bar.

[0090] Based on the above embodiment, step 140 further includes:

[0091] Step 141 , when the preloaded video slice does not belong to the number of slices in the previous maximum cache in the hot video sorting list, clear the preloaded video slice.

[0092] Specifically, after the user has played the preloaded video slice corresponding to the playback instruction, the proxy streaming service determines in real time whether the video slice is in the top maximum cached slice number in the hot video sorting list. If not, it determines that the current device does not have the ability to cache the hot video slice, and releases the video slice in a timely manner to dynamically make room for caching more hot video slices.

[0093] Based on the above embodiment, the method further includes:

[0094] When the type of the media asset file is the live broadcast file, returning the source video CDN slice;

[0095] The video CDN slice is obtained by the player initiating a playback and downloading request for the media asset file to the scheduling center, so that the scheduling center schedules the media asset file to be downloaded to the video CDN source server.

[0096] Specifically, when the type of media asset file is a live broadcast file, the source video CDN slice is returned. Here, the video CDN slice is a media asset file playback download request initiated by the player to the scheduling center, so that the scheduling center schedules the media asset file to the video CDN source server for download.

[0097] The proxy streaming service can go back to the source CDN to download ts slices as quickly as possible, and cache 1-2 slices after the currently playing video slice index into the cache area during subsequent playback to ensure normal playback without lag.

[0098] Based on any of the above embodiments, the present invention provides a method for preloading and playing on-demand hotspot resources. Figure 5 This is the second flow chart of the method for preloading and playing on-demand hotspot resources provided by the present invention. Figure 6 FIG. 3 is a flow chart of the method for preloading and playing on-demand hotspot resources provided by the present invention. Figure 5 , Figure 6 As shown, the method includes:

[0099] The first step is to determine the effective number of playbacks, wherein the effective number of playbacks is determined by monitoring the fast-forward playback event or the fast-rewind playback event generated by the user dragging the progress bar of the player, and viewing the video slice corresponding to the fast-forward playback time or the fast-rewind playback event.

[0100] The second step is to send the valid playback times to the cloud management and control platform so that the cloud management and control platform can determine a ranking list of candidate hot videos associated with a region based on the valid playback times, and determine a ranking list of hot videos associated with a timeliness based on the ranking list of candidate hot videos.

[0101] The ranking list of candidate hot videos with regional associations determined based on the number of valid playbacks includes:

[0102] Counting the number of valid playbacks under the first type, and when the number of valid playbacks under the first type is less than a statistical threshold, determining a ranking list of candidate hot videos associated with a region based on the number of valid playbacks under the second type;

[0103] When the number of valid playbacks under the first type is greater than or equal to the statistical threshold, a candidate hot video ranking list is determined based on a first hot video ranking list determined by the number of valid playbacks under the first type and a second hot video ranking list determined by the number of valid playbacks under the second type.

[0104] The hot video ranking list associated with timeliness is determined based on the candidate hot video ranking list, including:

[0105] Determine a counting cycle threshold, and determine a ranking list of candidate hot videos based on the number of valid playbacks within the counting cycle threshold and the ranking list of candidate hot videos determined by the number of valid playbacks under the second type, to determine a ranking list of hot videos.

[0106] The third step is to pull a hot video sorting list from the cloud management and control platform when the type of the media file is a on-demand file, where the types of media files include live files and on-demand files. Here, the type of media file is the player initiating a media file playback download request to the scheduling center for confirmation by the scheduling center.

[0107] The fourth step is to determine the number of cacheable hotspot slices based on the current available memory and the average video slice capacity.

[0108] The fifth step is to preload the corresponding subsequent video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, and load the preloaded video slices into the buffer pool in sorted order.

[0109] In the sixth step, the corresponding preloaded video slice is retrieved from the buffer pool according to the sliding operation of the target user, and the retrieved preloaded video slice is pushed to the player for playing.

[0110] In the seventh step, when the preloaded video slices do not belong to the maximum number of slices cached before in the hot video sorting list, the preloaded video slices are cleared.

[0111] In the eighth step, when the type of the media asset file is a live broadcast file, the source video CDN slice is returned. Here, the video CDN slice is a request for the player to initiate a playback download request for the media asset file to the scheduling center, so that the scheduling center schedules the media asset file to the video CDN source server for download.

[0112] The method provided by the embodiment of the present invention includes: 1. Algorithm for the list of hot video slices for on-demand videos: (1) The cloud management and control platform uses the statistics of the number of valid video jump slice hits captured by the proxy streaming service after the user player is triggered by the fast forward / fast rewind event and the user has played it completely as a technical basis to determine the popularity of the video slice in a specific media asset file. If the user plays in sequence, the absence of a fast forward / fast rewind event trigger will not affect the cloud hot spot statistics. With the spontaneity of user behavior, the number of hot video indexes will also change with the popularity / user attention. (2) This method takes into account the different regional concerns and conducts a differential screening of the video content slices in the on-demand file. By comparing the hot slice rankings of the district / county / city regional statistics with the hot slice rankings of the province-wide statistics (the number of hot slices in the top 30% of the slices is more than 20% different), it can be comprehensively judged whether there are regional differences in hot spots in the on-demand file. (3) This method also takes into account the timeliness of each hot video in the on-demand file. In different counting cycles, through the difference in the ranking of the results of the new cycle and the full time period statistics (the number of hot slices in the top 30% of the slices is more than 20% different), it can be judged whether the heat range of the video slice content in the on-demand file has changed dramatically over time, and the video heat ranking can be automatically adjusted in time.

[0113] 2. Dynamic adaptive cache (including release): (1) Prioritize hot cache from high to low based on the hot video list. The maximum cache quantity is calculated based on (current available memory / average video slice capacity) * 80%. The average capacity of the ts slice in the current cache area is obtained by detecting the cached video size in the cache area using the FFmpeg tool / the number of cached slices. The current available memory is obtained by calling the meminfo system command to obtain the current remaining memory capacity + the video slice capacity currently cached by the proxy streaming service. (2) The cache is replaced in real time. Every time a video slice is played, it is determined whether the video slice belongs to the maximum cache quantity interval in the hot video sorting list. If it does, it will not be released. If it does not, the currently playing video segment will be released, and the hot segment in the heat will be pulled into the cache area again. This cache strategy can be adaptively changed according to the changes in the size of different on-demand video streams on different terminals. During the playback process, even if the video slice cache that has been played is released, the memory configuration of the terminal can be as much as possible, so as to make full use of resources to better provide the product hot video preloading function experience.

[0114] After adopting the hot video terminal caching method of the embodiment of the present invention, when the player fast-forwards or rewinds to the corresponding position, the proxy streaming service can pass the ts slice corresponding to the hot video position from the cache area to the player in advance for video playback. At the same time, the cached videos in the cache area that do not belong to the hot video clips are released to reduce the cache load in the proxy streaming service, and 2-3 video slices are cached after the current playback time reference point to ensure safe playback of the cache area player without lag. Taking advantage of the gaps between users watching on-demand videos, network bandwidth resources and terminal storage resources are fully utilized to cache the hot video slices in memory in advance. When fast-forwarding / fast-rewinding to the hot video clip, the situation of re-downloading the video slices from the CDN video server can be avoided, which greatly reduces the switching playback delay, reduces the playback freeze time, and improves the user playback experience.

[0115] Compared with the previous video resource loading methods and applications, the technical advantages of the embodiments of the present invention are mainly reflected in the following three aspects:

[0116] 1. Determine the priority of the popularity of each video slice in the on-demand video (1) The popularity of a specific video slice in a media asset file is determined by counting the number of valid video jump slice hits captured by the proxy streaming service when the user player is triggered by the fast forward / fast rewind event and the user has played it completely. The sample statistics can better reflect the subjective characteristics of the current user than conventional methods. (2) This method takes into account the different regional concerns and conducts differential screening of the video content slices in the on-demand file. It can perform differentiated hot spot distribution statistics for hot on-demand videos with strong regional relevance (3) This method also takes into account the timeliness of each hot video in the on-demand file. In different counting cycles, through the difference in the ranking of the results of the new cycle and the full time period statistics, it can be determined whether the content of the video slice of the on-demand file has undergone a sharp change in the heat range generated by the fermentation of time, and the video heat ranking can be automatically adjusted in time.

[0117] 2. Dynamic adaptive caching strategy: This method uses the system to detect the available cache capacity and the average cache capacity of the video slices in the memory (because the bit rate of the same video does not vary much, the average slice size can be used) to cache the maximum number of hotspot caches, and in the process of playback, the slices that have been played and do not belong to the maximum number of hotspot caches are released in time. This cache strategy can be adaptively changed according to the changes in the size of different on-demand video streams on different terminals. During the playback process, even if the video slice cache that has been played is released, the memory configuration of the terminal can be as much as possible, so as to make full use of resources to better provide the product hot video preloading function experience.

[0118] 3. Non-intrusive streaming proxy: This method separates the player from the proxy streaming service by means of a proxy streaming service, and relies on the provincial scheduling platform to identify the business type that accesses the media asset files and perform differentiated business scheduling. There is no need to customize the player, reducing the impact of excessive service process load and jamming caused by the player service caching a large amount of video content. It also reduces the compatibility transformation of existing household Magic Box. It only requires the issuance of a streaming application. This way of cloud scheduling and local application collaboration can greatly facilitate the rollout of the entire network and greatly reduce the cost of application transformation.

[0119] In addition, the embodiments of the present invention relate to statistics of hot segments in a single on-demand video. At present, mature application methods include artificially making hot segment prompts, and reminding users that there are hot video segments in the playback progress in the form of player drawing points. Later, you can refer to the method of this proposal to adopt cloud-based heat statistics to automatically discover the hot segments of the on-demand video. Comprehensive consideration of regional and timeliness factors, reduce labor production costs, and dynamically and adaptively update. This idea of ​​the proposal can be combined with the form of player progress drawing points to further guide users to watch and improve user experience.

[0120] The on-demand hotspot resource preloading and playing device provided by the present invention is described below. The on-demand hotspot resource preloading and playing device described below and the on-demand hotspot resource preloading and playing method described above can correspond to each other.

[0121] Based on any of the above embodiments, the present invention provides a device for preloading and playing on-demand hotspot resources. Figure 7 : is a schematic diagram of the structure of the on-demand hotspot resource preloading and playing device provided by the present invention, such as Figure 7 As shown, the device comprises:

[0122] The pulling unit 710 is used to pull the hot video sorting list from the cloud management and control platform when the type of the media asset file is a video-on-demand file; the type of the media asset file is a media asset file play download request initiated by the player to the scheduling center so as to be determined by the scheduling center; the type of the media asset file includes a live broadcast file and a video-on-demand file;

[0123] The unit 720 for determining the number of cacheable hotspot slices is used to determine the number of cacheable hotspot slices based on the current available memory and the average video slice capacity;

[0124] A preloading unit 730 is used to preload subsequent corresponding video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, and load the preloaded video slices into a buffer pool in sorted order;

[0125] The playing unit 740 is used to retrieve the corresponding preloaded video slice from the buffer pool according to the sliding operation of the target user, and push the retrieved preloaded video slice to the player for playing.

[0126] The device provided by the embodiment of the present invention, when the type of the media file is a video-on-demand file, pulls the hot video sorting list from the cloud management and control platform. The type of the media file is that the player initiates a request for the playback and download of the media file to the dispatch center, so that the dispatch center determines it, and then determines the number of cacheable hot slices based on the current available memory and the average video slice capacity. Then, based on the number of cacheable hot slices and the hot video sorting list, the subsequent corresponding video slices are preloaded, and the preloaded video slices are loaded into the buffer pool in sorted order. Finally, according to the sliding operation of the target user, the corresponding preloaded video slices are retrieved from the buffer pool, and the retrieved preloaded video slices are pushed to the player for playback. When the user drags the progress bar event, the method directly sends the preloaded hot video slices to the player for video playback. Compared with the sequential cache playback method, this method effectively shortens the time it takes for the hot video clips to be re-downloaded from the video cloud CDN, thereby realizing the hot video drag video opening in seconds, and the playback without lag switching, which improves the user experience.

[0127] Based on any of the above embodiments, it also includes a hot video ranking list determining unit, and the hot video ranking list determining unit specifically includes:

[0128] A valid play count determination unit, used to determine the valid play count, wherein the valid play count is determined by monitoring a fast-forward play event or a fast-rewind play event generated by a user dragging the progress bar of the player, and viewing a video slice corresponding to the fast-forward play time or the fast-rewind play event;

[0129] A subunit for determining a hot video ranking list is used to send the effective number of playbacks to the cloud-based management and control platform, so that the cloud-based management and control platform determines a candidate hot video ranking list associated with a region based on the effective number of playbacks, and determines a hot video ranking list associated with timeliness based on the candidate hot video ranking list.

[0130] Based on any of the above embodiments, determining a hot video ranking list subunit is specifically used for:

[0131] Counting the number of valid playbacks under the first type, and when the number of valid playbacks under the first type is less than a statistical threshold, determining a ranking list of candidate hot videos associated with the region based on the number of valid playbacks under the second type;

[0132] When the number of valid playbacks under the first type is greater than or equal to the statistical threshold, the candidate hot video ranking list is determined based on the first hot video ranking list determined by the valid playback number under the first type and the second hot video ranking list determined by the valid playback number under the second type.

[0133] Based on any of the above embodiments, determining a hot video ranking list subunit is specifically used for:

[0134] Determine a counting cycle threshold, and determine the candidate hot video ranking list based on the valid playback times within the counting cycle threshold and the candidate hot video ranking list determined by the valid playback times under the second type, to determine the hot video ranking list.

[0135] Based on any of the above embodiments, a cleaning unit is further included, and the cleaning unit is specifically used for:

[0136] In a case where the preloaded video slice does not belong to the first maximum cached number of slices in the hot video sorting list, the preloaded video slice is cleared.

[0137] Based on any of the above embodiments, a return source unit is further included, and the return source unit is specifically used for:

[0138] When the type of the media asset file is the live broadcast file, returning the source video CDN slice;

[0139] The video CDN slice is obtained by the player initiating a playback and downloading request for the media asset file to the scheduling center, so that the scheduling center schedules the media asset file to be downloaded to the video CDN source server.

[0140] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the on-demand hotspot resource preloading and playing method, the method comprising: when the type of the media asset file is an on-demand file, pulling the hotspot video sorting list from the cloud management and control platform; the type of the media asset file is that the player initiates a media asset file playback download request to the scheduling center so that the scheduling center determines; the type of the media asset file includes a live file and an on-demand file; based on the current available memory and the average video slice capacity, determining the number of cacheable hotspot slices; based on the number of cacheable hotspot slices and the hotspot video sorting list, preloading the subsequent corresponding video slices, and arranging the preloaded video slices in sorted order and loading them into the buffer pool; retrieving the corresponding preloaded video slices from the buffer pool according to the target user's sliding operation, and pushing the retrieved preloaded video slices to the player for playing.

[0141] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0142] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the on-demand hot spot resource preloading and playback method provided by the above methods, the method including: when the type of the media file is an on-demand file, pulling a hot spot video sorting list from a cloud management and control platform; the type of the media file is that the player initiates a media file playback download request to the scheduling center so that the scheduling center determines it; the type of the media file includes live broadcast files and on-demand files; based on the current available memory and the average video slice capacity, determining the number of cacheable hot spot slices; preloading subsequent corresponding video slices based on the number of cacheable hot spot slices and the hot spot video sorting list, and loading the preloaded video slices into a buffer pool in sorted order; retrieving the corresponding preloaded video slices from the buffer pool according to the target user's sliding operation, and pushing the retrieved preloaded video slices to the player for playback.

[0143] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the on-demand hotspot resource preloading and playback method provided by the above-mentioned methods, the method comprising: in the case where the type of the media file is an on-demand file, pulling a hotspot video sorting list from a cloud management and control platform; the type of the media file is determined by the player initiating a playback and downloading request for the media file to a scheduling center so that the scheduling center determines the type of the media file; the type of the media file includes live broadcast files and on-demand files; based on the current available memory and the average video slice capacity, determining the number of cacheable hotspot slices; preloading subsequent corresponding video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, and loading the preloaded video slices into a buffer pool in sorted order; retrieving the corresponding preloaded video slices from the buffer pool according to the sliding operation of the target user, and pushing the retrieved preloaded video slices to the player for playback.

[0144] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for preloading and playing on-demand hotspot resources, characterized in that: include: In the case where the type of the media file is a video-on-demand file, a hot video ranking list is pulled from the cloud management and control platform; the type of the media file is determined by the player initiating a play and download request of the media file to the dispatch center; the type of the media file includes a live broadcast file and a video-on-demand file; Determine the number of cacheable hotspot slices based on the current available memory and the average video slice capacity; Preloading subsequent corresponding video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, and arranging the preloaded video slices in sorted order and loading them into the buffer pool; The corresponding preloaded video slice is retrieved from the buffer pool according to the sliding operation of the target user, and the retrieved preloaded video slice is pushed to the player for playing.

2. The on-demand hotspot resource preloading and playing method according to claim 1, characterized in that: The hot video ranking list is determined based on the following steps: Determine the effective number of playbacks, where the effective number of playbacks is determined by monitoring a fast-forward playback event or a fast-rewind playback event generated by a user dragging a progress bar of the player, and viewing a video slice corresponding to the fast-forward playback time or the fast-rewind playback event; The effective number of playbacks is sent to the cloud-based management and control platform, so that the cloud-based management and control platform determines a ranking list of candidate hot videos associated with a region based on the effective number of playbacks, and determines a ranking list of hot videos associated with a timeliness based on the ranking list of candidate hot videos.

3. The method for preloading and playing on-demand hotspot resources according to claim 2, characterized in that: The candidate hot video ranking list determined based on the effective playback times and having regional associations includes: Counting the number of valid playbacks under the first type, and when the number of valid playbacks under the first type is less than a statistical threshold, determining a ranking list of candidate hot videos associated with the region based on the number of valid playbacks under the second type; When the number of valid playbacks under the first type is greater than or equal to the statistical threshold, the candidate hot video ranking list is determined based on the first hot video ranking list determined by the valid playback number under the first type and the second hot video ranking list determined by the valid playback number under the second type.

4. The on-demand hotspot resource preloading and playing method according to claim 2, characterized in that: The step of determining a time-effectiveness-associated hot video ranking list based on the candidate hot video ranking list includes: Determine a counting cycle threshold, and determine the candidate hot video ranking list based on the valid playback times within the counting cycle threshold and the candidate hot video ranking list determined by the valid playback times under the second type, to determine the hot video ranking list.

5. The method for preloading and playing on-demand hotspot resources according to any one of claims 1 to 4, characterized in that: The method further comprises: retrieving the corresponding preloaded video slice from the buffer pool according to the sliding operation of the target user, and pushing the retrieved preloaded video slice to the player for playing; and then: In a case where the preloaded video slice does not belong to the first maximum cached number of slices in the hot video sorting list, the preloaded video slice is cleared.

6. The method for preloading and playing on-demand hotspot resources according to any one of claims 1 to 4, characterized in that: The method further comprises: When the type of the media asset file is the live broadcast file, returning the source video CDN slice; The video CDN slice is obtained by the player initiating a playback and downloading request for the media asset file to the scheduling center, so that the scheduling center schedules the media asset file to be downloaded to the video CDN source server.

7. A device for preloading and playing hotspot resources on demand, characterized in that: include: A pulling unit is used to pull a hot video sorting list from a cloud management and control platform when the type of the media file is a video-on-demand file; the type of the media file is a media file play download request initiated by the player to the scheduling center so as to be determined by the scheduling center; the type of the media file includes a live broadcast file and a video-on-demand file; A unit for determining the number of cacheable hotspot slices is used to determine the number of cacheable hotspot slices based on currently available memory and average video slice capacity; A preloading unit, configured to preload subsequent corresponding video slices based on the number of cacheable hotspot slices and the hotspot video sorting list, and load the preloaded video slices into a buffer pool in sorted order; The playing unit is used to retrieve the corresponding preloaded video slice from the buffer pool according to the sliding operation of the target user, and push the retrieved preloaded video slice to the player for playing.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the on-demand hotspot resource preloading and playback method as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the on-demand hotspot resource preloading and playback method as claimed in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the on-demand hotspot resource preloading and playback method as claimed in any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Network adaptive preloading method and device, and storage medium

    CN121056517A