A method, apparatus, medium and device for previewing a video stream

CN116320578BActive Publication Date: 2026-10-30武汉斗鱼鱼乐网络科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211494331.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-25
Publication Date
2026-10-30
Estimated Expiration
2042-11-25

AI Technical Summary

Technical Problem

[0003]传统方案中房应用程序(Application,App)内用户在搜寻感兴趣内容时,需要完全的进入房间观看内容才能判断喜好,房间内诸如弹幕、广告、主播信息等内容的加载会消耗用户较多的流量,对网络资源同样是一种浪费

Benefits of technology

[0017]综上所述,可以看出,本发明提供的实施例中,通过用户长按滑动的交互触发下个推荐房间的内容预览,同时在进行内容预览时,只加载下个推荐房间的视频流,不但可以提前让用户判断喜好再决定是否进入该房间,同时可以节省完整加载下个房间所有内容所产生的流量消耗,提升用户的体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320578B_ABST
    Figure CN116320578B_ABST
Patent Text Reader

Abstract

The application provides a preview method of video stream and related equipment, which can let the user judge the preference in advance and then decide whether to enter the room, and can save the traffic consumption generated by loading all contents of the room. The method comprises the following steps: providing a current room interface, wherein the current room interface comprises a first player and a non-video information display area; loading a video stream of a first room to the first player for playing, and loading non-video information of the first room to the non-video information display area for display; in response to a touch screen operation of a user on the screen interface in a first direction, determining a second room corresponding to the first direction, and loading a video stream of the second room to a second player, wherein the second player is independent of the current room interface; maintaining the touch screen operation, moving the video stream and the non-video information of the first room to the first direction to adjust the display proportion of the second player, the first player and the non-video information display area on the screen interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video technology, and in particular to a method, apparatus, medium, and device for previewing video streams. Background Technology

[0002] With the advancement of network communication technology and the acceleration of broadband networks, video room technology has seen increasing development and application, and more and more users are choosing to watch room videos for leisure and entertainment. While watching room videos on a platform, users often need to search for room content that interests them.

[0003] In traditional solutions, when users search for content of interest within a room application (App), they need to enter the room completely to watch the content in order to determine their preferences. Loading content such as bullet comments, advertisements, and streamer information within the room consumes a lot of the user's data and is also a waste of network resources. Summary of the Invention

[0004] To address the problems existing in the prior art, embodiments of the present invention provide a method, apparatus, medium, and device for previewing video streams, which allows users to determine their preferences in advance before deciding whether to enter a room, while also saving the data consumption incurred by fully loading all content of the next room, thus improving the user experience.

[0005] The first aspect of this invention provides a method for previewing a video stream, comprising:

[0006] Provide a current room interface, which includes a first player and a non-video information display area;

[0007] The video stream from the first room is loaded into the first player for playback, and the non-video information from the first room is loaded into the non-video information display area for display.

[0008] In response to a user's touch operation along a first direction on the screen interface, a second room corresponding to the first direction is determined, and the video stream of the second room is loaded into a second player, which is independent of the current room interface;

[0009] While maintaining the touchscreen operation, move the video stream and non-video information of the first room in the first direction to adjust the display ratio of the second player, the first player, and the non-video information display area on the screen interface, thereby enabling a preview display of the video stream of the second room.

[0010] A second aspect of the present invention provides a video stream preview device, comprising:

[0011] The processing unit is used to provide the current room interface, which includes a first player and a non-video information display area;

[0012] The loading unit is used to load the video stream of the first room to the first player for playback, and to load the non-video information of the first room to the non-video information display area for display.

[0013] The determining unit is used to respond to a user's touch operation on the screen interface along a first direction, determine a second room corresponding to the first direction, and load the video stream of the second room into a second player, the second player being independent of the current room interface;

[0014] The display unit is used to maintain the touch screen operation and move the video stream and non-video information of the first room in the first direction to adjust the display ratio of the second player, the first player, and the non-video information display area on the screen interface, so as to realize the preview display of the video stream of the second room.

[0015] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in any of the first aspects.

[0016] A fourth aspect of the present invention provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the steps of the method described in any of the first aspects.

[0017] In summary, it can be seen that in the embodiments provided by the present invention, the user triggers the preview of the content of the next recommended room through a long press and swipe interaction. At the same time, when previewing the content, only the video stream of the next recommended room is loaded. This not only allows the user to judge their preferences in advance before deciding whether to enter the room, but also saves the data consumption generated by loading all the content of the next room, thus improving the user experience. Attached Figure Description

