WO2024078209A1 - 视频评论的显示方法、装置、终端及存储介质 - Google Patents

视频评论的显示方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2024078209A1
WO2024078209A1 PCT/CN2023/117334 CN2023117334W WO2024078209A1 WO 2024078209 A1 WO2024078209 A1 WO 2024078209A1 CN 2023117334 W CN2023117334 W CN 2023117334W WO 2024078209 A1 WO2024078209 A1 WO 2024078209A1
Authority
WO
WIPO (PCT)
Prior art keywords
comment
display
video
comments
spatial coordinates
Prior art date
Application number
PCT/CN2023/117334
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 WO2024078209A1 publication Critical patent/WO2024078209A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Definitions

  • the embodiments of the present application relate to the field of human-computer interaction technology, and in particular to a method, device, terminal and storage medium for displaying video comments.
  • the commentary content is usually displayed in a 2D streaming manner on the video playback interface, generally presented as an up and down scrolling display, or a left and right moving display.
  • a commentary display method cannot simulate the spatial sense of the real scene, and lacks the three-dimensional sense of users in different positions during the viewing process, thereby reducing the user's video viewing experience.
  • the embodiment of the present application provides a method, device, terminal and storage medium for displaying video comments.
  • the technical solution is as follows:
  • an embodiment of the present application provides a method for displaying video comments, the method being executed by a terminal, and the method comprising:
  • Video playback interface includes a video playback area and a video comment area, wherein the video comment area is used to display comments on the video in the video playback area;
  • the comment presenting the display effect is displayed at the display position in the video comment area.
  • an embodiment of the present application provides a method for displaying video comments, the method being executed by a server, and the method comprising:
  • the comments and the spatial coordinates are sent to each of the viewer accounts so that the viewer terminal corresponding to the viewer account determines the comment display attributes of the comments based on the spatial coordinates, and displays the comments in the video comment area in the video playback interface based on the comment display attributes, wherein the comment display attributes include the display position and display effect of the comments in the video comment area.
  • an embodiment of the present application provides a display device for video comments, the device comprising:
  • a display module used to display a video playback interface, wherein the video playback interface includes a video playback area and a video comment area, wherein the video comment area is used to display comments on the video in the video playback area;
  • An acquisition module used to acquire comments posted by a viewer account and spatial coordinates corresponding to the viewer account, wherein the spatial coordinates are used to represent a spatial position of the viewer account in a virtual viewing scene corresponding to the video;
  • a determination module configured to determine a comment display attribute of the comment based on the spatial coordinates, wherein the comment display attribute includes a display position and a display effect of the comment in the video comment area;
  • the display module is further configured to display the comment presenting the display effect at the display position in the video comment area.
  • an embodiment of the present application provides a display device for video comments, the device comprising:
  • a receiving module used to receive comments posted by a viewer account, wherein the comments are directed to a video played in a video playing area in a video playing interface
  • An allocation module used to allocate the spatial position of the viewer account to obtain the spatial coordinates corresponding to the viewer account, wherein the spatial coordinates are used to represent the spatial position of the viewer account in the virtual viewing scene corresponding to the video;
  • a sending module is used to send the comments and the spatial coordinates to each of the viewer accounts, so that the viewer terminal corresponding to the viewer account determines the comment display attributes of the comment based on the spatial coordinates, and displays the comment in the video comment area in the video playback interface based on the comment display attributes, wherein the comment display attributes include the display position and display effect of the comment in the video comment area.
  • an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for displaying video comments as described in the above aspects.
  • an embodiment of the present application provides a server, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for displaying video comments as described in the above aspects.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the method for displaying video comments as described in the above aspects.
  • an embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium.
  • a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for displaying video comments provided in the above aspect.
  • the terminal displays the videos and video comments in the video playback interface in different areas, and divides the video playback interface into a video playback area and a video comment area.
  • the terminal sends the comments posted by the audience account to the server, and the server allocates the spatial positions of the audience accounts, so that the terminal obtains the comments posted by the audience account and the spatial coordinates corresponding to the audience account from the server.
  • the spatial coordinates represent the spatial position of the audience account in the virtual viewing scene corresponding to the video.
  • the terminal determines the comment display attributes of the comments in the video comment area, and displays each comment at the corresponding display position based on the display effect corresponding to each comment, thereby increasing the three-dimensional effect of the comment display in the video comment area and improving the diversity of the comment display effects.
  • FIG1 is a schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application.
  • FIG2 is a flow chart of a method for displaying video comments provided by an exemplary embodiment of the present application
  • FIG3 is a schematic diagram showing a video playback interface provided by an exemplary embodiment of the present application.
  • FIG4 is a schematic diagram of a three-dimensional spherical model provided by an exemplary embodiment of the present application.
  • FIG5 is a flow chart of a method for displaying video comments provided by an exemplary embodiment of the present application.
  • FIG6 is a schematic diagram of determining a current field of view provided by an exemplary embodiment of the present application.
  • FIG7 is a schematic diagram of switching the current field of view through a field of view switching control provided by an exemplary embodiment of the present application.
  • FIG8 is a schematic diagram of switching the current field of view through a gesture operation provided by an exemplary embodiment of the present application.
  • FIG9 is a schematic diagram of switching the current field of view based on a comment posting operation provided by an exemplary embodiment of the present application.
  • FIG10 is a schematic diagram of adjusting comment display attributes provided by an exemplary embodiment of the present application.
  • FIG11 is a schematic diagram of a display space position selection control provided by an exemplary embodiment of the present application.
  • FIG12 is a schematic diagram of a spatial position selection prompt provided by an exemplary embodiment of the present application.
  • FIG13 is a flow chart of a method for displaying video comments provided by an exemplary embodiment of the present application.
  • FIG14 is a flowchart of the interaction between a terminal and a server during a video comment display process provided by an exemplary embodiment of the present application
  • FIG15 is a structural block diagram of a display device for video comments provided by an exemplary embodiment of the present application.
  • FIG16 is a structural block diagram of a display device for video comments provided by another exemplary embodiment of the present application.
  • FIG17 shows a block diagram of a terminal provided by an exemplary embodiment of the present application.
  • FIG. 18 shows a schematic diagram of the structure of a server provided by an exemplary embodiment of the present application.
  • Fig. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application.
  • the implementation environment includes a terminal 101 and a server 102.
  • the terminal 101 and the server 102 perform data communication via a communication network, and optionally, the communication network can be a wired network or a wireless network, and the communication network can be at least one of a local area network, a metropolitan area network, and a wide area network.
  • the communication network can be a wired network or a wireless network
  • the communication network can be at least one of a local area network, a metropolitan area network, and a wide area network.
  • Terminal 101 is an electronic device installed with an application having a video playback function.
  • the video playback function may be a function of a native application in the terminal, or a function of a third-party application, and the application may be a live broadcast application, a shopping application having a video playback function, a short video application, or a social application having a video playback function, etc., which is not limited in this embodiment;
  • the electronic device may be a smart phone, a tablet computer, a personal computer, a wearable device, or a vehicle-mounted terminal, etc.
  • FIG. 1 the example of terminal 101 being a smart phone is used for illustration, but this is not limited to this.
  • Server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
  • server 102 may be a background server of an application with a video playback function.
  • FIG1 there is data interaction between the server 102 and the terminal 101.
  • the terminal 101 receives a video comment posted by a viewer
  • the terminal 101 sends the comment data to the server 102
  • the server 102 assigns spatial coordinates to the viewer account included in the comment data, so that the server 102 sends the comment data and the spatial coordinates corresponding to the comment data to the terminal 101 and other terminals currently using the video comment display function.
  • the virtual viewing scene involved in the embodiments of the present application may be a concert, a movie, an award ceremony, etc.
  • the terminal plays a concert, a movie or an award ceremony video (live or non-live)
  • the terminal in response to a comment posting operation, the terminal sends the comments posted by the audience account to the server, so that the server allocates the spatial position of the audience account according to the spatial position in the virtual viewing scene.
  • the server allocates spatial coordinates to the audience accounts according to the spatial location distribution of the concert venue, thereby simulating the effect of the audience watching a concert at the concert site in a real scene;
  • the server allocates spatial coordinates to the audience accounts according to the spatial location distribution of the movie theater, thereby simulating the effect of the audience watching a movie in a movie theater in a real scene;
  • the server allocates spatial coordinates to the audience accounts according to the spatial location distribution of the awards ceremony venue, thereby simulating the effect of the audience being at the awards ceremony in a real scene.
  • FIG. 2 shows a flow chart of a method for displaying video comments provided by an exemplary embodiment of the present application. This embodiment is described by taking the method used in the terminal in FIG. 1 as an example. The method includes the following steps:
  • Step 201 displaying a video playback interface, the video playback interface including a video playback area and a video comment area, the video comment area is used to display comments on the video in the video playback area.
  • the terminal after receiving a trigger operation to enter a video playback interface, the terminal displays the video playback interface, and during the video viewing process, the audience can interact by commenting on the video in the video playback interface.
  • the terminal sets the video playback interface to The video playback area and the video comment area are displayed separately, wherein the video comment area is used to display the audience's comments on the video in the video playback area.
  • the video playback area and the video comment area can be displayed up and down, or left and right, or even surrounded (for example, the video comment area surrounds the video playback area), and the specific display method is not limited in the embodiment of the present application.
  • the video played in the video playback area may be a live video, a recorded video, or other forms of video, which is not limited in this embodiment of the present application.
  • the terminal displays a video playback interface 301 , and divides the video playback interface 301 into a video playback area 302 and a video comment area 303 , so that viewers can post comments on the video in the video playback area 302 in the video comment area 303 .
  • Step 202 obtaining comments posted by the viewer account and the spatial coordinates corresponding to the viewer account, where the spatial coordinates are used to represent the spatial position of the viewer account in the virtual viewing scene corresponding to the video.
  • the terminal when a trigger operation for entering a video playback interface is received and the video playback interface is displayed, the terminal obtains the viewer's viewer account, so that the viewer can post comments using the viewer account as a unique identity.
  • the comments posted by the audience may be in text form, voice form, or other forms, such as pictures, emoticons, etc., which is not limited in this embodiment of the present application.
  • the comments obtained by the terminal include comments posted by the local viewer account and comments posted by other viewer accounts, that is, the terminal may receive multiple comments at the same time, and each comment corresponds to the spatial coordinates of each viewer account.
  • the terminal constructs a virtual viewing scene corresponding to the currently playing video through a server, and assigns corresponding spatial coordinates to each audience account that makes comments.
  • the spatial coordinates are used to represent the spatial position of the audience account in the virtual viewing scene corresponding to the video.
  • different viewer accounts may correspond to different spatial coordinates, or there may be at least two viewer accounts corresponding to the same spatial coordinate.
  • the virtual viewing scene may be a spherical model, a cube model, or a stadium model, etc., which is not limited in the embodiments of the present application.
  • the density of spatial positions in the virtual viewing scene can be adjusted according to the video played in the video playback area, and can also be adjusted according to the number of viewer accounts, which is not limited in this embodiment of the present application.
  • the spherical model can be divided into longitude and latitude lines according to the principle of the geographic coordinate system, and the intersection of the longitude and latitude lines is used as a spatial coordinate, such as the first spatial coordinate 401 and the second spatial coordinate 402 .
  • the terminal obtains from the server comments on the currently playing video posted by at least one viewer account and the spatial coordinates corresponding to the viewer account.
  • the comments on the currently playing video may be sent in real time by a viewer account currently watching the video, or may be sent by a viewer account that has watched the video before.
  • Step 203 Determine the comment display attribute of the comment based on the spatial coordinates, where the comment display attribute includes the display position and display effect of the comment in the video comment area.
  • the terminal determines different comment display attributes corresponding to the comments under different spatial coordinates based on the spatial coordinates.
  • the process of determining the comment display attributes based on the spatial coordinates is the process of determining the comment display attributes that match the spatial coordinates.
  • the comment display attribute may include the display position and display effect of the comment in the video comment area, or other display attributes, which are not limited in the embodiments of the present application.
  • the display effect may include the comment font size, display transparency, display animation, etc., which are not limited in the embodiments of the present application.
  • Step 204 displaying comments presenting the display effect at a display position in the video comment area.
  • the terminal displays each comment according to its corresponding display position in the video comment area.
  • the display effect corresponding to the comments is rendered and displayed in each display position.
  • the display position may display content corresponding to the comment, the viewer account name, account avatar, etc., which is not limited in this embodiment of the present application.
  • the terminal displays each comment 304 at different display positions in the video comment area 303 based on different display effects.
  • the terminal displays the videos and video comments in the video playback interface in different areas, and divides the video playback interface into a video playback area and a video comment area.
  • the terminal obtains the comments posted by the audience account and the spatial coordinates corresponding to the audience account.
  • the spatial coordinates represent the spatial position of the audience account in the virtual viewing scene corresponding to the video, and then determines the comment display attributes of the comments in the video comment area based on the spatial coordinates, and then displays each comment at the corresponding display position based on the display effect corresponding to each comment, thereby increasing the three-dimensional sense of the comment display in the video comment area and improving the diversity of the comment display effects.
  • the terminal can display the comments corresponding to different spatial coordinates in the virtual viewing scene by determining different field of view ranges, thereby improving the display effect of the comments in the video comment area.
  • FIG5 shows a flow chart of a method for displaying video comments provided by an exemplary embodiment of the present application. This embodiment is described by taking the method used in the terminal in FIG1 as an example. The method includes the following steps:
  • Step 501 displaying a video playback interface, the video playback interface including a video playback area and a video comment area, the video comment area is used to display comments on the video in the video playback area.
  • Step 502 obtaining comments posted by the viewer account and the spatial coordinates corresponding to the viewer account, where the spatial coordinates are used to represent the spatial position of the viewer account in the virtual viewing scene corresponding to the video.
  • step 501 and step 502 can refer to step 201 and step 202, and this embodiment will not be described in detail here.
  • Step 503 determining target comments within the current field of view based on the current field of view and the spatial coordinates of the virtual viewpoint in the virtual viewing scene.
  • the terminal can first determine a virtual viewpoint, which can determine the corresponding field of view by simulating the perspective of the human eye facing the virtual viewing scene.
  • the terminal may set a virtual camera or simulated human eye model at the location of the virtual viewpoint in the virtual viewing scene, and determine the visible range of the virtual camera or simulated human eye model as the current field of view of the virtual viewpoint.
  • the terminal determines the comment corresponding to the spatial coordinates within the current field of view as the target comment based on the current field of view and the spatial coordinates of the virtual viewpoint in the virtual viewing scene, that is, the spatial coordinates corresponding to the target comment are within the coordinate range corresponding to the current field of view.
  • the terminal determines the coordinate range corresponding to the current field of view, and determines whether the spatial coordinates corresponding to the comment are within the coordinate range. If they are within the coordinate range, the comment is determined to be the target coordinate; if they are outside the coordinate range, the comment is determined not to be a target comment.
  • the terminal simulates the perspective of human eyes facing the virtual viewing scene based on a virtual viewpoint 601 in the virtual viewing scene and takes the virtual viewpoint 601 as a base point to obtain a current field of view 602, thereby determining the comments corresponding to the spatial coordinates within the current field of view 602 as target comments.
  • the field of view of the virtual viewpoint supports switching.
  • the terminal in response to the field of view switching operation in the video comment area, switches the current field of view range of the virtual viewpoint in the virtual viewing scene.
  • the field of view switching can switch the field of view of the virtual viewing scene in different directions, up, down, left, and right, based on the current virtual viewpoint.
  • the field of view switching operation can be a trigger for the field of view switching control.
  • the operation may also be a gesture sliding operation, which is not limited in the embodiments of the present application.
  • the terminal in response to the field of view switching operation, can switch the field of view range by switching the viewpoint position of the virtual viewpoint, or can switch the field of view range by adjusting the scene angle of the virtual viewing scene.
  • adjusting the scene angle of the virtual viewing scene to switch the field of view range is used as an example for schematic illustration, but it does not constitute a limitation to this.
  • the terminal can set a fixed switching angle according to the virtual viewing scene, so that after receiving a trigger operation on the field of view switching control, the terminal switches the field of view of the virtual viewpoint according to the fixed switching angle and re-determines the target comments within the current field of view.
  • the terminal may determine the switching angle according to the distribution of spatial positions in the virtual viewing scene.
  • the switching angle may be 45°, 90°, and the like.
  • the target comments within the current field of view 704 are displayed in the video comment area 701.
  • the terminal redetermines the current field of view 705 of the virtual viewpoint 703 (by rotating the virtual viewing scene), and redetermines the target comments corresponding to the spatial coordinates within the current field of view 705, thereby displaying the target comments within the current field of view 705 in the video comment area 701.
  • the terminal can also set a fixed switching angle according to the virtual viewing scene, so that after receiving a gesture sliding operation, the terminal switches the field of view of the virtual viewpoint according to the fixed switching angle and re-determines the target comments within the current field of view.
  • the target comments within the current field of view 803 are displayed in the video comment area 801.
  • the terminal switches the field of view of the virtual viewpoint 802 according to the corresponding switching angle (by rotating the angle of the virtual viewing scene), and determines the current field of view 804, and then redetermines the target comments corresponding to the spatial coordinates within the current field of view 804, thereby redisplaying the target comments in the video comment area 801.
  • the terminal can also determine the corresponding switching angle according to the gesture sliding length of the viewer in the video comment area, thereby flexibly adjusting the field of view of the virtual viewpoint.
  • the terminal in order to enable the current viewer to directly view the posted comment in the video comment area after posting the comment, obtains the space coordinates corresponding to the current viewer account after receiving the comment posting operation of the current viewer account.
  • the terminal When the spatial coordinates corresponding to the current viewer account are within the current field of view, the terminal directly uses the comments within the current field of view as the target comments; when the spatial coordinates corresponding to the current viewer account are outside the current field of view, the terminal switches the current field of view of the virtual viewpoint in the virtual viewing scene based on the spatial coordinates corresponding to the current viewer account, so that the spatial coordinates corresponding to the current viewer account are within the current field of view after switching, and re-determines the target comments within the current field of view.
  • the terminal uses the spatial coordinates corresponding to the current viewer account as a reference point to determine a target field of view that includes the reference point, thereby determining a field of view switching method based on the current field of view and the target field of view and performing field of view switching.
  • the spatial coordinates corresponding to the current viewer account may be located at the center of the current field of view after switching, or may be other positions within the current field of view after switching, which is not limited in this embodiment of the present application.
  • the video comment area 901 displays the comments corresponding to the spatial coordinates within the current field of view.
  • the terminal switches the current field of view of the virtual viewpoint in the virtual viewing scene based on the spatial coordinates corresponding to the current viewer account, thereby displaying the comments corresponding to the spatial coordinates within the current field of view in the video comment area 901, so that the comments 902 posted by the current viewer account are displayed in the video comment area 901.
  • Step 504 Determine the comment display attribute of the target comment based on the spatial coordinates corresponding to the target comment.
  • the terminal uses the position of the virtual viewpoint as the visual center of the human eye, thereby determining the target evaluation within the current field of view corresponding to the virtual viewpoint.
  • the process may include the following sub-steps.
  • the terminal determines the viewpoint coordinates of the virtual viewpoint within the current field of view, and uses the viewpoint coordinates as the visual center of the simulated human eye.
  • the terminal determines the viewpoint coordinates of the virtual viewpoint based on the spatial coordinates corresponding to the current viewer account when the current viewer account is assigned spatial coordinates, so that the spatial coordinates corresponding to the current viewer account are within the field of view of the virtual viewpoint.
  • the terminal in order to simulate the viewing visual effect of the current viewer in the real scene, when the current viewer account is assigned with spatial coordinates, the terminal can directly use the spatial coordinates corresponding to the current viewer account as the viewpoint coordinates of the virtual viewpoint.
  • the terminal may randomly determine the viewpoint coordinates of the virtual viewpoint in the virtual viewing scene, or determine the viewpoint position of the virtual viewpoint based on the spatial coordinates corresponding to other viewer accounts that have a social relationship with the current viewer account.
  • the spatial coordinates corresponding to other viewer accounts that have a social relationship with the current viewer account are within the field of view of the virtual viewpoint.
  • the terminal can determine the viewpoint position of the virtual viewpoint based on the comment-dense area in the virtual viewing scene, and make the field of view of the virtual viewpoint intersect with the comment-dense area.
  • the comment-dense area may be entirely within the field of view of the virtual viewpoint, or may be partially within the field of view of the virtual viewpoint, which is not limited in this embodiment of the present application.
  • the comment-dense area may be an area where the comment density is greater than a density threshold, or an area with the highest comment density, and the comment density may be determined based on the total number of comments within a period of time.
  • the virtual viewing scene is divided into multiple areas (adjacent areas do not overlap or partially overlap), and the total number of comments posted by the audience accounts in each area within the first time period is the comment density of the area, and the terminal determines the area with the highest comment density as the comment-intensive area.
  • the terminal determines the comment display attribute of the target comment based on the viewpoint coordinates and the spatial coordinates corresponding to each target comment within the field of view.
  • the terminal may determine the display position of the target comment in the video comment area based on the relative position relationship between the viewpoint coordinates and the space coordinates corresponding to the target comment.
  • the display position of the target comment is located on the left side of the video comment area; when the viewpoint coordinates are located on the right side of the spatial coordinates, the display position of the target comment is located on the right side of the video comment area.
  • the terminal determines the display effect of the target comments located at different display positions based on the distance between the viewpoint position and the spatial coordinates corresponding to the target comments.
  • the display effect may include display size and display transparency, wherein the display size is negatively correlated with the distance. The closer the distance between the spatial coordinates corresponding to the target comment and the viewpoint position is, the larger the display size corresponding to the target comment is, thereby simulating a visual effect of large near and small far away; the display transparency is positively correlated with the distance. The closer the distance between the spatial coordinates corresponding to the target comment and the viewpoint position is, the lower the display transparency corresponding to the target comment is, thereby simulating a visual effect of clear near and blurred far away.
  • the spatial coordinates of the comment can be expressed as (X, Y, Z), and the calculation method of the comment display attribute can be:
  • D is the diameter of the spherical model
  • Z is the difference between the spatial coordinate in the Z-axis direction and the viewpoint coordinate
  • E is an empirical value that can be adjusted according to actual display requirements. The closer the spatial coordinate of the comment is to the viewpoint coordinate, the larger the Per value; the farther the spatial coordinate of the comment is from the viewpoint coordinate, the smaller the Per value.
  • (X 1 ,Y 1 ) refers to the display position of the video comment area
  • (X,Y) refers to the coordinate difference between the spatial coordinate and the viewpoint coordinate in the X-axis and Y-axis directions.
  • the terminal can also determine the playback volume of the voice according to the distance between the spatial coordinates corresponding to the comment and the viewpoint coordinates, thereby simulating the auditory effect in a real scene where the closer the distance, the louder the sound.
  • the terminal can directly search for the comment display attributes of the target comment from the display attribute table based on the relative coordinates, wherein the display attribute table is configured by the server based on the virtual viewing scene, and the display attribute table contains the correspondence between different relative coordinate ranges and the comment display attributes.
  • the correspondence between different relative coordinate ranges and the comment display attributes in the display attribute table can be shown in Table 1.
  • Step 505 Display the target comment at a display position in the video comment area based on the display effect.
  • the terminal renders and displays the target comments according to the corresponding display positions of the target comments in the video comment area and with the display effects corresponding to the target comments.
  • the display position may display the content corresponding to the target comment, the viewer account name, the account avatar, etc., which is not limited in this embodiment of the present application.
  • the terminal renders and displays the target comments at various display positions in the video comment area 1001 with the display effects corresponding to each target comment, wherein the first comment 1002 is closer to the viewpoint and the second comment 1003 is farther from the viewpoint, so that the display size of the first comment 1002 is larger than the display size of the second comment 1003, and the display transparency of the first comment 1002 is lower than the display transparency of the second comment 1003.
  • the terminal can adjust the comment display attributes of the comment, and display the comment with the adjusted comment display attributes within a corresponding time threshold.
  • the time threshold can be determined based on the duration of the received trigger operation, or it can be a fixed duration, or it can be determined according to other possible implementation methods, which is not limited to the embodiments of the present application.
  • the terminal may adjust the comment display attributes of the comment according to a unified adjustment strategy, such as adjusting the comment display attributes of the comment according to a maximum display size and a minimum display transparency.
  • the terminal upon receiving a trigger operation on the second comment 1003 from the viewer, the terminal adjusts the comment display attribute of the second comment 1003 by increasing the display size and reducing the transparency, so that the viewer can clearly see the second comment 1003 .
  • the terminal in order to improve the display effect and interactivity of the comments, can adjust the comment display attributes of the comments posted by the viewer account based on the account association information of the viewer account, based on the comment display attributes determined based on the coordinates.
  • the account association information may include the account level, the social intimacy with the current viewer account, the account recharge status, etc., which is not limited in this embodiment.
  • the terminal can adjust the comment display attributes of the comments posted by the viewer account according to the account level of the viewer account, the social intimacy with the current viewer account, etc.
  • the higher the account level of the audience account, or the higher the social intimacy with the current audience account the larger the display size of the comments posted by the audience account, the lower the display transparency, or the comments have animation effects, etc.
  • the terminal displays target comments corresponding to spatial coordinates in different viewing ranges by switching the current viewing range of the virtual viewpoint, thereby simulating the viewing angle of the human eye in a real viewing scene and improving the display efficiency of comments in the video display area.
  • the terminal determines the comment display attributes of the target comment based on the viewpoint coordinates and the spatial coordinates corresponding to the target comment, so that the comments closer to the viewpoint have better display effects, simulating the visual effect when the human eye is focusing, optimizing the comment display effect in the video comment area, and improving the authenticity and three-dimensional sense of the comment display.
  • the terminal directly obtains the comment display attribute corresponding to the target comment from the display attribute table by determining the relative coordinates of the viewpoint coordinates and the spatial coordinates corresponding to the target comment, thereby improving the display efficiency of the target comment.
  • the terminal can filter the target comments and only display the filtered target comments.
  • the terminal determines a first display priority of each target comment, wherein the first display priority is related to the viewer account that posted the target comment and the posting time of the target comment.
  • the terminal determines that the first display priority of the target comment is the highest; when the target comment belongs to other audience accounts, the terminal can determine the first display priority of the target comment based on the social intimacy between the other audience accounts and the current audience account, and the higher the social intimacy, the higher the first display priority.
  • the first display priority may also be positively correlated with the account level of the viewer account that posts the target comment. The higher the account level of the viewer account, the higher the first display priority of the corresponding target comment.
  • the first display priority may be positively correlated with the publishing time of the target comment.
  • the terminal filters the target comments based on the first display priority to obtain filtered target comments, and the number of comments in the filtered target comments is less than or equal to a threshold, so that the terminal displays the filtered target comments at a corresponding display position in the video comment area based on the display effect of each target comment.
  • the target comments are screened according to a first display priority, thereby improving the display efficiency of the target comments, simplifying the display content of the video comment area, and avoiding the problem of too many comments being displayed at the same time, affecting the display quality, and causing excessive terminal processing pressure.
  • the terminal can display multiple comments at the same display position according to the second display priority.
  • the terminal when one comment corresponds to the same display position, the terminal displays the comment within the display duration corresponding to the comment; when at least two comments correspond to the same display position, the terminal determines a second display priority corresponding to the at least two comments, wherein the second display priority is related to the viewer account that posted the comment and the posting time of the comment, so that the terminal displays at least two comments in sequence according to the second display priority and the display duration corresponding to each comment.
  • the display durations of the comments can be the same or different.
  • the terminal can determine the display duration based on the account level of the viewer account corresponding to each comment. The higher the account level of the viewer account, the longer the display duration of the published comment.
  • the terminal can also determine the display duration of each comment based on the social intimacy between the viewer account corresponding to each comment and the current viewer account. The higher the social intimacy, the longer the comment will be displayed.
  • the terminal in order to more realistically simulate the effect of an audience entering a venue to watch a performance in a real scene, after receiving a trigger operation to enter a video playback interface, while displaying the video playback interface, the terminal displays a spatial position selection control, which is used to select the spatial coordinates corresponding to the current audience account. In response to the trigger operation of the spatial position selection control, the terminal determines the spatial coordinates corresponding to the current audience account according to the trigger operation.
  • the spatial position selection control may be in the form of filling in coordinate information, or may be in the form of selecting by triggering a control corresponding to a seat (different seats correspond to different spatial coordinates), which is not limited in this embodiment of the present application.
  • the terminal displays a first spatial position selection control 1102 in a video playback interface 1101, and the viewer can enter a specific row and seat number in the first spatial position selection control 1102.
  • the terminal displays a second spatial position selection control 1103 in the video playback interface 1101, and the viewer can trigger the control corresponding to the seat in the second spatial position selection control 1103, thereby determining the selected spatial coordinates.
  • the terminal in order to allow viewers to see comments posted by other viewer accounts that have social relationships with the viewer account after entering the video playback interface, and to simulate the effect of at least two viewers watching a performance together in a real scene, while displaying the spatial position selection control, the terminal can first obtain the spatial coordinates of other viewer accounts that have social relationships with the current viewer account, thereby making a spatial position recommendation to the current viewer account when the current viewer makes a spatial position selection.
  • the terminal displays a second spatial position selection control 1202 in the video playback interface 1201 , and fills and displays the spatial positions 1203 of other viewer accounts that have a social relationship with the current viewer account in the second spatial position selection control 1202 , thereby realizing a spatial position recommendation for the current viewer account.
  • the terminal in order to improve the efficiency of spatial coordinate allocation, when the current viewer account enters the video playback interface for the first time, the terminal directly obtains the spatial coordinates allocated by the server to the current viewer account. Furthermore, in order to meet the viewer's choice of spatial coordinates, when the current viewer account needs to re-select the spatial position, in response to the call-out operation of the spatial position selection control, the terminal displays the spatial position selection control, and the current viewer account re-selects the spatial position.
  • the terminal assigns spatial coordinates to the current viewer account at adjacent positions to the spatial coordinates corresponding to other viewer accounts that have social relationships with the current viewer account.
  • the terminal since the audience may not have the need to post comments and only needs to view the comments posted by other audience accounts, in order to save spatial coordinate resources, when entering the video playback interface, the terminal does not directly obtain the spatial coordinates assigned by the server to the current audience account. Only when a comment posting operation is received and the current audience account has not been assigned spatial coordinates, the terminal obtains the spatial coordinates assigned by the server to the current audience account.
  • the audience is provided with the opportunity to select the spatial position, simulating the position allocation effect when the audience enters the venue to watch the performance in a real scene, thereby enhancing the audience's sense of participation and experience in making comments while watching the video.
  • FIG. 13 shows a flow chart of a method for displaying video comments provided by an exemplary embodiment of the present application. This embodiment is described by taking the method used in the server in FIG. 1 as an example. The method includes the following steps:
  • Step 1301 receiving comments posted by a viewer account, the comments being directed to a video played in a video play area in a video play interface.
  • the terminal after the terminal receives comments posted by each viewer account in the video playback interface, the terminal sends the comments posted by the viewer account to the server, so that the server receives the comments posted by each viewer account, wherein the comments are directed to the video played in the video playback area in the video playback interface.
  • the server may also receive account information corresponding to the viewer accounts and account information of other viewer accounts having social relationships with each viewer account.
  • Step 1302 allocates spatial positions to the viewer accounts to obtain spatial coordinates corresponding to the accounts, where the spatial coordinates are used to represent the spatial positions of the viewer accounts in the virtual viewing scene corresponding to the video.
  • the server constructs a virtual viewing scene based on the video in the video playback interface, and determines the distribution of spatial coordinates in the virtual viewing scene, wherein the spatial coordinates are used to represent the spatial position of the viewer account in the virtual viewing scene corresponding to the video in the video playback interface.
  • the server may be pre-configured with virtual viewing scenes having different spatial coordinate distribution densities, or the spatial coordinate distribution in the virtual viewing scene may be adjusted according to the video content, which is not limited in the embodiments of the present application.
  • the server assigns a spatial position to at least one viewer account to obtain spatial coordinates corresponding to the at least one viewer account.
  • the same spatial coordinate may correspond to one viewer account or multiple viewer accounts, which is not limited in this embodiment of the present application.
  • the server may allocate the viewer accounts having social relationships to adjacent spatial coordinates according to the social relationships between the viewer accounts.
  • Step 1303 the comments and spatial coordinates are sent to each viewer account, so that the viewer terminal corresponding to the viewer account determines the comment display attributes of the comments based on the spatial coordinates, and displays the comments in the video comment area in the video playback interface based on the comment display attributes.
  • the comment display attributes include the display position and display effect of the comments in the video comment area.
  • the server sends at least one comment posted by a viewer account and the spatial coordinates corresponding to the viewer account to each viewer account of the video currently being played, so that the viewer terminal corresponding to the viewer account determines the comment display attributes of the comments in the video comment area according to the spatial coordinates, and displays the comments in the video comment area in the video playback interface based on the comment display attributes, wherein the comment display attributes include the display position and display effect of the comments in the video comment area.
  • the server in order to improve the efficiency of comment display, directly configures a display attribute table based on the distribution of spatial coordinates in the virtual viewing scene and according to the relative coordinates of the viewpoint position and the spatial coordinates.
  • the display attribute table contains the correspondence between different relative coordinates and comment display attributes, so that the server directly sends the comments posted by at least one viewer account and the comment display attributes corresponding to the viewer account to the viewer terminal.
  • the server after receiving the comments posted by the account, assigns spatial coordinates to the account, thereby sending the comments and the spatial coordinates corresponding to the viewer account to the viewer terminal corresponding to each viewer account.
  • the viewer terminal determines the comment display attributes of each comment based on the spatial coordinates, thereby displaying each comment in the video comment area, simulating the three-dimensional sense of the audience watching the performance and making comments at different positions in a real viewing scene.
  • FIG. 14 shows a flowchart of the interaction between the terminal and the server during the video comment display process provided by an exemplary embodiment of the present application.
  • Step 1401 The terminal receives comments posted by a viewer account.
  • the terminal When receiving a comment posting operation, the terminal obtains the viewer account information and the comment posted by the viewer account, and then sends the viewer account and the comment corresponding to the viewer account to the server.
  • Step 1402 The server receives comments posted by the viewer account sent by the terminal.
  • the server receives the viewer account and the comments posted by the viewer account sent by the terminal.
  • Step 1403 The server assigns spatial coordinates to the viewer account.
  • the server allocates spatial coordinates to the viewer accounts based on the spatial position distribution in the virtual viewing scene.
  • Step 1404 The server sends the comments posted by the viewer account and the spatial coordinates corresponding to the viewer account to the terminal.
  • Step 1405 The terminal determines the comment display attribute of the comment based on the spatial coordinates.
  • the terminal determines the comment display attribute corresponding to each comment based on the spatial coordinates, that is, determines the display position and display effect of each comment.
  • Step 1406 The terminal displays the comments in the video comment area.
  • the terminal renders and displays each comment at the display position corresponding to each comment in the video comment area based on the display effect.
  • the information involved in this application including but not limited to user account information, user personal information, user social relationships, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and Signals are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of the country and region.
  • the account association information involved in the embodiment of the present application is obtained with the authorization of the user.
  • FIG. 15 shows a structural block diagram of a display device for video comments provided by an exemplary embodiment of the present application, the device comprising:
  • Display module 1501 used to display a video playback interface, wherein the video playback interface includes a video playback area and a video comment area, wherein the video comment area is used to display comments on the video in the video playback area;
  • An acquisition module 1502 is used to acquire comments posted by a viewer account and spatial coordinates corresponding to the comments, where the spatial coordinates are used to represent the spatial position of the viewer account in the virtual viewing scene corresponding to the video;
  • a determination module 1503 configured to determine a comment display attribute of the comment based on the spatial coordinates, wherein the comment display attribute includes a display position and a display effect of the comment in the video comment area;
  • the display module 1501 is further configured to display the comment presenting the display effect at the display position in the video comment area.
  • the determining module 1503 includes:
  • a comment determination unit configured to determine a target comment within the current field of view based on the current field of view of the virtual viewpoint in the virtual viewing scene and the spatial coordinates;
  • an attribute determination unit configured to determine the comment display attribute of the target comment based on the spatial coordinates corresponding to the target comment
  • the display module 1501 is used for:
  • the target comment exhibiting the display effect is displayed at the display position in the video comment area.
  • the attribute determination unit is used to:
  • the comment display attribute of the target comment is determined based on the viewpoint coordinates and the space coordinates corresponding to the target comment.
  • the attribute determination unit is used to:
  • the display effect of the target comment is determined, the display effect including display size and display transparency, the display size is negatively correlated with the distance, and the display transparency is positively correlated with the distance.
  • the attribute determination unit is used to:
  • the comment display attribute of the target comment is searched from a display attribute table, wherein the display attribute table includes a correspondence between different relative coordinate ranges and comment display attributes.
  • the attribute determination unit is further used to:
  • the viewpoint coordinates of the virtual viewpoint based on the spatial coordinates corresponding to the current viewer account, wherein the spatial coordinates corresponding to the current viewer account are within the field of view of the virtual viewpoint;
  • the viewpoint coordinates of the virtual viewpoint are randomly determined in the virtual viewing scene, or the viewpoint coordinates of the virtual viewpoint are determined based on a comment-dense area in the virtual viewing scene, wherein there is an intersection between the field of view of the virtual viewpoint and the comment-dense area.
  • the device further comprises:
  • a switching module is used to switch the current field of view range of the virtual viewpoint in the virtual viewing scene in response to a field of view switching operation in the video comment area.
  • the acquisition module 1502 is used to acquire the space coordinates corresponding to the current viewer account in response to the comment posting operation;
  • the switching module is used to switch the current field of view of the virtual viewpoint in the virtual viewing scene when the spatial coordinates corresponding to the current viewer account are outside the current field of view, wherein the spatial coordinates corresponding to the current viewer account are within the current field of view after switching.
  • the device further comprises:
  • a priority determination module configured to determine a first display priority of the target comment when the number of comments of the target comment is greater than a threshold, wherein the first display priority is related to the viewer account that published the target comment and the publishing time of the target comment;
  • a screening module configured to screen the target comments according to the first display priority to obtain the screened target comments, wherein the number of comments of the screened target comments is less than or equal to the threshold;
  • the display module 1501 is used for:
  • the filtered target comments presenting the display effect are displayed at the display position in the video comment area.
  • the display module 1501 is used to:
  • the determination module 1503 is used to display a spatial position selection control, the spatial position selection control is used to select the spatial coordinates corresponding to the current viewer account; in response to a trigger operation on the spatial position selection control, determine the spatial coordinates corresponding to the current viewer account according to the trigger operation; or,
  • the acquisition module 1502 is used to acquire the spatial coordinates allocated by the server to the current viewer account when a comment posting operation is received and the current viewer account has not been allocated the spatial coordinates; or
  • the acquisition module 1502 is further used to acquire the space coordinates allocated by the server to the current viewer account when entering the video playback interface for the first time.
  • FIG. 16 shows a structural block diagram of a display device for video comments provided by another exemplary embodiment of the present application, the device comprising:
  • the receiving module 1601 is used to receive comments posted by a viewer account, wherein the comments are directed to the video played in the video playing area in the video playing interface;
  • An allocation module 1602 is used to allocate the spatial position of the viewer account to obtain the spatial coordinates corresponding to the viewer account, where the spatial coordinates are used to represent the spatial position of the viewer account in the virtual viewing scene corresponding to the video;
  • the sending module 1603 is used to send the comments and the spatial coordinates to each of the viewer accounts, so that the viewer terminal corresponding to the viewer account determines the comment display attributes of the comment based on the spatial coordinates, and displays the comment in the video comment area in the video playback interface based on the comment display attributes, wherein the comment display attributes include the display position and display effect of the comment in the video comment area.
  • the terminal displays the videos and video comments in the video playback interface in different areas, and divides the video playback interface into a video playback area and a video comment area.
  • the terminal sends the comments posted by the audience account to the server, and the server allocates the spatial positions of the audience accounts, so that the terminal obtains the comments posted by the audience account and the spatial coordinates corresponding to the audience account from the server.
  • the spatial coordinates represent the spatial position of the audience account in the virtual viewing scene corresponding to the video.
  • the terminal determines the comment display attributes of the comments in the video comment area, and displays each comment at the corresponding display position based on the display effect corresponding to each comment, thereby increasing the three-dimensional sense of the comment display in the video comment area and improving the diversity of the comment display effects.
  • the device provided in the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device and method embodiments provided in the above embodiments belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
  • the terminal 1700 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player, or an MP4 player.
  • the terminal 1700 may also be called a user equipment, a portable terminal, or other names.
  • the terminal 1700 includes a processor 1701 and a memory 1702 .
  • the processor 1701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
  • the processor 1701 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA).
  • DSP digital signal processing
  • FPGA field-programmable gate array
  • PDA programmable logic array
  • the processor 1701 may also include a main processor and a coprocessor.
  • the main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU);
  • the coprocessor is a low-power processor for processing data in the standby state.
  • the processor 1701 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen.
  • the processor 1701 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
  • AI artificial intelligence
  • the memory 1702 may include one or more computer-readable storage media, which may be tangible and non-transitory.
  • the memory 1702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices.
  • the non-transitory computer-readable storage medium in the memory 1702 is used to store at least one instruction, which is used to be executed by the processor 1701 to implement the control method of the virtual object provided in the embodiment of the present application.
  • FIG. 17 does not limit the terminal 1700 and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
  • FIG. 18 shows a schematic diagram of the structure of a server provided by an exemplary embodiment of the present application.
  • the server 1800 can be implemented as a terminal or server in the above-mentioned embodiment.
  • the server 1800 includes a central processing unit (CPU) 1801, a system memory 1804 including a random access memory 1802 and a read-only memory 1803, and a system bus 1805 connecting the system memory 1804 and the central processing unit 1801.
  • the server 1800 also includes a basic input/output system (I/O system) 1806 that helps transmit information between various devices in the computer, and a large-capacity storage device 1807 for storing an operating system 1813, an application program 1814, and other program modules 1815.
  • I/O system basic input/output system
  • the basic input/output system 1806 includes a display 1808 for displaying information and an input device 1809 such as a mouse and a keyboard for user inputting information.
  • the display 1808 and the input device 1809 are connected to the central processing unit 1801 through an input/output controller 1810 connected to the system bus 1805.
  • the basic input/output system 1806 may also include an input/output controller 1810 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus.
  • the input/output controller 1810 also provides output to a display screen, a printer, or other types of output devices.
  • the mass storage device 1807 is connected to the central processing unit 1801 through a mass storage controller (not shown) connected to the system bus 1805.
  • the mass storage device 1807 and its associated computer-readable media provide non-volatile storage for the server 1800. That is, the mass storage device 1807 may include a computer-readable medium (not shown) such as a hard disk or drive.
  • the computer-readable medium may include computer storage media and communication media.
  • Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data.
  • Computer storage media include random access memory (RAM), read-only memory (ROM), flash memory or other solid-state storage technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, tape cassettes, magnetic tapes, disk storage or other magnetic Storage device.
  • RAM random access memory
  • ROM read-only memory
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disc
  • the memory stores one or more programs, and the one or more programs are configured to be executed by one or more central processing units 1801.
  • the one or more programs contain instructions for implementing the above-mentioned methods.
  • the central processing unit 1801 executes the one or more programs to implement the methods provided by the above-mentioned various method embodiments.
  • the server 1800 may also be connected to a remote computer on the network through a network such as the Internet. That is, the server 1800 may be connected to the network 1812 through a network interface unit 1811 connected to the system bus 1805, or the network interface unit 1811 may be used to connect to other types of networks or remote computer systems (not shown).
  • An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored.
  • the at least one instruction is loaded and executed by a processor to implement the method for displaying video comments provided in the above embodiment.
  • the computer readable storage medium may include: ROM, RAM, solid state drives (SSD, Solid State Drives) or optical disks, etc.
  • RAM may include resistance random access memory (ReRAM, Resistance Random Access Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).
  • the embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium.
  • a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for displaying video comments described in the above embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本申请实施例公开了一种视频评论的显示方法、装置、终端及存储介质,属于人机交互技术领域。该方法包括:显示视频播放界面,所述视频播放界面中包括视频播放区域和视频评论区域(201);获取观众账号发表的评论以及所述评论对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置(202);基于所述空间坐标,确定所述评论的评论显示属性,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果(203);在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述评论(204)。

