WO2022062578A1 - 弹幕区域的调整方法及装置 - Google Patents

弹幕区域的调整方法及装置 Download PDF

Info

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
Application number
PCT/CN2021/105604
Other languages
English (en)
French (fr)
Inventor
谭艳曲
田赛
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022062578A1 publication Critical patent/WO2022062578A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/44016Processing 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-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

弹幕区域的调整方法及装置
相关申请的交叉引用
本申请基于申请号为202011009545.0、申请日为2020年09年23日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开实施例涉及计算机技术领域,尤其涉及弹幕区域的调整方法及装置。
背景技术
弹幕是一些视频分享网站的特殊功能,利用该功能,观看者可以在观看视频的过程中发表自己的评论,并将即时在所有观看者观看此视频的时间点,以滑动而过的字幕显示出来,从而增加了观看者之间的互动性。然而,在弹幕展示的过程中,可能会影响用户观看视频。
发明内容
本公开实施例提供一种弹幕区域的调整方法、装置、电子设备及存储介质,可以实现对弹幕区域的个性化调整。本公开的技术方案如下:
根据本公开的一些实施例,提供一种弹幕区域的调整方法,包括:
在视频播放界面的弹幕区域中展示弹幕数据;
响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;
根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
在一些实施例中,所述弹幕区域为矩形区域,所述弹幕区域的位置信息包括所述弹幕区域的第一位置点在预设笛卡尔坐标系下的坐标信息和所述弹幕区域的第二位置点在所述预设笛卡尔坐标系下的坐标信息;其中,所述第一位置点和第二位置点为所述弹幕区域的四个角点中不相邻的两个角点。
在一些实施例中,所述方法还包括:
显示所述弹幕区域的边界;
所述响应于所述用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息,包括:
响应于所述用户对任一位置点或连接任一位置点的任一边线的拖动操作,根据所述拖动操作实时更新所述任一位置点的坐标信息;
根据更新后的任一位置点的坐标信息和另一位置点的坐标信息,确定所述弹幕区域在视 频播放界面中的位置信息。
在一些实施例中,所述方法还包括:
实时判断所述弹幕区域的边长是否小于预设边长阈值,若是,则禁止对当前拖动对象的拖动操作,并控制所述弹幕区域显示禁止调整的提示。
在一些实施例中,所述显示所述弹幕区域的边界包括:
将所述弹幕区域设置为黑色半透明。
在一些实施例中,所述根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置,包括:
获取当前时刻待展示的目标弹幕数据;
根据所述位置信息对所述目标弹幕数据在所述弹幕区域内的布局进行调整并渲染,以将所述目标弹幕数据显示在调整后的弹幕区域中。
在一些实施例中,所述方法还包括:
检测预设时间段内的弹幕数量;
响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整。
在一些实施例中,所述响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整包括:
响应于所述弹幕数量大于预设数量阈值,将所述弹幕区域由当前位置调整至非视频播放界面。
在一些实施例中,所述方法还包括:
响应于所述弹幕数量小于所述预设数量阈值,将所述弹幕区域由当前位置调整至弹幕区域的初始位置区域。
在一些实施例中,所述初始位置区域为所述视频播放界面,所述初始位置区域的面积与所述视频播放界面的面积相等。
在一些实施例中,所述方法还包括:
根据所述弹幕数量调整所述弹幕区域的大小,其中,所述弹幕区域的大小与所述弹幕数量成正比。
在一些实施例中,所述方法还包括:
判断所述弹幕区域是否位于主播的人脸区域,若是,则将所述弹幕区域调整至其他区域;其中,所述其他区域为非视频播放界面或所述视频播放界面中除所述人脸区域之外的区域。
根据本公开的一些实施例,提供一种弹幕区域的调整装置,包括:
展示单元,被配置为执行在视频播放界面的弹幕区域中展示弹幕数据;
确定单元,被配置为执行响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;
第一调整单元,被配置为执行根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
在一些实施例中,所述弹幕区域为矩形区域,所述弹幕区域的位置信息包括所述弹幕区 域的第一位置点在预设笛卡尔坐标系下的坐标信息和所述弹幕区域的第二位置点在所述预设笛卡尔坐标系下的坐标信息;其中,所述第一位置点和第二位置点为所述弹幕区域的四个角点中不相邻的两个角点。
在一些实施例中,所述装置还包括:
显示单元,被配置为执行显示所述弹幕区域的边界;
所述确定单元,被配置为执行:
响应于所述用户对任一位置点或连接任一位置点的任一边线的拖动操作,根据所述拖动操作实时更新所述任一位置点的坐标信息;
根据更新后的任一位置点的坐标信息和另一位置点的坐标信息,确定所述弹幕区域在视频播放界面中的位置信息。
在一些实施例中,所述装置还包括:
判断单元,被配置为执行实时判断所述弹幕区域的边长是否小于预设边长阈值,若是,则禁止对当前拖动对象的拖动操作,并控制所述弹幕区域显示禁止调整的提示。
在一些实施例中,所述显示单元,被配置为执行:
将所述弹幕区域设置为黑色半透明。
在一些实施例中,所述第一调整单元,被配置为执行:
获取当前时刻待展示的目标弹幕数据;
根据所述位置信息对所述目标弹幕数据在所述弹幕区域内的布局进行调整并渲染,以将所述目标弹幕数据显示在调整后的弹幕区域中。
在一些实施例中,所述装置还包括:
检测单元,被配置为执行检测预设时间段内的弹幕数量;
第二调整单元,被配置为执行响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整。
在一些实施例中,所述第二调整单元,被配置为执行:
响应于所述弹幕数量大于预设数量阈值,将所述弹幕区域由当前位置调整至非视频播放界面。
在一些实施例中,所述装置还包括:
第三配置单元,被配置为执行响应于所述弹幕数量小于所述预设数量阈值,将所述弹幕区域由当前位置调整至弹幕区域的初始位置区域。
在一些实施例中,所述初始位置区域为所述视频播放界面,所述初始位置区域的面积与所述视频播放界面的面积相等。
在一些实施例中,所述装置还包括:
第四调整单元,被配置为执行根据所述弹幕数量调整所述弹幕区域的大小,其中,所述弹幕区域的大小与所述弹幕数量成正比。
在一些实施例中,所述装置还包括:
第五调整单元,被配置为执行判断所述弹幕区域是否位于主播的人脸区域,若是,则将 所述弹幕区域调整至其他区域;其中,所述其他区域为非视频播放界面或所述视频播放界面中除所述人脸区域之外的区域。
根据本公开的一些实施例,提供一种电子设备,包括:
处理器;
用于存储所述处理器的可执行指令的存储器;
其中,所述处理器被配置为执行所述指令,以实现上述第一方面所述的弹幕区域的调整方法。
根据本公开的一些实施例,提供一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行本公开任意实施例所述的弹幕区域的调整方法。
根据本公开的一些实施例,提供一种计算机程序产品,当所述计算机程序产品中的指令由电子设备的处理器执行时,实现本公开任意实施例所述的弹幕区域的调整方法。
通过根据用户对弹幕区域的触摸调整操作,确定弹幕区域在视频播放界面中的位置信息,并根据位置信息调整弹幕区域在视频播放界面中的位置,不仅解决了现有技术中弹幕区域固定且单一的技术问题,而且实现了根据用户的触摸调整操作对弹幕区域的个性化调整。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。
图1是根据一示例性实施例示出的一种弹幕区域的调整方法的流程图。
图2是根据一示例性实施例示出的另一种弹幕区域的调整方法的流程图。
图3是根据一示例性实施例示出的再一种弹幕区域的调整方法的流程图。
图4是根据一示例性实施例示出的又一种弹幕区域的调整方法的流程图。
图5是根据一示例性实施例示出的一种弹幕区域的调整装置框图。
图6是根据一示例性实施例示出的一种电子设备的结构框图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装 置和方法的例子。
图1是根据一示例性实施例示出的一种弹幕区域的调整方法的流程图,如图1所示,弹幕区域的调整方法用于电子设备中,包括以下步骤。
在步骤S11中,在视频播放界面的弹幕区域中展示弹幕数据。
其中,视频播放界面可以理解为视频播放器用于播放视频的区域,其中,视频播放界面可以包括短视频播放界面、长视频播放界面及直播界面。另外。视频播放界面可以为全屏播放、网页全屏播放及原始大小播放。弹幕区域为视频播放界面上用于展示弹幕数据的区域,弹幕区域可以为整个视频播放界面,也可以为视频播放界面的顶部或底部区域,还可以为视频播放界面中居左、居右、居中、居上及居下的区域块。弹幕数据可以理解为观众的评论信息,弹幕数据可以包括文字、图片、动图或短视频等数据信息。在直播领域弹幕数据还可以包括礼物图片和礼物的动画效果。在一些实施例中,响应于检测到弹幕打开指令,在视频播放界面的弹幕区域中展示弹幕数据。
在步骤S12中,响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息。
示例性的,当用户在视频播放界面中观看视频时,弹幕区域中展示的弹幕数据可能会遮挡播放的视频内容,或者用户对弹幕区域的位置或大小不是很习惯或不是很满意,这样会降低用户的观看体验,此时,可根据用户对弹幕区域的触摸调整操作,对弹幕区域进行调整。因此,响应于检测到用对弹幕区域的触摸调整操作,根据触摸调整操作确定弹幕区域在视频播放界面中的位置信息。示例性的,响应于检测到用户对整个弹幕区域的拖动操作,可以理解为用户仅想要对弹幕区域的位置进行调整,而使弹幕区域的大小和形状保持不变,此时,可以以弹幕区域的任一位置点为参考点,实时检测该参考点的位置信息,并将检测到用户对弹幕区域的拖动操作结束时,将拖动操作结束时刻参考点的位置信息作为弹幕区域中该位置点的最终位置信息,由于弹幕区域的大小和形状保持不变,则可基于弹幕区域的大小、形状以及弹幕区域中该位置点的最终位置信息确定弹幕区域中其他各个位置点的位置信息,从而确定出弹幕区域在视频播放界面中的位置信息。又示例性的,当用户对弹幕区域的触摸操作为捏合操作时,可以理解为用户想要对弹幕区域的大小进行调整,并保持弹幕区域的中心位置点保持不变,此时,可实时追踪用户的捏合操作轨迹,并就捏合操作轨迹点的位置信息,将检测到用户对弹幕区域的捏合操作结束时,根据捏合操作轨迹点的位置信息,确定弹幕区域在视频播放界面中的位置信息。
在一些实施例中,所述弹幕区域为矩形区域,所述弹幕区域的位置信息包括所述弹幕区域的第一位置点在预设笛卡尔坐标系下的坐标信息和所述弹幕区域的第二位置点在所述预设笛卡尔坐标系下的坐标信息;其中,所述第一位置点和第二位置点为所述弹幕区域的四个角点中不相邻的两个角点。这样设置的好处在于,仅根据弹幕区域的四个角点中不相邻的两个角点就可以简单、快速地确定出弹幕区域的位置信息。示例性的,可以以视频播放界面的左上角的角点为坐标原点构建二维笛卡尔坐标系,将弹幕区域的四个角点中左上角的角点作为第一位置点,将弹幕区域的四个角点中右下角的角点作为第二位置点,并根据第一位置点 在构建的二维笛卡尔坐标系下的坐标信息(x0,y0)和第二位置点在构建的二维笛卡尔坐标系下的坐标信息(x1,y1)作为弹幕区域在视频播放界面中的位置信息。在一些实施例中,还可以将弹幕区域的四个角点中右上角的角点作为第一位置点,将弹幕区域的四个角点中右左角的角点作为第二位置点。需要说明的是,本公开实施例对第一位置点和第二位置点的选取方式不做限定,只要保证第一位置点和第二位置点为弹幕区域的四个角点中不相邻的两个角点即可。
在本公开实施例的一个实施方式中,在响应于所述用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息之前,还包括:显示所述弹幕区域的边界,这样设置的好处在于,不仅可以使用户清楚了解弹幕区域在视频播放界面中的位置区域,还有助于后续用户对弹幕区域进行调整。在一些实施例中,所述响应于所述用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息步骤,包括:响应于所述用户对任一位置点或连接任一位置点的任一边线的拖动操作,根据所述拖动操作实时更新所述任一位置点的坐标信息;根据更新后的任一位置点的坐标信息和另一位置点的坐标信息,确定所述弹幕区域在视频播放界面中的位置信息。这样设置的好处在于,可以根据用户对矩形弹幕区域的四个角点中的任一角点或连接任一角点的任一边线的拖动操作,实时更新弹幕区域的坐标信息,从而实现对弹幕区域的动态调整。
示例性的,响应于检测到用户对弹幕区域内的任一位置的触摸或点击操作,显示弹幕区域的边界,这样可以使用户一目了然地了解到弹幕区域的边界及形状,有助于用户对弹幕区域进行拖动操作,从而实现对弹幕区域的调整。在一些实施例中,所述显示所述弹幕区域的边界步骤包括:将所述弹幕区域设置为黑色半透明。其中,弹幕区域的边界的透明度可以根据用户需求进行设置,也可以根据当前视频播放界面中播放视频的背景色进行适应性调整,如当前视频播放界面中播放视频的背景色较深时,可将弹幕区域的边界的透明度设置的小些,反之,若当前视频播放界面中播放视频的背景色较浅时,可将弹幕区域的边界的透明度设置的大些。其中,弹幕区域的边界的透明度可以为透过率30%、透过率50%或透过率80%等。这样设置的好处在于,在使用户清楚、明了地看到弹幕区域的边界的前提下,保证弹幕区域边界的显示不会太突兀,并保证弹幕区域边界不遮挡视频内容。
在显示弹幕区域的边界后,响应于检测到用户对矩形弹幕区域的四个角点中的任一角点或连接任一角点的任一边线的拖动操作,根据用户的拖动操作实时更新弹幕区域的位置信息。示例性的,响应于用户对目标位置点或连接目标位置点的任一边线的拖动操作,根据拖动操作实时更新目标位置点的坐标信息;其中,目标位置点为第一位置点和第二位置点中的任一位置点;根据更新后的目标位置点的坐标信息和另一位置点的坐标信息,确定弹幕区域在视频播放界面中的位置信息。示例性的,以弹幕区域的四个角点中左上角的角点为第一位置点A(x0,y0),将弹幕区域的四个角点中右下角的角点为第二位置点B(x1,y1)进行举例说明。当用户拖动第一位置点A时,根据用户的拖动操作对第一位置点A的横坐标x0和纵坐标y0进行调整。当用户拖动连接第一位置点A的上边线时,根据用户对第一位置点A的上 边线的拖动距离,实时更新第一位置点A的纵坐标y0,并使第一位置点A的横坐标x0保持不变。其中,当向上拖动连接第一位置点A的上边线(也即矩形弹幕区域的上边线)时,将第一位置点A的纵坐标y0减去当前拖动距离,从而得到更新后的y0,当向下拖动连接第一位置点A的上边线时,将第一位置点A的纵坐标y0加上当前拖动距离,从而得到更新后的y0。当用户拖动连接第一位置点A的左边线(也即矩形弹幕区域的左边线)时,根据用户对第一位置点A的左边线的拖动距离,实时更新第一位置点A的横坐标x0,并使第一位置点A的纵坐标y0保持不变。其中,当向左拖动连接第一位置点A的左边线时,将第一位置点A的横坐标x0减去当前拖动距离,从而得到更新后的x0,当向右拖动连接第一位置点A的左边线时,将第一位置点A的横坐标x0加上当前拖动距离,从而得到更新后的x0。然后,根据更新后的第一位置点的坐标信息和第二位置点的原有坐标信息,确定弹幕区域在视频播放界面中的位置信息。同样的,当用户拖动第二位置点B或连接第二位置点B的下边线或右边线时,基于上述同样的计算方式更新第二位置点B的横纵坐标,然后根据更新后的第二位置点的坐标信息和第一位置点的原有坐标信息,确定弹幕区域在视频播放界面中的位置信息。
在一些实施例中,在根据所述拖动操作实时更新所述任一位置点的坐标信息的过程中,还包括:实时判断所述弹幕区域的边长是否小于预设边长阈值,若是,则禁止对当前拖动对象的拖动操作,并控制所述弹幕区域显示禁止调整的提示。示例性的,在根据拖动操作实时更新任一位置点的坐标信息的过程中,实时计算弹幕区域的边长,并判断弹幕区域的边长是否小于预设边长阈值。其中,当用户仅对弹幕区域的上边线或下边线进行拖动操作时,实时计算第二位置点的纵坐标与第一位置点的纵坐标的差值,并判断差值的绝对值是否小于预设边长阈值;当用户仅对弹幕区域的左边线或右边线进行拖动操作时,实时计算第二位置点的横坐标与第一位置点的横坐标的差值,并判断差值的绝对值是否小于预设边长阈值;当用户的拖动操作是对弹幕区域的第一位置点或第二位置点的拖动操作时,分别实时计算第二位置点的横坐标与第一位置点的横坐标的差值以及第二位置点的纵坐标与第一位置点的纵坐标的差值,并分别判断两个差值的绝对值是否小于预设边长阈值。响应于弹幕区域的边长小于预设边长阈值,禁止对当前拖动对象的拖动操作,并控制弹幕区域显示禁止调整的提示信息,如控制弹幕区域背景闪动。这样设置的好处在于,可避免用户将弹幕区域调整的过小,从而影响弹幕数据的展示效果。
在步骤S13中,根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
在本公开实施例的一个实施方式中,响应于检测到用户对弹幕区域的触摸调整操作停止,可根据步骤S12中确定的弹幕区域在视频播放界面中的位置信息重新确定弹幕区域在视频播放界面中的位置,从而实现对弹幕区域的调整操作。在一些实施例中,所述根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置步骤,包括:获取当前时刻待展示的目标弹幕数据;根据所述位置信息对所述目标弹幕数据在所述弹幕区域内的布局进行调整并渲染,以将所述目标弹幕数据显示在调整后的弹幕区域中。这样设置的好处在于,可以重新将目标弹幕数据渲染于调整后弹幕区域中,满足用户对弹幕区域的个性化调整的需求,提高 了用户体验。示例性的,获取当前时刻待展示的目标弹幕数据,并根据弹幕区域的位置信息及目标弹幕数据的展示参数,确定目标弹幕数据在弹幕区域内的布局,基于目标弹幕数据在弹幕区域内的布局对目标弹幕数据进行渲染,从而将目标弹幕数据显示在调整后的弹幕区域内。其中,目标弹幕数据的展示参数可以包括弹幕数据显示长度、弹幕数据字体及弹幕数据消失时间等相关信息。
本公开实施例提供的弹幕区域的调整方法,在视频播放界面的弹幕区域中展示弹幕数据,响应于用户对弹幕区域的触摸调整操作,根据触摸调整操作确定弹幕区域在视频播放界面中的位置信息,并根据位置信息调整弹幕区域在视频播放界面中的位置。通过上述技术方案,不仅避免了弹幕区域固定且单一,而且实现了根据用户的触摸调整操作实时对弹幕区域的个性化调整,能够满足用户对弹幕观看的个性化需求。
需要说明的是,本公开实施例提供的弹幕区域的调整方案,也可以适用于根据用户对弹幕区域的触摸调整操作,确定弹幕区域在非视频播放界面中的位置信息,并根据位置信息确定弹幕区域在非视频播放界面中的位置。
一个实施方式中,弹幕区域的调整方法,还包括:检测预设时间段内的弹幕数量;响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整。这样设置的好处在于,可以根据弹幕数量实时调整弹幕区域。示例性的,检测预设时间段内的弹幕数量,其中,可以检测以当前时刻为起始时刻的预设时间段内的弹幕数量,如确定当前时刻30s内的弹幕数量。并判断预设时间段内的弹幕数量是否大于预设数量阈值,若是,说明弹幕数据可能会对视频内容进行遮挡,或者弹幕数据存在重叠,影响用户观看视频或弹幕数据。因此,当弹幕数据大于预设数量阈值时,可对弹幕区域进行调整,如根据弹幕数据适应性调整弹幕区域大小,尽量避免弹幕数据的重叠,或者,将弹幕数据调整至用户自定义位置区域。
在一些实施例中,所述响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整步骤包括:响应于所述弹幕数量大于预设数量阈值,将所述弹幕区域由当前位置调整至非视频播放界面。其中,当用户打开视频播放器后,视频播放器包括视频播放界面和非视频播放界面,非视频播放界面可以理解为视频播放器中除视频播放界面以外的区域,如非视频播放界面可以包括视频评论区和视频简介区。当弹幕数量过大时,可直接将弹幕区域调整至非视频播放界面,以在非视频播放界面展示弹幕数据。这样设置的好处在于,可以自动将弹幕区域调整至非视频播放界面,能够有效保证用户清楚地观看视频内容,避免弹幕数据过多时对视频内容的遮挡。
在一些实施例中,响应于所述弹幕数量小于所述预设数量阈值,将所述弹幕区域由当前位置调整至弹幕区域的初始位置区域。当弹幕数量较少时,通常弹幕数据的展示不会影响用户对视频内容的观看,因此,当弹幕数量小于预设数量阈值时,可将弹幕区域由当前位置调整至弹幕区域的初始位置区域。弹幕区域的初始位置区域可以理解为用户打开视频播放器后,弹幕区域在视频播放器中的默认位置,其中,弹幕区域的初始位置区域可以包括视频播放界面的底部的1/4显示区,或者视频播放界面的顶部的1/2显示区,或者这个视频播放界面。由于弹幕区域的初始位置区域为用户观看弹幕数据的较佳位置,或者说用户习惯在弹幕 区域的初始位置区域观看弹幕数据,因此,这样设置的好处在于,在保证弹幕数据不遮挡视频内容的前提下,可进一步提高用户体验。
在一些实施例中,所述初始位置区域为所述视频播放界面,所述初始位置区域的面积与所述视频播放界面的面积相等。可以理解的是,可以将整个视频播放界面设置为弹幕区域的初始位置区域,这样设置的好处在于,可以以尽量大的弹幕密度在弹幕区域中展示弹幕数据,可进一步提高用户观看视频和弹幕数据的体验感。
在一些实施例中,在检测预设时间段内的弹幕数量之后,还包括:根据所述弹幕数量调整所述弹幕区域的大小,其中,所述弹幕区域的大小与所述弹幕数量成正比。可以理解的是,弹幕数量越多,弹幕区域的面积越大,反之,弹幕数量越少,弹幕区域的面积越小,从而实现根据弹幕数量对弹幕区域的大小进行适应性调整,避免弹幕数据间的重叠或遮挡,可以保证用户在合适的弹幕密度下观看视频及弹幕数据,提高用户体验。
一个实施方式中,所述弹幕区域的调整方法还包括:判断所述弹幕区域是否位于主播的人脸区域,若是,则将所述弹幕区域调整至其他区域;其中,所述其他区域为非视频播放界面或所述视频播放界面中除所述人脸区域之外的区域。示例性的,当视频播放界面为直播界面,也即对于直播应用场景,通过人脸识别算法检测主播的人脸区域,并判断弹幕区域是否位于主播的人脸区域,也即判断弹幕区域中的弹幕数据是否对主播的人脸存在遮挡,若是,则将弹幕区域调整至其他区域。其中,其他区域可以理解为直播界面中除主播的人脸区域之外的区域或者非直播区域。这样设置的好处在于,可以有效避免弹幕数据对主播的遮挡,提高用户观看直播的体验。
图2是根据一示例性实施例示出的另一种弹幕区域的调整方法的流程图,如图2所示,弹幕区域的调整方法用于电子设备,包括以下步骤:
在步骤S21中,在视频播放界面的弹幕区域中展示弹幕数据,其中,弹幕区域为矩形区域,弹幕区域的位置信息包括弹幕区域的第一位置点在预设笛卡尔坐标系下的坐标信息和弹幕区域的第二位置点在预设笛卡尔坐标系下的坐标信息;其中,第一位置点和第二位置点为弹幕区域的四个角点中不相邻的两个角点。
在步骤S22中,响应于检测到用户对弹幕区域内的任一位置的触摸或点击操作,显示弹幕区域的边界。
在一些实施例中,显示弹幕区域的边界步骤包括:将所述弹幕区域设置为黑色半透明。
在步骤S23中,响应于用户对任一位置点或连接任一位置点的任一边线的拖动操作,根据拖动操作实时更新所述任一位置点的坐标信息。
在一些实施例中,在根据拖动操作实时更新所述任一位置点的坐标信息的过程中,还包括:实时判断所述弹幕区域的边长是否小于预设边长阈值,若是,则禁止对当前拖动对象的拖动操作,并控制所述弹幕区域显示禁止调整的提示。
在步骤S24中,根据更新后的任一位置点的坐标信息和另一位置点的坐标信息,确定弹幕区域在视频播放界面中的位置信息。
示例性的,响应于所述用户对第一位置点或连接第一位置点的任一边线的拖动操作,根 据所述拖动操作实时更新所述第一位置点的坐标信息;并根据更新后的第一位置点的坐标信息和第二位置点的坐标信息,确定所述弹幕区域在视频播放界面中的位置信息。或者,响应于所述用户对第二位置点或连接第二位置点的任一边线的拖动操作,根据所述拖动操作实时更新所述第二位置点的坐标信息;并根据更新后的第二位置点的坐标信息和第一位置点的坐标信息,确定所述弹幕区域在视频播放界面中的位置信息。
在步骤S25中,获取当前时刻待展示的目标弹幕数据。
在步骤S26中,根据弹幕区域在视频播放界面中的位置信息对目标弹幕数据在弹幕区域内的布局进行调整并渲染,以将目标弹幕数据显示在调整后的弹幕区域中。
本公开实施例提供的弹幕区域的调整方法,通过根据用户对矩形弹幕区域的四个角点中的任一角点或连接任一角点的边线的拖动操作,实时更新弹幕区域的位置信息,并根据更新后的位置信息调整弹幕区域的位置,不仅避免了弹幕区域固定且单一,而且仅根据弹幕区域的四个角点中不相邻的两个角点就可以简单、快速地确定出弹幕区域的位置信息,实现了对弹幕区域的个性化调整,能够满足用户对弹幕观看的个性化需求。
图3是根据一示例性实施例示出的另一种弹幕区域的调整方法的流程图,如图3所示,弹幕区域的调整方法用于电子设备,包括以下步骤:
在步骤S31中,在视频播放界面的弹幕区域中展示弹幕数据。
在步骤S32中,响应于用户对弹幕区域的触摸调整操作,根据触摸调整操作确定弹幕区域在视频播放界面中的位置信息。
在步骤S33中,根据位置信息调整弹幕区域在视频播放界面中的位置。
在步骤S34中,检测预设时间段内的弹幕数量。
在步骤S35中,根据弹幕数量调整弹幕区域的大小,其中,弹幕区域的大小与弹幕数量成正比。
在步骤S36中,判断弹幕数量是否大于预设数量阈值,若是,则执行步骤S37,否则,执行步骤S38。
在步骤S37中,将弹幕区域由当前位置调整至非视频播放界面。
在步骤S38中,将弹幕区域由当前位置调整至弹幕区域的初始位置区域。
在一些实施例中,所述初始位置区域为所述视频播放界面,所述初始位置区域的面积与所述视频播放界面的面积相等。
需要说明的是,本公开实施例对步骤S32-S33与步骤S34-S38的执行顺序不做限定,可以先执行步骤S32-S33,再执行步骤S34-S38,还可以先执行步骤S34-S38,再执行步骤S32-S33。
本公开实施例提供的弹幕区域的调整方法,通过根据用户对弹幕区域的触摸调整操作,确定弹幕区域在视频播放界面中的位置信息,并根据位置信息调整弹幕区域在视频播放界面中的位置,不仅避免了弹幕区域固定且单一,而且实现了根据用户的触摸调整操作对弹幕区域的个性化调整,能够满足用户对弹幕观看的个性化需求。另外,根据预设时间段内弹幕数量自适应调整弹幕区域的位置和大小,可保证用户在合适的弹幕密度下观看视频及弹幕,很 好地防止了弹幕对于视频内容的遮挡及弹幕之间的遮挡。
图4是根据一示例性实施例示出的另一种弹幕区域的调整方法的流程图,如图4所示,弹幕区域的调整方法用于电子设备,包括以下步骤:
在步骤S41中,在直播界面的弹幕区域中展示弹幕数据。
在步骤S42中,响应于用户对弹幕区域的触摸调整操作,根据触摸调整操作确定弹幕区域在直播界面中的位置信息。
在步骤S43中,根据位置信息调整弹幕区域在直播界面中的位置。
在步骤S44中,判断所述弹幕区域是否位于主播的人脸区域,若是,执行步骤S45,否则,执行步骤S46。
在步骤S45中,将弹幕区域调整至其他区域;其中,所述其他区域为非直播界面或直播界面中除人脸区域之外的区域。
在步骤S46中,控制弹幕区域保持在当前位置。
需要说明的是,本公开实施例对步骤S42-S43与步骤S44-S36的执行顺序不做限定,可以先执行步骤S42-S43,再执行步骤S44-S46,还可以先执行步骤S44-S46,再执行步骤S42-S43。
本公开实施例提供的弹幕区域的调整方法,通过根据用户对弹幕区域的触摸调整操作,确定弹幕区域在视频播放界面中的位置信息,并根据位置信息调整弹幕区域在视频播放界面中的位置,不仅避免了弹幕区域固定且单一,而且实现了根据用户的触摸调整操作对弹幕区域的个性化调整,能够满足用户对弹幕观看的个性化需求。另外,当弹幕区域位于主播的人脸区域时,将弹幕区域调整至其他区域,可以有效避免弹幕数据对主播的遮挡,提高用户观看直播的体验。
图5是根据一示例性实施例示出的一种弹幕区域的调整装置框图。参照图5,该装置可以应用于电子设备,包括展示单元51,确定单元52和第一调整单元53。
展示单元51,被配置为执行在视频播放界面的弹幕区域中展示弹幕数据;
确定单元52,被配置为执行响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;
第一调整单元53,被配置为执行根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
在一些实施例中,所述弹幕区域为矩形区域,所述弹幕区域的位置信息包括所述弹幕区域的第一位置点在预设笛卡尔坐标系下的坐标信息和所述弹幕区域的第二位置点在所述预设笛卡尔坐标系下的坐标信息;其中,所述第一位置点和第二位置点为所述弹幕区域的四个角点中不相邻的两个角点。
在一些实施例中,所述装置还包括:
显示单元,被配置为执行在响应于所述用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息之前,显示所述弹幕区域的边界;
所述确定单元,被配置为执行:
响应于所述用户对任一位置点或连接任一位置点的任一边线的拖动操作,根据所述拖动操作实时更新所述任一位置点的坐标信息;
根据更新后的任一位置点的坐标信息和另一位置点的坐标信息,确定所述弹幕区域在视频播放界面中的位置信息。
在一些实施例中,所述装置还包括:
判断单元,被配置为执行在根据所述拖动操作实时更新所述任一位置点的坐标信息的过程中,实时判断所述弹幕区域的边长是否小于预设边长阈值,若是,则禁止对当前拖动对象的拖动操作,并控制所述弹幕区域显示禁止调整的提示。
在一些实施例中,所述显示单元,被配置为执行:
将所述弹幕区域设置为黑色半透明。
在一些实施例中,所述第一调整单元,被配置为执行:
获取当前时刻待展示的目标弹幕数据;
根据所述位置信息对所述目标弹幕数据在所述弹幕区域内的布局进行调整并渲染,以将所述目标弹幕数据显示在调整后的弹幕区域中。
在一些实施例中,所述装置还包括:
检测单元,被配置为执行检测预设时间段内的弹幕数量;
第二调整单元,被配置为执行响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整。
在一些实施例中,所述第二调整单元,被配置为执行:
响应于所述弹幕数量大于预设数量阈值,将所述弹幕区域由当前位置调整至非视频播放界面。
在一些实施例中,所述装置还包括:
第三配置单元,被配置为执行响应于所述弹幕数量小于所述预设数量阈值,将所述弹幕区域由当前位置调整至弹幕区域的初始位置区域。
在一些实施例中,所述初始位置区域为所述视频播放界面,所述初始位置区域的面积与所述视频播放界面的面积相等。
在一些实施例中,所述装置还包括:
第四调整单元,被配置为执行在检测预设时间段内的弹幕数量之后,根据所述弹幕数量调整所述弹幕区域的大小,其中,所述弹幕区域的大小与所述弹幕数量成正比。
在一些实施例中,所述装置还包括:
第五调整单元,被配置为执行判断所述弹幕区域是否位于主播的人脸区域,若是,则将所述弹幕区域调整至其他区域;其中,所述其他区域为非视频播放界面或所述视频播放界面中除所述人脸区域之外的区域。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图6是根据一示例性实施例示出的一种电子设备的结构框图。如图6所示,该电子设备60包括处理器61;用于存储处理器61的可执行指令的存储器62,存储器62可以包括RAM和ROM;其中,处理器61被配置为执行所述指令,以实现上述方法。
在示例性实施例中,还提供了一种包括指令的存储介质,例如存储可执行指令的存储器(62),上述指令可由电子设备的处理器(61)执行以完成上述方法。可选地,存储介质可以是非临时性计算机可读存储介质,例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
在示例性实施例中,还提供了一种计算机程序产品,当该计算机程序产品中的指令由电子设备的处理器执行时,实现上述方法。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (16)

  1. 一种弹幕区域的调整方法,包括:
    在视频播放界面的弹幕区域中展示弹幕数据;
    响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
  2. 根据权利要求1所述的弹幕区域的调整方法,其中,所述弹幕区域为矩形区域,所述弹幕区域的位置信息包括所述弹幕区域的第一位置点在预设笛卡尔坐标系下的坐标信息和所述弹幕区域的第二位置点在所述预设笛卡尔坐标系下的坐标信息;其中,所述第一位置点和第二位置点为所述弹幕区域的四个角点中不相邻的两个角点。
  3. 根据权利要求2所述的弹幕区域的调整方法,还包括:
    显示所述弹幕区域的边界。
  4. 根据权利要求3所述的弹幕区域的调整方法,其中,所述响应于所述用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息,包括:
    响应于所述用户对任一位置点或连接任一位置点的任一边线的拖动操作,根据所述拖动操作实时更新所述任一位置点的坐标信息;
    根据更新后的任一位置点的坐标信息和另一位置点的坐标信息,确定所述弹幕区域在视频播放界面中的位置信息。
  5. 根据权利要求4所述的弹幕区域的调整方法,其中,所述方法还包括:
    实时判断所述弹幕区域的边长是否小于预设边长阈值,若是,则禁止对当前拖动对象的拖动操作,并控制所述弹幕区域显示禁止调整的提示。
  6. 根据权利要求3所述的弹幕区域的调整方法,其中,所述显示所述弹幕区域的边界包括:
    将所述弹幕区域设置为黑色半透明。
  7. 根据权利要求1所述的弹幕区域的调整方法,其中,所述根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置,包括:
    获取当前时刻待展示的目标弹幕数据;
    根据所述位置信息对所述目标弹幕数据在所述弹幕区域内的布局进行调整并渲染,以将所述目标弹幕数据显示在调整后的弹幕区域中。
  8. 根据权利要求1所述的弹幕区域的调整方法,还包括:
    检测预设时间段内的弹幕数量;
    响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整。
  9. 根据权利要求8所述的弹幕区域的调整方法,其中,所述响应于所述弹幕数量大于预设数量阈值,对所述弹幕区域进行调整包括:
    响应于所述弹幕数量大于预设数量阈值,将所述弹幕区域由当前位置调整至非视频播放 界面。
  10. 根据权利要求8所述的弹幕区域的调整方法,还包括:
    响应于所述弹幕数量小于所述预设数量阈值,将所述弹幕区域由当前位置调整至弹幕区域的初始位置区域。
  11. 根据权利要求10所述的弹幕区域的调整方法,其中,所述初始位置区域为所述视频播放界面,所述初始位置区域的面积与所述视频播放界面的面积相等。
  12. 根据权利要求8所述的弹幕区域的调整方法,还包括:
    根据所述弹幕数量调整所述弹幕区域的大小,其中,所述弹幕区域的大小与所述弹幕数量成正比。
  13. 根据权利要求1所述的弹幕区域的调整方法,还包括:
    判断所述弹幕区域是否位于主播的人脸区域,若是,则将所述弹幕区域调整至其他区域;其中,所述其他区域为非视频播放界面或所述视频播放界面中除所述人脸区域之外的区域。
  14. 一种弹幕区域的调整装置,包括:
    展示单元,被配置为执行在视频播放界面的弹幕区域中展示弹幕数据;
    确定单元,被配置为执行响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;第一调整单元,被配置为执行根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
  15. 一种电子设备,包括:
    处理器;
    用于存储所述处理器的可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    在视频播放界面的弹幕区域中展示弹幕数据;
    响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
  16. 一种非易失性计算机可读存储介质,当所述存储介质中的命令由服务器的处理器执行时,使得服务器能够执行以下步骤:
    在视频播放界面的弹幕区域中展示弹幕数据;
    响应于用户对所述弹幕区域的触摸调整操作,根据所述触摸调整操作确定所述弹幕区域在所述视频播放界面中的位置信息;根据所述位置信息调整所述弹幕区域在所述视频播放界面中的位置。
PCT/CN2021/105604 2020-09-23 2021-07-09 弹幕区域的调整方法及装置 WO2022062578A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 北京达佳互联信息技术有限公司 弹幕显示方法、装置、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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