[0018] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0019] Figure 1 A flowchart illustrating the video stream preview method provided in an embodiment of the present invention;

[0020] Figure 2AA schematic diagram showing the distribution of the player and non-video information display area in the current room interface provided in an embodiment of the present invention;

[0021] Figure 2B A schematic diagram of the current room interface provided in an embodiment of the present invention;

[0022] Figure 3 A schematic diagram showing the distribution of the first room and the second room provided in an embodiment of the present invention;

[0023] Figure 4 This is a schematic diagram illustrating an application scenario provided by an embodiment of the present invention;

[0024] Figure 5 A schematic diagram of the virtual structure of a video stream preview device provided in an embodiment of the present invention;

[0025] Figure 6 A schematic diagram of the hardware structure of a video stream preview device provided in an embodiment of the present invention;

[0026] Figure 7 A schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present invention;

[0027] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0028] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0029] In the following description, specific embodiments of the invention will be illustrated with reference to steps and symbols performed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be referred to several times as being performed by a computer, and computer execution as referred to herein includes operations by a computer processing unit representing electronic signals of data in a structured format. This operation transforms the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise alter the operation of the computer in a manner well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the invention described above are not intended to be limiting, and those skilled in the art will understand that many of the steps and operations described below can also be implemented in hardware.

[0030] The terms "first," "second," and "third," etc., used in this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0031] The following describes the video stream preview method using a video stream preview device, which includes a sliding container controller, a preloading controller, and a player controller, wherein:

[0032] The sliding container controller is responsible for acquiring and caching the up-and-down sliding stream data, and also controls incremental logic such as supplementing data when it is insufficient. By listening to the user's sliding events, it makes the interface container slide an animation that matches the user's gesture, and uses algorithms to predict the user's sliding intention before notifying the preloading controller to create and load the preview video stream.

[0033] After receiving the preview data, the preloading controller initializes the preview player and loads the video stream. It then loads the player view into the portion of the interface container outside the visible area, gradually revealing it as the interface slides. Understandably, when loading the preview video stream, only the video stream information is loaded. Events sent back by the player are stored in a queue and only played back after the master-slave stream switch is complete and all other modules have finished loading. This ensures that no other modules are loaded during preview, and that no information is lost from events stored during playback after the switch. Furthermore, to guarantee a fast start-up speed for the preview video stream, a strategy algorithm is used to determine the bitrate of the preview video stream based on the user's network status and other information. After the master-slave switch is complete, the stream seamlessly switches to the previously selected or preset high-bitrate stream.

[0034] The player controller is responsible for the complete video stream maintenance and callback event handling logic, and interacts with other information modules. After the user completes the swipe to switch, the player controller performs a master-slave switch of the player stream, switching the preview video stream to the main player stream of the current room. It also interacts with other modules such as bullet comments and streamer information by handling a series of playback events mentioned earlier, completing the full loading of the current room. The following section combines... Figure 1 Please provide a detailed explanation:

[0035] Please see Figure 1 , Figure 1 A flowchart illustrating the video stream preview method provided in this embodiment of the invention includes:

[0036] 101. Provide the current room interface.

[0037] In this embodiment, the video stream preview device can provide a current room interface, which includes a first player and a non-video information display area. The following is in conjunction with... Figure 2A The following explanation uses the current room interface as an example (of course, the current room interface can also be a short video interface; there are no specific limitations. For simplicity, the following explanation will use the live stream interface of the live room as an example). Please refer to [link / reference]. Figure 2A , Figure 2A The diagram illustrates the distribution of the player and non-video information display area in the current room interface provided in this embodiment of the invention. It includes a first player 201 and a non-video information display area 202, wherein the non-video information display area 202 is used to display various non-video information of the live room, including VIP information, follow information, bullet comments, advertisements, and anchor information.

[0038] It should be noted that, Figure 2A The distribution of the first player 201 and the non-video information display area 202 is only for illustrative purposes. Of course, there can be other positions, such as the first player 201 being adjacent to the non-video information display area 202 on the left and right, or the first player 201 being located inside the non-video information display area 202. There are no specific limitations, as long as the first player 201 and the non-video information display area can be displayed on the current room interface.

[0039] 102. Load the video stream from the first room into the first player for playback, and load the non-video information from the first room into the non-video information display area for display.

