WO2022062578A1 - 弹幕区域的调整方法及装置 - Google Patents
弹幕区域的调整方法及装置 Download PDFInfo
- Publication number
- WO2022062578A1 WO2022062578A1 PCT/CN2021/105604 CN2021105604W WO2022062578A1 WO 2022062578 A1 WO2022062578 A1 WO 2022062578A1 CN 2021105604 W CN2021105604 W CN 2021105604W WO 2022062578 A1 WO2022062578 A1 WO 2022062578A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- bullet screen
- screen area
- area
- video playback
- bullet
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000004044 response Effects 0.000 claims abstract description 52
- 238000001514 detection method Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000000903 blocking effect Effects 0.000 description 3
- 238000002834 transmittance Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
Images
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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
-
- 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44016—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
-
- 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/47—End-user applications
- H04N21/485—End-user interface for client configuration
Definitions
- the embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method and apparatus for adjusting a bullet screen area.
- Barrage is a special feature of some video sharing websites. Using this feature, viewers can post their own comments while watching a video, and it will be displayed with swiping subtitles at the time when all viewers watch the video. out, thereby increasing the interactivity between viewers. However, during the barrage display process, it may affect users' viewing of the video.
- Embodiments of the present disclosure provide a method, device, electronic device, and storage medium for adjusting the bullet screen area, which can realize the personalized adjustment of the bullet screen area.
- the technical solutions of the present disclosure are as follows:
- a method for adjusting a bullet screen area including:
- the bullet screen area is a rectangular area
- the position information of the bullet screen area includes coordinate information of the first position point of the bullet screen area in a preset Cartesian coordinate system and the bullet screen Coordinate information of the second position point of the area in the preset Cartesian coordinate system; wherein, the first position point and the second position point are two non-adjacent two of the four corner points of the bullet screen area. corner point.
- the method further includes:
- the coordinate information of the any position point is updated in real time according to the drag operation
- the position information of the bullet screen area in the video playback interface is determined.
- the method further includes:
- the displaying the boundary of the bullet screen area includes:
- the adjusting the position of the bullet screen area in the video playback interface according to the position information includes:
- the layout of the target bullet screen data in the bullet screen area is adjusted and rendered according to the location information, so as to display the target bullet screen data in the adjusted bullet screen area.
- the method further includes:
- the barrage area is adjusted.
- the adjusting the barrage area in response to the barrage quantity being greater than a preset quantity threshold includes:
- the bullet screen area is adjusted from the current position to a non-video playback interface.
- the method further includes:
- the bullet screen area is adjusted from the current position to the initial position area of the bullet screen area.
- the initial location area is the video playing interface, and the area of the initial location area is equal to the area of the video playing interface.
- the method further includes:
- the size of the bullet screen area is adjusted according to the number of the bullet screen, wherein the size of the bullet screen area is proportional to the number of the bullet screen.
- the method further includes:
- the bullet screen area Determine whether the bullet screen area is located in the host's face area, if so, adjust the bullet screen area to other areas; wherein, the other areas are the non-video playback interface or the video playback interface except for the person areas outside the face area.
- a device for adjusting a bullet screen area including:
- a display unit configured to display the bullet screen data in the bullet screen area of the video playback interface
- a determining unit configured to perform a touch adjustment operation on the bullet screen area in response to a user, and determine the position information of the bullet screen area in the video playback interface according to the touch adjustment operation;
- the first adjustment unit is configured to adjust the position of the bullet screen area in the video playback interface according to the position information.
- the bullet screen area is a rectangular area
- the position information of the bullet screen area includes coordinate information of the first position point of the bullet screen area in a preset Cartesian coordinate system and the bullet screen Coordinate information of the second position point of the area in the preset Cartesian coordinate system; wherein, the first position point and the second position point are two non-adjacent two of the four corner points of the bullet screen area. corner point.
- the apparatus further includes:
- a display unit configured to display the boundary of the bullet screen area
- the determining unit is configured to perform:
- the coordinate information of the any position point is updated in real time according to the drag operation
- the position information of the bullet screen area in the video playback interface is determined.
- the apparatus further includes:
- the judgment unit is configured to perform real-time judgment on whether the side length of the bullet screen area is less than a preset side length threshold, and if so, prohibit the dragging operation on the current dragging object, and control the bullet screen area to display the adjustment prohibited hint.
- the display unit is configured to perform:
- the first adjustment unit is configured to perform:
- the layout of the target bullet screen data in the bullet screen area is adjusted and rendered according to the location information, so as to display the target bullet screen data in the adjusted bullet screen area.
- the apparatus further includes:
- a detection unit configured to perform detection of the number of bullet screens within a preset time period
- the second adjustment unit is configured to adjust the bullet screen area in response to the bullet screen quantity being greater than a preset quantity threshold.
- the second adjustment unit is configured to perform:
- the bullet screen area is adjusted from the current position to a non-video playback interface.
- the apparatus further includes:
- the third configuration unit is configured to perform, in response to the number of the bullet screens being less than the preset number threshold, adjusting the bullet screen area from the current position to the initial position area of the bullet screen area.
- the initial location area is the video playing interface, and the area of the initial location area is equal to the area of the video playing interface.
- the apparatus further includes:
- the fourth adjustment unit is configured to adjust the size of the bullet screen area according to the number of the bullet screen, wherein the size of the bullet screen area is proportional to the number of the bullet screen.
- the apparatus further includes:
- the fifth adjustment unit is configured to perform judgment on whether the bullet screen area is located in the host's face area, and if so, adjust the bullet screen area to another area; wherein, the other area is a non-video playback interface or any other area. area other than the face area in the video playback interface.
- an electronic device comprising:
- the processor is configured to execute the instruction to implement the method for adjusting the bullet screen area described in the first aspect.
- a storage medium is provided.
- the electronic device can execute the operation of the bullet screen area described in any embodiment of the present disclosure. adjustment method.
- a computer program product when instructions in the computer program product are executed by a processor of an electronic device, the method for adjusting the bullet screen area described in any embodiment of the present disclosure is implemented.
- the position information of the bullet screen area in the video playback interface is determined, and the position of the bullet screen area in the video playback interface is adjusted according to the position information, which not only solves the problem of the bullet screen in the prior art
- the area is fixed and a single technical problem, and the personalized adjustment of the bullet screen area according to the user's touch adjustment operation is realized.
- FIG. 1 is a flow chart of a method for adjusting a bullet screen area according to an exemplary embodiment.
- FIG. 2 is a flow chart of another method for adjusting a bullet screen area according to an exemplary embodiment.
- Fig. 3 is a flow chart of still another method for adjusting a bullet screen area according to an exemplary embodiment.
- FIG. 4 is a flow chart of yet another method for adjusting a bullet screen area according to an exemplary embodiment.
- Fig. 5 is a block diagram of an apparatus for adjusting a bullet screen area according to an exemplary embodiment.
- Fig. 6 is a structural block diagram of an electronic device according to an exemplary embodiment.
- FIG. 1 is a flowchart of a method for adjusting a bullet screen area according to an exemplary embodiment. As shown in FIG. 1 , the method for adjusting a bullet screen area is used in an electronic device, and includes the following steps.
- step S11 the bullet screen data is displayed in the bullet screen area of the video playback interface.
- the video playback interface may be understood as an area used by the video player to play videos, wherein the video playback interface may include a short video playback interface, a long video playback interface, and a live broadcast interface. in addition.
- the video playback interface can be full screen playback, web page full screen playback and original size playback.
- the bullet screen area is the area on the video playback interface used to display the bullet screen data.
- the bullet screen area can be the entire video playback interface, the top or bottom area of the video playback interface, or the left and right of the video playback interface. , centered, top, and bottom area blocks.
- the bullet screen data can be understood as the comment information of the audience, and the bullet screen data can include data information such as text, pictures, animations or short videos.
- the bullet chat data can also include gift pictures and gift animation effects.
- the bullet screen data in response to detecting the bullet screen opening instruction, the bullet screen data is displayed in the bullet screen area of the video playback interface.
- step S12 in response to a user's touch adjustment operation on the bullet screen area, position information of the bullet screen area in the video playback interface is determined according to the touch adjustment operation.
- the bullet screen data displayed in the bullet screen area may block the played video content, or the user is not very used to or satisfied with the position or size of the bullet screen area. This will reduce the user's viewing experience.
- the bullet screen area can be adjusted according to the user's touch adjustment operation on the bullet screen area. Therefore, in response to detecting an adjustment operation with a touch on the bullet screen area, the position information of the bullet screen area in the video playback interface is determined according to the touch adjustment operation.
- the user in response to the detection of the user's drag operation on the entire bullet screen area, it can be understood that the user only wants to adjust the position of the bullet screen area, while keeping the size and shape of the bullet screen area unchanged.
- any position point in the bullet screen area as a reference point, detect the position information of the reference point in real time, and detect when the user's drag operation on the bullet screen area ends, the position of the reference point at the end of the drag operation will be detected.
- the information is used as the final position information of the position point in the bullet chat area. Since the size and shape of the bullet chat area remain unchanged, the bullet chat area can be determined based on the size and shape of the bullet chat area and the final position information of the position point in the bullet chat area.
- the position information of each other position point in the screen area is determined, so as to determine the position information of the pop-up screen area in the video playback interface.
- the user's touch operation on the bullet screen area is a pinch operation
- the user wants to adjust the size of the bullet screen area and keep the center point of the bullet screen area unchanged.
- It can track the user's pinch operation trajectory in real time, and based on the position information of the pinch operation trajectory point, it will detect the end of the user's pinch operation on the bullet screen area, and determine the bullet screen area on the video playback interface according to the position information of the pinch operation trajectory point. location information in .
- the bullet screen area is a rectangular area
- the position information of the bullet screen area includes coordinate information of the first position point of the bullet screen area in a preset Cartesian coordinate system and the bullet screen Coordinate information of the second position point of the area in the preset Cartesian coordinate system; wherein, the first position point and the second position point are two non-adjacent two of the four corner points of the bullet screen area. corner point.
- a two-dimensional Cartesian coordinate system can be constructed with the corner point of the upper left corner of the video playback interface as the coordinate origin, and the corner point of the upper left corner among the four corner points of the bullet screen area is used as the first position point, and the bullet screen
- the corner point of the lower right corner among the four corner points of the area is used as the second position point, and according to the coordinate information (x0, y0) of the first position point in the constructed two-dimensional Cartesian coordinate system and the second position point in the constructed
- the coordinate information (x1, y1) in the two-dimensional Cartesian coordinate system is used as the position information of the bullet screen area in the video playback interface.
- the upper right corner of the four corners of the bullet screen area may also be used as the first position point, and the corner point of the right and left corners of the four corner points of the bullet screen area may be used as the second position point. It should be noted that the embodiment of the present disclosure does not limit the selection method of the first position point and the second position point, as long as the first position point and the second position point are not adjacent to the four corner points of the bullet screen area. the two corners of .
- the position information of the bullet screen area in the video playback interface is determined according to the touch adjustment operation Before, it also includes: displaying the boundary of the bullet screen area.
- the step of determining the position information of the bullet screen area in the video playback interface according to the touch adjustment operation includes: In response to the user's drag operation on any position point or any side line connecting any position point, the coordinate information of the any position point is updated in real time according to the drag operation; according to the updated any position The coordinate information of the point and the coordinate information of another location point determine the location information of the bullet screen area in the video playback interface.
- the advantage of this setting is that the coordinate information of the bullet screen area can be updated in real time according to the user's drag operation on any corner point of the four corner points of the rectangular bullet screen area or any side line connecting any corner point, so as to realize the adjustment of the bullet screen area. Dynamic adjustment of the bullet screen area.
- the boundary of the bullet screen area is displayed, so that the user can know the boundary and shape of the bullet screen area at a glance, which is helpful for The user drags the bullet screen area to adjust the bullet screen area.
- the step of displaying the boundary of the bullet screen area includes: setting the bullet screen area to be black and translucent.
- the transparency of the border of the bullet screen area can be set according to user requirements, and can also be adaptively adjusted according to the background color of the video played in the current video playback interface. Set the transparency of the border of the bullet screen area to be smaller.
- the transparency of the boundary of the bullet screen area may be a transmittance of 30%, a transmittance of 50%, or a transmittance of 80%.
- the user's drag operation is performed in real time according to the user's drag operation.
- Update the location information of the bullet chat area Exemplarily, in response to the user's drag operation on the target position point or any sideline connecting the target position point, the coordinate information of the target position point is updated in real time according to the drag operation; wherein, the target position point is the first position point and the first position point. Any position point in the two position points; according to the updated coordinate information of the target position point and the coordinate information of another position point, determine the position information of the bullet screen area in the video playback interface.
- the corner point of the upper left corner among the four corner points of the bullet screen area is the first position point A(x0, y0), and the corner point of the lower right corner of the four corner points of the bullet screen area is the second position.
- Point B(x1, y1) for illustration.
- the abscissa x0 and the ordinate y0 of the first position point A are adjusted according to the user's drag operation.
- the ordinate y0 of the first position point A is updated in real time according to the drag distance of the user to the upper line of the first position point A, and the first position point A is The abscissa x0 remains unchanged.
- the current drag distance is subtracted from the ordinate y0 of the first position point A, so as to obtain the updated y0
- the current drag distance is subtracted from the ordinate y0 of the first position point A, so as to obtain the updated y0
- the user drags the left line connecting the first position point A that is, the left line of the rectangular bullet screen area
- the first position point A is updated in real time.
- the abscissa is x0
- the ordinate y0 of the first position point A remains unchanged.
- the position information of the bullet screen area in the video playback interface is determined.
- the horizontal and vertical coordinates of the second position point B are updated based on the same calculation method as above, and then according to the updated No.
- the coordinate information of the second position point and the original coordinate information of the first position point determine the position information of the bullet screen area in the video playback interface.
- the process of updating the coordinate information of any position point in real time according to the drag operation further includes: judging in real time whether the side length of the bullet screen area is less than a preset side length threshold, and if so , the dragging operation on the current dragging object is prohibited, and the bullet screen area is controlled to display a prompt for prohibiting adjustment.
- the side length of the bullet screen area is calculated in real time, and it is determined whether the side length of the bullet screen area is less than a preset side length threshold.
- the difference between the ordinate of the second position point and the ordinate of the first position point is calculated in real time, and the absolute value of the difference is determined.
- the preset side length threshold when the user only drags the left or right line of the bullet screen area, the difference between the abscissa of the second position point and the abscissa of the first position point is calculated in real time, and the difference is determined.
- the absolute value of the value is less than the preset side length threshold; when the user's drag operation is a drag operation on the first or second position of the bullet screen area, the abscissa of the second position and the second position are calculated in real time respectively.
- the drag operation on the currently dragged object is prohibited, and the bullet chat area is controlled to display the prompt information that the adjustment is prohibited, such as controlling the background flashing of the bullet chat area.
- step S13 the position of the bullet screen area in the video playback interface is adjusted according to the position information.
- the position information of the bullet screen area in the video playback interface determined in step S12 may be re-determined that the bullet screen area is in the video playback interface.
- the position in the video playback interface so as to realize the adjustment operation of the bullet screen area.
- the step of adjusting the position of the bullet screen area in the video playback interface according to the position information includes: acquiring target bullet screen data to be displayed at the current moment; The layout of the target bullet screen data in the bullet screen area is adjusted and rendered, so as to display the target bullet screen data in the adjusted bullet screen area.
- the advantage of this setting is that the target bullet screen data can be re-rendered in the adjusted bullet screen area, which meets the user's needs for personalized adjustment of the bullet screen area and improves the user experience.
- obtain the target bullet screen data to be displayed at the current moment and determine the layout of the target bullet screen data in the bullet screen area according to the position information of the bullet screen area and the display parameters of the target bullet screen data, and determine the layout of the target bullet screen data in the bullet screen area based on the target bullet screen data.
- the layout in the bullet chat area renders the target bullet chat data, so that the target bullet chat data is displayed in the adjusted bullet chat area.
- the display parameters of the target bullet screen data may include relevant information such as the display length of the bullet screen data, the font of the bullet screen data, and the disappearance time of the bullet screen data.
- the bullet screen data is displayed in the bullet screen area of the video playback interface, and in response to the user's touch adjustment operation on the bullet screen area, it is determined according to the touch adjustment operation that the bullet screen area is in the video playback area.
- the location information in the interface and adjust the position of the bullet screen area in the video playback interface according to the location information.
- the adjustment scheme of the bullet screen area provided by the embodiment of the present disclosure can also be applied to determine the position information of the bullet screen area in the non-video playback interface according to the user's touch adjustment operation on the bullet screen area, and according to the position The information determines the position of the bullet chat area in the non-video playback interface.
- the method for adjusting the bullet screen area further includes: detecting the number of bullet screens within a preset time period; and adjusting the bullet screen area in response to the bullet screen number being greater than a preset number threshold.
- the advantage of this setting is that the bullet screen area can be adjusted in real time according to the number of bullet screens.
- the number of bullet screens within a preset time period is detected, wherein the number of bullet screens within a preset time period starting from the current moment may be detected, for example, the number of bullet screen screens within 30 s of the current moment can be determined. And determine whether the number of bullet screens in the preset time period is greater than the preset number threshold.
- the bullet screen data may block the video content, or the bullet screen data overlaps, which affects the user's viewing of the video or the bullet screen data. Therefore, when the bullet screen data is greater than the preset number threshold, you can adjust the bullet screen area, such as adaptively adjusting the bullet screen area size according to the bullet screen data, try to avoid the overlap of the bullet screen data, or adjust the bullet screen data to User-defined location area.
- the step of adjusting the bullet screen area in response to the number of the bullet screens being greater than a preset number threshold includes: in response to the bullet screen number being greater than a preset number threshold, adjusting the bullet screen
- the area is adjusted from the current position to the non-video playback interface.
- the video player after the user opens the video player, the video player includes a video playback interface and a non-video playback interface.
- the non-video playback interface can be understood as an area of the video player other than the video playback interface.
- the non-video playback interface can include video playback. Comment area and video introduction area.
- the bullet screen area can be automatically adjusted to the non-video playback interface, which can effectively ensure that users can watch the video content clearly and avoid blocking the video content when there is too much bullet screen data.
- the bullet screen area in response to the bullet screen quantity being less than the preset quantity threshold, is adjusted from the current position to the initial position area of the bullet screen area.
- the bullet screen area can be adjusted from the current position to the bullet screen area. the initial location area.
- the initial position area of the bullet screen area can be understood as the default position of the bullet screen area in the video player after the user opens the video player.
- the initial position area of the bullet screen area can include the bottom 1/4 display of the video playback interface. area, or the top 1/2 display area of the video playback interface, or this video playback interface.
- the advantage of this setting is that it ensures that the bullet screen data does not On the premise of blocking the video content, the user experience can be further improved.
- the initial location area is the video playing interface, and the area of the initial location area is equal to the area of the video playing interface. It can be understood that the entire video playback interface can be set as the initial position area of the bullet screen area. The advantage of this setting is that the bullet screen data can be displayed in the bullet screen area with the largest possible bullet screen density, which can further improve user viewing. Experience of video and bullet chat data.
- the method further includes: adjusting the size of the bullet screen area according to the number of bullet screens, wherein the size of the bullet screen area is the same as the size of the bullet screen area. proportional to the number of screens. It can be understood that the more the number of bullet screens, the larger the area of the bullet screen area. On the contrary, the smaller the number of bullet screens, the smaller the area of the bullet screen area, so as to realize the adaptability to the size of the bullet screen area according to the number of bullet screens. Adjustment to avoid overlapping or occlusion between bullet screen data can ensure that users can watch videos and bullet screen data at a suitable bullet screen density and improve user experience.
- the method for adjusting the bullet screen area further includes: judging whether the bullet screen area is located in the host's face area, and if so, adjusting the bullet screen area to another area; wherein, the other area It is a non-video playing interface or an area other than the face area in the video playing interface.
- the video playback interface is a live broadcast interface, that is, for a live broadcast application scenario
- the face recognition algorithm is used to detect the host's face area, and it is determined whether the bullet screen area is located in the host's face area, that is, the bullet screen area is judged. Whether the bullet screen data in the host block the host's face, if so, adjust the bullet screen area to another area.
- the other area may be understood as an area other than the host's face area in the live broadcast interface or a non-live broadcast area.
- the advantage of this setting is that it can effectively avoid the occlusion of the anchor by the bullet screen data, and improve the user's experience of watching the live broadcast.
- Fig. 2 is a flow chart showing another method for adjusting the bullet screen area according to an exemplary embodiment. As shown in Fig. 2, the method for adjusting the bullet screen area is applied to an electronic device, and includes the following steps:
- step S21 the bullet screen data is displayed in the bullet screen area of the video playback interface, wherein the bullet screen area is a rectangular area, and the position information of the bullet screen area includes that the first position point of the bullet screen area is in a preset Cartesian coordinate system The coordinate information below and the coordinate information of the second position point of the bullet screen area in the preset Cartesian coordinate system; wherein, the first position point and the second position point are not adjacent among the four corner points of the bullet screen area. two corners.
- step S22 in response to detecting a user's touch or click operation on any position within the bullet screen area, the boundary of the bullet screen area is displayed.
- the step of displaying the boundary of the bullet screen area includes: setting the bullet screen area to be black and translucent.
- step S23 in response to the user's drag operation on any position point or any side line connecting any position point, the coordinate information of the any position point is updated in real time according to the drag operation.
- the process of updating the coordinate information of any position point in real time according to the drag operation further includes: judging in real time whether the side length of the bullet screen area is less than a preset side length threshold, and if so, then The dragging operation on the current dragging object is prohibited, and the bullet screen area is controlled to display a prompt for prohibiting adjustment.
- step S24 the position information of the bullet screen area in the video playback interface is determined according to the updated coordinate information of any position point and the coordinate information of another position point.
- the coordinate information of the first position point in response to the user's drag operation on the first position point or any sideline connecting the first position point, the coordinate information of the first position point is updated in real time according to the drag operation; and according to the update Then, the coordinate information of the first position point and the coordinate information of the second position point are used to determine the position information of the bullet screen area in the video playback interface.
- the coordinate information of the second position point in response to the user's drag operation on the second position point or any side line connecting the second position point, the coordinate information of the second position point is updated in real time according to the drag operation; and according to the updated coordinate information
- the coordinate information of the second position point and the coordinate information of the first position point determine the position information of the bullet screen area in the video playback interface.
- step S25 the target bullet screen data to be displayed at the current moment is acquired.
- step S26 the layout of the target bullet screen data in the bullet screen area is adjusted and rendered according to the position information of the bullet screen area in the video playback interface, so as to display the target bullet screen data in the adjusted bullet screen area.
- the position of the bullet screen area is updated in real time according to the user's drag operation on any one of the four corner points of the rectangular bullet screen area or the edge connecting any corner points. information, and adjust the position of the bullet screen area according to the updated position information, which not only avoids the bullet screen area being fixed and single, but also can be simply, Quickly determine the location information of the bullet screen area, realize the personalized adjustment of the bullet screen area, and meet the user's personalized needs for the bullet screen viewing.
- FIG. 3 is a flowchart illustrating another method for adjusting the bullet screen area according to an exemplary embodiment. As shown in FIG. 3 , the method for adjusting the bullet screen area is applied to an electronic device, and includes the following steps:
- step S31 the bullet screen data is displayed in the bullet screen area of the video playback interface.
- step S32 in response to the user's touch adjustment operation on the bullet screen area, the position information of the bullet screen area in the video playback interface is determined according to the touch adjustment operation.
- step S33 the position of the bullet screen area in the video playback interface is adjusted according to the position information.
- step S34 the number of bullet screens within a preset time period is detected.
- step S35 the size of the bullet screen area is adjusted according to the number of the bullet screen, wherein the size of the bullet screen area is proportional to the number of the bullet screen.
- step S36 it is judged whether the number of bullet screens is greater than the preset number threshold, if so, step S37 is performed, otherwise, step S38 is performed.
- step S37 the bullet screen area is adjusted from the current position to the non-video playback interface.
- step S38 the bullet screen area is adjusted from the current position to the initial position area of the bullet screen area.
- the initial location area is the video playing interface, and the area of the initial location area is equal to the area of the video playing interface.
- Steps S32-S33 may be executed first, then steps S34-S38 may be executed, or steps S34-S38 may be executed first, Steps S32-S33 are executed again.
- the method for adjusting the bullet screen area determines the position information of the bullet screen area in the video playback interface according to the user's touch adjustment operation on the bullet screen area, and adjusts the bullet screen area in the video playback interface according to the position information.
- the position of the bullet screen not only avoids the fixed and single bullet screen area, but also realizes the personalized adjustment of the bullet screen area according to the user's touch adjustment operation, which can meet the user's personalized needs for the bullet screen viewing.
- the position and size of the bullet screen area are adaptively adjusted according to the number of bullet screens in the preset time period, which can ensure that users can watch videos and bullet screens under a suitable bullet screen density, which can well prevent the bullet screen from blocking the video content. And the occlusion between the barrages.
- Fig. 4 is a flowchart showing another method for adjusting the bullet screen area according to an exemplary embodiment. As shown in Fig. 4 , the method for adjusting the bullet screen area is applied to an electronic device, and includes the following steps:
- step S41 the bullet screen data is displayed in the bullet screen area of the live broadcast interface.
- step S42 in response to the user's touch adjustment operation on the bullet screen area, the position information of the bullet screen area in the live broadcast interface is determined according to the touch adjustment operation.
- step S43 the position of the bullet screen area in the live broadcast interface is adjusted according to the position information.
- step S44 it is determined whether the bullet screen area is located in the host's face area, if so, step S45 is performed, otherwise, step S46 is performed.
- step S45 the bullet screen area is adjusted to another area; wherein, the other area is an area other than the face area in the non-live interface or the live interface.
- step S46 the barrage area is controlled to remain at the current position.
- Steps S42-S43 may be executed first, then steps S44-S46 may be executed, or steps S44-S46 may be executed first, Steps S42-S43 are executed again.
- the method for adjusting the bullet screen area determines the position information of the bullet screen area in the video playback interface according to the user's touch adjustment operation on the bullet screen area, and adjusts the bullet screen area in the video playback interface according to the position information.
- the position of the bullet screen not only avoids the fixed and single bullet screen area, but also realizes the personalized adjustment of the bullet screen area according to the user's touch adjustment operation, which can meet the user's personalized needs for the bullet screen viewing.
- adjusting the bullet screen area to another area can effectively avoid the occlusion of the bullet screen data on the host, and improve the user's experience of watching live broadcasts.
- Fig. 5 is a block diagram of an apparatus for adjusting a bullet screen area according to an exemplary embodiment.
- the apparatus can be applied to electronic equipment, including a display unit 51 , a determination unit 52 and a first adjustment unit 53 .
- the presentation unit 51 is configured to display the bullet screen data in the bullet screen area of the video playback interface
- the determining unit 52 is configured to perform a touch adjustment operation on the bullet screen area in response to the user, and determine the position information of the bullet screen area in the video playback interface according to the touch adjustment operation;
- the first adjustment unit 53 is configured to adjust the position of the bullet screen area in the video playback interface according to the position information.
- the bullet screen area is a rectangular area
- the position information of the bullet screen area includes coordinate information of the first position point of the bullet screen area in a preset Cartesian coordinate system and the bullet screen Coordinate information of the second position point of the area in the preset Cartesian coordinate system; wherein, the first position point and the second position point are two non-adjacent two of the four corner points of the bullet screen area. corner point.
- the apparatus further includes:
- the display unit is configured to perform, in response to the user's touch adjustment operation on the bullet screen area, before determining the position information of the bullet screen area in the video playback interface according to the touch adjustment operation, display all the the boundary of the bullet screen area;
- the determining unit is configured to perform:
- the coordinate information of the any position point is updated in real time according to the drag operation
- the position information of the bullet screen area in the video playback interface is determined.
- the apparatus further includes:
- the judgment unit is configured to perform, in the process of updating the coordinate information of any position point in real time according to the drag operation, judge in real time whether the side length of the bullet screen area is less than a preset side length threshold, and if so, then The dragging operation on the current dragging object is prohibited, and the bullet screen area is controlled to display a prompt for prohibiting adjustment.
- the display unit is configured to perform:
- the first adjustment unit is configured to perform:
- the layout of the target bullet screen data in the bullet screen area is adjusted and rendered according to the location information, so as to display the target bullet screen data in the adjusted bullet screen area.
- the apparatus further includes:
- a detection unit configured to perform detection of the number of bullet screens within a preset time period
- the second adjustment unit is configured to adjust the bullet screen area in response to the bullet screen quantity being greater than a preset quantity threshold.
- the second adjustment unit is configured to perform:
- the bullet screen area is adjusted from the current position to a non-video playback interface.
- the apparatus further includes:
- the third configuration unit is configured to perform, in response to the number of the bullet screens being less than the preset number threshold, adjusting the bullet screen area from the current position to the initial position area of the bullet screen area.
- the initial location area is the video playing interface, and the area of the initial location area is equal to the area of the video playing interface.
- the apparatus further includes:
- the fourth adjustment unit is configured to adjust the size of the bullet screen area according to the number of bullet screens after detecting the number of bullet screens within a preset time period, wherein the size of the bullet screen area is the same as the size of the bullet screen area. proportional to the number of screens.
- the apparatus further includes:
- the fifth adjustment unit is configured to perform judgment on whether the bullet screen area is located in the host's face area, and if so, adjust the bullet screen area to another area; wherein, the other area is a non-video playback interface or any other area. area other than the face area in the video playback interface.
- Fig. 6 is a structural block diagram of an electronic device according to an exemplary embodiment.
- the electronic device 60 includes a processor 61; a memory 62 for storing executable instructions of the processor 61, the memory 62 may include RAM and ROM; wherein the processor 61 is configured to execute the instructions, to implement the above method.
- a storage medium comprising instructions, such as a memory (62) storing executable instructions, which are executable by a processor (61) of an electronic device to perform the above method.
- the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage equipment, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (16)
- 一种弹幕区域的调整方法,包括:在视频播放界面的弹幕区域中展示弹幕数据;响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
- 根据权利要求1所述的弹幕区域的调整方法,其中,所述弹幕区域为矩形区域,所述弹幕区域的位置信息包括所述弹幕区域的第一位置点在预设笛卡尔坐标系下的坐标信息和所述弹幕区域的第二位置点在所述预设笛卡尔坐标系下的坐标信息;其中,所述第一位置点和第二位置点为所述弹幕区域的四个角点中不相邻的两个角点。
- 根据权利要求2所述的弹幕区域的调整方法,还包括:显示所述弹幕区域的边界。
- 根据权利要求3所述的弹幕区域的调整方法,其中,所述响应于所述用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息,包括:响应于所述用户对任一位置点或连接任一位置点的任一边线的拖动操作,根据所述拖动操作实时更新所述任一位置点的坐标信息;根据更新后的任一位置点的坐标信息和另一位置点的坐标信息,确定所述弹幕区域在视频播放界面中的位置信息。
- 根据权利要求4所述的弹幕区域的调整方法,其中,所述方法还包括:实时判断所述弹幕区域的边长是否小于预设边长阈值,若是,则禁止对当前拖动对象的拖动操作,并控制所述弹幕区域显示禁止调整的提示。
- 根据权利要求3所述的弹幕区域的调整方法,其中,所述显示所述弹幕区域的边界包括:将所述弹幕区域设置为黑色半透明。
- 根据权利要求1所述的弹幕区域的调整方法,其中,所述根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置,包括:获取当前时刻待展示的目标弹幕数据;根据所述位置信息对所述目标弹幕数据在所述弹幕区域内的布局进行调整并渲染,以将所述目标弹幕数据显示在调整后的弹幕区域中。
- 根据权利要求1所述的弹幕区域的调整方法,还包括:检测预设时间段内的弹幕数量;响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整。
- 根据权利要求8所述的弹幕区域的调整方法,其中,所述响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整包括:响应于所述弹幕数量大于预设数量阈值,将所述弹幕区域由当前位置调整至非视频播放 界面。
- 根据权利要求8所述的弹幕区域的调整方法,还包括:响应于所述弹幕数量小于所述预设数量阈值,将所述弹幕区域由当前位置调整至弹幕区域的初始位置区域。
- 根据权利要求10所述的弹幕区域的调整方法,其中,所述初始位置区域为所述视频播放界面,所述初始位置区域的面积与所述视频播放界面的面积相等。
- 根据权利要求8所述的弹幕区域的调整方法,还包括:根据所述弹幕数量调整所述弹幕区域的大小,其中,所述弹幕区域的大小与所述弹幕数量成正比。
- 根据权利要求1所述的弹幕区域的调整方法,还包括:判断所述弹幕区域是否位于主播的人脸区域,若是,则将所述弹幕区域调整至其他区域;其中,所述其他区域为非视频播放界面或所述视频播放界面中除所述人脸区域之外的区域。
- 一种弹幕区域的调整装置,包括:展示单元,被配置为执行在视频播放界面的弹幕区域中展示弹幕数据;确定单元,被配置为执行响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;第一调整单元,被配置为执行根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
- 一种电子设备,包括:处理器;用于存储所述处理器的可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现以下步骤:在视频播放界面的弹幕区域中展示弹幕数据;响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
- 一种非易失性计算机可读存储介质,当所述存储介质中的命令由服务器的处理器执行时,使得服务器能够执行以下步骤:在视频播放界面的弹幕区域中展示弹幕数据;响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011009545.0 | 2020-09-23 | ||
CN202011009545.0A CN112153479A (zh) | 2020-09-23 | 2020-09-23 | 弹幕区域的调整方法、装置、电子设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022062578A1 true WO2022062578A1 (zh) | 2022-03-31 |
Family
ID=73897971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/105604 WO2022062578A1 (zh) | 2020-09-23 | 2021-07-09 | 弹幕区域的调整方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112153479A (zh) |
WO (1) | WO2022062578A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827648A (zh) * | 2022-04-19 | 2022-07-29 | 咪咕文化科技有限公司 | 动态表情包的生成方法、装置、设备和介质 |
CN115243093A (zh) * | 2022-07-04 | 2022-10-25 | 网易(杭州)网络有限公司 | 视频弹幕的处理方法、装置、存储介质和电子装置 |
CN115515014A (zh) * | 2022-09-26 | 2022-12-23 | 北京字跳网络技术有限公司 | 媒体内容的分享方法、装置、电子设备和存储介质 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112153479A (zh) * | 2020-09-23 | 2020-12-29 | 北京达佳互联信息技术有限公司 | 弹幕区域的调整方法、装置、电子设备及存储介质 |
CN112954484A (zh) * | 2021-02-09 | 2021-06-11 | 维沃移动通信有限公司 | 弹幕信息显示方法和装置 |
CN112954441B (zh) * | 2021-03-02 | 2023-06-06 | 北京字节跳动网络技术有限公司 | 视频编辑及播放方法、装置、设备、介质 |
CN115237530A (zh) * | 2022-08-02 | 2022-10-25 | 北京字跳网络技术有限公司 | 信息的显示方法、装置、电子设备和存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013238925A (ja) * | 2012-05-11 | 2013-11-28 | Canon Inc | レイアウト処理装置、レイアウト処理方法及びプログラム |
CN107645684A (zh) * | 2017-09-30 | 2018-01-30 | 咪咕动漫有限公司 | 一种弹幕调节方法、装置及存储介质 |
CN108174278A (zh) * | 2018-01-30 | 2018-06-15 | 河南职业技术学院 | 弹幕显示方法及弹幕显示装置 |
CN110856030A (zh) * | 2019-11-14 | 2020-02-28 | 网易(杭州)网络有限公司 | 一种弹幕区域的调整方法和装置 |
CN112153479A (zh) * | 2020-09-23 | 2020-12-29 | 北京达佳互联信息技术有限公司 | 弹幕区域的调整方法、装置、电子设备及存储介质 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105847939A (zh) * | 2016-05-12 | 2016-08-10 | 乐视控股(北京)有限公司 | 弹幕播放方法、播放装置及播放*** |
CN107147941A (zh) * | 2017-05-27 | 2017-09-08 | 努比亚技术有限公司 | 视频播放的弹幕显示方法、装置及计算机可读存储介质 |
CN108804182A (zh) * | 2018-05-28 | 2018-11-13 | 优酷网络技术(北京)有限公司 | 一种弹幕区域的调节方法及客户端 |
CN109218800A (zh) * | 2018-06-29 | 2019-01-15 | 努比亚技术有限公司 | 一种弹幕信息显示方法、终端及计算机可读存储介质 |
CN109361960A (zh) * | 2018-11-30 | 2019-02-19 | 努比亚技术有限公司 | 弹幕显示方法、装置、移动终端及可读存储介质 |
CN110798726A (zh) * | 2019-10-21 | 2020-02-14 | 北京达佳互联信息技术有限公司 | 弹幕显示方法、装置、电子设备及存储介质 |
-
2020
- 2020-09-23 CN CN202011009545.0A patent/CN112153479A/zh active Pending
-
2021
- 2021-07-09 WO PCT/CN2021/105604 patent/WO2022062578A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013238925A (ja) * | 2012-05-11 | 2013-11-28 | Canon Inc | レイアウト処理装置、レイアウト処理方法及びプログラム |
CN107645684A (zh) * | 2017-09-30 | 2018-01-30 | 咪咕动漫有限公司 | 一种弹幕调节方法、装置及存储介质 |
CN108174278A (zh) * | 2018-01-30 | 2018-06-15 | 河南职业技术学院 | 弹幕显示方法及弹幕显示装置 |
CN110856030A (zh) * | 2019-11-14 | 2020-02-28 | 网易(杭州)网络有限公司 | 一种弹幕区域的调整方法和装置 |
CN112153479A (zh) * | 2020-09-23 | 2020-12-29 | 北京达佳互联信息技术有限公司 | 弹幕区域的调整方法、装置、电子设备及存储介质 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827648A (zh) * | 2022-04-19 | 2022-07-29 | 咪咕文化科技有限公司 | 动态表情包的生成方法、装置、设备和介质 |
CN114827648B (zh) * | 2022-04-19 | 2024-03-22 | 咪咕文化科技有限公司 | 动态表情包的生成方法、装置、设备和介质 |
CN115243093A (zh) * | 2022-07-04 | 2022-10-25 | 网易(杭州)网络有限公司 | 视频弹幕的处理方法、装置、存储介质和电子装置 |
CN115243093B (zh) * | 2022-07-04 | 2023-08-22 | 网易(杭州)网络有限公司 | 视频弹幕的处理方法、装置、存储介质和电子装置 |
CN115515014A (zh) * | 2022-09-26 | 2022-12-23 | 北京字跳网络技术有限公司 | 媒体内容的分享方法、装置、电子设备和存储介质 |
CN115515014B (zh) * | 2022-09-26 | 2024-01-26 | 北京字跳网络技术有限公司 | 媒体内容的分享方法、装置、电子设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN112153479A (zh) | 2020-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022062578A1 (zh) | 弹幕区域的调整方法及装置 | |
US11750918B2 (en) | Assist for orienting a camera at different zoom levels | |
US8194102B2 (en) | Rendering annotations for images | |
CN110941383B (zh) | 双屏幕显示方法、装置、设备及存储介质 | |
US8997021B2 (en) | Parallax and/or three-dimensional effects for thumbnail image displays | |
US7656413B2 (en) | Large display attention focus system | |
US20160344942A1 (en) | Providing area zoom functionality for a camera | |
US8769409B2 (en) | Systems and methods for improving object detection | |
US9432722B2 (en) | Reducing interference of an overlay with underlying content | |
CN107544730B (zh) | 图片显示方法、装置及可读存储介质 | |
US20040025112A1 (en) | Method and apparatus for resizing video content displayed within a graphical user interface | |
CN110446110A (zh) | 视频的播放方法、视频播放设备及存储介质 | |
KR20120020247A (ko) | 컨텐츠 재생 장치 및 방법, 컨텐츠 재생을 위한 휴대용 전자 장치 | |
WO2022062903A1 (zh) | 弹幕播放方法、相关设备及存储介质 | |
WO2021136158A1 (zh) | 一种视频窗口画面显示方法及装置 | |
CN113342248B (zh) | 直播显示方法、装置、存储介质及电子设备 | |
US11372540B2 (en) | Table processing method, device, interactive white board and storage medium | |
CN113766336B (zh) | 一种视频播放控制方法、装置、计算机设备及存储介质 | |
WO2022073389A1 (zh) | 视频画面的展示方法及电子设备 | |
CN111782165A (zh) | 图像处理方法、装置、服务器及存储介质 | |
CN115641824A (zh) | 画面调整设备、显示设备及画面调整方法 | |
WO2019218622A1 (zh) | 元素控制方法、装置、设备及存储介质 | |
US10708597B2 (en) | Techniques for extrapolating image frames | |
CN110647368A (zh) | 一种控制应用程序执行操作的方法、装置及电子设备 | |
CN111835972B (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: 21870956 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21870956 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/09/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21870956 Country of ref document: EP Kind code of ref document: A1 |