Description

视频评论的显示方法、装置、终端及存储介质
本申请要求于2022年10月12日提交,申请号为202211248945.6、发明名称为“视频评论的显示方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及人机交互技术领域,特别涉及一种视频评论的显示方法、装置、终端及存储介质。
背景技术
在视频播放过程中,用户可以通过发表评论的方式,进行视频观看互动。
相关技术中,评论内容通常是以2D流式展示的方式在视频播放界面显示,一般呈现为上下滚动显示,或,左右移动显示,而对于表演类型的视频,通过这样的评论显示方式无法模拟出真实现场的空间感,缺少观看过程中不同位置用户的立体感,降低了用户的视频观看体验。
发明内容
本申请实施例提供了一种视频评论的显示方法、装置、终端及存储介质。所述技术方案如下:
一方面,本申请实施例提供了一种视频评论的显示方法,所述方法由终端执行,所述方法包括:
显示视频播放界面,所述视频播放界面中包括视频播放区域和视频评论区域,所述视频评论区域用于显示对所述视频播放区域中视频的评论;
获取观众账号发表的评论以及所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
基于所述空间坐标,确定所述评论的评论显示属性,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果;
在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述评论。
另一方面,本申请实施例提供了一种视频评论的显示方法,所述方法由服务器执行,所述方法包括:
接收观众账号发表的评论,所述评论针对视频播放界面中视频播放区域内播放的视频;
对所述观众账号进行空间位置分配,得到所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
将所述评论以及所述空间坐标发送至各个所述观众账号,以便所述观众账号对应的观众终端基于所述空间坐标确定所述评论的评论显示属性,并基于所述评论显示属性在所述视频播放界面中的视频评论区域中的显示所述评论,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果。
另一方面,本申请实施例提供了一种视频评论的显示装置,所述装置包括:
显示模块,用于显示视频播放界面,所述视频播放界面中包括视频播放区域和视频评论区域,所述视频评论区域用于显示对所述视频播放区域中视频的评论;
获取模块,用于获取观众账号发表的评论以及所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
确定模块,用于基于所述空间坐标,确定所述评论的评论显示属性,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果;
所述显示模块,还用于在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述评论。
另一方面,本申请实施例提供了一种视频评论的显示装置,所述装置包括:
接收模块,用于接收观众账号发表的评论,所述评论针对视频播放界面中视频播放区域内播放的视频;
分配模块,用于对所述观众账号进行空间位置分配,得到所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
发送模块,用于将所述评论以及所述空间坐标发送至各个所述观众账号,以便所述观众账号对应的观众终端基于所述空间坐标确定所述评论的评论显示属性,并基于所述评论显示属性在所述视频播放界面中的视频评论区域中的显示所述评论,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果。
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上述方面所述的视频评论的显示方法。
另一方面,本申请实施例提供了一种服务器,所述服务器包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上述方面所述的视频评论的显示方法。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述可读存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如上述方面所述的视频评论的显示方法。
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面提供的视频评论的显示方法。
本申请实施例中,终端对视频播放界面中的视频和视频评论进行分区域显示,将视频播放界面分为视频播放区域和视频评论区域,并且为了模拟真实观看场景中观众位于不同位置观看表演的立体感,终端向服务器发送观众账号发表的评论,并由服务器对观众账号进行空间位置分配,从而终端从服务器中获取观众账号发表的评论以及观众账号对应的空间坐标,该空间坐标表征观众账号在视频对应的虚拟观看场景中所处的空间位置,进而终端基于空间坐标,确定评论在视频评论区域的评论显示属性,并基于各条评论对应的显示效果在对应的显示位置显示各条评论,增加了视频评论区域中评论显示的立体感,提高了评论显示效果的多样性。
此外,采用本申请实施例提供的方案,同一观众账号发表的各条评论均显示在统一显示位置,使用户能够快速定位自身或者其他特定观众发送的频率,提高了评论内容的显著程度以及评论查看效率,使视频评论区域具备供观众在观看视频时,通过发表评论的方式与其他观众进行实时交流沟通的功能。
附图说明
图1示出了本申请一个示例性实施例提供的实施环境的示意图;
图2是本申请一个示例性实施例提供的视频评论的显示方法的流程图;
图3是本申请一个示例性实施例提供的视频播放界面的显示示意图;
图4是本申请一个示例性实施例提供的立体球形模型的示意图;
图5是本申请一个示例性实施例提供的视频评论的显示方法的流程图;
图6是本申请一个示例性实施例提供的确定当前视野范围的示意图;
图7是本申请一个示例性实施例提供的通过视野切换控件切换当前视野范围的示意图;
图8是本申请一个示例性实施例提供的通过手势操作切换当前视野范围的示意图;
图9是本申请一个示例性实施例提供的基于评论发表操作切换当前视野范围的示意图;
图10是本申请一个示例性实施例提供的调整评论显示属性的示意图;
图11是本申请一个示例性实施例提供的显示空间位置选择控件的示意图;
图12是本申请一个示例性实施例提供的空间位置选择提示的示意图;
图13是本申请一个示例性实施例提供的视频评论的显示方法的流程图;
图14是本申请一个示例性实施例提供的视频评论显示过程中终端和服务器的交互流程图;
图15是本申请一个示例性实施例提供的视频评论的显示装置的结构框图;
图16是本申请另一个示例性实施例提供的视频评论的显示装置的结构框图;
图17示出了本申请一个示例性实施例提供的终端的结构框图;
图18示出了本申请一个示例性实施例提供的服务器的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
图1示出了本申请一个示例性实施例提供的实施环境的示意图。该实施环境中包括终端101和服务器102。其中,终端101与服务器102之间通过通信网络进行数据通信,可选地,通信网络可以是有线网络也可以是无线网络,且该通信网络可以是局域网、城域网以及广域网中的至少一种。
终端101是安装有具有视频播放功能的应用程序的电子设备。其中,该视频播放功能可以为终端中原生应用的功能,或者,第三方应用的功能,该应用程序可以是直播应用、具有视频播放功能的购物应用、短视频应用或者具有视频播放功能的社交应用等等,本实施例对此不作限定;该电子设备可以是智能手机、平板电脑、个人计算机、可穿戴式设备或车载终端等等,图1中,以终端101为智能手机为例进行说明,但并不对此构成限定。
服务器102可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。本申请实施例中,服务器102可以为具有视频播放功能的应用的后台服务器。
在一种可能的场景下,如图1所示,服务器102和终端101之间存在数据交互。在终端101接收到观众发表的视频评论的情况下,终端101将评论数据发送至服务器102,并由服务器102对评论数据中包含的观众账号进行空间坐标分配,从而服务器102将评论数据以及评论数据对应的空间坐标下发给终端101以及当前使用视频评论显示功能的其他终端。
本申请实施例中涉及到的虚拟观看场景可以是演唱会、电影、颁奖典礼等等,在终端进行演唱会、电影或者颁奖典礼视频播放(直播或非直播)的情况下,响应于评论发表操作,终端将观众账号发表的评论发送给服务器,从而服务器根据虚拟观看场景中的空间位置对观众账号进行空间位置分配。
比如,在虚拟观看场景模拟演唱会场馆的情况下,服务器按照演唱会场馆的空间位置分布,对观众账号进行空间坐标分配,从而模拟真实场景中观众在演唱会现场观看演唱会的效果;在虚拟观看场景模拟电影院播放厅的情况下,服务器按照电影院播放厅的空间位置分布,对观众账号进行空间坐标分配,从而模拟真实场景中观众在电影院观看电影的效果;在虚拟观看场景模拟颁奖典礼现场的情况下,服务器按照颁奖典礼场馆的空间位置分布,对观众账号进行空间坐标分配,从而模拟真实场景中观众在颁奖典礼现场的效果。
请参考图2,其示出了本申请一个示例性实施例提供的视频评论的显示方法的流程图,本实施例以该方法用于图1中的终端为例进行说明,该方法包括如下步骤:
步骤201,显示视频播放界面,视频播放界面中包括视频播放区域和视频评论区域,视频评论区域用于显示对视频播放区域中视频的评论。
在一种可能的实施方式中,在接收到进入视频播放界面的触发操作后,终端显示视频播放界面,并且在观看视频的过程中,观众可以在该视频播放界面中发表对视频的评论进行互动。
在一种可能的实施方式中,为了提高视频播放效果,终端在视频播放界面中分别设置视 频播放区域和视频评论区域,并将视频播放区域和视频评论区域分开显示,其中,视频评论区域用于显示观众对视频播放区域中视频的评论。可选的,视频播放区域和视频评论区域可以上下显示,也可以左右显示,甚至可以环绕显示(比如视频评论区域环绕在视频播放区域四周),本申请实施例对于具体显示方式在此不作限定。
可选的,视频播放区域播放的视频可以是直播形式的视频,也可以是录播形式的视频,或者其他形式的视频,本申请实施例对此不作限定。
示意性的,如图3所示,终端显示视频播放界面301,并且将视频播放界面301分为视频播放区域302和视频评论区域303,从而观众可以在视频评论区域303中发表对视频播放区域302中视频的评论。
步骤202,获取观众账号发表的评论以及观众账号对应的空间坐标,空间坐标用于表征观众账号在视频对应虚拟观看场景中所处的空间位置。
在一种可能的实施方式中,在接收到进入视频播放界面的触发操作,并显示视频播放界面的情况下,终端获取观众的观众账号,从而观众可以以观众账号作为唯一身份标识进行评论发表。
可选的,观众发表的评论可以是文字形式的,也可以是语音形式的,或者其他形式的,比如图片、表情等等,本申请实施例对此不作限定。
可选的,终端获取到的评论包括本端观众账号发表的评论,以及其他观众账号发表的评论,即终端可能同时收到多条评论一个各条评论对应观众账号各自对应的空间坐标。
在一种可能的实施方式中,为了模拟真实观看场景中观众现场观看表演时位于不同位置的立体感,终端通过服务器构建当前播放视频对应的虚拟观看场景,并为每个进行评论发表的观众账号分配对应的空间坐标,该空间坐标用于表征观众账号在视频对应的虚拟观看场景中所处的空间位置。
在一些实施例中,不同观众账号可以对应不同空间坐标,或者,存在至少两个观众账号对应同一空间坐标。
可选的,虚拟观看场景可以是球形模型、立方体模型,或者场馆模型等等,本申请实施例对此不作限定。
可选的,虚拟观看场景中空间位置的密集程度可以根据视频播放区域播放的视频进行调整,也可以根据观众账号的账号数量进行调整,本申请实施例对此不作限定。
在一个示意性的例子中,如图4所示,以虚拟观看场景是球形模型为例,可以根据地理坐标系的原理,对球形模型进行经纬线划分,将经纬线交接处作为一个空间坐标,例如第一空间坐标401和第二空间坐标402。
在一种可能的实施方式中,终端从服务器中获取至少一个观众账号发表的对于当前播放视频的评论以及观众账号对应的空间坐标,可选的,对于当前播放视频的评论可以是当前正在观看视频的观众账号实时发送的,也可以是之前观看过视频的观众账号发送的。
步骤203,基于空间坐标,确定评论的评论显示属性,评论显示属性包括评论在视频评论区域中的显示位置和显示效果。
在一种可能的实施方式中,由于空间坐标表征的是虚拟观看场景中观众账号所处的空间位置,具有空间立体性,而在视频评论区域对评论进行显示是以二维平面的形式呈现,因此为了使得视频评论区域显示的评论能够体现出虚拟观看场景中的立体感,终端基于空间坐标,确定不同空间坐标下的评论对应的不同评论显示属性。其中,基于空间坐标确定评论显示属性的过程,即确定与空间坐标匹配的评论显示属性的过程。
可选的,评论显示属性可以包括评论在视频评论区域中的显示位置以及显示效果,或者其他显示属性,本申请实施例对此不作限定。可选的,显示效果可以包括评论字体尺寸、显示透明度、显示动画等等,本申请实施例对此不作限定。
步骤204,在视频评论区域中的显示位置显示呈现该显示效果的评论。
在一种可能的实施方式中,终端根据各条评论在视频评论区域中对应的显示位置,以各 条评论对应的显示效果,在各个显示位置对评论进行渲染显示。
可选的,显示位置处可以显示评论对应的内容、观众账号名称、账号头像等等,本申请实施例对此不作限定。
示意性的,如图3所示,终端在视频评论区域303中基于不同的显示效果在不同的显示位置处显示各条评论304。
综上所述,本申请实施例中,终端对视频播放界面中的视频和视频评论进行分区域显示,将视频播放界面分为视频播放区域和视频评论区域,并且为了模拟真实观看场景中观众位于不同位置观看表演的立体感,终端获取观众账号发表的评论以及观众账号对应的空间坐标,该空间坐标表征观众账号在视频对应的虚拟观看场景中所处的空间位置,从而基于空间坐标,确定评论在视频评论区域的评论显示属性,进而基于各条评论对应的显示效果在对应的显示位置显示各条评论,增加了视频评论区域中评论显示的立体感,提高了评论显示效果的多样性。
在一种可能的实施方式中,由于视频评论区域的显示位置有限,可能无法显示全部空间坐标对应的评论,因此终端可以通过确定不同视野范围的方式,对虚拟观看场景中不同空间坐标对应的评论进行显示,从而提高视频评论区域中评论的显示效果。
请参考图5,其示出了本申请一个示例性实施例提供的视频评论的显示方法的流程图,本实施例以该方法用于图1中的终端为例进行说明,该方法包括如下步骤:
步骤501,显示视频播放界面,视频播放界面中包括视频播放区域和视频评论区域,视频评论区域用于显示对视频播放区域中视频的评论。
步骤502,获取观众账号发表的评论以及观众账号对应的空间坐标,空间坐标用于表征观众账号在视频对应虚拟观看场景中所处的空间位置。
步骤501和步骤502的具体实施方式可以参考步骤201和步骤202,本实施例在此不作赘述。
步骤503,基于虚拟观看场景中虚拟视点的当前视野范围以及空间坐标,确定位于当前视野范围内的目标评论。
在一种可能的实施方式中,由于视频评论区域的显示位置有限,可能无法显示全部空间坐标对应的评论,因此为了提高显示效果,终端可以首先确定虚拟视点,该虚拟视点可以通过模拟人眼面对虚拟观看场景的视角,确定对应的视野范围。
在一些实施例中,终端可以在虚拟观看场景中虚拟视点所在的位置处设置虚拟摄像机或模拟人眼模型,并将该虚拟摄像机或模拟人眼模型的可视范围确定为虚拟视点的当前视野范围。
在一种可能的实施方式中,终端基于虚拟观看场景中虚拟视点的当前视野范围以及空间坐标,将当前视野范围内空间坐标下对应的评论确定为目标评论,即目标评论对应的空间坐标位于当前视野范围对应的坐标范围内。
关于筛选目标评论的方式,在一种可能的实施方式中,终端确定当前视野范围对应的坐标范围,并判断评论对应的空间坐标是否位于该坐标范围内,若位于坐标范围内,则确定该评论为目标坐标,若位于坐标范围外,则确定该评论不属于目标评论。
示意性的,如图6所示,终端基于虚拟观看场景中的虚拟视点601,以该虚拟视点601为基点,模拟人眼面对虚拟观看场景的视角,得到当前视野范围602,从而将当前视野范围602内空间坐标对应的评论确定为目标评论。
在一种可能的实施方式中,由于虚拟视点的当前视野范围内仅包含虚拟观看场景中部分空间坐标对应的评论,因此为了让观众能够看到虚拟观看场景中不同区域的空间坐标对应的评论,虚拟视点的视野范围支持切换。
在一种可能的实施方式中,响应于视频评论区域内的视野切换操作,终端切换虚拟观看场景中虚拟视点的当前视野范围。可选的,视野切换可以基于当前的虚拟视点对虚拟观看场景进行上下左右不同方位的视野切换。可选的,视野切换操作可以是对视野切换控件的触发 操作,也可以是手势滑动操作,本申请实施例对此不作限定。
在一些实施例中,响应于视野切换操作,终端可以通过切换虚拟视点的视点位置以实现视野范围切换,也可以通过调整虚拟观看场景的场景角度实现视野范围切换。下述实施例中以调整虚拟观看场景的场景角度实现视野范围切换为例进行示意性说明,但并不对此构成限定。
在通过对视野切换控件的触发操作实现视野切换操作的情况下,终端可以根据虚拟观看场景设置固定的切换角度,从而在接收到对视野切换控件的一次触发操作后,终端根据固定的切换角度对虚拟视点的视野进行切换,并重新确定当前视野范围内的目标评论。
可选的,终端可以根据虚拟观看场景中空间位置的分布情况,确定切换角度,示意性的,切换角度可以是45°、90°等等。
示意性的,如图7所示,视频评论区域701中显示当前视野范围704内的目标评论,在接收到视频评论区域701内对视野切换控件702中向下切换按钮的触发操作的情况下,终端重新确定虚拟视点703的当前视野范围705(通过旋转虚拟观看场景),并重新确定当前视野范围705内的空间坐标对应的目标评论,从而在视频评论区域701显示当前视野范围705内的目标评论。
在通过手势滑动操作实现视野切换操作的情况下,终端也可以根据虚拟观看场景设置固定的切换角度,从而在接收到一次手势滑动操作后,终端根据固定的切换角度对虚拟视点的视野进行切换,并重新确定当前视野范围内的目标评论。
示意性的,如图8所示,视频评论区域801中显示当前视野范围803内的目标评论,在接收到视频评论区域801内的向左滑动手势操作的情况下,终端根据对应的切换角度对虚拟视点802的视野进行切换(通过旋转虚拟观看场景的角度),并确定当前视野范围804,进而重新确定当前视野范围804内的空间坐标对应的目标评论,从而在视频评论区域801重新显示目标评论。
在通过手势滑动操作实现视野切换操作的情况下,终端还可以根据观众在视频评论区域内的手势滑动长度确定对应的切换角度,从而灵活地调整虚拟视点的视野范围。
在一种可能的实施方式中,为了能够使得当前观众发表评论之后,能够在视频评论区域直接看到所发表的评论,终端在接收到当前观众账号的评论发表操作之后,获取当前观众账号对应的空间坐标。
在当前观众账号对应的空间坐标位于当前视野范围内的情况下,终端直接以当前视野范围内的评论作为目标评论;在当前观众账号对应的空间坐标位于当前视野范围之外的情况下,终端则基于当前观众账号对应的空间坐标切换虚拟观看场景中虚拟视点的当前视野范围,从而使得当前观众账号对应的空间坐标位于切换后的当前视野范围之内,并重新确定当前视野范围内的目标评论。
在一种可能的实施方式中,在当前观众账号对应的空间坐标位于当前视野范围之外的情况下,终端以观众账号当前对应的空间坐标为基准点,确定出一个包含该基准点的目标视野范围,从而基于当前视野范围和目标视野范围确定出视野切换方式并进行视野切换。
可选的,当前观众账号对应的空间坐标可以位于切换后当前视野范围的中心,也可以是切换后当前视野范围内的其他位置,本申请实施例对此不作限定。
示意性的,如图9所示,在当前观众账号对应的空间坐标位于当前视野范围之外的情况下,视频评论区域901显示当前视野范围内空间坐标对应的评论,在接收到当前观众账号的评论发表操作后,终端则基于当前观众账号对应的空间坐标切换虚拟观看场景中虚拟视点的当前视野范围,从而在视频评论区域901中显示当前视野范围内空间坐标对应的评论,使得当前观众账号发表的评论902显示在视频评论区域901中。
步骤504,基于目标评论对应的空间坐标,确定目标评论的评论显示属性。
在一种可能的实施方式中,为了更真实的模拟人眼面对虚拟观看场景的视觉效果,终端以虚拟视点的位置作为人眼的视觉中心,从而确定虚拟视点对应的当前视野范围内的目标评 论的评论显示属性,该过程可以包括以下子步骤。
1、确定虚拟视点的视点坐标。
首先,终端确定虚拟视点在当前视野范围内的视点坐标,以该视点坐标作为模拟人眼的视觉中心。
在一种可能的实施方式中,为了能够使得当前观众账号在发表评论后能够直接看到所发表的评论,终端在当前观众账号分配有空间坐标的情况下,基于当前观众账号对应的空间坐标确定虚拟视点的视点坐标,使得当前观众账号对应的空间坐标位于虚拟视点的视野范围内。
在一种可能的实施方式中,为了能够模拟当前观众在真实场景中的观看视觉效果,在当前观众账号分配有空间坐标的情况下,终端可以直接以当前观众账号对应的空间坐标作为虚拟视点的视点坐标。
在一种可能的实施方式中,在当前账号未分配有空间坐标的情况下,终端可以在虚拟观看场景中随机确定虚拟视点的视点坐标,也可以根据与当前观众账号存在社交关系的其他观众账号对应的空间坐标,确定虚拟视点的视点位置。其中,与当前观众账号存在社交关系的其他观众账号对应的空间坐标位于虚拟视点的视野范围内。
在一种可能的实施方式中,在当前账号未分配有空间坐标的情况下,为了能够向当前观众展示尽可能多的评论,终端可以基于虚拟观看场景中的评论密集区域确定虚拟视点的视点位置,并且使得虚拟视点的视野范围与评论密集区域之间存在交集。
可选的,评论密集区域可以全部位于虚拟视点的视野范围内,也可以部分位于虚拟视点的视野范围内,本申请实施例对此不作限定。
可选的,该评论密集区域可以为评论密度大于密度阈值的区域,也可以是评论密度最大的区域,且评论密度可以根据一段时间内的评论总数确定得到。
在一种可能的实施方式中,虚拟观看场景被划分为多个区域(相邻区域之间互不重叠或者存在部分重叠),各个区域内观众账号在第一时长内发表的评论总数即为该区域的评论密度,而终端将评论密度最高的区域确定为评论密集区域。
2、基于视点位置以及目标评论对应的空间坐标,确定目标评论的评论显示属性。
在一种可能的实施方式中,为了模拟人眼聚焦时的视觉效果,终端基于视点坐标以及视野范围内的各个目标评论对应的空间坐标,确定目标评论的评论显示属性。
在一种可能的实施方式中,终端可以基于视点坐标与目标评论对应的空间坐标的相对位置关系,确定目标评论在视频评论区域的显示位置。
比如,当视点坐标位于空间坐标的左侧时,目标评论的显示位置位于视频评论区域的左侧;当视点坐标位于空间坐标的右侧时,目标评论的显示位置位于视频评论区域的右侧。
在一种可能的实施方式中,根据人眼聚焦时对不同距离的物体产生的视觉效果不同的特点,终端基于视点位置与目标评论对应的空间坐标的距离,确定位于不同显示位置的目标评论的显示效果,该显示效果可以包括显示尺寸和显示透明度,其中,显示尺寸与距离呈负相关关系,目标评论对应的空间坐标与视点位置的距离越近,目标评论对应的显示尺寸越大,以此模拟出近大远小的视觉效果;显示透明度与距离呈正相关关系,目标评论对应的空间坐标与视点位置的距离越近,目标评论对应的显示透明度越低,以此模拟出近处清晰远处模糊的视觉效果。
在一个示意性的例子中,以虚拟观看场景为球形模型为例,评论的空间坐标可以表示为(X,Y,Z),评论显示属性的计算方式可以是:
其中,D是球形模型的球直径,Z是空间坐标在Z轴方向与视点坐标的差值,E是经验值,可以根据实际的显示需求调整,评论的空间坐标距离视点坐标越近,Per的值越大;评论的空间坐标距离视点坐标越远,Per的值越小。
显示位置的计算方式可以是:(X1,Y1)=Per×(X,Y)
其中,(X1,Y1)是指视频评论区域的显示位置,(X,Y)是指空间坐标与视点坐标在X轴和Y轴方向上的坐标差值。
显示尺寸的计算方式可以是:Scale=Per,即距离视点位置越近,评论的显示尺寸越大;距离视点位置越远,评论的显示尺寸越小。
显示透明度的计算方式可以是:Alpha=(Z+R)/D,其中,R是球形模型的球半径,D是球形模型的球直径,Z是空间坐标在Z轴方向与视点坐标的差值,即距离视点位置越近,显示透明度越低,评论越清晰。
在一种可能的实施方式中,在评论内容是语音形式的情况下,终端还可以根据评论对应空间坐标距离视点坐标的距离,确定语音的播放音量,从而模拟出真实场景中距离越近声音越大的听觉效果。
在一种可能的实施方式中,为了提高评论显示效率,在确定视点坐标与目标评论对应的空间坐标的相对坐标(可以是视点坐标和空间坐标的坐标差值的绝对值)之后,终端可以直接根据相对坐标,从显示属性表中查找目标评论的评论显示属性,其中,显示属性表由服务器基于虚拟观看场景配置,且显示属性表中包含不同相对坐标范围与评论显示属性之间的对应关系,示意性的,显示属性表中不同相对坐标范围与评论显示属性之间的对应关系可以如表1所示。
表1
步骤505,基于显示效果在视频评论区域中的显示位置显示目标评论。
在一种可能的实施方式中,终端根据各条目标评论在视频评论区域中对应的显示位置,以各条目标评论对应的显示效果,对目标评论进行渲染显示。
可选的,显示位置处可以显示目标评论对应的内容、观众账号名称、账号头像等等,本申请实施例对此不作限定。
示意性的,如图10所示,终端在视频评论区域1001中以各条目标评论对应的显示效果,在各个显示位置对目标评论进行渲染显示,其中,第一评论1002距离视点较近,第二评论1003距离视点较远,从而第一评论1002的显示尺寸大于第二评论1003的显示尺寸,第一评论1002的显示透明度低于第二评论1003的显示透明度。
在一种可能的实施方式中,在不切换当前视野范围的情况下,为了能够让观众看清距离视点位置较远的评论内容,终端在接收到观众对评论的触发操作的情况下,可以对该评论的评论显示属性进行调整,并以调整后的评论显示属性在对应的时间阈值内显示该评论,可选的,时间阈值可以根据接收到的触发操作的时长确定,也可以是固定时长,或者根据其他可能的实现方式确定,本申请实施例对此不作限定。
可选的,在接收到对评论的触发操作的情况下,终端可以按照统一调整策略调整评论的评论显示属性,比如按照最大显示尺寸以及最低显示透明度调整评论的评论显示属性。
示意性的,如图10所示,在接收到观众对第二评论1003的触发操作的情况下,终端对第二评论1003的评论显示属性进行调整,增大显示尺寸,降低透明度,从而使观众能够清晰地看到第二评论1003。
在一种可能的实施方式中,为了提高评论的显示效果和互动性,终端可以在基于坐标确定出的评论显示属性的基础上,基于观众账号的账号关联信息,调整该观众帐号所发布评论的评论显示属性。该账号关联信息可以包括账号等级、与当前观众账号之间的社交亲密度、帐号充值情况等等,本实施例对此不作限定。
在一些实施例中,在至少两个观众账号对应的空间坐标与视点坐标之间的距离相同的情况下,终端可以根据观众账号的账号等级、与当前观众账号的社交亲密度等等,调整观众账号所发布评论的评论显示属性。
比如,在观众账号对应的空间坐标与视点坐标之间的距离相同的情况下,观众账号的账号等级越高,或者与当前观众账号的社交亲密度越高,该观众账号所发布的评论显示尺寸越大,显示透明度越低,或者该评论带有动画效果等等。
上述实施例中,终端通过切换虚拟视点的当前视野范围,对不同视野范围内空间坐标对应的目标评论进行显示,模拟出了人眼在真实观看场景中的观看视角,并且提高了视频显示区域中评论的显示效率。
并且,终端根据视点坐标与目标评论对应的空间坐标,确定目标评论的评论显示属性,使得距离视点越近的评论的显示效果更好,模拟出了人眼聚焦时的视觉效果,优化了视频评论区域的评论显示效果,提高了评论显示的真实性和立体感。
此外,终端通过确定视点坐标与目标评论对应的空间坐标的相对坐标,从显示属性表中直接获取目标评论对应的评论显示属性,提高了目标评论的显示效率。
在一种可能的实施方式中,由于视频评论区域能够显示的评论数量有限,因此在当前视野范围内目标评论的评论数量大于阈值的情况下,终端可以对目标评论进行评论筛选,从而仅对筛选后的目标评论进行显示。
在一种可能的实施方式中,在目标评论的评论数量大于阈值的情况下,终端确定各条目标评论的第一显示优先级,其中,第一显示优先级与发表目标评论的观众账号以及目标评论的发表时间相关。
关于目标评论的显示优先级的确定方式,可选的,在目标评论属于当前观众账号的情况下,终端确定该目标评论的第一显示优先级最高;在目标评论属于其他观众账号的情况下,终端可以根据其他观众账号与当前观众账号的社交亲密度确定目标评论的第一显示优先级,社交亲密度越高,第一显示优先级越高。
可选的,第一显示优先级还可以与发表目标评论的观众账号的账号等级成正相关关系,观众账号的账号等级越高,对应目标评论的第一显示优先级越高。
可选的,第一显示优先级可以与目标评论的发表时间成正相关关系,目标评论的发表时间越长,第一显示优先级越高。
进一步的,终端基于第一显示优先级对目标评论进行筛选,得到筛选后的目标评论,并且筛选后的目标评论的评论数量小于或等于阈值,从而终端基于各条目标评论的显示效果,在视频评论区域中的对应显示位置显示筛选后的目标评论。
上述实施例中,在目标评论的评论数量大于阈值的情况下,通过按照第一显示优先级对目标评论进行筛选的方式,提高了目标评论的显示效率,简化了视频评论区域的显示内容,避免同时显示过多评论影响显示质量,以及导致终端处理压力过大的问题。
在一种可能的实施方式中,由于在评论数量较多的情况下,同一空间坐标下可能对应多条评论,即同一显示位置可能需要显示多条评论,因此为了提高评论在视频评论区域中的显示效率,终端可以根据第二显示优先级对同一显示位置的多条评论进行显示。
在一种可能的实施方式中,在同一显示位置对应一条评论的情况下,终端在评论对应的显示时长内显示评论;在同一显示位置对应有至少两条评论的情况下,终端确定至少两条评论对应的第二显示优先级,其中,第二显示优先级与发表评论的观众账号以及评论的发表时间相关,从而终端按照第二显示优先级以及各条评论各自对应的显示时长,依次显示至少两条评论。
可选的,各条评论对应的显示时长可以相同,也可以不同。在一种可能的实施方式中,终端可以根据各条评论对应的观众账号的账号等级确定显示时长,观众账号的账号等级越高,所发表的评论的显示时长越长;终端也可以根据各条评论对应的观众账号与当前观众账号的社交亲密度,确定各条评论的显示时长,其中,评论对应的观众账号与当前观众账号的 社交亲密度越高,评论的显示时长越长。
上述实施例中,在同一显示位置对应多条评论的情况下,通过按照第二显示优先级对评论进行筛选的方式,减少了对第二显示优先级较低的评论的显示,提高了评论在视频评论区域中的显示效率。
在一种可能的实施方式中,为了更真实地模拟真实场景中观众进入场馆观看演出的效果,在接收到进入视频播放界面的触发操作之后,显示视频播放界面的同时,终端显示空间位置选择控件,该空间位置选择控件用于选择当前观众账号对应的空间坐标。响应于对空间位置选择控件的触发操作,终端根据触发操作确定当前观众账号对应的空间坐标。
可选的,空间位置选择控件可以是填写坐标信息形式的,也可以是通过触发座位(不同座位对应不同空间坐标)对应的控件进行选择的形式,本申请实施例对此不作限定。
示意性的,如图11所示,终端在视频播放界面1101中显示第一空间位置选择控件1102,观众可以在第一空间位置选择控件1102中输入具体的排次和座次序号。或者,终端在视频播放界面1101中显示第二空间位置选择控件1103,观众可以在第二空间位置选择控件1103中对座位对应的控件进行触发,从而确定选择的空间坐标。
在一种可能的实施方式中,为了让观众在进入视频播放界面后,能够看到与观众账号具有社交关系的其他观众账号所发表的评论,并模拟出真实场景中至少两个观众共同观看表演的效果,在显示空间位置选择控件的同时,终端可以首先获取与当前观众账号具有社交关系的其他观众账号的空间坐标,从而在当前观众进行空间位置选择的情况下,向当前观众账号进行空间位置推荐。
示意性的,如图12所示,终端在视频播放界面1201中显示第二空间位置选择控件1202,并在第二空间位置选择控件1202中将与当前观众账号具有社交关系的其他观众账号的空间位置1203进行填充显示,从而实现对当前观众账号的空间位置推荐。
在一种可能的实施方式中,为了提高空间坐标分配的效率,在当前观众账号首次进入视频播放界面的情况下,终端直接获取服务器为当前观众账号分配的空间坐标,进一步的,为了满足观众对空间坐标的选择,在当前观众账号需要重新进行空间位置选择的情况下,响应于对空间位置选择控件的呼出操作,终端显示空间位置选择控件,并由当前观众账号重新进行空间位置选择。
在一种可能的实施方式中,为了提高观众账号之间的评论互动性,在当前观众账号首次进入视频播放界面的情况下,终端根据与当前观众账号存在社交关系的其他观众账号对应的空间坐标,在其他观众账号对应的空间坐标的相邻位置处,为当前观众账号分配空间坐标。
在一种可能的实施方式中,由于观众可能没有发表评论的需求,仅仅是需要查看其他观众账号所发表的评论,因此为了节约空间坐标资源,在进入视频播放界面的情况下,终端不直接获取服务器为当前观众账号分配的空间坐标,只有在接收到评论发表操作,且当前观众账号未分配空间坐标的情况下,终端才获取服务器为当前观众账号分配的空间坐标。
上述实施例中,通过在视频播放界面中显示空间位置选择控件,向观众提供了空间位置选择的机会,模拟出了真实场景中观众进入场馆观看演出时的位置分配效果,提高了观众观看视频过程中发表评论的参与感和体验感。
请参考图13,其示出了本申请一个示例性实施例提供的视频评论的显示方法的流程图,本实施例以该方法用于图1中的服务器为例进行说明,该方法包括如下步骤:
步骤1301,接收观众账号发表的评论,评论针对视频播放界面中视频播放区域内播放的视频。
在一种可能的实施方式中,在终端接收到视频播放界面中各个观众账号发表的评论后,终端向服务器发送观众账号发表的评论,从而服务器接收各个观众账号发表的评论,其中,该评论针对视频播放界面中视频播放区域内播放的视频。
可选的,服务器除了接收观众账号发表的评论以外,还可以接收观众账号对应的账号信息,以及与各个观众账号具有社交关系的其他观众账号的账号信息。
步骤1302,对观众账号进行空间位置分配,得到账号对应的空间坐标,空间坐标用于表征观众账号在视频对应虚拟观看场景中所处的空间位置。
在一种可能的实施方式中,服务器基于视频播放界面中的视频,构建虚拟观看场景,确定虚拟观看场景中空间坐标的分布情况,其中,空间坐标用于表征观众账号在视频播放界面中的视频对应虚拟观看场景中所处的空间位置。
可选的,服务器可以预先配置有不同空间坐标分布密集程度的虚拟观看场景,或者根据视频内容对虚拟观看场景中的空间坐标分布进行调整,本申请实施例对此不作限定。
在一种可能的实施方式中,服务器对至少一个观众账号进行空间位置分配,得到至少一个观众账号对应的空间坐标,可选的,同一空间坐标可以对应一个观众账号,也可以对应多个观众账号,本申请实施例对此不作限定。
在一种可能的实施方式中,服务器可以根据观众账号之间的社交关系,将具有社交关系的观众账号分配在相邻的空间坐标下。
步骤1303,将评论以及空间坐标发送至各个观众账号,以便观众账号对应的观众终端基于空间坐标确定评论的评论显示属性,并基于评论显示属性在视频播放界面中的视频评论区域中的显示评论,评论显示属性包括评论在视频评论区域中的显示位置和显示效果。
在一种可能的实施方式中,服务器向当前正在播放视频的各个观众账号发送至少一个观众账号发表的评论以及观众账号对应的空间坐标,从而由观众账号对应的观众终端根据空间坐标,确定视频评论区域中评论的评论显示属性,并基于评论显示属性在视频播放界面中的视频评论区域中的显示评论,评论显示属性包括评论在视频评论区域中的显示位置和显示效果。
在一种可能的实施方式中,为了提高评论显示效率,服务器直接基于虚拟观看场景中的空间坐标分布情况,根据视点位置与空间坐标的相对坐标,配置显示属性表,该显示属性表中包含不同相对坐标与评论显示属性之间的对应关系,从而服务器直接向观众终端发送至少一个观众账号发表的评论以及观众账号对应的评论显示属性。
综上所述,本申请实施例中,服务器在接收到账号发表的评论后,为账号分配空间坐标,从而将评论以及观众账号对应的空间坐标发送给各个观众账号对应的观众终端,由观众终端基于空间坐标确定各条评论的评论显示属性,从而在视频评论区域显示各条评论,模拟出了真实观看场景中观众位于不同位置观看表演并发表评论的立体感。
请参考图14,其示出了本申请一个示例性实施例提供的视频评论显示过程中终端和服务器的交互流程图。
步骤1401,终端接收观众账号发表的评论。
在接收到评论发表操作的情况下,终端获取观众账号信息以及观众账号发表的评论,从而向服务器发送观众账号以及观众账号对应的评论。
步骤1402,服务器接收终端发送的观众账号发表的评论。
服务器接收终端发送的观众账号以及观众账号发表的评论。
步骤1403,服务器为观众账号分配空间坐标。
服务器基于虚拟观看场景中的空间位置分布情况,对观众账号进行空间坐标分配。
步骤1404,服务器向终端发送观众账号发表的评论以及观众账号对应的空间坐标。
步骤1405,终端基于空间坐标,确定评论的评论显示属性。
进一步的,终端基于空间坐标,确定各条评论对应的评论显示属性,即确定各条评论的显示位置和显示效果。
步骤1406,终端在视频评论区域显示评论。
终端在视频评论区域中各条评论对应的显示位置,基于显示效果对各条评论进行渲染显示。
需要说明的是,本申请所涉及的信息(包括但不限于用户账号信息、用户个人信息、用户社交关系等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及 信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守国家和地区的相关法律法规和标准。比如,本申请实施例中涉及的账号关联信息即在获得用户授权的情况下获取。
请参考图15,其示出了本申请一个示例性实施例提供的视频评论的显示装置的结构框图,该装置包括:
显示模块1501,用于显示视频播放界面,所述视频播放界面中包括视频播放区域和视频评论区域,所述视频评论区域用于显示对所述视频播放区域中视频的评论;
获取模块1502,用于获取观众账号发表的评论以及所述评论对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
确定模块1503,用于基于所述空间坐标,确定所述评论的评论显示属性,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果;
所述显示模块1501,还用于在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述评论。
可选的,所述确定模块1503,包括:
评论确定单元,用于基于所述虚拟观看场景中虚拟视点的当前视野范围以及所述空间坐标,确定位于所述当前视野范围内的目标评论;
属性确定单元,用于基于所述目标评论对应的所述空间坐标,确定所述目标评论的所述评论显示属性;
所述显示模块1501,用于:
在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述目标评论。
可选的,所述属性确定单元,用于:
确定所述虚拟视点的视点坐标;
基于所述视点坐标以及所述目标评论对应的所述空间坐标,确定所述目标评论的所述评论显示属性。
可选的,所述属性确定单元,用于:
基于所述视点坐标与所述目标评论对应的所述空间坐标的相对位置关系,确定所述目标评论的所述显示位置;
基于所述视点坐标与所述目标评论对应的所述空间坐标的距离,确定所述目标评论的所述显示效果,所述显示效果包括显示尺寸和显示透明度,所述显示尺寸与所述距离呈负相关关系,且所述显示透明度与所述距离呈正相关关系。
可选的,所述属性确定单元,用于:
确定所述视点坐标与所述目标评论对应的所述空间坐标的相对坐标;
基于所述相对坐标,从显示属性表中查找所述目标评论的所述评论显示属性,所述显示属性表中包含不同相对坐标范围与评论显示属性之间的对应关系。
可选的,所述属性确定单元,还用于:
在当前观众账号分配有所述空间坐标的情况下,基于所述当前观众账号对应的所述空间坐标确定所述虚拟视点的所述视点坐标,其中,所述当前观众账号对应的所述空间坐标位于所述虚拟视点的视野范围内;
在所述当前观众账号未分配有所述空间坐标的情况下,在所述虚拟观看场景中随机确定所述虚拟视点的所述视点坐标,或,基于所述虚拟观看场景中的评论密集区域确定所述虚拟视点的所述视点坐标,其中,所述虚拟视点的视野范围与所述评论密集区域之间存在交集。
可选的,所述装置还包括:
切换模块,用于响应于所述视频评论区域内的视野切换操作,切换所述虚拟观看场景中所述虚拟视点的所述当前视野范围。
可选的,所述获取模块1502,用于响应于评论发表操作,获取当前观众账号对应的所述空间坐标;
所述切换模块,用于在所述当前观众账号对应的所述空间坐标位于所述当前视野范围之外的情况下,切换所述虚拟观看场景中所述虚拟视点的所述当前视野范围,其中,所述当前观众账号对应的所述空间坐标位于切换后所述当前视野范围之内。
可选的,所述基于所述虚拟观看场景中虚拟视点的当前视野范围以及所述空间坐标,确定位于所述当前视野范围内的目标评论之后,所述装置还包括:
优先级确定模块,用于在所述目标评论的评论数量大于阈值的情况下,确定所述目标评论的第一显示优先级,所述第一显示优先级与发表所述目标评论的观众账号以及所述目标评论的发表时间相关;
筛选模块,用于按照所述第一显示优先级筛选所述目标评论,得到筛选后的所述目标评论,筛选后的所述目标评论的评论数量小于或等于所述阈值;
所述显示模块1501,用于:
在所述视频评论区域中的所述显示位置显示呈现所述显示效果的筛选后的所述目标评论。
可选的,所述显示模块1501,用于:
在同一显示位置对应一条评论的情况下,在所述评论对应的显示时长内显示所述评论;
在同一显示位置对应有至少两条评论的情况下,确定至少两条所述评论各自对应的第二显示优先级,所述第二显示优先级与发表所述评论的观众账号以及所述评论的发表时间相关;按照所述第二显示优先级以及各条评论各自对应的显示时长,依次显示至少两条所述评论。
可选的,所述确定模块1503,用于显示空间位置选择控件,所述空间位置选择控件用于选择当前观众账号对应的所述空间坐标;响应于对所述空间位置选择控件的触发操作,根据所述触发操作确定所述当前观众账号对应的所述空间坐标;或者,
所述获取模块1502,用于在接收到评论发表操作,且当前观众账号未分配所述空间坐标的情况下,获取服务器为所述当前观众账号分配的所述空间坐标;或者,
所述获取模块1502,还用于在首次进入所述视频播放界面的情况下,获取服务器为当前观众账号分配的所述空间坐标。
请参考图16,其示出了本申请另一个示例性实施例提供的视频评论的显示装置的结构框图,该装置包括:
接收模块1601,用于接收观众账号发表的评论,所述评论针对视频播放界面中视频播放区域内播放的视频;
分配模块1602,用于对所述观众账号进行空间位置分配,得到所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
发送模块1603,用于将所述评论以及所述空间坐标发送至各个所述观众账号,以便所述观众账号对应的观众终端基于所述空间坐标确定所述评论的评论显示属性,并基于所述评论显示属性在所述视频播放界面中的视频评论区域中的显示所述评论,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果。
综上所述,本申请实施例中,终端对视频播放界面中的视频和视频评论进行分区域显示,将视频播放界面分为视频播放区域和视频评论区域,并且为了模拟真实观看场景中观众位于不同位置观看表演的立体感,终端向服务器发送观众账号发表的评论,并由服务器对观众账号进行空间位置分配,从而终端从服务器中获取观众账号发表的评论以及观众账号对应的空间坐标,该空间坐标表征观众账号在视频对应的虚拟观看场景中所处的空间位置,进而终端基于空间坐标,确定评论在视频评论区域的评论显示属性,并基于各条评论对应的显示效果在对应的显示位置显示各条评论,增加了视频评论区域中评论显示的立体感,提高了评论显示效果的多样性。
需要说明的是:上述实施例提供的装置,仅以上述各功能模块的划分进行举例说明,实 际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其实现过程详见方法实施例,这里不再赘述。
请参考图17,其示出了本申请一个示例性实施例提供的终端1700的结构框图。该终端1700可以是便携式移动终端,比如:智能手机、平板电脑、MP3播放器、MP4播放器。终端1700还可能被称为用户设备、便携式终端等其他名称。
通常,终端1700包括有:处理器1701和存储器1702。
处理器1701可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1701可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1701也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(Central Processing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1701可以在集成有图像处理器(Graphics Processing Unit,GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1701还可以包括人工智能(Artificial Intelligence,AI)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1702可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是有形的和非暂态的。存储器1702还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1702中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器1701所执行以实现本申请实施例提供的虚拟对象的控制方法。
本领域技术人员可以理解,图17中示出的结构并不构成对终端1700的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
请参考图18,其示出了本申请一个示例性实施例提供的服务器的结构示意图。该服务器1800可以实现称为上述实施例中的终端或者服务器,具体来讲:所述服务器1800包括中央处理单元(Central Processing Unit,CPU)1801、包括随机存取存储器1802和只读存储器1803的系统存储器1804,以及连接系统存储器1804和中央处理单元1801的系统总线1805。所述服务器1800还包括帮助计算机内的各个器件之间传输信息的基本输入/输出系统(Input/Output,I/O系统)1806,和用于存储操作系统1813、应用程序1814和其他程序模块1815的大容量存储设备1807。
所述基本输入/输出系统1806包括有用于显示信息的显示器1808和用于用户输入信息的诸如鼠标、键盘之类的输入设备1809。其中所述显示器1808和输入设备1809都通过连接到系统总线1805的输入输出控制器1810连接到中央处理单元1801。所述基本输入/输出系统1806还可以包括输入输出控制器1810以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器1810还提供输出到显示屏、打印机或其他类型的输出设备。
所述大容量存储设备1807通过连接到系统总线1805的大容量存储控制器(未示出)连接到中央处理单元1801。所述大容量存储设备1807及其相关联的计算机可读介质为服务器1800提供非易失性存储。也就是说,所述大容量存储设备1807可以包括诸如硬盘或者驱动器之类的计算机可读介质(未示出)。
不失一般性,所述计算机可读介质可以包括计算机存储介质和通信介质。计算机存储介质包括以用于存储诸如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动介质。计算机存储介质包括随机存取记忆体(RAM,Random Access Memory)、只读存储器(ROM,Read Only Memory)、闪存或其他固态存储其技术,只读光盘(Compact Disc Read-Only Memory,CD-ROM)、数字通用光盘(Digital Versatile Disc,DVD)或其他光学存储、磁带盒、磁带、磁盘存储或其他磁性 存储设备。当然,本领域技术人员可知所述计算机存储介质不局限于上述几种。上述的系统存储器1804和大容量存储设备1807可以统称为存储器。
存储器存储有一个或多个程序,一个或多个程序被配置成由一个或多个中央处理单元1801执行,一个或多个程序包含用于实现上述方法的指令,中央处理单元1801执行该一个或多个程序实现上述各个方法实施例提供的方法。
根据本申请的各种实施例,所述服务器1800还可以通过诸如因特网等网络连接到网络上的远程计算机运行。也即服务器1800可以通过连接在所述系统总线1805上的网络接口单元1811连接到网络1812,或者说,也可以使用网络接口单元1811来连接到其他类型的网络或远程计算机系统(未示出)。
本申请实施例还提供一种计算机可读存储介质,该可读存储介质中存储有至少一条指令,至少一条指令由处理器加载并执行以实现上述实施例提供的视频评论的显示方法。
可选地,该计算机可读存储介质可以包括:ROM、RAM、固态硬盘(SSD,Solid State Drives)或光盘等。其中,RAM可以包括电阻式随机存取记忆体(ReRAM,Resistance Random Access Memory)和动态随机存取存储器(DRAM,Dynamic Random Access Memory)。
本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例所述的视频评论的显示方法。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本申请的可选的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (18)

  1. 一种视频评论的显示方法,所述方法由终端执行,所述方法包括:
    显示视频播放界面,所述视频播放界面中包括视频播放区域和视频评论区域,所述视频评论区域用于显示对所述视频播放区域中视频的评论;
    获取观众账号发表的评论以及所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
    基于所述空间坐标,确定所述评论的评论显示属性,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果;
    在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述评论。
  2. 根据权利要求1所述的方法,其中所述基于所述空间坐标,确定所述评论的评论显示属性,包括:
    基于所述虚拟观看场景中虚拟视点的当前视野范围以及所述空间坐标,确定位于所述当前视野范围内的目标评论;
    基于所述目标评论对应的所述空间坐标,确定所述目标评论的所述评论显示属性;
    所述在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述评论,包括:
    在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述目标评论。
  3. 根据权利要求2所述的方法,其中,所述基于所述目标评论对应的所述空间坐标,确定所述目标评论的所述评论显示属性,包括:
    确定所述虚拟视点的视点坐标;
    基于所述视点坐标以及所述目标评论对应的所述空间坐标,确定所述目标评论的所述评论显示属性。
  4. 根据权利要求3所述的方法,其中,所述基于所述视点坐标以及所述目标评论对应的所述空间坐标,确定所述目标评论的所述评论显示属性,包括:
    基于所述视点坐标与所述目标评论对应的所述空间坐标的相对位置关系,确定所述目标评论的所述显示位置;
    基于所述视点坐标与所述目标评论对应的所述空间坐标的距离,确定所述目标评论的所述显示效果,所述显示效果包括显示尺寸和显示透明度,所述显示尺寸与所述距离呈负相关关系,且所述显示透明度与所述距离呈正相关关系。
  5. 根据权利要求3所述的方法,其中,所述基于所述视点坐标以及所述目标评论对应的所述空间坐标,确定所述目标评论的所述评论显示属性,包括:
    确定所述视点坐标与所述目标评论对应的所述空间坐标的相对坐标;
    基于所述相对坐标,从显示属性表中查找所述目标评论的所述评论显示属性,所述显示属性表中包含不同相对坐标范围与评论显示属性之间的对应关系。
  6. 根据权利要求3至5任一所述的方法,其中,所述确定所述虚拟视点的视点坐标,包括:
    在当前观众账号分配有所述空间坐标的情况下,基于所述当前观众账号对应的所述空间坐标确定所述虚拟视点的所述视点坐标,其中,所述当前观众账号对应的所述空间坐标位于所述虚拟视点的视野范围内;
    在所述当前观众账号未分配有所述空间坐标的情况下,在所述虚拟观看场景中随机确定所述虚拟视点的所述视点坐标,或,基于所述虚拟观看场景中的评论密集区域确定所述虚拟视点的所述视点坐标,其中,所述虚拟视点的视野范围与所述评论密集区域之间存在交集。
  7. 根据权利要求2至6任一所述的方法,其中,所述方法还包括:
    响应于所述视频评论区域内的视野切换操作,切换所述虚拟观看场景中所述虚拟视点的所述当前视野范围。
  8. 根据权利要求2至7任一所述的方法,其中,所述方法还包括:
    响应于评论发表操作,获取当前观众账号对应的所述空间坐标;
    在所述当前观众账号对应的所述空间坐标位于所述当前视野范围之外的情况下,切换所述虚拟观看场景中所述虚拟视点的所述当前视野范围,其中,所述当前观众账号对应的所述空间坐标位于切换后所述当前视野范围之内。
  9. 根据权利要求2至8所述的方法,其中,所述基于所述虚拟观看场景中虚拟视点的当前视野范围以及所述空间坐标,确定位于所述当前视野范围内的目标评论之后,所述方法还包括:
    在所述目标评论的评论数量大于阈值的情况下,确定所述目标评论的第一显示优先级,所述第一显示优先级与发表所述目标评论的观众账号以及所述目标评论的发表时间相关;
    按照所述第一显示优先级筛选所述目标评论,得到筛选后的所述目标评论,筛选后的所述目标评论的评论数量小于或等于所述阈值;
    所述在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述目标评论,包括:
    在所述视频评论区域中的所述显示位置显示呈现所述显示效果的筛选后的所述目标评论。
  10. 根据权利要求1至9任一所述的方法,其中,所述在所述视频评论区域中的所述显示位置显示呈现所述显示效果所述评论,包括:
    在同一显示位置对应一条评论的情况下,在所述评论对应的显示时长内显示所述评论;
    在同一显示位置对应有至少两条评论的情况下,确定至少两条所述评论各自对应的第二显示优先级,所述第二显示优先级与发表所述评论的观众账号以及所述评论的发表时间相关;按照所述第二显示优先级以及各条评论各自对应的显示时长,依次显示至少两条所述评论。
  11. 根据权利要求1至10任一所述的方法,其中,所述方法还包括:
    显示空间位置选择控件,所述空间位置选择控件用于选择当前观众账号对应的所述空间坐标;响应于对所述空间位置选择控件的触发操作,根据所述触发操作确定所述当前观众账号对应的所述空间坐标;或者,
    在接收到评论发表操作,且当前观众账号未分配所述空间坐标的情况下,获取服务器为所述当前观众账号分配的所述空间坐标;或者,
    在首次进入所述视频播放界面的情况下,获取服务器为当前观众账号分配的所述空间坐标。
  12. 一种视频评论的显示方法,所述方法由服务器执行,所述方法包括:
    接收观众账号发表的评论,所述评论针对视频播放界面中视频播放区域内播放的视频;
    对所述观众账号进行空间位置分配,得到所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
    将所述评论以及所述空间坐标发送至各个所述观众账号,以便所述观众账号对应的观众终端基于所述空间坐标确定所述评论的评论显示属性,并基于所述评论显示属性在所述视频播放界面中的视频评论区域中的显示所述评论,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果。
  13. 一种视频评论的显示装置,所述装置包括:
    显示模块,用于显示视频播放界面,所述视频播放界面中包括视频播放区域和视频评论区域,所述视频评论区域用于显示对所述视频播放区域中视频的评论;
    获取模块,用于获取观众账号发表的评论以及所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
    确定模块,用于基于所述空间坐标,确定所述评论的评论显示属性,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果;
    所述显示模块,还用于在所述视频评论区域中的所述显示位置显示呈现所述显示效果的所述评论。
  14. 一种视频评论的显示装置,所述装置包括:
    接收模块,用于接收观众账号发表的评论,所述评论针对视频播放界面中视频播放区域内播放的视频;
    分配模块,用于对所述观众账号进行空间位置分配,得到所述观众账号对应的空间坐标,所述空间坐标用于表征所述观众账号在所述视频对应虚拟观看场景中所处的空间位置;
    发送模块,用于将所述评论以及所述空间坐标发送至各个所述观众账号,以便所述观众账号对应的观众终端基于所述空间坐标确定所述评论的评论显示属性,并基于所述评论显示属性在所述视频播放界面中的视频评论区域中的显示所述评论,所述评论显示属性包括所述评论在所述视频评论区域中的显示位置和显示效果。
  15. 一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如权利要求1至11任一所述的视频评论的显示方法。
  16. 一种服务器,所述服务器包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如权利要求12所述的视频评论的显示方法。
  17. 一种计算机可读存储介质,所述可读存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如权利要求1至11任一所述的视频评论的显示方法,或,实现以权利要求12所述的视频评论的显示方法。
  18. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述计算机设备执行如权利要求1至11任一所述的视频评论的显示方法,或,实现以权利要求12所述的视频评论的显示方法。
PCT/CN2023/117334 2022-10-12 2023-09-06 视频评论的显示方法、装置、终端及存储介质 WO2024078209A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211248945.6A CN116996699A (zh) 2022-10-12 2022-10-12 视频评论的显示方法、装置、终端及存储介质
CN202211248945.6 2022-10-12

Publications (1)

Publication Number Publication Date
WO2024078209A1 true WO2024078209A1 (zh) 2024-04-18

Family

ID=88528991

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117334 WO2024078209A1 (zh) 2022-10-12 2023-09-06 视频评论的显示方法、装置、终端及存储介质

Country Status (2)

Country Link
CN (1) CN116996699A (zh)
WO (1) WO2024078209A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185079A (zh) * 2014-09-11 2014-12-03 北京奇艺世纪科技有限公司 用户评论展示、收集方法及装置
CN105916001A (zh) * 2016-05-12 2016-08-31 乐视控股(北京)有限公司 弹幕显示方法和装置
CN106210861A (zh) * 2016-08-23 2016-12-07 上海幻电信息科技有限公司 显示弹幕的方法及系统
CN111901658A (zh) * 2019-05-06 2020-11-06 腾讯科技(深圳)有限公司 评论信息显示方法、装置、终端及存储介质
CN112702643A (zh) * 2019-10-22 2021-04-23 上海哔哩哔哩科技有限公司 弹幕信息显示方法、装置、移动终端
KR20210143507A (ko) * 2020-05-20 2021-11-29 주식회사 카이로직스 다이나믹 비젼 센서(Dynamic Vsion Sensor -DVS)를 활용한 영내 제소자 안전 사고 감지 시스템

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185079A (zh) * 2014-09-11 2014-12-03 北京奇艺世纪科技有限公司 用户评论展示、收集方法及装置
CN105916001A (zh) * 2016-05-12 2016-08-31 乐视控股(北京)有限公司 弹幕显示方法和装置
CN106210861A (zh) * 2016-08-23 2016-12-07 上海幻电信息科技有限公司 显示弹幕的方法及系统
CN111901658A (zh) * 2019-05-06 2020-11-06 腾讯科技(深圳)有限公司 评论信息显示方法、装置、终端及存储介质
CN112702643A (zh) * 2019-10-22 2021-04-23 上海哔哩哔哩科技有限公司 弹幕信息显示方法、装置、移动终端
KR20210143507A (ko) * 2020-05-20 2021-11-29 주식회사 카이로직스 다이나믹 비젼 센서(Dynamic Vsion Sensor -DVS)를 활용한 영내 제소자 안전 사고 감지 시스템

Also Published As

Publication number Publication date
CN116996699A (zh) 2023-11-03

Similar Documents

Publication Publication Date Title
US12083423B2 (en) Video game overlay
US10440407B2 (en) Adaptive control for immersive experience delivery
WO2022087920A1 (zh) 视频播放方法、装置、终端及存储介质
KR102215166B1 (ko) 제공장치, 제공방법 및 컴퓨터 프로그램
US10897637B1 (en) Synchronize and present multiple live content streams
WO2018086468A1 (zh) 播放对象评论信息处理方法及装置
EP3955584B1 (en) Digital media system
US8888592B1 (en) Voice overlay
CN109257611A (zh) 一种视频播放方法、装置、终端设备和服务器
CN106303555A (zh) 一种基于混合现实的直播方法、装置和系统
WO2018000609A1 (zh) 一种虚拟现实系统中分享3d影像的方法和电子设备
US20230285854A1 (en) Live video-based interaction method and apparatus, device and storage medium
CN114245228B (zh) 页面链接投放方法、装置及电子设备
CN108322474B (zh) 基于共享桌面的虚拟现实系统、相关装置及方法
US20170225077A1 (en) Special video generation system for game play situation
US20200104030A1 (en) User interface elements for content selection in 360 video narrative presentations
KR20200069630A (ko) 클라우드 기반 게임 방송 서비스 제공 시스템 및 그 시스템의 동작 방법
WO2024078209A1 (zh) 视频评论的显示方法、装置、终端及存储介质
KR20210056414A (ko) 혼합 현실 환경들에서 오디오-가능 접속된 디바이스들을 제어하기 위한 시스템
US20190012470A1 (en) Systems and methods for determining values of conditions experienced by a user, and using the values of the conditions to determine a value of a user permission to apply to the user
CN113630648A (zh) 多剧情全景视频的播放方法、装置及计算机可读存储介质
CN116596752B (zh) 脸部图像替换方法、装置、设备及存储介质
US11893672B2 (en) Context real avatar audience creation during live video sharing
JP7419529B2 (ja) 遠隔端末のための没入型テレカンファレンス及びテレプレゼンスのインタラクティブオーバーレイ処理
CN115134581A (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: 23876414

Country of ref document: EP

Kind code of ref document: A1