[0040] In this embodiment, the video stream preview device can load the video stream from the first room onto the first player for playback, and load the non-video information from the first room onto the non-video information display area for display. The following is in conjunction with... Figure 2B For further explanation, please refer to [link / reference]. Figure 2B , Figure 2B This is another schematic diagram of the current room interface provided in an embodiment of the present invention. The video stream of the first room is loaded into the first player 201 for playback, and the non-video information of the first room is loaded into the non-video information display area 202 for display. Figure 2B The following example illustrates this: the first player 201 is placed within the non-video information display area 202.

[0041] 103. Respond to the user's touch operation on the screen interface along the first direction, determine the second room corresponding to the first direction, and load the video stream of the second room into the second player.

[0042] In this embodiment, the video stream preview device loads the video stream of the first room into the first player for playback, and loads the non-video information of the first room into the non-video information display area for display. Then, the user can apply a touch operation along a first direction on the screen interface. The video stream preview device can receive this touch operation, determine the second room corresponding to the first direction based on the touch operation, and load the video stream of the second room into the second player. The second room includes both video stream and non-video information, and the second player is independent of the current room interface. The details are explained below:

[0043] The video stream preview device can first initialize the preload controller, which can be achieved through the following function:

[0044] @interface DYRPBPreloadPlayerController:

[0045] DYBox <dyrpbpreloadplayerinterface>

[0046] The class is named DYRPBPreloadPlayerController, and it inherits from DYBox. In other words, DYBox encapsulates the basic lifecycle of the frame corresponding to the second room. By inheriting and overriding the parent class methods, the integration of the frame corresponding to the second room can be completed quickly.

[0047] The interface DYRPBPreloadPlayerInterface defines the functional interfaces provided to the outside world, including triggering the loading of the video stream in the second room and obtaining the video stream object in the second room (for master-slave switching).

[0048] The player instance is then initialized using the following function, which loads the video stream from the second room. This can be implemented using the following function:

[0049] self.nextPlayerDelegator=[[DYRPlayerIJKDelegator alloc]init];

[0050] self.nextPlayerDelegator.playerManager=

[0051] [DYIJKPlayerMgrsHolder.sharedHolder subIJKPlayerManagerForRoomId:roomId];

[0052] [playerManager applyNewPlayerByItem:playItem];

[0053] The player instance `playerManager` is held by a proxy class `DYRPlayerIJKDelegator` because the proxy class needs to maintain a queue of player events for playback after master-slave switching. Playback is implemented using the following function:

[0054] void(^eventExcution)(void)=^{player event actions...};

[0055] [self.replayEventArray addObject:eventExcution];

[0056] After the player is created, a view instance is created using the cover image of the room to which the stream belongs as the background. Then, the player's rendered view is added to it. The view is added to the specified position by calling the function of the sliding container controller, as implemented by the following function:

[0057] UIView*container=[self placeHolderViewWithUrl:coverUrl frame:rect];

[0058] [container addSubview:playerManager.RenderView];

[0059] [self attachPreloadedPlayerView:container isNext:isNext].

[0060] The following is combined with Figure 3 For a diagram illustrating the layout of the first and second rooms, please refer to [link / reference needed]. Figure 3 , Figure 3 This is a schematic diagram illustrating the distribution of a first room and a second room according to an embodiment of the present invention. It includes a first room 301, a second room 302, and a first direction 303. The first room 301 is displayed on the screen interface, while the second room 302 is not displayed on the screen interface and is adjacent to the first room 301. That is, a user can apply a touch operation along the first direction 303 on the screen interface. The video stream preview device can receive this touch operation, determine the second room 302 corresponding to the first direction based on the touch operation, and load the video stream from the second room 302 into the second player.

[0061] It should be noted that, Figure 3 The distribution of the first room 301 and the second room 302 is only for illustrative purposes. Of course, there can be other distribution methods, such as the first room 301 and the second room 302 being distributed left and right, and the corresponding first direction 303 being the left and right direction. There is no specific limitation.

