WO2023179401A1 - 视频流中预加载直播间方法、装置、设备及存储介质 - Google Patents
视频流中预加载直播间方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2023179401A1 WO2023179401A1 PCT/CN2023/081105 CN2023081105W WO2023179401A1 WO 2023179401 A1 WO2023179401 A1 WO 2023179401A1 CN 2023081105 W CN2023081105 W CN 2023081105W WO 2023179401 A1 WO2023179401 A1 WO 2023179401A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- preloading
- live broadcast
- broadcast room
- video stream
- environment information
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 230000004044 response Effects 0.000 claims abstract description 15
- 230000036316 preload Effects 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 13
- 230000002708 enhancing effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 4
- 230000000903 blocking effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23106—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2401—Monitoring of the client buffer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
Definitions
- Embodiments of the present application relate to the field of video processing technology, and in particular to a method, device, equipment and storage medium for preloading a live broadcast room in a video stream.
- the live broadcast room is entered and the data stream is pulled and the live page data is rendered.
- the live broadcast room is a relatively complex business scenario, and the output rate is within seconds. Not high, and both short video playback and live broadcast playback require a certain amount of network bandwidth. If the live broadcast room is rashly preloaded during short video playback, it may affect the short video consumption experience, causing short videos to freeze and short video preloading. The second output rate of short videos will also be degraded.
- terminal fragmentation is serious, that is, users use different devices to watch short videos and live broadcasts, which makes it more difficult to preload the live broadcast room when playing short videos.
- Embodiments of the present application provide a method, device, equipment and storage medium for preloading a live broadcast room in a video stream, which can preload the live broadcast room, the short video and the live broadcast data without affecting the consumption experience of short videos. Switching is smooth and fast, improving users’ consumption experience in the live broadcast room.
- embodiments of the present application provide a method for preloading a live broadcast room in a video stream. This method include:
- the current device environment information and business environment information are obtained;
- the live broadcast room resources are preloaded.
- embodiments of the present application also provide a live broadcast room preloading device in a video stream, including:
- the information acquisition module is configured to acquire the current device environment information and business environment information when it detects that the preloading trigger scenario is met during the video stream data playback process;
- a loading condition judgment module configured to determine whether the device environment information satisfies preloading device conditions, and determine whether the business environment information satisfies preloading business conditions
- a preloading module configured to preload live broadcast room resources in response to a determination result that satisfies the preloading device conditions and the preloading business conditions.
- embodiments of the present application also provide a live broadcast room device for preloading video streams.
- the device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor.
- the processor When the computer program is executed, the live broadcast room preloading method in the video stream as described in the embodiment of the present application is implemented.
- embodiments of the present application also provide a storage medium that stores computer-executable instructions, which when executed by a computer processor are used to perform preloading in the video stream described in the embodiments of the present application. Live broadcast room method.
- embodiments of the present application also provide a computer program product.
- the computer program product includes a computer program.
- the computer program is stored in a computer-readable storage medium.
- At least one processor of the device reads the computer program from the computer-readable storage medium.
- Obtain and execute the computer program causing the device to execute the method of preloading the live broadcast room in the video stream described in the embodiment of the present application.
- the live broadcast room resources are preloaded, so that the live broadcast room can be preloaded without affecting the short video consumption experience. It makes the switching between short videos and live broadcast data natural and smooth, and improves the user's consumption experience of short videos and live broadcast rooms.
- Figure 1 is a flow chart of a method for preloading a live broadcast room in a video stream provided by an embodiment of the present application
- Figure 2 is a flow chart of another method of preloading a live broadcast room in a video stream provided by an embodiment of the present application
- Figure 3 is a flow chart of another method of preloading a live broadcast room in a video stream provided by an embodiment of the present application
- Figure 4 is a flow chart of another method of preloading a live broadcast room in a video stream provided by an embodiment of the present application
- Figure 5 is a flow chart of another method of preloading a live broadcast room in a video stream provided by an embodiment of the present application
- Figure 6 is a structural block diagram of a preloading live broadcast room device in a video stream provided by an embodiment of the present application
- Figure 7 is a schematic structural diagram of a preloading live broadcast room device in a video stream provided by an embodiment of the present application.
- first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first,” “second,” etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple.
- “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
- Figure 1 is a flow chart of a method for preloading a live broadcast room in a video stream provided by an embodiment of the present application, which is used to preload live room resources during the playback of video stream data.
- This method can be performed by a computing device such as a smart terminal, Notebook, etc. to execute, including the following steps:
- Step S110 During the playback of the video stream data, when it is detected that the preloading trigger scenario is met, the current device environment information and business environment information are obtained.
- the preload triggering scene is detected, thereby obtaining the current device environment information and business environment information.
- the preloading trigger scene can be configured so that when the playback content is switched through a slide-up operation, the current playback data is a short video and the next playback data is a live video. It is understandable that the slide-up operation is used to switch the playback content. method, that is, the user can switch the playback content by sliding up, such as switching the currently playing, unplayed or paused short video to the next short video or live video.
- the trigger condition is met.
- the current playback data is a short video, which can be understood as the current data type is video stream data, which does not mean that the short video is in the playback state, that is, the short video can be in three states: playing, not playing, or paused. kind of.
- the preloading triggering scene can be configured to switch the playback content through a slide-down operation.
- the current playback data is a short video and the previous playback data is a live video.
- the slide-down operation is used to switch the playback content.
- Switching method that is, the user can switch the playback content through the sliding operation, such as switching the currently playing, unplayed or paused short video to the previous short video or live video.
- the trigger condition is met.
- the method provided by the embodiment of the present application can also control the user equipment to switch the playback content in response to the user's left or right swipe operation, and the current playback data is a short video, and the previous playback data or next playback data is Live video and determine whether the preloading trigger scenario is met.
- the device environment information includes one or more of network type, network bandwidth, and short video download bandwidth, where the network type is the type shown in the network currently used by the user equipment.
- the network type can be one of 2G, 3G, 4G, 5G or WiFi.
- the network type can be broadband or gateway.
- the network bandwidth is the bandwidth of the network currently used by the user device
- the short video download bandwidth is the bandwidth occupied when downloading short videos. It should be noted that the short video download bandwidth can also be expressed as the proportion of the bandwidth occupied when downloading short videos in the network bandwidth.
- the business environment information includes short video download data and/or short video cache data, It can be understood that the short video download data is used to determine whether the short video has been downloaded.
- the short video cache data may include the cached and played time and/or the cached but not played time.
- the short video cache data may also include The proportion of cached and played duration and/or the proportion of cached but not played duration, where the cached and played duration proportion represents the ratio of the played duration to the cached content duration, and the cached but not played duration
- the duration ratio represents the ratio of the unplayed duration to the cached content duration.
- Step S120 Determine whether the device environment information satisfies the preloading device conditions, and determine whether the business environment information satisfies the preloading service conditions.
- the preloading device condition may be to determine whether the network type is a preset network type; or to determine whether the network bandwidth is greater than a preset network bandwidth threshold; or to determine whether the short video download bandwidth is greater than the preset download bandwidth threshold.
- the preloading device condition can be set according to at least one of the above conditions.
- the preloading device condition can be obtained by the user device from the cloud or the server, or the user device sends a corresponding request to the cloud or the server, and the cloud or server sends the preloading device condition. Load device conditions.
- the default network type may be one or more of 2G, 3G, 4G, 5G or WiFi; for a computer such as a desktop computer, then The network type can be broadband or gateway etc.
- the preset network type can be set to 4G, 5G or WiFi, and the current network type of the user equipment is 4G, then the network type is determined to be the preset network type, which satisfies the preloading device conditions; and the current network type of the user equipment If it is 3G, the network type of the user device is not the default network type and does not meet the preloading device conditions.
- the preset network bandwidth threshold can be set to 2M bps, then the network bandwidth of the user equipment is 3M bps, which satisfies that the network bandwidth is greater than the preset network bandwidth threshold, and the user equipment The network bandwidth is 1M bps, then the network bandwidth of the user device is less than the preset network bandwidth threshold, and the preloading device conditions are not met.
- the short video download bandwidth is the bandwidth occupied when downloading the short video
- the preset download bandwidth threshold is set to 150KB/s, and the current short video of the user device
- the download bandwidth is 200KB/s, and it is determined that the short video download bandwidth is greater than the preset download bandwidth threshold; and the current short video download bandwidth of the user device is 100KB/s, the short video download bandwidth is less than the preset download bandwidth threshold, and preloading is not satisfied.
- Equipment conditions for example, the short video download bandwidth is the bandwidth occupied when downloading the short video
- the preset download bandwidth threshold is set to 150KB/s, and the current short video of the user device The download bandwidth is 200KB/s, and it is determined that the short video download bandwidth is greater than the preset download bandwidth threshold; and the current short video download bandwidth of the user device is 100KB/s, the short video download bandwidth is less than the preset download bandwidth threshold, and preloading is not satisfied.
- preset network type, preset network bandwidth threshold and preset download bandwidth threshold can be Set according to actual design needs.
- preloading device conditions include multiple settings, all of them need to be satisfied to determine that the device environment information meets the preloading device conditions.
- the preloading service conditions include: determining whether the short video has been downloaded based on the short video download data; and/or determining whether the cached but unplayed time is greater than a preset time based on the short video cache data.
- the short video download data may be a message indicating that the download is successful after the short video is successfully downloaded.
- the computing device receives the message, it determines that the download of the short video is complete.
- the short video cache data includes the time that has been cached but not played, and compared with the time that has been cached but not played and the preset time. For example, if the short video has been downloaded for 5000ms and the current playback time is 2000ms, then the short video has been downloaded but not played. The duration is 3000ms. If the preset time is 2500ms, it means that the cached but not played time is greater than the preset time.
- the short video cache data can also be based on the proportion of the cached but not played time to the cached time, that is, based on the short video cache data, it is determined whether the cached but not played time is greater than the preset proportion to determine whether the business environment information is Meet the preloading business conditions.
- the preset time can be set according to actual design needs.
- the preloading business conditions include the above two settings, when the short video has been downloaded, the short video cache data is ignored, that is, there is no need to determine whether the cached but not played time is greater than the preset time based on the short video cache data. .
- Step S130 In response to the determination result that the preloading device conditions and preloading business conditions are met, the live broadcast room resources are preloaded.
- the computing device responds and preloads the live broadcast room resources, such as obtaining the live broadcast room resources and entering the corresponding
- live broadcast room resources such as the encoding method of the live video, the picture resolution, the interface layout data, and the live stream data, to prepare for entering the live broadcast room.
- the live broadcast room resources are preloaded, so that the live broadcast room can be preloaded without affecting the consumption experience of short videos, making the switching between short videos and live broadcast data natural and smooth, improving user News about short videos and live broadcast rooms Free experience.
- the preloading triggering timing includes the short video playing to the preset time point or the preset time interval point after the preset time point. It can be understood that the time point that satisfies the preloading triggering timing includes the preset time point and subsequent Multiple preset time interval points are time points that meet the preset time interval. For example, the preset time point is set to 1000ms, and the preset time interval point is a time point every 500ms from the preset time point, such as 1500ms.
- the live broadcast room resources will be pre-loaded.
- preloading is triggered at intervals, so that the live broadcast room can be preloaded without affecting the consumption experience of short videos, making the switching between short videos and live broadcast data more natural and smooth, improving It improves the user’s consumption experience of short videos and live broadcast rooms.
- Figure 2 is a flow chart of another method of preloading a live broadcast room in a video stream provided by an embodiment of the present application, which specifically includes the following steps:
- Step S210 During the playback of the video stream data, when it is detected that the preloading trigger scenario is met, the current device environment information and business environment information are obtained.
- Step S220 Determine whether the device environment information satisfies the preloading device conditions, and determine whether the business environment information satisfies the preloading service conditions.
- Step S230 In response to the determination result that the preloading device conditions and preloading business conditions are met, the preloading strategy sent by the server is obtained, and the live broadcast room resources are preloaded.
- the preloading strategy is determined by the server based on the obtained basic information of the device.
- the basic information of the device includes the number of processor cores of the device, processing At least one of the processor frequency and running memory.
- the basic information of the device includes the number of processor cores, processor frequency and running memory.
- the server can determine the model level of the user equipment based on the above-mentioned basic device information, thereby providing the corresponding preloading strategy for the user equipment. It is conceivable that the server stores corresponding preloading strategies corresponding to the model level of the user equipment, for example , for user equipment whose model level is a low-end model, the server sends a first preloading strategy, for example, after obtaining the live broadcast room resources and entering the corresponding live broadcast room, by setting the corresponding playback volume of the live broadcast room to the default volume, and then Draw the live screen in the live broadcast room using a single pixel method.
- Figure 3 is a flow chart of another method of preloading a live broadcast room in a video stream provided by an embodiment of the present application, which specifically includes the following steps:
- Step S310 During the playback of the video stream data, when it is detected that the preloading trigger scenario is met, the current device environment information and business environment information are obtained.
- Step S320 Determine whether the device environment information satisfies the preloading device conditions, and determine whether the business environment information satisfies the preloading service conditions.
- Step S330 In response to the determination result that the preloading device conditions and preloading business conditions are met, obtain the live broadcast room resources and enter the corresponding live broadcast room.
- Step S340 Mask the sound and video stream playback in the live broadcast room.
- preloading the live broadcast room resources includes obtaining the live broadcast room resources, entering the corresponding live broadcast room, and shielding the sound and video streams of the live broadcast room.
- the user device obtains the live broadcast room resources, such as the encoding method of the live video, the picture resolution, the interface layout data, the live stream data, etc.; enters the corresponding live broadcast room, and checks the sound of the live broadcast room. and screen, thereby reducing the impact on the currently playing short video and improving the user experience.
- the live broadcast room resources are obtained.
- the preset volume is a preset playback volume, which can be set as needed.
- the playback volume of the live broadcast room can be set to 0, that is, during the preloading of the live broadcast room resources The sound from the live broadcast room will not be played during the process.
- Masking sound in the live broadcast room can also disable the audio data in the video stream data, and then restore the audio data when the live video is played.
- the images in the live broadcast room can also be drawn using multiple pixels; the images in the live broadcast room can also be drawn in the system background of the user's device to block the video stream playback in the live broadcast room.
- the live broadcast room resources will be preloaded. , and shields the sound and picture of the live broadcast, which can preload the live broadcast room without affecting the consumption experience of short videos, making the switching between short videos and live broadcast data natural and smooth, and improving users' understanding of short videos and live broadcast data. Consumption experience in the live broadcast room.
- Figure 4 is a flow chart of a method for preloading a live broadcast room in another video stream provided by an embodiment of the present application. The specific steps include:
- Step S410 During the playback of the video stream data, when it is detected that the preloading trigger scenario is met, the current device environment information and business environment information are obtained.
- Step S420 Determine whether the device environment information satisfies the preloading device conditions, and determine whether the business environment information satisfies the preloading service conditions.
- Step S430 In response to the determination result that the preloading device conditions and preloading business conditions are met, obtain the live broadcast room resources and enter the corresponding live broadcast room.
- Step S440 Mask the sound and video stream playback in the live broadcast room.
- Step S450 When it is detected that the current playing content is switched to a live video, the sound and video stream playback in the live broadcast room is resumed.
- the user device when the user switches a short video to a live video, the user device detects that the currently playing content is switched to a live video and resumes the sound and video stream playback in the live broadcast room, that is, the sound blocking and video streaming in the live broadcast room are lifted. Playback blocking allows the sound and picture of the live video to be displayed on the user's device.
- the user device is currently playing a short video and meets the pre-added requirements.
- the current device environment information of the user equipment meets the preloading device conditions and the business environment information meets the preloading business conditions, that is, the user equipment preloads the live broadcast room resources, and the sound and pictures in the live broadcast room are blocked.
- the user device detects that the current playback content is switched to a live video, that is, when the short video is switched to a live broadcast, the sound and video stream playback in the live broadcast room are restored, that is, the sound and picture of the short video are turned off, and the sound in the live broadcast room is restored to default. If the volume is restored to the current volume of the user's device, that is, the volume when playing the short video, and the live broadcast room screen is restored, the live broadcast will be displayed normally.
- Figure 5 is a flow chart of a method for preloading a live broadcast room in another video stream provided by an embodiment of the present application. The specific steps include:
- Step S510 During the playback of the video stream data, when it is detected that the preloading trigger scenario is met, the current device environment information and business environment information are obtained.
- Step S520 Determine whether the device environment information satisfies the preloading device conditions, and determine whether the business environment information satisfies the preloading service conditions.
- Step S530 In response to the determination result that the preloading device conditions and preloading business conditions are met, obtain the live broadcast room resources and enter the corresponding live broadcast room.
- Step S540 Mask the sound and video stream playback in the live broadcast room.
- Step S550 When it is detected that the live broadcast room resource release conditions are met, exit the live broadcast room and release the live broadcast room resources.
- the live broadcast room resource release conditions are also detected. When it is detected that the live broadcast room resource release conditions are met, the live broadcast room is exited and the live broadcast room resources are released, wherein the live broadcast room resources are released.
- the resource release conditions include at least one of preset operating conditions, network change conditions, background operating conditions and secondary page switching conditions.
- the preset operation conditions include determining whether the current operation instruction is a reverse instruction.
- the reverse instruction is the reaction of the user device in the preloading trigger scenario and in response to the user switching the playback content from a short video to another short video.
- the operation instructions received by the sliding operation for example, in a video stream data playback sequence, the video stream data currently played is short video I, the video stream data played previously is short video II, and the video stream data played next is short video II.
- the video stream data is live broadcast.
- the user device changes from playing short video I to playing short video II. If the preset operating conditions are met, the user will exit the live broadcast room and release the live broadcast room resources.
- the network change conditions include determining whether the changed network type exceeds the preset network type, indicating For example, if the default network type is set to 4G, 5G or WiFi, and the changed network type of the user equipment is 3G, it is determined that the changed network type is not the default network type, that is, it exceeds the default network type and satisfies the network If the conditions change, the user device exits the live broadcast room and releases the live broadcast room resources.
- the background operation conditions include determining whether the video stream data is in the system background. For example, video stream data can be played on a video application, that is, short videos and live broadcasts are played. When the user exits the video application into the system background of the user device, the following conditions are met: If the background operation condition is met, exit the live broadcast room and release the live broadcast room resources.
- Secondary page switching conditions include determining whether the current page is switched to a secondary page. For example, in a video application, the user can enter secondary pages such as comment area pages, video publisher pages, etc. in addition to the currently playing video stream data page. page, when the user device determines that the current page is a secondary page and meets the secondary page switching conditions, it will exit the live broadcast room and release the live broadcast room resources.
- Figure 6 is a structural block diagram of a device for preloading a live broadcast room in a video stream provided by an embodiment of the present application.
- the device is used to execute the method of preloading a live broadcast room in a video stream provided by the above embodiment.
- the specific execution method corresponds to the functional modules. and beneficial effects.
- the device includes an information acquisition module 110, a loading condition judgment module 120 and a preloading module 130, where,
- the information acquisition module 110 is configured to acquire the current device environment information and business environment information when it is detected that the preloading trigger scenario is met during the video stream data playback process.
- the loading condition judgment module 120 is configured to determine whether the device environment information satisfies the preloading device condition, and determine whether the business environment information satisfies the preloading service condition.
- the preloading module 130 is configured to preload the live broadcast room resources in response to the determination result that the preloading device conditions and preloading business conditions are met.
- the live broadcast room resources will be preloaded, so that the live broadcast room resources can be preloaded. Without affecting the short video consumption experience, the live broadcast room can also be preloaded, making the switching between short videos and live broadcast data natural and smooth, and improving the user's consumption experience of short videos and live broadcast rooms.
- the information acquisition module 110 is configured to: detect that the playback content is switched by a slide-up operation, and the current playback data is a short video, and the next playback data is a live video; or, it is detected that the playback content is switched by a slide-down operation. Content, and the current playback data is a short video, and the previous playback data is a live video.
- the information acquisition module 110 is configured to: acquire the current device environment information and business environment information when the preload trigger timing is met, and the preload trigger timing includes playing the short video until a preset time point or a preset time interval point after the preset time point.
- the device environment information includes one or more of network type, network bandwidth, and short video download bandwidth
- the loading condition judgment module 120 is configured as:
- the business environment information includes short video download data and/or short video cache data
- the loading condition judgment module is configured as:
- the preloading module 130 is configured as:
- the preloading strategy is determined by the server based on the obtained basic device information.
- the basic device information includes at least one of the number of processor cores, processor frequency and running memory of the device.
- the preloading module 130 is configured as:
- the preloading module 130 is configured as:
- the preloading module 130 is configured as:
- the preloading module 130 is configured as:
- the live broadcast room resource release conditions include at least one of preset operating conditions, network change conditions, background operating conditions and secondary page switching conditions. .
- Figure 7 is a schematic structural diagram of a live broadcast room device for preloading in a video stream provided by an embodiment of the present application.
- the device includes a processor 210, a memory 220, an input device 230 and an output device 240;
- the number of processors 210 in the device may be one or more.
- One processor 210 is taken as an example in Figure 7; the processor 210, memory 220, input device 230 and output device 240 in the device may be connected through a bus or other means. In Figure 7, connection via bus is taken as an example.
- the memory 220 can be used to store software programs, computer-executable programs, and modules, such as the program instructions/modules corresponding to the preloading live broadcast room method in the video stream in the embodiment of the present application.
- the processor 210 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 220, that is, implementing the above method of preloading a live broadcast room in a video stream.
- Input device 230 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and functional control of the device.
- the output device 240 may include a display device such as a display screen.
- Embodiments of the present application also provide a storage medium containing computer-executable instructions.
- the computer-executable instructions When executed by a computer processor, the computer-executable instructions are used to perform a live broadcast room preloading method in a video stream described in the above embodiments.
- the computer-executable instructions When executed by a computer processor, the computer-executable instructions are used to perform a live broadcast room preloading method in a video stream described in the above embodiments. Specifically, include:
- the current device environment information and business environment information are obtained;
- the live broadcast room resources are preloaded.
- various aspects of the method provided by this application can also be implemented in the form of a program product, which includes program code.
- the program product When the program product is run on a computer device, the program code is used to The computer device is caused to perform the steps in the methods described above in this specification according to various exemplary embodiments of the present application.
- the computer device may perform the method of preloading a live broadcast room in a video stream recorded in the embodiment of the present application.
- the program product may be implemented in any combination of one or more readable media.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
一种视频流中预加载直播间方法、装置、设备及存储介质,该方法包括:在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息;确定设备环境信息是否满足预加载设备条件,以及确定业务环境信息是否满足预加载业务条件;响应于满足预加载设备条件以及预加载业务条件的判断结果,进行直播间资源的预加载。能够在不影响短视频消费体验的前提下,预加载直播间,使得短视频和直播数据之间切换自然且快速,提升用户体验。
Description
本申请要求在2022年03月23日提交中国专利局,申请号为202210293767.2的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
本申请实施例涉及视频处理技术领域,尤其涉及一种视频流中预加载直播间方法、装置、设备及存储介质。
随着短视频应用的普及发展,经常会在数据消费流中混合视频和直播内容,丰富用户的体验场景,短视频的预下载业务存在不少解决方案,如用户在上下滑动消费短视频的过程中,预下载不可见的上下多个视频文件,准备好本地文件资源,用户滑动消费时可快速播放视频,而当短视频切换至直播时,由于业务形态差异大,短视频为文件播放,直播为实时的数据流播放,无法使用类似的预加载方案。
相关技术中通常是短视频切换直播时,整个页面切换为直播数据时开始加载直播资源,进入直播间并开始拉数据流,渲染直播页面数据,但直播间是比较复杂的业务场景,秒出率不高,而且短视频播放和直播播放均需要占用一定的网络带宽,如果贸然在短视频播放时预加载直播间,一方面可能影响短视频的消费体验,导致短视频卡顿,短视频预加载和短视频秒出率也会有劣化。而且终端碎片化严重,即用户观看短视频和直播的设备各异,从而加大短视频播放时预加载直播间的难度。
发明内容
本申请实施例提供了一种视频流中预加载直播间方法、装置、设备及存储介质,能够在不影响短视频的消费体验的前提下,预加载直播间,短视频和直播数据之间的切换流畅且快速,提升用户对直播间的消费体验。
第一方面,本申请实施例提供了一种视频流中预加载直播间方法,该方法
包括:
在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息;
确定所述设备环境信息是否满足预加载设备条件,以及确定所述业务环境信息是否满足预加载业务条件;
响应于满足所述预加载设备条件以及所述预加载业务条件的判断结果,进行直播间资源的预加载。
第二方面,本申请实施例还提供了一种视频流中预加载直播间装置,包括:
信息获取模块,配置为在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息;
加载条件判断模块,配置为确定所述设备环境信息是否满足预加载设备条件,以及确定所述业务环境信息是否满足预加载业务条件;
预加载模块,配置为响应于满足所述预加载设备条件以及所述预加载业务条件的判断结果,进行直播间资源的预加载。
第三方面,本申请实施例还提供了一种视频流中预加载直播间设备,该设备包括:处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如本申请实施例所述的视频流中预加载直播间方法。
第四方面,本申请实施例还提供了一种存储计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请实施例所述的视频流中预加载直播间方法。
第五方面,本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机程序,该计算机程序存储在计算机可读存储介质中,设备的至少一个处理器从计算机可读存储介质读取并执行计算机程序,使得设备执行本申请实施例所述的视频流中预加载直播间方法。
本申请实施例中,在用户设备播放视频流数据的过程中,对用户设备是否满足预加载触发场景进行检测,当用户设备满足预触发场景,且设备环境信息和业务环境信息均满足预加载设备条件和预加载业务条件,则预加载直播间资源,从而能够在不影响短视频的消费体验的前提下,同时还能够预加载直播间,
使得短视频和直播数据之间的切换自然流畅,提升用户对短视频和直播间的消费体验。
图1为本申请实施例提供的一种视频流中预加载直播间方法的流程图;
图2为本申请实施例提供的另一种视频流中预加载直播间方法的流程图;
图3为本申请实施例提供的另一种视频流中预加载直播间方法的流程图;
图4为本申请实施例提供的另一种视频流中预加载直播间方法的流程图;
图5为本申请实施例提供的另一种视频流中预加载直播间方法的流程图;
图6为本申请实施例提供的一种视频流中预加载直播间装置的结构框图;
图7为本申请实施例提供的一种视频流中预加载直播间设备的结构示意图。
下面结合附图和实施例对本申请实施例作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请实施例,而非对本申请实施例的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请实施例相关的部分而非全部结构。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
图1为本申请实施例提供的一种视频流中预加载直播间方法的流程图,用于在视频流数据播放过程中对直播间资源进行预加载,该方法可以由计算设备如智能终端、笔记本等来执行,具体包括如下步骤:
步骤S110、在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息。
在一个实施例中,在视频流数据播放过程中,即在用户设备播放短视频的过程,预加载触发场景被检测到,从而获取当前的设备环境信息和业务环境信息。可选的,预加载触发场景可以配置为通过上滑操作切换播放内容时,当前播放数据为短视频,下一播放数据为直播视频,可以理解的是,上滑操作为实现切换播放内容的切换方式,即用户可以通过上滑操作来切换播放内容,如将当前正在播放、未播放或暂停的短视频切换为下一个短视频或者直播视频,而对于用户设备如智能终端,在接收到对应于上滑操作的滑动操作数据后,若当前播放视频为短视频,切换后的播放数据为直播视频,则满足触发条件。需要说明的是,当前播放数据为短视频可以理解为当前的数据类型是视频流数据,并不代表该短视频处于播放状态,即该短视频可以是正在播放、未播放或暂停三种状态中的一种。
在另一个实施例中,预加载触发场景可以配置为通过下滑操作切换播放内容时,当前播放数据为短视频,上一播放数据为直播视频,可以理解的是,下滑操作为实现切换播放内容的切换方式,即用户可以通过下滑操作来切换播放内容,如将当前正在播放、未播放或暂停的短视频切换为上一个短视频或者直播视频,而对于用户设备如智能终端,在接收到对应于下滑操作的滑动操作数据后,若当前播放数据为短视频,切换后的播放数据为直播视频,则满足触发条件。
需要说明的是,对于本申请实施例提供的方法还可以控制用户设备响应于用户的左滑或右滑操作切换播放内容,且当前播放数据为短视频,上一播放数据或下一播放数据为直播视频,判断满足预加载触发场景。
在一个实施例中,设备环境信息包括网络类型、网络带宽和短视频下载带宽中的一种或多种,其中,网络类型为用户设备当前使用的网络所示的类型,对于智能终端如手机,则其网络类型可以是2G、3G、4G、5G或WiFi中的一种,对于计算机如台式电脑,则其网络类型可以是宽带或网关等,网络带宽为用户设备当前使用的网络的带宽,而短视频下载带宽为下载短视频时占用的带宽,需要说明的是,短视频下载带宽还可以用下载短视频时所占用的带宽在网络带宽中的占比来表示。
在一个实施例中,业务环境信息包括短视频下载数据和/或短视频缓存数据,
可以理解的是,短视频下载数据用于确定短视频是否完成下载,对于短视频缓存数据可以包括已缓存且已播放的时间和/或已缓存但未播放的时间,短视频缓存数据还可以包括已缓存且已播放的时长占比和/或已缓存但未播放的时长占比,其中,已缓存且已播放的时长占比表示已播放时长与缓存内容时长之比,已缓存但未播放的时长占比表示未播放时长与缓存内容时长之比。
步骤S120、确定设备环境信息是否满足预加载设备条件,以及确定业务环境信息是否满足预加载业务条件。
在一个实施例中,预加载设备条件可以是确定网络类型是否为预设网络类型;或者,确定网络带宽是否大于预设网络带宽阈值;或者,确定短视频下载带宽是否大于预设下载带宽阈值。其中,预加载设备条件可以依据上述条件设置其中的至少一种,预加载设备条件可以由用户设备从云端或服务器上获取,或者用户设备向云端或服务器发送相应的请求,由云端或服务器发送预加载设备条件。
对于确定网络类型是否为预设网络类型,其中,对于智能终端如手机,则预设网络类型可以是2G、3G、4G、5G或WiFi中的一种或多种,对于计算机如台式电脑,则网络类型可以是宽带或网关等。示例性的,预设网络类型可以设置为4G、5G或WiFi,而用户设备当前的网络类型为4G,则确定网络类型为预设网络类型,满足预加载设备条件;而用户设备当前的网络类型为3G,则用户设备的网络类型不是预设网络类型,且不满足预加载设备条件。
对于确定网络带宽是否大于预设网络带宽阈值,示例性的,预设网络带宽阈值可以设置为2M bps,则用户设备的网络带宽为3M bps,满足网络带宽大于预设网络带宽阈值,而用户设备的网络带宽为1M bps,则用户设备的网络带宽小于预设网络带宽阈值,且不满足预加载设备条件。
对于确定短视频下载带宽是否大于预设下载带宽阈值,示例性的,短视频下载带宽为下载短视频时占用的带宽,则预设下载带宽阈值设置为150KB/s,而用户设备当前的短视频下载带宽为200KB/s,确定短视频下载带宽大于预设下载带宽阈值;而用户设备当前的短视频下载带宽为100KB/s,则短视频下载带宽小于预设下载带宽阈值,且不满足预加载设备条件。
需要说明的是,预设网络类型、预设网络带宽阈值和预设下载带宽阈值可
以根据实际设计需要进行设置。当预加载设备条件包括多个设定,则需要全部满足,才能够确定设备环境信息满足预加载设备条件。
在一个实施例中,预加载业务条件包括:根据短视频下载数据确定短视频是否下载完毕;和/或,根据短视频缓存数据确定已缓存但未播放的时间是否大于预设时间。
示例性的,短视频下载数据可以是在短视频下载成功后生成一个用于表示下载成功的信息,计算设备接收到该信息,则确定短视频下载完毕。
短视频缓存数据包括已缓存但未播放的时间,对比已缓存但未播放时间和预设时间,示例性的,如短视频已下载5000ms,当前播放时间为2000ms,则短视频已下载未播放的时长为3000ms,若预设时间为2500ms,则满足已缓存但未播放时间大于预设时间。短视频缓存数据还可以是用已缓存但未播放时间在已缓存时间的时长占比,即根据短视频缓存数据确定已缓存但未播放的时长是否大于预设占比,来确定业务环境信息是否满足预加载业务条件。
需要说明的是,预设时间可以根据实际设计需要进行设置。在预加载业务条件包括上述两个设定的情况下,当短视频已经下载完成,则忽略短视频缓存数据,即不需要根据短视频缓存数据确定已缓存但未播放的时间是否大于预设时间。
步骤S130、响应于满足预加载设备条件以及预加载业务条件的判断结果,进行直播间资源的预加载。
在一个实施例中,在确定设备环境条件满足预加载设备条件以及确定业务环境条件满足预加载业务条件后,计算设备进行响应,对直播间资源进行预加载,如获取直播间资源,进入对应的直播间,可以想到的是,对于需要进行预加载的直播间,用户设备获取直播间资源,如直播视频的编码方式、画面分辨率、界面布局数据以及直播流数据等,做进入直播间的准备。
由上述方案可知,在用户设备播放视频流数据的过程中,对用户设备是否满足预加载触发场景进行检测,当用户设备满足预触发场景,且设备环境信息和业务环境信息均满足预加载设备条件和预加载业务条件,则预加载直播间资源,从而能够在不影响短视频的消费体验的前提下,同时还能够预加载直播间,使得短视频和直播数据之间的切换自然流畅,提升用户对短视频和直播间的消
费体验。
在一个实施例中,在视频流数据播放过程中,检测到满足预加载触发场景时,且在满足预加载触发时机时,获取当前的设备环境信息和业务环境信息。其中,预加载触发时机包括短视频播放至预设时间点或预设时间点后的预设时间间隔点,可以理解的是,满足预加载触发时机的时间点包括预设时间点及其后的多个预设时间间隔点即满足预设时间间隔的时间点,示例性的,预设时间点设置为1000ms,预设时间间隔点为从预设时间点起每隔500ms的时间点,如1500ms、2000ms等,即表示在预设时间点1000ms以及从1000ms起每隔500ms对应的时间点确定为满足预加载时机,获取当前的设备环境信息和业务环境信息进行判断,确定是否满足预加载条件,直到满足预加载条件且直播间资源预加载成功为止。
由此可见,当用户设备满足预触发场景,还满足预加载触发时机,且设备环境信息和业务环境信息均满足预加载设备条件和预加载业务条件,则预加载直播间资源,在满足预加载触发时机这一条件下,间隔地触发预加载,从而能够在不影响短视频的消费体验的前提下,同时还能够预加载直播间,使得短视频和直播数据之间的切换更加自然流畅,提升了用户对短视频和直播间的消费体验。
图2是本申请实施例提供的另一种视频流中预加载直播间方法的流程图,具体包括如下步骤:
步骤S210、在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息。
步骤S220、确定设备环境信息是否满足预加载设备条件,以及确定业务环境信息是否满足预加载业务条件。
步骤S230响应于满足预加载设备条件以及预加载业务条件的判断结果,获取服务器发送的预加载策略,进行直播间资源的预加载。
在一实施例中,对直播间资源进行预加载之前,还需要获取服务器发送的预加载策略,预加载策略为服务器根据获取的设备基础信息确定,设备基础信息包括设备的处理器核数、处理器频率以及运行内存中的至少一种。
示例性的,设备基础信息中包括处理器核数、处理器频率以及运行内存,
服务器能够根据上述的设备基础信息确定用户设备的机型等级,从而为用户设备提供对应的预加载策略,可以想到的是,服务器对应于用户设备的机型等级存储有相应的预加载策略,例如,对于机型等级为低端机型的用户设备,服务器发送第一预加载策略,如在获取直播间资源并进入对应直播间后,通过将直播间对应的播放音量设置为预设音量,再通过单像素点方式对直播间的直播画面进行绘制。
由上述方案可知,在用户设备播放视频流数据的过程中,对用户设备是否满足预加载触发场景进行检测,当用户设备满足预触发场景,且设备环境信息和业务环境信息均满足预加载设备条件和预加载业务条件,还获取服务器根据设备基础信息确定的预加载策略,从而预加载直播间资源,从而能够在不影响短视频的消费体验的前提下,同时适应不同机型等级的用户设备进行预加载直播间,使得短视频和直播数据之间的切换自然流畅,提升了用户对短视频和直播间的消费体验。
图3为本申请实施例提供的另一种视频流中预加载直播间方法的流程图,具体包括如下步骤:
步骤S310、在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息。
步骤S320、确定设备环境信息是否满足预加载设备条件,以及确定业务环境信息是否满足预加载业务条件。
步骤S330、响应于满足预加载设备条件以及预加载业务条件的判断结果,获取直播间资源,进入对应的直播间。
步骤S340、对直播间进行声音屏蔽和视频流播放屏蔽。
在一实施例中,对于进行直播间资源的预加载包括获取直播间资源,进入对应的直播间;对直播间进行声音屏蔽和视频流屏蔽。其中,对于需要进行预加载的直播间,用户设备获取直播间资源,如直播视频的编码方式、画面分辨率、界面布局数据以及直播流数据等;进入对应的直播间,并对直播间的声音和画面进行屏蔽,从而减低对当前播放的短视频的影响,提升了用户的使用体验。
在一个实施例中,在进行直播间资源的预加载的过程中,获取直播间资源,
进入对应直播间后,可以通过将直播间对应的播放音量设置为预设音量,再通过单像素点方式对直播间的直播画面进行绘制,以实现对直播间进行声音屏蔽和视频流播放屏蔽。可以理解的是,预设音量是预设置的播放音量,可以根据需要设置,示例性的,可以在进行预加载的过程中,对直播间的播放音量设置为0,即在预加载直播间资源的过程中不播放直播间的声音。对直播间进行声音屏蔽还可以是禁用视频流数据中的音频数据,而在进行直播视频播放时,再恢复音频数据。对于直播间的画面,还可以采用多个像素点进行绘制;直播间的画面还可在用户设备的系统后台绘制,实现对直播间进行视频流播放屏蔽。
由上述方案可知,在用户设备播放视频流数据的过程中,当用户设备满足预触发场景,且设备环境信息和业务环境信息均满足预加载设备条件和预加载业务条件,从而预加载直播间资源,并对直播的声音和画面进行屏蔽,能够实现在不影响短视频的消费体验的前提下,预加载直播间,使得短视频和直播数据之间的切换自然流畅,提升了用户对短视频和直播间的消费体验。
图4为本申请实施例提供的另一视频流中预加载直播间方法的流程图,具体步骤包括:
步骤S410、在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息。
步骤S420、确定设备环境信息是否满足预加载设备条件,以及确定业务环境信息是否满足预加载业务条件。
步骤S430、响应于满足预加载设备条件以及预加载业务条件的判断结果,获取直播间资源,进入对应的直播间。
步骤S440、对直播间进行声音屏蔽和视频流播放屏蔽。
步骤S450、检测到当前播放内容切换至直播视频时,恢复直播间的声音和视频流播放。
在一实施例中,对于用户将短视频切换至直播视频,用户设备检测到当前播放内容切换至直播视频,恢复直播间的声音和视频流播放,即解除对直播间进行的声音屏蔽和视频流播放屏蔽,使得直播视频的声音和画面在用户设备上展示。
示例性的,在一应用场景中,用户设备当前正在播放短视频,且满足预加
载触发场景,用户设备当前的设备环境信息满足预加载设备提条件和业务环境信息满足预加载业务条件,即用户设备对直播间资源进行预加载,直播间的声音和画面均屏蔽。在用户设备检测到当前播放内容切换为直播视频,即由短视频切换至直播时,恢复直播间的声音和视频流播放,即关闭短视频的声音和画面,同时使直播间的声音恢复至默认音量如恢复至用户设备当前的音量,即播放短视频时的音量,且恢复直播间画面,正常展示直播。
图5为本申请实施例提供的另一视频流中预加载直播间方法的流程图,具体步骤包括:
步骤S510、在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息。
步骤S520、确定设备环境信息是否满足预加载设备条件,以及确定业务环境信息是否满足预加载业务条件。
步骤S530、响应于满足预加载设备条件以及预加载业务条件的判断结果,获取直播间资源,进入对应的直播间。
步骤S540、对直播间进行声音屏蔽和视频流播放屏蔽。
步骤S550、检测到满足直播间资源释放条件时,退出直播间并释放直播间资源。
在一实施例中,在对直播间资源进行预加载后,还对直播间资源释放条件进行检测,当检测到满足直播间资源释放条件时,退出直播间并释放直播间资源,其中,直播间资源释放条件包括预设操作条件、网络变化条件、后台操作条件以及二级页面切换条件中的至少一种。
可以理解的是,预设操作条件包括确定当前操作指令是否为反向指令,反向指令是用户设备在预加载触发场景下且响应于用户使播放内容由短视频切换为另一短视频的反向滑动操作而接收到的操作指令,示例性的,在一视频流数据播放次序中,当前播放的视频流数据为短视频I,上一播放的视频流数据为短视频II,下一播放的视频流数据为直播,响应于用户的反向滑动操作,用户设备由播放短视频I改为播放短视频II,满足预设操作条件,则退出直播间并释放直播间资源。
网络变化条件包括确定变化后的网络类型是否满足超出预设网络类型,示
例性的,预设网络类型设置为4G、5G或WiFi,而用户设备变化后的网络类型为3G,则确定变化后的网络类型不为预设网络类型,即超出预设网络类型,满足网络变化条件,则用户设备退出直播间并释放直播间资源。
后台操作条件包括确定视频流数据是否处于系统后台,示例性的,在一视频应用上可以播放视频流数据,即播放短视频和直播,当用户将该视频应用退入用户设备的系统后台,满足后台操作条件,则退出直播间并释放直播间资源。
二级页面切换条件包括确定当前页面是否切换为二级页面,示例性的,在一视频应用中,用户可以进入二级页面如评论区页面、视频发布者页面等除当前播放视频流数据页面外的页面,当用户设备确定当前页面为二级页面,满足二级页面切换条件,则退出直播间并释放直播间资源。
图6为本申请实施例提供的一种视频流中预加载直播间装置的结构框图,该装置用于执行上述实施例提供的视频流中预加载直播间方法,具体执行方法相对应的功能模块和有益效果。如图6所示,该装置包括信息获取模块110、加载条件判断模块120和预加载模块130,其中,
信息获取模块110,配置为在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息。
加载条件判断模块120,配置为确定设备环境信息是否满足预加载设备条件,以及确定业务环境信息是否满足预加载业务条件。
预加载模块130,配置为响应于满足预加载设备条件以及预加载业务条件的判断结果,进行直播间资源的预加载。
由上述方案可知,在视频流数据播放的过程中,当满足预触发场景,且设备环境信息和业务环境信息均满足预加载设备条件和预加载业务条件,则预加载直播间资源,从而能够在不影响短视频的消费体验的前提下,同时还能够预加载直播间,使得短视频和直播数据之间的切换自然流畅,提升用户对短视频和直播间的消费体验。
在一个可能的实施例中,信息获取模块110配置为:检测到通过上滑操作切换播放内容,且当前播放数据为短视频,下一播放数据为直播视频;或者,检测到通过下滑操作切换播放内容,且当前播放数据为短视频,上一播放数据为直播视频。
在一个可能的实施例中,信息获取模块110配置为:在满足预加载触发时机时,获取当前的设备环境信息和业务环境信息,所述预加载触发时机包括所述短视频播放至预设时间点或所述预设时间点后的预设时间间隔点。
在一个可能的实施例中,设备环境信息包括网络类型、网络带宽和短视频下载带宽中的一种或多种,加载条件判断模块120配置为:
确定网络类型是否为预设网络类型;或者,确定网络带宽是否大于预设网络带宽阈值;或者,确定短视频下载带宽是否大于预设下载带宽阈值。
在一个可能的实施例中,业务环境信息包括短视频下载数据和/或短视频缓存数据,加载条件判断模块配置为:
根据短视频下载数据确定短视频是否下载完毕;和/或,根据短视频缓存数据确定已缓存但未播放的时间是否大于预设时间。
在一个可能的实施例中,预加载模块130配置为:
获取服务器发送的预加载策略,预加载策略为服务器基于根据获取的设备基础信息确定,设备基础信息包括设备的处理器核数、处理器频率以及运行内存中的至少一种。
在一个可能的实施例中,预加载模块130配置为:
获取直播间资源,进入对应的直播间;对直播间进行声音屏蔽和视频流播放屏蔽。
在一个可能的实施例中,预加载模块130配置为:
将直播间对应的播放音量设置为预设音量;通过单像素点方式对直播间的直播画面进行绘制。
在一个可能的实施例中,预加载模块130配置为:
检测到当前播放内容切换至直播视频时,恢复直播间的声音和视频流播放。
在一个可能的实施例中,预加载模块130配置为:
检测到满足直播间资源释放条件时,退出直播间并释放直播间资源,其中,直播间资源释放条件包括预设操作条件、网络变化条件、后台操作条件以及二级页面切换条件中的至少一种。
图7为本申请实施例提供的一种视频流中预加载直播间设备的结构示意图,如图7所示,该设备包括处理器210、存储器220、输入装置230和输出装置240;
设备中处理器210的数量可以是一个或多个,图7中以一个处理器210为例;设备中的处理器210、存储器220、输入装置230和输出装置240可以通过总线或其他方式连接,图7中以通过总线连接为例。存储器220作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的视频流中预加载直播间方法对应的程序指令/模块。处理器210通过运行存储在存储器220中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的视频流中预加载直播间方法。输入装置230可用于接收输入的数字或字符信息,以及产生与设备的用户设置以及功能控制有关的键信号输入。输出装置240可包括显示屏等显示设备。
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种上述实施例描述的视频流中预加载直播间方法,具体包括:
在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息;
确定所述设备环境信息是否满足预加载设备条件,以及确定所述业务环境信息是否满足预加载业务条件;
响应于满足所述预加载设备条件以及所述预加载业务条件的判断结果,进行直播间资源的预加载。
值得注意的是,上述视频编码控制装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请实施例的保护范围。
在一些可能的实施方式中,本申请提供的方法的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在计算机设备上运行时,所述程序代码用于使所述计算机设备执行本说明书上述描述的根据本申请各种示例性实施方式的方法中的步骤,例如,所述计算机设备可以执行本申请实施例所记载的视频流中预加载直播间方法。所述程序产品可以采用一个或多个可读介质的任意组合实现。
Claims (14)
- 视频流中预加载直播间方法,其中,包括:在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息;确定所述设备环境信息是否满足预加载设备条件,以及确定所述业务环境信息是否满足预加载业务条件;响应于满足所述预加载设备条件以及所述预加载业务条件的判断结果,进行直播间资源的预加载。
- 根据权利要求1所述的视频流中预加载直播间方法,其中,所述预加载触发场景包括:通过上滑操作切换播放内容时,当前播放数据为短视频,下一播放数据为直播视频;或者,通过下滑操作切换播放内容时,当前播放数据为短视频,上一播放数据为直播视频。
- 根据权利要求2所述的视频流中预加载直播间方法,其中,所述获取当前的设备环境信息和业务环境信息,包括:在满足预加载触发时机时,获取当前的设备环境信息和业务环境信息,所述预加载触发时机包括所述短视频播放至预设时间点或所述预设时间点后的预设时间间隔点。
- 根据权利要求1-3中任一项所述的视频流中预加载直播间方法,其中,所述设备环境信息包括网络类型、网络带宽和短视频下载带宽中的一种或多种,所述确定所述设备环境信息是否满足预加载设备条件,包括下述至少一种:确定所述网络类型是否为预设网络类型;或者,确定所述网络带宽是否大于预设网络带宽阈值;或者,确定所述短视频下载带宽是否大于预设下载带宽阈值。
- 根据权利要求1-4中任一项所述的视频流中预加载直播间方法,其中,所述业务环境信息包括短视频下载数据和/或短视频缓存数据,所述确定所述业务环境信息是否满足预加载业务条件,包括:根据所述短视频下载数据确定短视频是否下载完毕;和/或,根据所述短视频缓存数据确定已缓存但未播放的时间是否大于预设时间。
- 根据权利要求1-5中任一项所述的视频流中预加载直播间方法,其中,在所述进行直播间资源预加载之前,还包括:获取服务器发送的预加载策略,所述预加载策略为所述服务器根据获取的设备基础信息确定,所述设备基础信息包括设备的处理器核数、处理器频率以及运行内存中的至少一种。
- 根据权利要求1-6中任一项所述的视频流中预加载直播间方法,其中,所述进行直播间资源的预加载,包括:获取直播间资源,进入对应的直播间;对所述直播间进行声音屏蔽和视频流播放屏蔽。
- 根据权利要求7所述的视频流中预加载直播间方法,其中,所述对所述直播间进行声音屏蔽和视频流播放屏蔽,包括:将所述直播间对应的播放音量设置为预设音量;通过单像素点方式对所述直播间的直播画面进行绘制。
- 根据权利要求7或8所述的视频流中预加载直播间方法,其中,在进行直播间资源的预加载之后,还包括:检测到当前播放内容切换至直播视频时,恢复所述直播间的声音和视频流播放。
- 根据权利要求7-9中任一项所述的视频流中预加载直播间方法,其中,在进行直播间资源的预加载之后,还包括:检测到满足直播间资源释放条件时,退出直播间并释放直播间资源,其中,所述直播间资源释放条件包括预设操作条件、网络变化条件、后台操作条件以及二级页面切换条件中的至少一种。
- 一种视频流中预加载直播间装置,其中,包括:信息获取模块,配置为在视频流数据播放过程中,检测到满足预加载触发场景时,获取当前的设备环境信息和业务环境信息;加载条件判断模块,配置为确定所述设备环境信息是否满足预加载设备条件,以及确定所述业务环境信息是否满足预加载业务条件;预加载模块,配置为响应于满足所述预加载设备条件以及所述预加载业务条件的判断结果,进行直播间资源的预加载。
- 一种视频流中预加载直播间设备,其中,包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1至10任一项所述的视频流中预加载直播间方法。
- 一种存储介质,存储有计算机可执行指令,其中,所述计算机可执行 指令由计算机处理器执行时用于执行如权利要求1至10任一项所述的视频流中预加载直播间方法。
- 一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至10中任一项所述的视频流中预加载直播间方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210293767.2 | 2022-03-23 | ||
CN202210293767.2A CN114827646B (zh) | 2022-03-23 | 2022-03-23 | 视频流中预加载直播间方法、装置、设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023179401A1 true WO2023179401A1 (zh) | 2023-09-28 |
Family
ID=82530306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/081105 WO2023179401A1 (zh) | 2022-03-23 | 2023-03-13 | 视频流中预加载直播间方法、装置、设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114827646B (zh) |
WO (1) | WO2023179401A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827646B (zh) * | 2022-03-23 | 2023-12-12 | 百果园技术(新加坡)有限公司 | 视频流中预加载直播间方法、装置、设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108769727A (zh) * | 2018-06-15 | 2018-11-06 | 北京奇艺世纪科技有限公司 | 一种直播视频预加载方法及装置 |
CN112672186A (zh) * | 2020-12-09 | 2021-04-16 | 北京达佳互联信息技术有限公司 | 视频预加载的方法和装置 |
CN113535063A (zh) * | 2021-08-12 | 2021-10-22 | 腾讯音乐娱乐科技(深圳)有限公司 | 直播页面切换方法、视频页面切换方法、电子设备及存储介质 |
CN114827646A (zh) * | 2022-03-23 | 2022-07-29 | 百果园技术(新加坡)有限公司 | 视频流中预加载直播间方法、装置、设备及存储介质 |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246526B (zh) * | 2012-02-07 | 2016-05-04 | 腾讯科技(深圳)有限公司 | 客户端预加载方法及客户端预加载装置 |
EP2803202B1 (en) * | 2012-12-11 | 2023-11-08 | RingCentral, Inc. | Method of processing video data, device, computer program product, and data construct |
US20150019982A1 (en) * | 2013-07-12 | 2015-01-15 | Felix Houston Petitt, JR. | System, devices, and platform for security |
US9622133B1 (en) * | 2015-10-23 | 2017-04-11 | The Florida International University Board Of Trustees | Interference and mobility management in UAV-assisted wireless networks |
CN105430425B (zh) * | 2015-11-18 | 2018-11-16 | 深圳Tcl新技术有限公司 | 单分片视频播放加速方法及装置 |
CN108282236A (zh) * | 2017-09-15 | 2018-07-13 | 广州市动景计算机科技有限公司 | 预加载内容展示的方法及终端设备 |
US10334314B1 (en) * | 2017-12-22 | 2019-06-25 | Hulu, LLC | Preload-supported concurrent video stream limiting |
CN108989297B (zh) * | 2018-06-29 | 2020-09-15 | 北京微播视界科技有限公司 | 信息访问方法、客户端、装置、终端、服务器和存储介质 |
CN110418147A (zh) * | 2018-10-11 | 2019-11-05 | 彩云之端文化传媒(北京)有限公司 | 一种短视频引导长视频的跨屏收视方法 |
CN110413510B (zh) * | 2019-06-28 | 2024-04-12 | 腾讯科技(深圳)有限公司 | 一种数据处理方法、装置及设备 |
CN110536144B (zh) * | 2019-07-31 | 2021-09-07 | 腾讯科技(深圳)有限公司 | 一种直播处理方法、装置及存储介质 |
CN112153470B (zh) * | 2020-09-11 | 2022-04-08 | 腾讯科技(深圳)有限公司 | 一种视频播放方法、装置、计算机设备和存储介质 |
CN113365087B (zh) * | 2021-05-31 | 2023-01-20 | 北京达佳互联信息技术有限公司 | 视频数据的处理方法、装置、电子设备及存储介质 |
-
2022
- 2022-03-23 CN CN202210293767.2A patent/CN114827646B/zh active Active
-
2023
- 2023-03-13 WO PCT/CN2023/081105 patent/WO2023179401A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108769727A (zh) * | 2018-06-15 | 2018-11-06 | 北京奇艺世纪科技有限公司 | 一种直播视频预加载方法及装置 |
CN112672186A (zh) * | 2020-12-09 | 2021-04-16 | 北京达佳互联信息技术有限公司 | 视频预加载的方法和装置 |
CN113535063A (zh) * | 2021-08-12 | 2021-10-22 | 腾讯音乐娱乐科技(深圳)有限公司 | 直播页面切换方法、视频页面切换方法、电子设备及存储介质 |
CN114827646A (zh) * | 2022-03-23 | 2022-07-29 | 百果园技术(新加坡)有限公司 | 视频流中预加载直播间方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN114827646A (zh) | 2022-07-29 |
CN114827646B (zh) | 2023-12-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021143182A1 (zh) | 游戏的处理方法、装置、电子设备及计算机可读存储介质 | |
CN110418151B (zh) | 游戏直播中弹幕信息发送、处理方法、装置、设备、介质 | |
CN111565334B (zh) | 直播回放方法、装置、终端、服务器及存储介质 | |
US10271105B2 (en) | Method for playing video, client, and computer storage medium | |
CN109360567B (zh) | 可定制唤醒的方法和装置 | |
WO2020010819A1 (zh) | 基于直播间的数据交互方法、装置、终端和存储介质 | |
CN106791898B (zh) | 一种直播视频加载方法和装置 | |
US11889135B2 (en) | Video stream playing control method and apparatus, and storage medium | |
WO2023179401A1 (zh) | 视频流中预加载直播间方法、装置、设备及存储介质 | |
CN111760266B (zh) | 游戏直播方法、装置及电子设备 | |
US20230247257A1 (en) | Broadcasting method and device for live broadcast | |
CN114189700A (zh) | 直播卡顿提示方法、装置、计算机设备和存储介质 | |
CN110519619B (zh) | 一种基于倍速播的变速播放方法及系统 | |
CN108966005B (zh) | 一种视频分辨率的调节方法、装置、存储介质及终端 | |
CN106792251A (zh) | 信息显示方法、装置及终端 | |
CN113556568A (zh) | 一种云应用程序运行方法、系统、装置与存储介质 | |
CN112738620A (zh) | 一种媒体资源投屏方法、设备及系统 | |
WO2017032237A1 (zh) | 一种刷新播放列表的方法及装置 | |
WO2023030292A1 (zh) | 多媒体文件的播放方法和装置 | |
WO2022161310A1 (zh) | 显示方法、装置和电子设备 | |
CN114025170A (zh) | 视频播放方法、装置、计算机设备和计算机可读存储介质 | |
US20210320890A1 (en) | Method and device for displaying text and video in two threads | |
CN107682733B (zh) | 一种提高用户观看视频体验度的控制方法及系统 | |
CN110807106B (zh) | 一种多媒体数据的处理方法、装置、计算机设备和存储介质 | |
CN114327714A (zh) | 应用程序控制方法、装置、设备及介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23773649 Country of ref document: EP Kind code of ref document: A1 |