Method and apparatus for pre-downloading streaming media data, electronic device, medium and product
Patent Information
- Application Number
- CN202610827982.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-09
- Publication Date
- 2026-09-15
Smart Images

Figure CN122765461A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence, specifically to a method, apparatus, electronic device, medium, and product for pre-downloading streaming media data. Background Technology
[0002] During vehicle operation, inconsistent base station coverage along the route leads to inconsistent network signal strength. Consequently, when users play streaming media (such as music and video) through in-vehicle terminals, network signal fluctuations often cause problems such as reduced download speeds, buffering, and excessively long buffering times, failing to meet real-time streaming needs and severely impacting user experience. Summary of the Invention
[0003] This application provides a streaming media data pre-download method, apparatus, electronic device, medium, and product to solve the problem in related technologies where the streaming media played by the vehicle terminal over the network cannot meet the real-time playback requirements due to inconsistent network signal strength on the road segment in which the vehicle is traveling.
[0004] To address the aforementioned technical problems, this application provides the following solution:
[0005] In a first aspect, embodiments of this application provide a method for pre-downloading streaming media data, the method comprising: Based on the network signal strength at different locations along the target vehicle's pre-trip route, the pre-trip route is divided into multiple sub-segments, and the download rate of streaming media data, the playback rate of streaming media data for the target vehicle, and the travel time of the target vehicle through each sub-segment are determined. If there is a target sub-segment with a download rate lower than the playback rate, the expected amount of missing streaming media data corresponding to the target sub-segment is determined based on the target download rate, playback rate, and target travel time corresponding to the target sub-segment. The first sub-segment with a download rate greater than the playback rate among the sub-segments preceding the target sub-segment; In response to the target vehicle traveling to the first sub-segment, control the target vehicle to download streaming media data at a target download rate exceeding the playback rate, so that the target vehicle additionally downloads at least the expected amount of missing streaming media data in the first sub-segment.
[0006] In some embodiments, if there is a target sub-segment with a download rate lower than the playback rate, the expected amount of missing streaming media data corresponding to the target sub-segment is determined based on the target download rate, playback rate, and target travel duration of the target sub-segment, including: Traverse each sub-segment and determine if there is a target sub-segment in each sub-segment whose download speed is lower than the playback speed; If the judgment result is yes, then based on the playback rate and target travel time corresponding to the target sub-segment, the target expected playback volume of the streaming media data corresponding to the target sub-segment is determined; and based on the target download rate and target travel time corresponding to the target sub-segment, the target expected download volume of the streaming media data corresponding to the target sub-segment is determined. Based on the target projected play count and target projected download count, determine the projected missing amount of streaming media data corresponding to the target sub-segment.
[0007] In some embodiments, in response to the target vehicle traveling to the first sub-segment, controlling the target vehicle to download streaming media data at a target download rate exceeding the playback rate, so that the target vehicle additionally downloads at least the expected amount of missing streaming media data in the first sub-segment, including: Based on the playback rate and the first travel duration corresponding to the first sub-segment, determine the first estimated playback volume of the streaming media data corresponding to the first sub-segment; and based on the first download rate and the first travel duration corresponding to the first sub-segment, determine the first estimated download volume of the streaming media data corresponding to the first sub-segment. Based on the first estimated play count and the first estimated download count, determine the estimated surplus of streaming media data corresponding to the first sub-segment; If the expected surplus is greater than or equal to the expected missing amount, then in response to the target vehicle traveling to the first sub-segment, the target vehicle is controlled to download streaming media data at the first download rate as the target download rate until the amount of additional streaming media data downloaded reaches the expected missing amount.
[0008] In some embodiments, in response to a target vehicle traveling to a first sub-road segment, the target vehicle is controlled to download streaming media data at a first download rate as the target download rate until the amount of additional downloaded streaming media data reaches the expected missing amount, including: Based on the first estimated playback volume and the estimated missing volume, determine the estimated download volume of the streaming media data corresponding to the first sub-segment; Based on the expected download volume and the first download rate, determine the expected download duration of the streaming media data corresponding to the first sub-segment; In response to the target vehicle traveling to the first sub-segment, control the target vehicle to download streaming media data at a first download rate within the expected download duration.
[0009] In some embodiments, in response to a target vehicle traveling to a first sub-road segment, controlling the target vehicle to download streaming media data at a first download rate within a predicted download duration includes: The delayed download duration is determined based on the initial pass duration and the estimated download duration. In response to the target vehicle traveling to the first sub-segment and after the delayed download time, the target vehicle is controlled to download streaming media data at a first download rate.
[0010] In some embodiments, the pre-driving road segment is divided into multiple sub-segments based on the network signal strength at different locations of the target vehicle's pre-driving road segment, including: Obtain the network signal strength at different locations along the planned route; Based on the network signal strength, road segments corresponding to consecutive locations with the same network signal strength are identified as a sub-segment, resulting in multiple sub-segments.
[0011] Secondly, embodiments of this application provide a streaming media data pre-download device, the device comprising: The road segment division module is used to divide the pre-driving road segment into multiple sub-segments based on the network signal strength at different locations of the target vehicle's pre-driving road segment, and to determine the download rate of streaming media data in each sub-segment, the playback rate of streaming media data of the target vehicle, and the travel time of the target vehicle through each sub-segment. The data missing amount determination module is used to determine the expected missing amount of streaming media data corresponding to the target sub-segment if there is a target sub-segment with a download rate lower than the playback rate, based on the target download rate, playback rate and target travel time of the target sub-segment. The pre-download segment determination module is used to determine the first sub-segment with a download rate greater than the playback rate among the sub-segments preceding the target sub-segment; The pre-download module is used to control the target vehicle to download streaming media data at a target download rate exceeding the playback rate when the target vehicle travels to the first sub-segment, so that the target vehicle additionally downloads at least the expected amount of missing streaming media data in the first sub-segment.
[0012] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor runs the computer program, it performs the method described in any embodiment of the first aspect.
[0013] Fourthly, embodiments of this application provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the methods described in any embodiment of the first aspect.
[0014] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, causes the processor to perform the method described in any embodiment of the first aspect.
[0015] The streaming media data pre-download method provided in this application divides the pre-driving road segment into multiple sub-segments based on the network signal strength at different locations of the target vehicle's pre-driving road segment. Then, when a target sub-segment exists with a download rate lower than the playback rate, the estimated amount of missing streaming media data corresponding to that sub-segment is determined, and a first sub-segment with a download rate higher than the playback rate is identified before the target sub-segment. When the target vehicle reaches the first sub-segment, it is controlled to download streaming media data at a target download rate exceeding the playback rate, ensuring that the target vehicle downloads at least the estimated amount of missing streaming media data in the first sub-segment. This solves the problem of network signal fluctuations and download rate drops caused by inconsistent base station coverage along the driving road segment, making it difficult to meet the real-time streaming media playback requirements. It does not rely on operator network upgrades or vehicle hardware modifications, effectively avoiding streaming media playback stuttering and buffering issues when the vehicle enters a weak signal area, significantly improving the continuity of streaming media playback and user experience.
[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are merely embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort, and this application can be applied to other similar scenarios based on the provided drawings.
[0018] Figure 1 A flowchart illustrating a streaming media data pre-download method provided in this application embodiment; Figure 2 A flowchart illustrating the method for determining the expected missing amount provided in the embodiments of this application; Figure 3 A flowchart illustrating a method for downloading expected missing streaming media data provided in an embodiment of this application; Figure 4 A flowchart illustrating the method for determining the download duration provided in this application embodiment; Figure 5 A schematic diagram of a streaming media data pre-download device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0019] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. The described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0020] It should be noted that the terms "system," "device," "unit," and / or "module" used in this application are methods of distinguishing different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they can be replaced by other expressions.
[0021] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.
[0022] During vehicle operation, inconsistent base station coverage along the route leads to inconsistent network signal strength. Consequently, when users play streaming media (such as music and video) through in-vehicle terminals, network signal fluctuations often cause problems such as reduced download speeds, buffering, and excessively long buffering times, failing to meet real-time streaming needs and severely impacting user experience.
[0023] There are currently two main solutions: First, build new base stations to increase base station density; although this method can fundamentally solve the problem of inconsistent network signal strength, the cost is too high.
[0024] Second, other moving vehicles can be used as network relay nodes to enhance the strength of the network signals received by the vehicles. However, this method requires modification of the vehicle's hardware and relies on vehicle-to-everything (V2X) communication standards, making it difficult to implement.
[0025] Therefore, how to effectively avoid the problem that the streaming media played by the vehicle terminal through the network cannot meet the real-time playback requirements due to inconsistent network signal strength on the driving route, without relying on operator network upgrades and vehicle hardware modifications, has become an urgent technical problem to be solved.
[0026] To address the aforementioned technical problems, embodiments of this application provide a method, apparatus, electronic device, medium, and product for pre-downloading streaming media data.
[0027] Figure 1 This is a flowchart illustrating a streaming media data pre-download method provided in an embodiment of this application.
[0028] like Figure 1 As shown in the embodiments of this application, the streaming media data pre-download method can be executed by an electronic device. Electronic devices include, but are not limited to, servers, personal computers, laptops, tablets, and other devices with data processing capabilities. The streaming media data pre-download method includes the following steps: Step 101: Based on the network signal strength at different locations on the target vehicle's pre-driving road segment, divide the pre-driving road segment into multiple sub-segments, and determine the download rate of streaming media data in each sub-segment, the playback rate of streaming media data for the target vehicle, and the travel time of the target vehicle through each sub-segment. In some embodiments, the target vehicle can be any vehicle that is currently in motion and is using an in-vehicle terminal to stream media over a network; similarly, the pre-driving segment can be any road segment. It is understood that the pre-driving segment refers to the road segment where the target vehicle is about to travel but has not yet traveled.
[0029] In some embodiments, the pre-driving route of the target vehicle can be obtained in the following ways: Obtain the navigation route planned for the target vehicle; the navigation route planned includes the complete driving segment from the target vehicle's current location to its destination; And / or, Based on the target vehicle's historical driving trajectory and current driving direction, predict the target vehicle's expected driving route.
[0030] Understandably, navigation route planning can be obtained by calling map navigation application interfaces (such as the driving route planning interface of the Gaode Map application interface).
[0031] In some embodiments, the pre-driving road segment is divided into multiple sub-segments based on the network signal strength at different locations of the target vehicle's pre-driving road segment. This can be achieved by: acquiring in real time the identification information of the base stations connected to the target vehicle during its journey (such as cell identification (Cell ID), physical cell identity (PCI), etc.), and using the change point as the boundary point of the sub-segment when the base station identification changes, thereby dividing the pre-driving road segment into multiple continuous sub-segments, with the network signal strength within each sub-segment remaining relatively stable.
[0032] In actual road sections, some sections may be simultaneously covered by network signals from multiple base stations. In such cases, the pre-trip section can be divided into multiple sub-segments based on the network signal strength at different locations along the target vehicle's route: Obtain the network signal strength at different locations along the planned route; Based on the network signal strength, road segments corresponding to consecutive locations with the same network signal strength are identified as a sub-segment, resulting in multiple sub-segments.
[0033] Obtaining network signal strength at different locations along the pre-trip route may include: Information such as latitude and longitude coordinates (base station location), antenna parameters (such as azimuth and downtilt angle), and frequency bands of each base station along the pre-trip route can be obtained from the operator's data source via an interface; or the base station location can be queried using a public base station database. At the same time, network signal strength can be obtained in real time through network signal strength acquisition tools (such as Network Cell Info Lite (NCIL)), and information such as Reference Signal Received Power (RSRP) and Cell ID can be extracted from it.
[0034] Secondly, based on the above data, network signal strength analysis is performed at different locations along the pre-trip route; specifically, network signal strength analysis can be conducted using the following methods: First, the path loss model can be used to calculate the network signal propagation loss, and then the network signal strength at different locations on the pre-trip road segment can be calculated based on the network signal propagation loss; wherein, the path loss model is: L = 46.3 + 33.9log 10 f–13.82log 10 h b –a(h m )+(44.9–6.55log 10 h b )log 10 d+C; Where L is the network signal propagation loss, f is the frequency, and h is the frequency. b d is the height of the base station antenna, d is the distance between the base station location and the measurement point, and C is a constant (usually taken as 3 in urban areas).
[0035] The network signal strength at different locations within the pre-driving road segment can be determined by measuring the network signal strength at different points (i.e., different locations within the pre-driving road segment).
[0036] Secondly, the Voronoi Diagram (VD) method can be used to divide the road segment. Voronoi polygons are generated based on the coordinates of base stations along the pre-trip route. The overlapping areas of these polygons represent the multi-base station coverage area. Then, a rasterization analysis method is used to divide the pre-trip route into grids of a predetermined size (e.g., 50m × 50m). The network signal strength of all base stations in each grid is calculated, and the number of base stations with signal strengths greater than a preset threshold (e.g., -105dBm) is selected. The area with a result value greater than 1 is the multi-base station coverage area. It can be understood that one multi-base station coverage area corresponds to one sub-segment. Then, the network signal strength of each sub-segment is determined. Specifically, the strongest network signal strength among at least one base station corresponding to the sub-segment can be used as the network signal strength of that sub-segment.
[0037] Then, based on the network signal strength, the road segments corresponding to consecutive locations with the same network signal strength can be identified as a sub-segment, resulting in multiple sub-segments; subsequently, the download rate of streaming media data for each sub-segment, the playback rate of streaming media data for the target vehicle, and the travel time of the target vehicle through each sub-segment can be determined.
[0038] Taking the first route as an example, see Table 1 below: Table 1. Schematic diagram of sub-road segment division
[0039] In Table 1, the field values in the sub-segment column represent the names of the sub-segments included in the first path, Cell ID represents the Cell ID of the base station covering the corresponding sub-segment, Download Rate represents the streaming media download rate of the corresponding sub-segment (based on the highest download rate corresponding to the corresponding sub-segment), and Sub-segment Length represents the length of the corresponding sub-segment.
[0040] In some embodiments, the download rate of streaming media data for each sub-segment can be obtained by: measuring the highest download speed of the corresponding sub-segment using a network speed test tool; and / or obtaining the highest download speed of the corresponding sub-segment from an associated database; wherein the associated database can be constructed from download rates reported by multiple vehicles passing through the corresponding sub-segment.
[0041] In some embodiments, the playback rate of the streaming media data of the target vehicle can be obtained by: determining the playback rate (the amount of data played per second) based on the bitrate of the streaming media currently being played by the target vehicle (e.g., 5Mbps for 1080P video) and the slice duration (the slice duration is typically a fixed value, such as 10 seconds); specifically: The data size of a video slice = bitrate (Mbps) × slice duration (seconds) / 8; where 1 byte (B) = 8 bits.
[0042] Therefore, taking the currently playing 1080P video as an example, the video data size of one slice is 5×10 / 8=6.25Mb. Adding the audio data size, it is about 6.5Mb. Dividing by 10 seconds, the playback rate is about 0.65Mb / s.
[0043] It should be noted that, in this embodiment of the application, the playback rate of streaming media data in each sub-segment is assumed to be the same.
[0044] In some embodiments, the travel time of the target vehicle through each sub-segment can be obtained in the following way: obtain the current driving speed of the target vehicle (obtained from the vehicle interface provided by the car manufacturer), and calculate the travel time based on the sub-segment length of each sub-segment; wherein, the sub-segment length is shown in Table 1.
[0045] Step 102: If there is a target sub-segment with a download rate lower than the playback rate, then determine the expected amount of missing streaming media data corresponding to the target sub-segment based on the target download rate, playback rate, and target travel time corresponding to the target sub-segment. In some embodiments, after obtaining the download rate and playback rate of the streaming media data corresponding to each sub-segment in step 101, the download rate and playback rate of the streaming media data corresponding to each sub-segment can be stored in the storage unit; then, the target sub-segment with a download rate lower than the playback rate can be filtered out from the storage unit.
[0046] In some embodiments, the expected missing amount of streaming media data corresponding to the target sub-segment refers to the difference between the target expected playback volume and the target expected download volume of the streaming media data corresponding to the target sub-segment. Here, the target expected playback volume refers to the streaming media data playback volume of the target sub-segment, determined based on the target travel time and playback rate corresponding to the target sub-segment; the target expected download volume refers to the streaming media data download volume of the target sub-segment, determined based on the target travel time and download rate corresponding to the target sub-segment.
[0047] Figure 2 A flowchart illustrating the method for determining the expected missing amount provided in an embodiment of this application.
[0048] Based on this, in some embodiments, such as Figure 2 As shown, step 102 includes the following steps: Step 201: Traverse each sub-segment and determine whether there is a target sub-segment in each sub-segment whose download rate is lower than the playback rate; Step 202: If the judgment result is yes, then based on the playback rate and target travel time corresponding to the target sub-segment, determine the target expected playback volume of the streaming media data corresponding to the target sub-segment; and based on the target download rate and target travel time corresponding to the target sub-segment, determine the target expected download volume of the streaming media data corresponding to the target sub-segment. Wherein, the target expected number of views = playback rate × target duration; Target estimated download volume = target download speed × target session duration.
[0049] Step 203: Based on the target expected playback volume and the target expected download volume, determine the expected amount of missing streaming media data corresponding to the target sub-segment.
[0050] In some embodiments, the expected number of missing data points = target expected play count - target expected download count.
[0051] Taking the target vehicle playing 1080P video at a playback rate of 0.65Mb / s as an example, see Table 2 below: Table 2. Streaming Media Data Illustration for Sub-segments
[0052] Table 2 provides an example of the download speed, travel time, estimated download volume, and estimated playback volume for different sub-segments of the first route. The download speed of sub-segment a5 is 0.1 Mb / s, which is less than the playback speed of 0.65 Mb / s. Therefore, in this example, sub-segment a5 is the target sub-segment. Correspondingly, the target estimated download volume is the estimated download volume of sub-segment a5, which is 5.184 Mb; the target estimated playback volume is the estimated playback volume of sub-segment a5, which is 33.696 Mb. That is, when the target vehicle travels on sub-segment a5, streaming media playback may experience stuttering, and the estimated missing data for sub-segment a5 is 33.696 Mb - 5.184 Mb = 28.512 Mb.
[0053] To prevent streaming media playback from stuttering when the target vehicle is traveling on sub-segment a5, the estimated missing streaming media data can be downloaded in advance on sub-segments a1 to a4 preceding sub-segment a5. Understandably, it's preferable to select sub-segments with download speeds higher than playback speeds to download the estimated missing streaming media data, thus preventing stuttering on other sub-segments due to the additional download of streaming media data.
[0054] Step 103: Determine the first sub-segment with a download rate greater than the playback rate among the sub-segments preceding the target sub-segment; In some embodiments, since the playback rate and download rate of each sub-segment have been obtained in step 101, the first sub-segment with a download rate greater than the playback rate can be determined by comparison among the sub-segments before the target sub-segment.
[0055] Taking Table 2 as an example, sub-segments a1 to a4 in Table 2 can all be used as the first sub-segment.
[0056] Step 104: In response to the target vehicle traveling to the first sub-segment, control the target vehicle to download streaming media data at a target download rate exceeding the playback rate, so that the target vehicle additionally downloads at least the expected amount of missing streaming media data in the first sub-segment.
[0057] In some embodiments, the location of the target vehicle can be obtained in real time, and when the target vehicle travels to the first sub-segment, a control process for the download rate of the target vehicle is triggered.
[0058] In some embodiments, controlling the target vehicle to download streaming media data at a target download rate exceeding the playback rate includes: By issuing control commands to the target vehicle, the number of concurrent connections for downloading streaming media data slices in the target vehicle is increased, thereby making the download rate exceed the playback rate. And / or, By issuing control commands to the target vehicle, the download scheduling strategy of the target vehicle is switched from on-demand download to continuous full-speed download. That is, instead of waiting for the cache to drop to a low water level threshold before initiating a new download request, it continuously requests subsequent slices, keeping the download queue at full capacity, thereby making the download rate approach the current network limit (the first download rate of the first sub-segment). And / or, By issuing control commands to the target vehicle, the target vehicle can request streaming media data that has not yet entered the playback window. That is, it not only requests the slices near the current playback time, but also requests the content of later slices in advance, so that the total amount of streaming media data downloaded per unit time exceeds the amount of streaming media data required for the current playback.
[0059] In some embodiments, it is understood that there can be one or more first sub-segments. If there is only one first sub-segment, it means that the expected surplus of streaming media data in one first sub-segment (the difference between the first expected download volume and the first expected playback volume of the first sub-segment) is greater than or equal to the expected missing volume, and the additional expected missing streaming media data can be downloaded within one first sub-segment. Conversely, if there are multiple first sub-segments, it means that the expected surplus of streaming media data in one first sub-segment is less than the expected missing volume, and the additional expected missing streaming media data cannot be downloaded within one first sub-segment; multiple first sub-segments are required to complete the download of the additional expected missing streaming media data. It is understood that, to avoid frequent control of the target vehicle, one first sub-segment is preferred.
[0060] The streaming media data pre-download method provided in this application divides the pre-driving road segment into multiple sub-segments based on the network signal strength at different locations of the target vehicle's pre-driving road segment. Then, when a target sub-segment exists with a download rate lower than the playback rate, the estimated amount of missing streaming media data corresponding to that sub-segment is determined, and a first sub-segment with a download rate higher than the playback rate is identified before the target sub-segment. When the target vehicle reaches the first sub-segment, it is controlled to download streaming media data at a target download rate exceeding the playback rate, ensuring that the target vehicle downloads at least the estimated amount of missing streaming media data in the first sub-segment. This solves the problem of network signal fluctuations and download rate drops caused by inconsistent base station coverage along the driving road segment, making it difficult to meet the real-time streaming media playback requirements. It does not rely on operator network upgrades or vehicle hardware modifications, effectively avoiding streaming media playback stuttering and buffering issues when the vehicle enters a weak signal area, significantly improving the continuity of streaming media playback and user experience.
[0061] Figure 3 This is a flowchart illustrating a method for downloading streaming media data with an expected amount of missing data, as provided in an embodiment of this application.
[0062] like Figure 3 As shown, based on the description of step 104, when the number of the first sub-segment is one, step 104 includes the following steps: Step 301: Based on the playback rate and the first travel duration corresponding to the first sub-segment, determine the first estimated playback volume of the streaming media data corresponding to the first sub-segment; and based on the first download rate and the first travel duration corresponding to the first sub-segment, determine the first estimated download volume of the streaming media data corresponding to the first sub-segment. Wherein, the first estimated number of views = playback rate × first streaming duration; First estimated download volume = First download speed × First session duration.
[0063] Step 302: Based on the first estimated playback volume and the first estimated download volume, determine the estimated surplus of streaming media data corresponding to the first sub-segment; The estimated surplus is calculated as: First estimated downloads - First estimated plays.
[0064] Step 303: If the expected surplus is greater than or equal to the expected missing amount, then in response to the target vehicle traveling to the first sub-segment, control the target vehicle to download streaming media data at the first download rate as the target download rate until the amount of additional streaming media data downloaded reaches the expected missing amount.
[0065] In some embodiments, as shown in Table 2, the estimated download volume of sub-segment a4 in Table 2 is 70.56Mb, and the estimated playback volume is 13.104Mb. Therefore, the estimated surplus of sub-segment a4 = 70.56Mb - 13.104Mb = 57.456Mb, which is greater than the estimated missing volume of 28.512Mb. Therefore, sub-segment a4 can be determined as the first sub-segment, and the download rate of sub-segment a4, 2.8Mb / s, is determined as the first download rate.
[0066] In some embodiments, if sub-segment a4 cannot be used as the first sub-segment, the process can continue to traverse to earlier sub-segments until a first sub-segment that meets the conditions is determined.
[0067] Understandably, if the target vehicle continuously downloads streaming media data at the first download rate while traveling on the first sub-segment, the amount of streaming media data downloaded by the target vehicle in the first sub-segment, in addition to the first estimated playback volume corresponding to the first sub-segment, will be greater than, or even far greater than, the estimated missing amount. In this case, the target vehicle will not only occupy additional bandwidth resources, but also increase the data calculation and power consumption of the target vehicle. Therefore, it is sufficient for the target vehicle to maintain the first download rate for only a portion of the travel time while traveling on the first sub-segment.
[0068] Figure 4 A flowchart illustrating the method for determining the download duration provided in this application embodiment.
[0069] like Figure 4 As shown, based on the description of step 303, step 303 includes the following steps: Step 401: Based on the first estimated playback volume and the estimated missing volume, determine the estimated download volume of the streaming media data corresponding to the first sub-segment; The estimated downloads = first estimated views + estimated missing views.
[0070] Taking Table 2 as an example, the estimated download volume is 13.104Mb + 28.512Mb = 41.616Mb.
[0071] Step 402: Based on the expected download volume and the first download rate, determine the expected download duration of the streaming media data corresponding to the first sub-segment; The estimated download duration is calculated as: estimated download volume / initial download speed.
[0072] Taking Table 2 as an example, the estimated download time is 41.616Mb / 2.8Mb / s = 14.86285714s.
[0073] Step 403: In response to the target vehicle traveling to the first sub-segment, control the target vehicle to download streaming media data at a first download rate within the expected download duration.
[0074] To facilitate control of the target vehicle, the download duration can be defined as the specific time period during which the target vehicle travels in the first sub-segment. For example, when the target vehicle travels to the first sub-segment, after a delay, the streaming media data is downloaded at the first download rate during the remaining download duration.
[0075] Based on this, step 403 includes the following steps: The delayed download duration is determined based on the initial pass duration and the estimated download duration. In response to the target vehicle traveling to the first sub-segment and after the delayed download time, the target vehicle is controlled to download streaming media data at a first download rate.
[0076] The delayed download duration is calculated as: First pass duration - Estimated download duration.
[0077] To implement the streaming media data pre-download method provided in the embodiments of this application, the embodiments of this application also provide a streaming media data pre-download device. For example... Figure 5 As shown, Figure 5 A schematic diagram of a streaming media data pre-download device provided in an embodiment of this application. The streaming media data pre-download device includes: The road segment division module 501 is used to divide the pre-driving road segment into multiple sub-road segments according to the network signal strength at different locations of the target vehicle's pre-driving road segment, and to determine the download rate of streaming media data in each sub-road segment, the playback rate of streaming media data of the target vehicle, and the travel time of the target vehicle through each sub-road segment. The data missing amount determination module 502 is used to determine the expected missing amount of streaming media data corresponding to the target sub-segment based on the target download rate, playback rate and target passage time corresponding to the target sub-segment if there is a target sub-segment with a download rate lower than the playback rate. The pre-download segment determination module 503 is used to determine the first sub-segment with a download rate greater than the playback rate among the sub-segments before the target sub-segment; The pre-download module 504 is configured to control the target vehicle to download streaming media data at a target download rate exceeding the playback rate when the target vehicle travels to the first sub-segment, so that the target vehicle additionally downloads at least the expected amount of missing streaming media data in the first sub-segment.
[0078] In some embodiments, the data missing quantity determination module 502 is specifically used for: Traverse each sub-segment and determine if there is a target sub-segment in each sub-segment whose download speed is lower than the playback speed; If the judgment result is yes, then based on the playback rate and target travel time corresponding to the target sub-segment, the target expected playback volume of the streaming media data corresponding to the target sub-segment is determined; and based on the target download rate and target travel time corresponding to the target sub-segment, the target expected download volume of the streaming media data corresponding to the target sub-segment is determined. Based on the target projected play count and target projected download count, determine the projected missing amount of streaming media data corresponding to the target sub-segment.
[0079] In some embodiments, the pre-download module 504 is specifically used for: Based on the playback rate and the first travel duration corresponding to the first sub-segment, determine the first estimated playback volume of the streaming media data corresponding to the first sub-segment; and based on the first download rate and the first travel duration corresponding to the first sub-segment, determine the first estimated download volume of the streaming media data corresponding to the first sub-segment. Based on the first estimated play count and the first estimated download count, determine the estimated surplus of streaming media data corresponding to the first sub-segment; If the expected surplus is greater than or equal to the expected missing amount, then in response to the target vehicle traveling to the first sub-segment, the target vehicle is controlled to download streaming media data at the first download rate as the target download rate until the amount of additional streaming media data downloaded reaches the expected missing amount.
[0080] In some embodiments, the pre-download module 504 is specifically used for: Based on the first estimated playback volume and the estimated missing volume, determine the estimated download volume of the streaming media data corresponding to the first sub-segment; Based on the expected download volume and the first download rate, determine the expected download duration of the streaming media data corresponding to the first sub-segment; In response to the target vehicle traveling to the first sub-segment, control the target vehicle to download streaming media data at a first download rate within the expected download duration.
[0081] In some embodiments, the pre-download module 504 is specifically used for: The delayed download duration is determined based on the initial pass duration and the estimated download duration. In response to the target vehicle traveling to the first sub-segment and after the delayed download time, the target vehicle is controlled to download streaming media data at a first download rate.
[0082] In some embodiments, the road segmentation module 501 is specifically used for: Obtain the network signal strength at different locations along the planned route; Based on the network signal strength, road segments corresponding to consecutive locations with the same network signal strength are identified as a sub-segment, resulting in multiple sub-segments.
[0083] The above embodiments of this application describe the apparatus provided in the embodiments of this application. To implement the functions of the methods provided in the above embodiments of this application, the streaming media data pre-download apparatus may include hardware structures and software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. One of the above functions may be executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules.
[0084] Figure 6 This is a block diagram illustrating an electronic device 600 for implementing the above-described streaming media data pre-download method, according to an exemplary embodiment. For example, the electronic device 600 may be a computer, a personal digital assistant, etc.
[0085] Reference Figure 6 The electronic device 600 may include a communication interface 601, capable of interacting with other devices; a processor 602, connected to the communication interface 601 to interact with other devices, used to execute the methods provided by one or more of the above-described technical solutions when running a computer program; and a memory 603, on which the computer program is stored. Specifically, the specific processing operations of the processor 602 can refer to the streaming media data pre-download method described in the above embodiments of this disclosure.
[0086] Of course, in practical applications, the various components in electronic device 600 are coupled together through bus system 604. It can be understood that bus system 604 is used to realize the connection and communication between these components. In addition to a data bus, bus system 604 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in... Figure 6 The general designated all buses as Bus System 604.
[0087] The memory 603 in this embodiment is used to store various types of data to support the operation of the electronic device 600. Examples of such data include any computer program used to operate on the electronic device 600.
[0088] The methods disclosed in the embodiments of this application can be applied to processor 602, or implemented by processor 602. Processor 602 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 602 or by instructions in software form. The processor 602 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 602 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 603. Processor 602 reads information from memory 603 and combines it with its hardware to complete the steps of the aforementioned method.
[0089] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0090] Embodiments of this disclosure also propose a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the streaming media data pre-download method described in the above embodiments of this disclosure.
[0091] Embodiments of this disclosure also propose a computer program product, including a computer program that, when executed by a processor, implements the streaming media data pre-download method described in the above embodiments of this disclosure.
[0092] Embodiments of this disclosure also propose a chip including one or more interface circuits and one or more processors; the interface circuits are used to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory, which, when executed by the processor, cause the electronic device to perform the streaming media data pre-download method described in the above embodiments of this disclosure.
[0093] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0094] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0095] Any description of operation or method in the flowchart or otherwise described herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or operation, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0096] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (control method), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic device, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0097] It should be understood that various parts of the embodiments of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0098] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by instructing related hardware through an operation sequence, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0099] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc.
[0100] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for pre-downloading streaming media data, characterized in that, The method includes: Based on the network signal strength at different locations along the target vehicle's pre-trip route, the pre-trip route is divided into multiple sub-segments, and the download rate of streaming media data, the playback rate of streaming media data of the target vehicle, and the travel time of the target vehicle through each sub-segment are determined. If there is a target sub-segment with a download rate lower than the playback rate, then the expected amount of missing streaming media data corresponding to the target sub-segment is determined based on the target download rate, the playback rate, and the target travel time. Among the sub-segments preceding the target sub-segment, the first sub-segment whose download rate is greater than the playback rate is identified. In response to the target vehicle traveling to the first sub-segment, the target vehicle is controlled to download streaming media data at a target download rate exceeding the playback rate, so that the target vehicle additionally downloads at least the expected amount of streaming media data in the first sub-segment.
2. The method according to claim 1, characterized in that, If there exists a target sub-segment with a download rate lower than the playback rate, then based on the target download rate, the playback rate, and the target travel time corresponding to the target sub-segment, the estimated amount of missing streaming media data corresponding to the target sub-segment is determined, including: Traverse each of the sub-segments and determine whether there is a target sub-segment in each of the sub-segments whose download rate is lower than the playback rate; If the determination result is yes, then based on the playback rate and target travel time corresponding to the target sub-segment, the target expected playback volume of the streaming media data corresponding to the target sub-segment is determined; and based on the target download rate and target travel time corresponding to the target sub-segment, the target expected download volume of the streaming media data corresponding to the target sub-segment is determined. Based on the target expected play count and the target expected download count, determine the expected amount of missing streaming media data corresponding to the target sub-segment.
3. The method according to claim 1, characterized in that, The step of controlling the target vehicle to download streaming media data at a target download rate exceeding the playback rate when the target vehicle travels to the first sub-segment, so that the target vehicle additionally downloads at least the expected amount of missing streaming media data in the first sub-segment, includes: Based on the playback rate and the first travel duration corresponding to the first sub-segment, a first estimated playback volume of the streaming media data corresponding to the first sub-segment is determined; and based on the first download rate and the first travel duration corresponding to the first sub-segment, a first estimated download volume of the streaming media data corresponding to the first sub-segment is determined. Based on the first estimated playback volume and the first estimated download volume, determine the estimated surplus of streaming media data corresponding to the first sub-segment; If the expected surplus is greater than or equal to the expected missing amount, then in response to the target vehicle traveling to the first sub-road segment, the target vehicle is controlled to download streaming media data at the first download rate as the target download rate until the amount of additional downloaded streaming media data reaches the expected missing amount.
4. The method according to claim 3, characterized in that, The step of responding to the target vehicle traveling to the first sub-road segment by controlling the target vehicle to download streaming media data at the first download rate as the target download rate until the amount of additional downloaded streaming media data reaches the expected missing amount includes: Based on the first estimated playback volume and the estimated missing volume, determine the estimated download volume of the streaming media data corresponding to the first sub-segment; Based on the estimated download volume and the first download rate, the estimated download duration of the streaming media data corresponding to the first sub-segment is determined; In response to the target vehicle traveling to the first sub-road segment, the target vehicle is controlled to download streaming media data at the first download rate within the estimated download duration.
5. The method according to claim 4, characterized in that, The step of responding to the target vehicle traveling to the first sub-road segment and controlling the target vehicle to download streaming media data at the first download rate within the estimated download duration includes: Based on the first passage duration and the estimated download duration, the delayed download duration is determined; In response to the target vehicle traveling to the first sub-road segment and after the delay download time, the target vehicle is controlled to download streaming media data at the first download rate.
6. The method according to any one of claims 1 to 5, characterized in that, The process of dividing the pre-driving road segment into multiple sub-segments based on the network signal strength at different locations along the target vehicle's pre-driving road segment includes: Obtain the network signal strength at different locations along the pre-trip route; Based on the network signal strength, road segments corresponding to consecutive locations with the same network signal strength are identified as a sub-segment, resulting in multiple sub-segments.
7. A streaming media data pre-download device, characterized in that, The device includes: The road segment division module is used to divide the pre-driving road segment into multiple sub-segments based on the network signal strength at different locations of the target vehicle's pre-driving road segment, and to determine the download rate of streaming media data in each sub-segment, the playback rate of streaming media data of the target vehicle, and the travel time of the target vehicle through each sub-segment. The data missing amount determination module is used to determine the expected missing amount of streaming media data corresponding to the target sub-segment based on the target download rate, the playback rate and the target travel time if there is a target sub-segment with a download rate lower than the playback rate. The pre-download segment determination module is used to determine the first sub-segment whose download rate is greater than the playback rate among the sub-segments preceding the target sub-segment; A pre-download module is configured to control the target vehicle to download streaming media data at a target download rate exceeding the playback rate when the target vehicle travels to the first sub-segment, so that the target vehicle additionally downloads at least the expected amount of missing streaming media data in the first sub-segment.
8. An electronic device, characterized in that, include: A processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, performs the method of any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, It includes a computer program, which, when executed by a processor, causes the processor to perform the method of any one of claims 1 to 6.