[0062] In one embodiment, generating a user's touch operation on the screen interface along a first direction includes at least one of gesture operation, swipe operation, click operation, and voice control operation. For example, when the user clicks on the screen interface, the video stream preview device can receive the click operation, and at this time, the click operation generates a touch operation. That is to say, the touch operation can be predefined. For example, a swipe operation can be predefined as a trigger operation to determine the second room corresponding to the first direction and load the video stream of the second room into the second player (such as a left swipe operation, a right swipe operation, an up swipe operation, and a down swipe operation, etc.), or a click operation can be defined as determining the second room corresponding to the first direction. The trigger operation for generating touch screen operations can be defined as identifying the second room corresponding to the first direction and loading the video stream of the second room onto the second player (such as a single click or double click). Alternatively, a gesture operation can be defined as identifying the second room corresponding to the first direction and loading the video stream of the second room onto the second player (such as swinging the wrist or arm to the left, swinging the wrist or arm to the right, such as a four-finger contraction operation or a three-finger swipe up operation). Or, a voice control operation can be defined as identifying the second room corresponding to the first direction and loading the video stream of the second room onto the second player (such as receiving a preview sound of the incoming video stream). The above are just examples and do not represent a limitation on generating touch screen operations.

[0063] It should also be noted that the video stream preview device can determine the user's viewing time in the first room. If the viewing time exceeds a preset threshold, a recommended room corresponding to the first room is generated. This recommended room is then designated as the second room, which includes both the video stream and non-video information. In other words, the video stream preview device can determine the user's preference for the video stream displayed in the current room based on their viewing time in the first room, and then determine the corresponding recommended room based on this preference, setting it as the second room. This allows users to watch videos they like when switching rooms, increasing user engagement.

[0064] 104. While maintaining touchscreen operation, move the video stream and non-video information of the first room in the first direction to adjust the display ratio of the second player, the first player, and the non-video display area on the screen interface, so as to achieve a preview display of the video stream of the second room.

[0065] In this embodiment, the user applies a touch operation (such as a swipe operation) along the first direction on the screen interface. After the video stream preview device determines that the video stream of the second room is loaded into the second player based on the touch operation, the user can hold the touch operation. Thus, the video stream preview device can receive the touch operation and move the video stream and non-video information of the first room in the first direction according to the touch operation, so as to adjust the display ratio of the second player and the display area of ​​the first player and non-video information on the screen interface, thereby displaying the video stream of the second room on the screen interface.

[0066] In one embodiment, if a user finds that the video stream from the second room is not to their liking after watching it, they can touch the current room's interface. The video stream preview device then receives this touch and moves the video stream from the second room along a second direction on the screen to reduce its display ratio. The second direction is the opposite of the first direction. Furthermore, the video stream preview device can pre-build a transition animation corresponding to the touch operation; thus, this transition animation can be displayed while moving the video stream and non-video information from the first room along the first direction.

[0067] It should be noted that when displaying the video stream from the second room on the screen, the user's network status can also be determined. Based on the user's network status, the preview bitrate for the video stream from the second room is determined: if the video stream from the second room is to be previewed, it will be displayed at the preview bitrate. That is, to achieve rapid previewing of the video stream from the second room, the video stream preview device can combine the user's network status and other information (this other information is the preview level set by the user in advance, such as 1080P, 720P, etc.) to perform a stream level decision calculation using a strategy algorithm to determine the preview bitrate. Therefore, when previewing the video stream from the second room, it can be displayed at the preview bitrate. Specifically, the following function can be used to determine the preview bitrate:

[0068] DYRoomLiveModel * liveModel =

[0069] [[DYPlayerRoomPreembeddedManager preembeddedManager]searchLiveModel:roomId listType:LivingListType_Rainbow].

[0070] In one embodiment, after previewing the video stream of the second room, the video stream preview device can also determine whether the preset switching conditions are met, that is, whether the content displayed in the second room is the type that the user likes. If the preset switching conditions are met, the preview bitrate is adjusted to the live bitrate, the video stream of the second room is loaded into the first player for playback, and the non-video information of the second room is loaded into the non-video information display area of ​​the current room interface.

[0071] It should be noted that the video stream preview device determines whether the preset switching conditions are met by judging whether the current room interface receives a switching operation command. If a switching operation command is received, it is determined that the preset switching conditions are met; otherwise, they are not met. In this embodiment, the preset switching conditions are represented by the user releasing the touch screen.

[0072] Alternatively, the video stream preview device can determine whether the current room interface has received a switching operation command while also considering the displacement corresponding to the touch operation. If the displacement corresponding to the touch operation is greater than a preset displacement threshold when the user releases the touch operation, then the preset switching condition is met; otherwise, it is not met.

[0073] To make it easier to understand, the following example uses touchscreen operation as vertical swiping, and the second room is arranged vertically relative to the first room, to explain how to switch rooms and load the video stream:

[0074] In this invention, the video stream preview device, in order to simultaneously support the display of the current live stream room and two adjacent live stream rooms or on-demand content within a single screen interface, constructs a slidable interactive container three times the height of the visible area:

[0075] The current live stream's video stream and non-video information are displayed in the central viewport area (i.e., Figure 3 In area 301 (as shown in the image), when a user presses and slides their finger across the interactive area, adjacent live streams outside the visible window (i.e., those corresponding to area 302) will enter the visible window, and their video streams will be displayed within that area. When the user's finger leaves the screen, the view corresponding to the adjacent live stream is returned to its original position, thus achieving a seamless sliding effect. The details are explained below:

[0076] An infinitely sliding container is implemented using DYRPBContainerView and UIPanGestureRecognizer. DYRPBContainerView is a custom container view that handles the live stream background and other business logic.

[0077] The video stream preview device adds an instance of UIPanGestureRecognizer to the RootView of the main view controller, and manipulates the DYRPBContainerView through its callback events, as follows:

[0078] UIPanGestureRecognizer*panGesture=

[0079] [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(handlePanGesture:)];

[0080] panGesture.delegate = self;

[0081] [self.view addGestureRecognizer:panGesture].

[0082] In the callback method handlePanGesture, the video stream preview device processes each stage of the swipe operation separately, completing the animation of the entire screen interface following the user's finger swipe, specifically:

[0083] 1. In the initial stage, the function is case UIGestureRecognizerStateBegan:

[0084] This stage completes the initialization of the second player and the reset of other local tags.

[0085] 2. During the recognition phase, the function is case UIGestureRecognizerStateChanged:

[0086] This phase is triggered continuously as the user's finger moves. Upon the first trigger, the target direction of the user's finger swipe is calculated and predicted using the following function:

[0087] intent=[self dragIntentWithOffset:v.offset velocity:v.velocity];

[0088] Simultaneously, the following function is used to determine the basic information of the video stream corresponding to the target direction of the live broadcast room, and to notify the preloading controller to start loading the video stream of the live broadcast room:

[0089] [self preLoadPlayerDirection:intent];

[0090] Furthermore, the displacement of the finger drag is calculated each time it is triggered, and the horizontal offset is filtered out before the transformation is applied to the container view to achieve the effect of following the finger's movement. This can be achieved using the following function:

[0091] CGAffineTransform transform=

[0092] CGAffineTransformTranslate(containerView.transform, 0, point.y);

[0093] [self.containerView makeTransform:transform];

[0094] 3. Completion stage, the function for this stage is:

[0095] case UIGestureRecognizerStateEnded|UIGestureRecognizerStateFailed:

[0096] If the user's finger leaves the screen during the completion phase, it means that the current room interface has received the user's switching operation command. First, determine whether the preset switching conditions of the live stream are met based on the target displacement of the user's finger on the screen and the instantaneous acceleration of that displacement. This can be achieved using the following function:

[0097] DYDragIntent intent=[self caculateDestinationWithOffset:offsetYvelocity:velocity];

[0098] If the target displacement of the user's finger on the screen and the instantaneous acceleration of the target displacement meet the preset switching conditions of the live broadcast room (the required finger touch screen sliding displacement), then an animation is executed to continue sliding along the direction of the user's gesture to complete a complete slide.

[0099] Finally, the container view is returned to its original position (without animation, so it's visually imperceptible), thus returning the entire system to its initial state. This is achieved through the following function:

[0100] [UIView animateWithDuration:0.25animations:^{

[0101] [self makeTransform:CGAffineTransformMakeTranslation(0,-1*height)];

[0102] }completion:^(BOOL finished){

[0103] / / Switch target room

[0104] [self switchToTarget:targetItem withIntent:intent swipeMark:swipeMark];

[0105] / / Return to View (No Animation)

[0106] [self makeTransform:CGAffineTransformIdentity];

[0107] / / Release the preview view};

[0108] As can be seen, after a complete gesture processing, it returns to the initial state, and a new loop begins when the next swipe is triggered, thus realizing a container that can be visually swiped infinitely.

[0109] Additionally, after a user becomes interested in the content of the second room by watching the video stream, they will continue to swipe the screen, triggering a complete swipe switch. Upon receiving this switch event, the player controller will switch between the first and second players, replacing the video stream from the second room in the first player of the current room interface. Then, by triggering a playback event for non-video information in the second room, the non-video information from the second room will be loaded into the non-video information display area of ​​the current room interface. This can be implemented using the following function:

[0110] / / Complete player switching

[0111] [DYRPBPreloadPlayerInterface, @selector(switchPlayer:), switchPlayer:self];

[0112] / / Time queue for replay storage

[0113] [self.playerIJKDelegator replayEvent];

[0114] The above logic is executed without animation on the main thread, so the user does not visually perceive the movement of the view. Instead, the user only sees the video stream in the second room move to the position of the first player along the direction of the user's finger swipe. Then, the non-video information in the second room is gradually loaded into the non-video information display area, thus providing a smooth experience.

[0115] In summary, it can be seen that in the embodiments provided by the present invention, the user triggers the preview of the content of the next recommended room through a long press and swipe interaction. At the same time, when previewing the content, only the video stream of the next recommended room is loaded and the non-video information (such as bullet comments or advertisements) of the next recommended room is not loaded. This not only allows the user to judge their preferences in advance before deciding whether to enter the room, but also saves the traffic consumption generated by loading all the content of the next room, thus improving the user experience.

[0116] To facilitate understanding, the following example uses a specific application scenario, with touchscreen operation as the swipe operation and the first and second rooms distributed vertically:

[0117] Please see Figure 4 Explanation:

[0118] The current room interface is the interface of room 4A, which displays the first player 401 and a non-video information display area 402. The user then performs a swipe operation along the first direction 403 on the screen interface; that is, the user's finger presses on the screen interface and slides along the first direction 403 (e.g., ...). Figure 4 As shown in sub-figure T1), the video stream preview device can receive the sliding operation, determine the second room 4B corresponding to the first direction 403, and load the video stream of the second room 4B into the second player 404 (as shown in the sub-figure T1). Figure 4 As shown in sub-graph T2), the user continuously slides in the first direction 403, thereby adjusting the display ratio of the second player 404, the first player 401, and the non-video information display area 402 on the screen interface, thus previewing the video stream of the second room 4B (e.g., ...). Figure 4 As shown in sub-graphs T2-T3-T4), when the user's finger continues to slide in the first direction 403 while the screen interface is continuously pressed, if the displacement of the user's finger on the screen exceeds the maximum displacement threshold, it means that the second player 404 cannot continue to slide in the first direction 403 on the display screen (e.g., ...). Figure 4 As shown in sub-figure T4, the second player 404 has slid to the top of the display screen. At this time, if the user holds down the touchscreen, the current screen interface only plays the video stream of the second room 4B loaded by the second player 404, without loading non-video information such as bullet comments or advertisements from the second room 4B. This saves data usage when previewing the video stream of the second room 4B. If the user becomes interested after previewing the video stream of the second room 4B, they can release the touchscreen, thus completing a room switch in the live stream. That is, the video stream played by the first player 401 on the current room interface changes from the video stream of the first room 4A to the video stream of the second room 4B. The non-video information display area 402 on the current room interface will also load non-video information such as bullet comments or advertisements from the second room 4B (e.g., bullet comments or advertisements from the second room 4B). Figure 4 (as shown in subgraph T5).

[0119] Therefore, by triggering a preview of the content of the next recommended room through the user's long-press and swipe interaction, and loading only the video stream of the next recommended room while previewing the content, without loading the non-video information of the next recommended room, users can not only judge their preferences in advance before deciding whether to enter the room, but also save the data consumption that would be incurred by loading all the content of the next room, thus improving the user experience.

[0120] The present invention has been described above from the perspective of video stream preview methods; the present invention will now be described below from the perspective of video stream preview devices.

[0121] Please see Figure 5 , Figure 5 This is a virtual structural diagram of a video stream preview device provided in an embodiment of the present invention. The video stream preview device 500 includes:

[0122] Processing unit 501 is used to provide a current room interface, the current room interface including a first player and a non-video information display area;

[0123] The loading unit 502 is used to load the video stream of the first room to the first player for playback, and to load the non-video information of the first room to the non-video information display area for display.

[0124] The determining unit 503 is used to respond to the user's touch operation on the screen interface along the first direction, determine the second room corresponding to the first direction, and load the video stream of the second room to the second player, the second player being independent of the current room interface;

[0125] The display unit 504 is used to maintain the touch screen operation and move the video stream and non-video information of the first room in the first direction to adjust the display ratio of the second player and the display area of ​​the first player and the non-video information on the screen interface, so as to realize the preview display of the video stream of the second room.

[0126] In one possible design, the display unit 504 is further used for:

[0127] While maintaining the touchscreen operation, the video stream of the second room is moved on the screen interface along a second direction to reduce the display ratio on the screen interface, where the second direction is the opposite of the first direction.

[0128] In one possible design, the display unit 504 is further used for:

[0129] Determine the network status corresponding to the user;

[0130] The preview bitrate of the video stream in the second room is determined based on the network status of the user.

[0131] If the video stream of the second room is to be previewed, then the video stream of the second room will be previewed at the aforementioned preview bitrate.

[0132] In one possible design, the display unit 504 is further used for:

[0133] If the preset switching conditions are met, the preview bitrate will be adjusted to the live stream bitrate.

[0134] Load the video stream from the second room into the first player for playback;

[0135] Load the non-video information of the second room into the non-video information display area of ​​the current room interface.

[0136] In one possible design, the display unit 504 is further used for:

[0137] Determine whether the current room interface has received a switching operation command;

[0138] If a switching operation command is received, it is determined that the preset switching conditions are met.

[0139] In one possible design, the display unit 504 is further used for:

[0140] Construct the transition animation corresponding to the touch screen operation;

[0141] Maintaining the touchscreen operation and moving the video stream and non-video information of the first room in the first direction includes:

[0142] While maintaining the touch screen operation, the video stream and non-video information of the first room are moved in the first direction according to the transition animation corresponding to the touch screen operation.

[0143] In one possible design, the loading unit 502 is further used for:

[0144] Determine the viewing duration of the user in the first room;

[0145] If the viewing duration exceeds a preset threshold, a recommended room corresponding to the first room is generated;

[0146] The recommended room corresponding to the first room is determined as the second room, and the second room includes video streams and non-video information.

[0147] above Figure 5 The video stream preview device in this embodiment of the invention has been described from the perspective of modular functional entities. The following is a detailed description of the video stream preview device in this embodiment of the invention from the perspective of hardware processing. Please refer to [link / reference]. Figure 6 A schematic diagram of an embodiment of the video stream preview device 600 in this invention is shown. The video stream preview device 600 includes:

[0148] Input device 601, output device 602, processor 603, and memory 604 (where the number of processors 603 can be one or more). Figure 5 (Taking a processor 603 as an example). In some embodiments of the present invention, the input device 601, the output device 602, the processor 603, and the memory 604 may be connected via a communication bus or other means, wherein... Figure 6 Take the China-Israel communication bus connection as an example.

[0149] Specifically, by calling the operation instructions stored in memory 604, processor 603 performs the following steps:

[0150] Provide a current room interface, which includes a first player and a non-video information display area;

[0151] The video stream from the first room is loaded into the first player for playback, and the non-video information from the first room is loaded into the non-video information display area for display.

[0152] In response to a user's touch operation along a first direction on the screen interface, a second room corresponding to the first direction is determined, and the video stream of the second room is loaded into a second player, which is independent of the current room interface;

[0153] While maintaining the touchscreen operation, move the video stream and non-video information of the first room in the first direction to adjust the display ratio of the second player, the first player, and the non-video information display area on the screen interface, thereby enabling a preview display of the video stream of the second room.

[0154] By calling the operation instructions stored in memory 604, processor 603 is also used to execute... Figure 1 Any of the methods in the corresponding embodiments.

[0155] Please see Figure 7 , Figure 7 A schematic diagram of an embodiment of the electronic device provided in this invention.

[0156] like Figure 7 As shown, this embodiment of the invention provides an electronic device, including a memory 710, a processor 720, and a computer program 711 stored in the memory 710 and executable on the processor 720. When the processor 720 executes the computer program 711, it performs the following steps:

[0157] Provide a current room interface, which includes a first player and a non-video information display area;

[0158] The video stream from the first room is loaded into the first player for playback, and the non-video information from the first room is loaded into the non-video information display area for display.

[0159] In response to a user's touch operation along a first direction on the screen interface, a second room corresponding to the first direction is determined, and the video stream of the second room is loaded into a second player, which is independent of the current room interface;

[0160] While maintaining the touchscreen operation, move the video stream and non-video information of the first room in the first direction to adjust the display ratio of the second player, the first player, and the non-video information display area on the screen interface, thereby enabling a preview display of the video stream of the second room.

[0161] In practical implementation, when the processor 720 executes the computer program 711, it can achieve... Figure 1 Any of the corresponding implementation methods in the embodiments.

[0162] Since the electronic device described in this embodiment is a device used to implement a video stream preview device in the embodiment of the present invention, those skilled in the art can understand the specific implementation method and various variations of the electronic device in this embodiment based on the method described in the embodiment of the present invention. Therefore, how the electronic device implements the method in the embodiment of the present invention will not be described in detail here. Any device used by those skilled in the art to implement the method in the embodiment of the present invention is within the scope of protection of the present invention.

[0163] Please see Figure 8 , Figure 8 This is a schematic diagram of an embodiment of a computer-readable storage medium provided in this invention.

[0164] like Figure 8 As shown, this embodiment of the invention also provides a computer-readable storage medium 800, on which a computer program 811 is stored. When the computer program 811 is executed by a processor, it performs the following steps:

[0165] Provide a current room interface, which includes a first player and a non-video information display area;

[0166] The video stream from the first room is loaded into the first player for playback, and the non-video information from the first room is loaded into the non-video information display area for display.

[0167] In response to a user's touch operation along a first direction on the screen interface, a second room corresponding to the first direction is determined, and the video stream of the second room is loaded into a second player, which is independent of the current room interface;

[0168] While maintaining the touchscreen operation, move the video stream and non-video information of the first room in the first direction to adjust the display ratio of the second player, the first player, and the non-video information display area on the screen interface, thereby enabling a preview display of the video stream of the second room.

[0169] In the specific implementation process, the computer program 811 is executed by the processor to achieve... Figure 1 Any of the corresponding implementation methods in the embodiments.

[0170] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0171] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0172] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0173] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0174] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0175] This invention also provides a computer program product comprising computer software instructions that, when executed on a processing device, cause the processing device to perform actions such as... Figure 1 The process in the corresponding embodiment.

[0176] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0177] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0178] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.

[0179] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0180] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0181] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0182] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.< / dyrpbpreloadplayerinterface>

Claims

1. A method for previewing a video stream, characterized in that, include: The system provides a current room interface, which includes a first player and a non-video information display area. The non-video information display area is used to display various non-video information from the live stream, including VIP information, follow information, bullet comments, advertisements, and streamer information. The video stream from the first room is loaded into the first player for playback, and the non-video information from the first room is loaded into the non-video information display area for display. In response to a user's touch operation along a first direction on the screen interface, a second room corresponding to the first direction is determined, and the video stream of the second room is loaded only to the second player, which is independent of the current room interface; wherein the second room includes video stream and non-video information; While maintaining the touch screen operation, move the video stream and non-video information of the first room in the first direction to adjust the display ratio of the second player and the display area of ​​the first player and the non-video information on the screen interface, so as to realize the preview display of the video stream of the second room; The method further includes: While maintaining the touch screen operation, the video stream of the second room is moved along a second direction on the screen interface to reduce the display ratio on the screen interface, wherein the second direction is the opposite of the first direction; The method further includes: Determine the network status corresponding to the user; The preview bitrate of the video stream in the second room is determined based on the network status of the user. If the video stream of the second room is to be previewed, then the video stream of the second room will be previewed at the aforementioned preview bitrate; The method further includes: If the preset switching conditions are met, the preview bitrate will be adjusted to the live stream bitrate. Load the video stream from the second room into the first player for playback; Load the non-video information of the second room into the non-video information display area of ​​the current room interface.

2. The method according to claim 1, characterized in that, The method further includes: Determine whether the current room interface has received a switching operation command; If a switching operation command is received, it is determined that the preset switching conditions are met.

3. The method according to any one of claims 1 to 2, characterized in that, The method further includes: Construct the transition animation corresponding to the touch screen operation; Maintaining the touchscreen operation and moving the video stream and non-video information of the first room in the first direction includes: While maintaining the touch screen operation, the video stream and non-video information of the first room are moved in the first direction according to the transition animation corresponding to the touch screen operation.

4. The method according to any one of claims 1 to 2, characterized in that, The method further includes: Determine the viewing duration of the user in the first room; If the viewing duration exceeds a preset threshold, a recommended room corresponding to the first room is generated; The recommended room corresponding to the first room is determined as the second room, and the second room includes video streams and non-video information.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 1-4.

6. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Method and terminal for displaying image and video and responding network request

    CN107105338A

  • Data stream recovery method and device, equipment and medium

    CN115103218A