WO2019007281A1 - Method for displaying on-screen comment, and client - Google Patents

Method for displaying on-screen comment, and client Download PDF

Info

Publication number
WO2019007281A1
WO2019007281A1 PCT/CN2018/093667 CN2018093667W WO2019007281A1 WO 2019007281 A1 WO2019007281 A1 WO 2019007281A1 CN 2018093667 W CN2018093667 W CN 2018093667W WO 2019007281 A1 WO2019007281 A1 WO 2019007281A1
Authority
WO
WIPO (PCT)
Prior art keywords
barrage
target
content
video
specified
Prior art date
Application number
PCT/CN2018/093667
Other languages
French (fr)
Chinese (zh)
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 WO2019007281A1 publication Critical patent/WO2019007281A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4756End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for rating content, e.g. scoring a recommended movie
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/635Overlay text, e.g. embedded captions in a TV program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to a barrage display method and a client.
  • the user when loading a video, the user can simultaneously load the bullet information associated with the video, and the bullet information can be published by the previous user while watching the video.
  • the user views the real-time video information, so the barrage information displayed in the live video may be published by the user currently watching the video.
  • the barrage information that most users want to publish may be the same.
  • many users would like to post a bullet message like "hahaha".
  • hahaha a bullet message like "hahaha”.
  • the user wants to publish the barrage information consistent with the barrage information that has appeared in the current interface of the video, the corresponding text can only be input in the barrage input box to complete the barrage information.
  • the publishing process Obviously, when the input content is more complicated, it will be slower to publish the bullet information in this way.
  • the purpose of the embodiment of the present application is to provide a barrage display method and a client, which can improve the speed at which a user can publish barrage information.
  • an embodiment of the present application provides a barrage display method, the method comprising: detecting whether there is a specified action applied to the target barrage when a target barrage currently displayed in the video is selected: The content of the target barrage is identified when the specified action is present; and a copy barrage consistent with the content of the target barrage is displayed in the current interface of the video.
  • an embodiment of the present application further provides a client, where the client includes a processor and a memory, where the memory stores a computer program, and when the computer program is executed by the processor, The following steps: when the target barrage currently displayed in the video is selected, detecting whether there is a specified action applied to the target barrage: when the specified action exists, identifying the content of the target barrage; A copy of the bullet is displayed in the current interface of the video in accordance with the content of the target barrage.
  • the target barrage displayed in the current interface of the video can be selected by the user.
  • the target barrage it is possible to detect whether the user applies a specified action on the target barrage.
  • the specified action may be an action of implementing copying of the content of the target barrage.
  • the client can automatically identify the content of the target barrage.
  • a copy barrage consistent with the text content can be displayed in the current interface of the video, thereby completing the barrage publishing process for the same content.
  • the technical solution provided by the present application does not require the user to input text information in the barrage input box, but can complete the specified action of the target barrage, and can copy and publish the content of the target barrage, thereby improving the user's publication of the bullet.
  • the speed of the curtain does not require the user to input text information in the barrage input box, but can complete the specified action of the target barrage, and can copy and publish the content of the target barrage, thereby improving the user's publication of the bullet. The speed of the curtain.
  • FIG. 1 is a flowchart of a method for displaying a barrage in an embodiment of the present application
  • FIG. 2 is a first schematic diagram of an operation of a target bullet screen in an embodiment of the present application
  • FIG. 3( a ) is a first schematic diagram of a target bullet screen and a barrage transmission area in an embodiment of the present application
  • FIG. 3(b) is a second schematic diagram of a target bullet curtain and a barrage transmission area in an embodiment of the present application
  • 3(c) is a third schematic diagram of a target bullet curtain and a barrage transmission area in the embodiment of the present application.
  • FIG. 4 is a second schematic diagram of operation of a target bullet screen in an embodiment of the present application.
  • FIG. 5 is a third schematic diagram of the operation of the target bullet screen in the embodiment of the present application.
  • FIG. 6 is a schematic diagram of transmitting a copy bomb in the embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a client in an embodiment of the present application.
  • the present application provides a barrage display method that can be applied to a system architecture of a client and a server.
  • the server may refer to a background server of a video playing website or a video live broadcast platform.
  • the video playing website may be, for example, iQiyi, Sohu video, Acfun, etc.; the video live platform may be, for example, a betta, a tiger tooth, a battle flag, or the like.
  • the number of the servers is not specifically limited in the present embodiment.
  • the server may be a server, or may be several servers, or a server cluster formed by several servers.
  • the client may be an electronic device having a network communication function, a data processing function, and an image display function.
  • the electronic device may be, for example, a desktop computer, a tablet computer, a notebook computer, a smart phone, a digital assistant, a smart wearable device, a shopping guide terminal, a smart television, or the like.
  • the client may also be software running in the above electronic device.
  • the software may be software with a video production function or a video playback function.
  • the software may be an application (Application, APP) installed on a smartphone.
  • the barrage display method provided by the present application may include the following steps.
  • the execution body of the following steps may be the client described above.
  • the barrage displayed in the video is different from the barrage in the prior art.
  • the barrage data and the video data are usually integrated into the same video stream data after the time axis calibration.
  • the barrage can be displayed as part of the video on the current interface of the video. Since the barrage data is integrated with the video data to form a new video stream, the barrage displayed in the current interface of the video is usually not selectable.
  • the barrage data and the video data may be separate and the two are not integrated.
  • a corresponding container is usually built in the page according to the size required for the video, and the container is usually invisible. After the container is created, the visual content of the video can be populated in the container. In this way, the user can view the corresponding video on the page.
  • a floating window may be established in the container while the container is being built, and the barrage content may be displayed in the established floating window.
  • the floating window can be considered as another container nested within the container, except that the properties of the floating window can be set to be above the container. In this way, the video content displayed in the container does not obscure the content of the barrage displayed in the floating window. In this way, the barrage in the floating window can be selected by the user without affecting the video content being played.
  • the manner in which the user selects the barrage may be different depending on the form of the client. For example, when the client is an electronic device with a touch screen, the user may select the barrage by pressing the barrage with a finger. For another example, when the client is an electronic device with an external input device such as a mouse, a keyboard, a stylus, or the like, the user selects the barrage by selecting the barrage through an external input device. For example, you can click on one of the barricades with your mouse or stylus, or you can select one of the barricades by using the arrow keys on the keyboard.
  • the target barrage of the current interface of the video is taken as an example.
  • the target barrage may be a barrage where the user wants to copy the content.
  • the target barrage can be fixed at the selected position.
  • the video and the remaining unselected barrage can be played normally.
  • the client can detect whether there is a subsequent specified action applied to the target bullet.
  • the specified action may have various forms. Specifically, referring to FIG. 2, in an embodiment of the present application, when the target barrage is selected, a barrage transmission area may be displayed at a specified position in the current interface of the video.
  • the barrage transmission area may be a predefined shape. For example, in FIG. 2, the barrage transmission area may be a rectangle.
  • a text for prompting the user to perform an operation may be displayed in the barrage transmission area. For example, in FIG. 2, "the drag of the bullet to be copied to this" may be displayed in the barrage transmission area.
  • the specified action applied to the target bullet may be to drag the target barrage from the selected position to the position of the barrage sending area such that the target barrage is located at the barrage Within the transmitting area; releasing the target barrage when the target barrage is located within the barrage transmitting area.
  • the user can touch a barrage in the current interface of the video by a finger, and at this time, the barrage that is touched stops moving.
  • a rectangular area with the words "Drag the bullet to be copied to this" can appear. In this way, the user can drag the barrage with a finger, and when the barrage is located in the rectangular area, the user can leave the finger off the touch screen.
  • the target bullet curtain may be included in the barrage transmission area.
  • the target barrage is located in the barrage sending area, which may mean that the entire content of the target barrage is located in the barrage In the transmission area, as shown in Figure 3 (a).
  • the target barrage may be located in the barrage sending area to refer to the target barrage.
  • the ratio between the intersection with the barrage transmission area in the barrage transmission area is greater than or equal to a specified threshold. Specifically, as shown in FIG.
  • the intersection between the target bullet curtain and the barrage transmission area may be a shaded area.
  • the specified threshold may be a value that is flexibly changed according to actual conditions, and the specified threshold may be used as a reference value for determining whether the target bullet is in the barrage transmission area.
  • the target barrage is located in the barrage sending area, and may refer to content in the target barrage that is greater than or equal to a specified ratio. Located in the barrage transmission area. Specifically, as shown in FIG.
  • the portion marked with a shadow is a portion of the target barrage located in the barrage transmission area. Then, when the proportion of the shaded portion in the target barrage is greater than or equal to a specified ratio, the target bullet is considered to be located in the barrage transmission area.
  • the specified ratio may also be a value that is flexibly changed according to actual conditions, and the specified ratio may also be used as a reference value for determining whether the target bullet is in the barrage transmission area.
  • the user may also adjust the size of the barrage transmission area according to his/her own wishes. Specifically, the user can drag the border of the barrage sending area by means of a finger, a mouse, a keyboard, or the like, thereby changing the size of the border of the barrage sending area.
  • the user can input the size adjustment instruction of the client when the user performs a drag operation on the barrage sending area. In this way, after receiving the size adjustment instruction, the client can adjust the size of the barrage sending area according to the size adjustment instruction.
  • the user when the length of the target barrette selected by the user is greater than the length of the barrage sending area, the user may excerpt the target barrage through the barrage sending area, and the section is The selected barrage content is used as a barrage to be published. Specifically, the user can release the target barrage after dragging the target barrage and adjusting the target barrage to a suitable position.
  • the content of the barrage in the target barrage in the transmission area of the barrage can be used as the barrage content that the user wants to publish.
  • the client may send a request to the server to send a barrage request to the barrage content.
  • the user interested content can be selected from the target barrage.
  • the specified action applied to the target bullet may be to drag the target barrage from a position where the target barrage is selected, such that the target barrage is The distance moved in the current interface reaches a specified distance; after the distance the target barrage moves reaches the specified distance, the target barrage is released.
  • whether or not a specified action is applied to the target bullet can be determined by determining whether the target bullet is dragged by a specified distance. Specifically, referring to FIG. 4, also taking a smart phone with a touch screen as an example, the user can drag the target barrage by a finger and move the target barrage in the current interface of the video.
  • the upper limit distance that can be moved can be set in advance.
  • the target barrage reaches the limit of movement and cannot move in a direction away from the selected position.
  • the upper limit distance will typically be greater than or equal to the specified distance.
  • the basis for determining whether to apply the specified action on the target bullet may be whether the distance that the target bullet is moved by the drag is greater than or equal to the specified distance. When it is greater than or equal to the specified distance, it is considered that a specified action is applied to the target bullet.
  • the target barrage can return to the selected position and move according to the preset path from the selected position.
  • the preset path may be a trajectory that is moved before the target barrage is selected. Then when the target barrage returns to the selected position, it can continue to move along the previous trajectory. It should be noted that, if the distance moved by the target barrage reaches the upper limit distance, even if the user does not release the target barrage, the target barrage can automatically return to the selected position, and Continue to move according to the preset path.
  • the specified distance and the upper limit distance may be values that are flexibly changed according to actual conditions, as long as the upper limit distance is greater than or equal to the specified distance.
  • the pressing force can be measured by a pressure sensitive sensor.
  • the pressure sensitive sensor can be integrated on the touch screen or integrated in an external input device.
  • the specified pressure threshold may be a value that is flexibly changed according to actual conditions.
  • an additional judging step when determining whether the specified action is performed by pressing the strength, an additional judging step may be added. Specifically, first, a pressing force applied to the target bullet can be detected, and when the pressing force reaches a specified pressure threshold, a selection label associated with the target bullet is displayed in a current interface of the video.
  • the selection tag can be used to prompt the user to copy the content of the target barrage. Referring to FIG. 5, when the pressing force applied on the target bullet reaches the specified pressure threshold, a selection label with the word "copy" may be ejected on the right side of the target bullet.
  • the selection tag when the selection tag is triggered, it can be considered that a specified action is imposed on the target barrage.
  • the manner in which the selection tag is triggered may be, for example, that the selection tag is clicked.
  • the user when it is determined that the specified action exists, the user can be considered to have performed the operation of copying the target barrage. At this time, the client can recognize the content of the target barrage.
  • the client can recognize the text content in the target barrage by means of OCR (Optical Character Recognition). Specifically, the client can determine the shape of the font included in the target bullet by detecting the light and dark light in the target bullet. After the shape of the font is recognized, the shape of the font is compared with each shape in the font library, so that a matching font in the font library can be obtained. Thus, the obtained fonts are combined in the order of recognition, and can be used as the content of the identified target barrage. Specifically, in conjunction with the embodiment set forth in step S1, the timing of identifying the content of the target barrage may be as follows.
  • the client when the target bullet is dragged into the barrage sending area, and the target barrage is released, the client can identify the target barrage content.
  • the client when the distance of the target bullet is dragged is greater than or equal to a specified distance, and the target barrage is released, the client can identify the content in the target barrage. .
  • the client can identify the content in the target barrage when the pressing force applied to the target barrage reaches a specified pressure threshold.
  • a selection label may be popped up beside the target bullet.
  • the client can identify the content in the target barrage.
  • the client may detect whether a specified action applied to the target barrage occurs within a specified duration. If the specified action applied to the target barrage is detected within the specified length of time, then the subsequent process of identifying the target barrage content can be continued. However, if a specified action applied to the target barrage is not detected within a specified length of time, the target barrage can automatically cancel the selected state, thereby following the preset path from the selected position. Move.
  • the preset path may be a running track of the target barrage before being selected. In this way, after the target barrage is deselected, it can continue to move along the previous trajectory.
  • the target barr is translated from the right side of the video to the left side, and when selected by the user, the movement can be stopped. If the client does not detect a specified action applied to the target bullet within a specified length of time, then the target barrage can continue to translate in a direction from the right to the left.
  • a copy barrage consistent with the content of the target barrage may be displayed in the current interface of the video.
  • a barrage transmission request including the identified content may be sent to the server.
  • the barrage sending request may be a character string written according to a preset rule.
  • the preset rule may be a network communication protocol that is followed between the client and the server.
  • the barrage request may be a string written in accordance with the HTTP protocol.
  • the preset rule may define each component in the barrage transmission request and the order of arrangement between the components.
  • the barrage sending request may include a request identifier field, a source IP address field, and a destination IP address field.
  • the request identification field may populate the identified content.
  • the source IP address field may fill in an IP address of the client, and the target IP address field may fill in an IP address of the server. In this way, the barrage request can be sent from the client to the server.
  • the identified content may be extracted therefrom.
  • the barrage transmission request may further include time information corresponding to the identified content.
  • the time information may be a system time when the client sends the barrage sending request, or may be a system time when the server receives the barrage sending request, or may be a system time when the user performs the specified action, and It may be that the user performs the video playing time corresponding to the specified action.
  • the time information can be used to determine when to display the copying barrage in the client.
  • the server may construct the barrage information based on the identified content.
  • the body field of the barrage information may fill the identified content, and the barrage information may further include a header file that can be normally transmitted in the network and can be recognized by the client.
  • the server can feed back the barrage information to the client.
  • the client may receive the barrage information that the server sends a request feedback to the barrage, wherein the barrage information includes the identified content.
  • the server may further store the barrage information locally, and associate the barrage information with the video. In this way, when another client requests to load the video, the server can provide the barrage information to the client, so that the user using the client can view the previously copied copy barrage.
  • the client may extract the identified content from the barrage information, and display the identified content in a current interface of the video, so that A copy barrage consistent with the content of the target barrage is displayed in the current interface.
  • the client may directly play the identified content as a copy barrage locally. In this way, the user can immediately see the reproduced barrage on the current interface of the video. However, because there is no interaction with the server, other users who are watching the video at this time cannot see this copy barrage.
  • the client may send the identified content to a server to be in the server. Make a backup.
  • the server can associate the barrage information with the video.
  • the server can provide the barrage information to the client, so that other users can view the previously copied copy barrage.
  • the client can automatically interact with the server to implement the process of displaying the copy barrage.
  • This process does not require the user to participate, greatly simplifying the process of the user publishing the barrage, thereby increasing the speed at which the user publishes the barrage.
  • the identified content may be filled into the barrage input box.
  • the send button associated with the barrage input box is triggered, the identified content can be displayed in the current interface of the video. That is to say, after the user confirms that the content in the barrage input box is correct, the "send" button next to the barrage input box can be clicked, so that the copy barrage can be published.
  • the present application further provides a client, where the client includes a processor 100 and a memory 200, wherein the memory 200 stores a computer program, and when the computer program is executed by the processor 100, , you can achieve the following steps.
  • the processor 100 can be implemented in any suitable manner.
  • a processor can employ, for example, a microprocessor or processor and a computer readable medium, logic gate, switch, or application-specific integrated circuit (such as software or firmware) that can be executed by the (micro)processor.
  • ASIC Application Specific Integrated Circuit
  • programmable logic controller programmable logic controller and embedded microcontroller form, etc. This application is not limited.
  • the memory 200 may be a memory device for storing information.
  • a device capable of storing binary data may be a memory; in an integrated circuit, a circuit having a storage function without a physical form may also be a memory such as a RAM, a FIFO, etc.; in the system, having a physical form of storage
  • the device can also be called a memory, such as a memory stick, a TF card, or the like.
  • the target barrage displayed in the current interface of the video can be selected by the user.
  • the target barrage it is possible to detect whether the user applies a specified action on the target barrage.
  • the specified action may be an action of implementing copying of the content of the target barrage.
  • the client can automatically identify the content of the target barrage.
  • a copy barrage consistent with the text content can be displayed in the current interface of the video, thereby completing the barrage publishing process for the same content.
  • the technical solution provided by the present application does not require the user to input text information in the barrage input box, but can complete the specified action of the target barrage, and can copy and publish the content of the target barrage, thereby improving the user's publication of the bullet.
  • the speed of the curtain does not require the user to input text information in the barrage input box, but can complete the specified action of the target barrage, and can copy and publish the content of the target barrage, thereby improving the user's publication of the bullet. The speed of the curtain.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk.
  • An optical disk, etc. includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
  • the application can be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.
  • a client can be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component.
  • a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed in embodiments of the present application are a method for displaying an on-screen comment, and a client. The method comprises: when a target on-screen comment currently displayed in a video is selected, detecting whether there is a specified action applied on the target on-screen comment; if there is a specified action, identifying the content of the target on-screen comment; and displaying, in the current interface of the video, a copy on-screen comment having consistent content with the target on-screen comment. The technical solution provided by the present application can improve the speed of issuing on-screen comment information by a user.

Description

一种弹幕展示方法及客户端Barrage display method and client
本申请要求于2017年07月04日递交的申请号为201710536670.9、发明名称为“一种弹幕展示方法及客户端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Japanese Patent Application Serial No. JP-A No. No. No. No. No. No. No. No. No. No. No. No.
技术领域Technical field
本申请涉及互联网技术领域,特别涉及一种弹幕展示方法及客户端。The present application relates to the field of Internet technologies, and in particular, to a barrage display method and a client.
背景技术Background technique
随着弹幕(barrage)技术的兴起,用户在观看视频时,通常可以发表针对视频内容的评论或者自身的感想,这些评论或者感想可以直接显示于视频的播放界面中。当前,这些在视频播放界面中出现的由用户发表的文字信息便可以作为弹幕信息。With the rise of barrage technology, users can usually post comments or their own feelings about video content when watching videos. These comments or impressions can be directly displayed in the video playback interface. Currently, these text messages published by the user appearing in the video playing interface can be used as the barrage information.
对于视频播放网站中的点播视频而言,用户在加载某个视频时,可以同时加载该视频关联的弹幕信息,这些弹幕信息可以是之前的用户在观看视频时发表的。此外,对于视频直播平台中的直播视频而言,用户观看的是实时的视频信息,因此在直播视频中展示的弹幕信息可以是当前正在观看视频的用户发表的。For the on-demand video in the video playing website, when loading a video, the user can simultaneously load the bullet information associated with the video, and the bullet information can be published by the previous user while watching the video. In addition, for the live video in the live video platform, the user views the real-time video information, so the barrage information displayed in the live video may be published by the user currently watching the video.
在实际应用场景中,当视频中出现能够引发大家共鸣的内容时,大部分用户想要发表的弹幕信息可能是相同的。例如,在视频中出现比较风趣的情节时,很多用户都会想发表“哈哈哈”这样的弹幕信息。又例如,在音乐视频播放到副歌时,很多用户都会引发共鸣,想发表副歌的关键歌词。在现有技术中,如果用户想要发表与视频的当前界面中已经出现的弹幕信息相一致的弹幕信息时,往往只能在弹幕输入框中输入相应的文字,才能完成弹幕信息的发表过程。很显然,当输入的内容比较复杂时,按照这种方式发表弹幕信息的速度会比较慢。In the actual application scenario, when there is content in the video that can resonate with everyone, the barrage information that most users want to publish may be the same. For example, when there is a more interesting plot in the video, many users would like to post a bullet message like "hahaha". For example, when a music video is played to a chorus, many users will resonate and want to publish the key lyrics of the chorus. In the prior art, if the user wants to publish the barrage information consistent with the barrage information that has appeared in the current interface of the video, the corresponding text can only be input in the barrage input box to complete the barrage information. The publishing process. Obviously, when the input content is more complicated, it will be slower to publish the bullet information in this way.
发明内容Summary of the invention
本申请实施方式的目的是提供一种弹幕展示方法及客户端,能够提高用户发表弹幕信息的速度。The purpose of the embodiment of the present application is to provide a barrage display method and a client, which can improve the speed at which a user can publish barrage information.
为实现上述目的,本申请实施方式提供一种弹幕展示方法,所述方法包括:当视频中当前展示的目标弹幕被选中时,检测是否存在施加于所述目标弹幕上的指定动作:当存在所述指定动作时,识别所述目标弹幕的内容;在所述视频的当前界面中展示与所述 目标弹幕的内容相一致的复制弹幕。To achieve the above objective, an embodiment of the present application provides a barrage display method, the method comprising: detecting whether there is a specified action applied to the target barrage when a target barrage currently displayed in the video is selected: The content of the target barrage is identified when the specified action is present; and a copy barrage consistent with the content of the target barrage is displayed in the current interface of the video.
为实现上述目的,本申请实施方式还提供一种客户端,所述客户端包括处理器和存储器,其中,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,实现以下步骤:当视频中当前展示的目标弹幕被选中时,检测是否存在施加于所述目标弹幕上的指定动作:当存在所述指定动作时,识别所述目标弹幕的内容;在所述视频的当前界面中展示与所述目标弹幕的内容相一致的复制弹幕。To achieve the above objective, an embodiment of the present application further provides a client, where the client includes a processor and a memory, where the memory stores a computer program, and when the computer program is executed by the processor, The following steps: when the target barrage currently displayed in the video is selected, detecting whether there is a specified action applied to the target barrage: when the specified action exists, identifying the content of the target barrage; A copy of the bullet is displayed in the current interface of the video in accordance with the content of the target barrage.
由上可见,在本申请中,视频当前界面中展示的目标弹幕可以被用户选中。当该目标弹幕被选中后,可以检测用户是否在该目标弹幕上施加指定动作。该指定动作可以是实现对所述目标弹幕的内容进行复制的动作。当检测到所述指定动作时,客户端可以自动对所述目标弹幕的内容进行识别。在识别出相应的文字内容时,便可以在所述视频的当前界面中展示与该文字内容相一致的复制弹幕,从而完成针对相同内容的弹幕发表过程。由此可见,本申请提供的技术方案,无需用户在弹幕输入框中输入文字信息,而是通过对目标弹幕完成指定动作,便可以复制并发表目标弹幕的内容,提高了用户发表弹幕的速度。It can be seen from the above that in the present application, the target barrage displayed in the current interface of the video can be selected by the user. When the target barrage is selected, it is possible to detect whether the user applies a specified action on the target barrage. The specified action may be an action of implementing copying of the content of the target barrage. When the specified action is detected, the client can automatically identify the content of the target barrage. When the corresponding text content is recognized, a copy barrage consistent with the text content can be displayed in the current interface of the video, thereby completing the barrage publishing process for the same content. It can be seen that the technical solution provided by the present application does not require the user to input text information in the barrage input box, but can complete the specified action of the target barrage, and can copy and publish the content of the target barrage, thereby improving the user's publication of the bullet. The speed of the curtain.
附图说明DRAWINGS
为了更清楚地说明本申请实施方式或现有技术中的技术方案,下面将对实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a few embodiments described in the present application, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本申请实施方式中弹幕展示方法的流程图;1 is a flowchart of a method for displaying a barrage in an embodiment of the present application;
图2为本申请实施方式中针对目标弹幕进行操作的第一示意图;2 is a first schematic diagram of an operation of a target bullet screen in an embodiment of the present application;
图3(a)为本申请实施方式中目标弹幕和弹幕发送区域之间的第一示意图;FIG. 3( a ) is a first schematic diagram of a target bullet screen and a barrage transmission area in an embodiment of the present application;
图3(b)为本申请实施方式中目标弹幕和弹幕发送区域之间的第二示意图FIG. 3(b) is a second schematic diagram of a target bullet curtain and a barrage transmission area in an embodiment of the present application;
图3(c)为本申请实施方式中目标弹幕和弹幕发送区域之间的第三示意图;3(c) is a third schematic diagram of a target bullet curtain and a barrage transmission area in the embodiment of the present application;
图4为本申请实施方式中针对目标弹幕进行操作的第二示意图;4 is a second schematic diagram of operation of a target bullet screen in an embodiment of the present application;
图5为本申请实施方式中针对目标弹幕进行操作的第三示意图;FIG. 5 is a third schematic diagram of the operation of the target bullet screen in the embodiment of the present application; FIG.
图6为本申请实施方式中发送复制弹幕的示意图;6 is a schematic diagram of transmitting a copy bomb in the embodiment of the present application;
图7为本申请实施方式中的客户端的结构示意图。FIG. 7 is a schematic structural diagram of a client in an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施方式中的附图,对本申请实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式仅仅是本申请一部分实施方式,而不是全部的实施方式。基于本申请中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. The embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
本申请提供一种弹幕展示方法,所述方法可以应用于客户端和服务器的系统架构中。其中,所述服务器可以指视频播放网站或者视频直播平台的后台服务器。所述视频播放网站例如可以是爱奇艺、搜狐视频、Acfun等;所述视频直播平台例如可以是斗鱼、虎牙、战旗等。在本实施方式中并不具体限定所述服务器的数量。所述服务器可以为一个服务器,还可以为几个服务器,或者,若干服务器形成的服务器集群。The present application provides a barrage display method that can be applied to a system architecture of a client and a server. The server may refer to a background server of a video playing website or a video live broadcast platform. The video playing website may be, for example, iQiyi, Sohu video, Acfun, etc.; the video live platform may be, for example, a betta, a tiger tooth, a battle flag, or the like. The number of the servers is not specifically limited in the present embodiment. The server may be a server, or may be several servers, or a server cluster formed by several servers.
所述客户端可以是具备网络通信功能、数据处理功能以及图像显示功能的电子设备。所述电子设备例如可以是台式电脑、平板电脑、笔记本电脑、智能手机、数字助理、智能可穿戴设备、导购终端、智能电视机等。当然,所述客户端还可以是在上述电子设备中运行的软件。所述软件可以是具备视频制作功能或者视频播放功能的软件。例如,所述软件可以是安装于智能手机上的应用(Application,APP)。The client may be an electronic device having a network communication function, a data processing function, and an image display function. The electronic device may be, for example, a desktop computer, a tablet computer, a notebook computer, a smart phone, a digital assistant, a smart wearable device, a shopping guide terminal, a smart television, or the like. Of course, the client may also be software running in the above electronic device. The software may be software with a video production function or a video playback function. For example, the software may be an application (Application, APP) installed on a smartphone.
请参阅图1,本申请提供的弹幕展示方法可以包括以下步骤。下述步骤的执行主体可以是上述的客户端。Referring to FIG. 1 , the barrage display method provided by the present application may include the following steps. The execution body of the following steps may be the client described above.
S1:当视频中当前展示的目标弹幕被选中时,检测是否存在施加于所述目标弹幕上的指定动作。S1: When the target barrage currently displayed in the video is selected, it is detected whether there is a specified action applied to the target barrage.
在本实施方式中,在视频中展示的弹幕与现有技术中的弹幕有所区别。在现有技术中,弹幕数据与视频数据通常会在时间轴校准之后,整合为同一个视频流数据。在该视频流数据播放时,弹幕可以作为视频的一部分,显示于视频的当前界面上。由于弹幕数据与视频数据整合在一起形成了新的视频流,因此在视频的当前界面中显示的弹幕通常是不可以被选中的。In the present embodiment, the barrage displayed in the video is different from the barrage in the prior art. In the prior art, the barrage data and the video data are usually integrated into the same video stream data after the time axis calibration. When the video stream data is played, the barrage can be displayed as part of the video on the current interface of the video. Since the barrage data is integrated with the video data to form a new video stream, the barrage displayed in the current interface of the video is usually not selectable.
然而,在本实施方式中,弹幕数据和视频数据可以是分离的,并不将这两者进行整合。具体地,在加载视频时,通常会根据视频所需占用的尺寸,在页面中构建相应的容器(container),该容器通常是不可见的。在建立了该容器之后,可以在该容器中填充所述视频的可视化内容。这样,用户便可以在页面中查看到对应的视频。However, in the present embodiment, the barrage data and the video data may be separate and the two are not integrated. Specifically, when loading a video, a corresponding container is usually built in the page according to the size required for the video, and the container is usually invisible. After the container is created, the visual content of the video can be populated in the container. In this way, the user can view the corresponding video on the page.
在本实施方式中,可以在建立上述容器的同时,在所述容器内建立浮窗,并在建立 的所述浮窗中显示弹幕内容。具体地,所述浮窗可以视为在所述容器中嵌套的另一个容器,只不过该浮窗的属性可以设置为处于所述容器的上一层。这样,所述容器中展示的视频内容便不会对该浮窗中显示的弹幕内容构成遮挡。这样,处于所述浮窗内的弹幕便可以被用户选中,同时也不会影响正在播放的视频内容。In the present embodiment, a floating window may be established in the container while the container is being built, and the barrage content may be displayed in the established floating window. In particular, the floating window can be considered as another container nested within the container, except that the properties of the floating window can be set to be above the container. In this way, the video content displayed in the container does not obscure the content of the barrage displayed in the floating window. In this way, the barrage in the floating window can be selected by the user without affecting the video content being played.
在本实施方式中,根据客户端形式的不同,用户选中弹幕的方式也可以不同。例如,当所述客户端为带有触摸屏的电子设备时,用户选中弹幕的方式可以是用手指按住弹幕。又例如,当所述客户端为带有鼠标、键盘、触控笔等外部输入设备的电子设备时,用户选中弹幕的方式可以是通过外部输入设备选中弹幕。例如,可以用鼠标或者触控笔点击其中的一个弹幕,还可以通过键盘的方向键选择其中的一个弹幕。In this embodiment, the manner in which the user selects the barrage may be different depending on the form of the client. For example, when the client is an electronic device with a touch screen, the user may select the barrage by pressing the barrage with a finger. For another example, when the client is an electronic device with an external input device such as a mouse, a keyboard, a stylus, or the like, the user selects the barrage by selecting the barrage through an external input device. For example, you can click on one of the barricades with your mouse or stylus, or you can select one of the barricades by using the arrow keys on the keyboard.
在本实施方式中,以所述视频的当前界面中的任意一个目标弹幕为例进行阐述,所述目标弹幕可以是用户想要复制其内容的弹幕。当该目标弹幕被用户选中时,所述目标弹幕可以固定于被选中时的位置处。所述视频以及其余未被选中的弹幕可以正常播放。此时,客户端可以检测后续是否存在施加于所述目标弹幕上的指定动作。In the embodiment, the target barrage of the current interface of the video is taken as an example. The target barrage may be a barrage where the user wants to copy the content. When the target barrage is selected by the user, the target barrage can be fixed at the selected position. The video and the remaining unselected barrage can be played normally. At this time, the client can detect whether there is a subsequent specified action applied to the target bullet.
在本实施方式中,所述指定动作可以具备多种形式。具体地,请参阅图2,在本申请一个实施方式中,在所述目标弹幕被选中时,在所述视频的当前界面中的指定位置处可以显示有弹幕发送区域。所述弹幕发送区域可以是预先定义的形状。例如在图2中,所述弹幕发送区域可以是矩形。在本实施方式中,所述弹幕发送区域中还可以显示用于提示用户进行操作的文字。例如,在图2中,所述弹幕发送区域中可以显示“将待复制的弹幕拖动至此”。这样,施加于所述目标弹幕上的指定动作可以是将所述目标弹幕从被选中的位置向所述弹幕发送区域的位置拖拽,以使得所述目标弹幕位于所述弹幕发送区域内;当所述目标弹幕位于所述弹幕发送区域内时,释放所述目标弹幕。以带有触摸屏的智能手机为例,用户可以通过手指触碰视频的当前界面中的一个弹幕,此时,被触碰的该弹幕便停止移动。同时,在视频的当前界面的下方,可以出现带有“将待复制的弹幕拖动至此”字样的矩形区域。这样,用户便可以用手指拖动该弹幕,当该弹幕位于上述矩形区域内时,用户可以将手指离开触摸屏。In the present embodiment, the specified action may have various forms. Specifically, referring to FIG. 2, in an embodiment of the present application, when the target barrage is selected, a barrage transmission area may be displayed at a specified position in the current interface of the video. The barrage transmission area may be a predefined shape. For example, in FIG. 2, the barrage transmission area may be a rectangle. In this embodiment, a text for prompting the user to perform an operation may be displayed in the barrage transmission area. For example, in FIG. 2, "the drag of the bullet to be copied to this" may be displayed in the barrage transmission area. Thus, the specified action applied to the target bullet may be to drag the target barrage from the selected position to the position of the barrage sending area such that the target barrage is located at the barrage Within the transmitting area; releasing the target barrage when the target barrage is located within the barrage transmitting area. Taking a smartphone with a touch screen as an example, the user can touch a barrage in the current interface of the video by a finger, and at this time, the barrage that is touched stops moving. At the same time, below the current interface of the video, a rectangular area with the words "Drag the bullet to be copied to this" can appear. In this way, the user can drag the barrage with a finger, and when the barrage is located in the rectangular area, the user can leave the finger off the touch screen.
在本实施方式中,所述目标弹幕位于所述弹幕发送区域内可以包括多种情况。具体地,当所述目标弹幕所占的区域比所述弹幕发送区域小时,所述目标弹幕位于所述弹幕发送区域内可以指所述目标弹幕的全部内容位于所述弹幕发送区域内,具体如图3(a)所示。此外,当所述目标弹幕中包含的文字数量较多,所占的区域比所述弹幕发送区域大时,所述目标弹幕位于所述弹幕发送区域内可以指所述目标弹幕与所述弹幕发送区域 之间的交集在所述弹幕发送区域内所占的比例大于或者等于指定阈值。具体地,如图3(b)所示,目标弹幕与弹幕发送区域之间的交集可以是阴影区域。当该阴影区域在所述弹幕发送区域内所占的比例大于或者等于70%时,便可以认为所述目标弹幕处于所述弹幕发送区域内。所述指定阈值可以是根据实际情况灵活变动的一个数值,该指定阈值可以作为判断目标弹幕是否处于弹幕发送区域内的基准值。此外,当所述目标弹幕所占的区域与所述弹幕发送区域相当时,所述目标弹幕位于所述弹幕发送区域内可以指所述目标弹幕中大于或者等于指定比例的内容位于所述弹幕发送区域内。具体地,如图3(c)所示,标注阴影的部分是所述目标弹幕位于所述弹幕发送区域内的部分。那么当该阴影部分在所述目标弹幕中所占的比例大于或者等于指定比例时,便认为所述目标弹幕位于所述弹幕发送区域内。所述指定比例也可以是根据实际情况灵活变动的一个数值,该指定比例同样可以作为判断目标弹幕是否处于弹幕发送区域内的基准值。In this embodiment, the target bullet curtain may be included in the barrage transmission area. Specifically, when the area occupied by the target barrage is smaller than the barrage sending area, the target barrage is located in the barrage sending area, which may mean that the entire content of the target barrage is located in the barrage In the transmission area, as shown in Figure 3 (a). In addition, when the number of characters included in the target barrage is large, and the occupied area is larger than the barrage sending area, the target barrage may be located in the barrage sending area to refer to the target barrage. The ratio between the intersection with the barrage transmission area in the barrage transmission area is greater than or equal to a specified threshold. Specifically, as shown in FIG. 3(b), the intersection between the target bullet curtain and the barrage transmission area may be a shaded area. When the proportion of the shadow area in the barrage transmission area is greater than or equal to 70%, the target barrage can be considered to be in the barrage transmission area. The specified threshold may be a value that is flexibly changed according to actual conditions, and the specified threshold may be used as a reference value for determining whether the target bullet is in the barrage transmission area. In addition, when the area occupied by the target barrage is equivalent to the barrage sending area, the target barrage is located in the barrage sending area, and may refer to content in the target barrage that is greater than or equal to a specified ratio. Located in the barrage transmission area. Specifically, as shown in FIG. 3(c), the portion marked with a shadow is a portion of the target barrage located in the barrage transmission area. Then, when the proportion of the shaded portion in the target barrage is greater than or equal to a specified ratio, the target bullet is considered to be located in the barrage transmission area. The specified ratio may also be a value that is flexibly changed according to actual conditions, and the specified ratio may also be used as a reference value for determining whether the target bullet is in the barrage transmission area.
在本申请一个实施方式中,在所述弹幕发送区域显示之后,用户还可以根据自身的意愿对所述弹幕发送区域的大小进行调整。具体地,用户可以通过手指、鼠标或者键盘等方式拖动所述弹幕发送区域的边框,从而改变所述弹幕发送区域的边框的大小。在本实施方式中,用户对弹幕发送区域施加的拖动动作便可以时输入客户端的尺寸调节指令。这样,客户端在接收到所述尺寸调节指令后,便可以根据所述尺寸调节指令调整所述弹幕发送区域的大小。In an embodiment of the present application, after the display of the barrage transmission area, the user may also adjust the size of the barrage transmission area according to his/her own wishes. Specifically, the user can drag the border of the barrage sending area by means of a finger, a mouse, a keyboard, or the like, thereby changing the size of the border of the barrage sending area. In the present embodiment, the user can input the size adjustment instruction of the client when the user performs a drag operation on the barrage sending area. In this way, after receiving the size adjustment instruction, the client can adjust the size of the barrage sending area according to the size adjustment instruction.
在本申请一个实施方式中,当用户选中的所述目标弹幕的长度大于所述弹幕发送区域的长度时,用户可以通过弹幕发送区域来对所述目标弹幕进行节选,并将节选出的弹幕内容作为自身想要发表的弹幕。具体地,用户在拖拽所述目标弹幕,并将所述目标弹幕调节到合适的位置之后,可以释放所述目标弹幕。这样,所述目标弹幕中处于所述弹幕发送区域内的弹幕内容就可以作为用户想要发表的弹幕内容。例如,在图3(a)中,用户想要发表的弹幕内容便可以是“杨洋好帅啊”;而在图3(b)中,用户想要发表的弹幕内容便可以是“雨下整夜,我的爱溢出”。这样,在从所述目标弹幕中确定位于所述弹幕发送区域中的弹幕内容之后,客户端可以向服务器发送包含将所述弹幕内容的弹幕发送请求。In an embodiment of the present application, when the length of the target barrette selected by the user is greater than the length of the barrage sending area, the user may excerpt the target barrage through the barrage sending area, and the section is The selected barrage content is used as a barrage to be published. Specifically, the user can release the target barrage after dragging the target barrage and adjusting the target barrage to a suitable position. In this way, the content of the barrage in the target barrage in the transmission area of the barrage can be used as the barrage content that the user wants to publish. For example, in Figure 3(a), the content of the barrage that the user wants to publish can be “Yang Yang is handsome”; in Figure 3(b), the content of the barrage that the user wants to publish can be “rain”. All night, my love overflows." Thus, after determining the content of the barrage in the barrage transmission area from the target barrage, the client may send a request to the server to send a barrage request to the barrage content.
由上两个实施方式可见,通过调节弹幕发送区域的大小以及调节目标弹幕与所述弹幕发送区域之间的重叠关系,从而可以从目标弹幕中节选出用户感兴趣的内容进行发表。It can be seen from the above two embodiments that by adjusting the size of the barrage sending area and adjusting the overlapping relationship between the target barrage and the barrage sending area, the user interested content can be selected from the target barrage. Published.
在本申请另一个实施方式中,施加于所述目标弹幕上的指定动作还可以是从所述目标弹幕被选中的位置开始拖拽所述目标弹幕,以使得所述目标弹幕在当前界面中移动的距离达到指定距离;在所述目标弹幕移动的距离达到所述指定距离之后,释放所述目标弹幕。在本实施方式中,可以通过判断所述目标弹幕是否被拖拽了指定距离,来确定是否在所述目标弹幕上施加了指定动作。具体地,请参阅图4,同样以带有触摸屏的智能手机为例,用户可以通过手指拖动所述目标弹幕,并使得所述目标弹幕在视频的当前界面中移动。其中,在远离被选中的位置的方向,随着移动距离的增加,所述目标弹幕受到的阻力也越大。在所述目标弹幕移动时,可以预先设置其能够移动的上限距离。当所述目标弹幕被拖拽的距离达到所述上限距离时,所述目标弹幕便达到移动的极限,无法沿远离所述被选中的位置的方向移动。由此可见,所述上限距离通常会大于或者等于所述指定距离。在本实施方式中,判断是否在所述目标弹幕上施加指定动作的依据可以是所述目标弹幕被拖拽移动的距离是否大于或者等于所述指定距离。当大于或者等于所述指定距离时,便认为在所述目标弹幕上施加了指定动作。此时,一旦用户释放所述目标弹幕,所述目标弹幕便可以回归至所述被选中的位置处,并从所述被选中时的位置开始按照预设路径进行移动。所述预设路径可以是所述目标弹幕被选中之前移动的轨迹。那么当所述目标弹幕回归至所述被选中的位置时,可以继续沿着之前的轨迹开始移动。需要说明的是,如果所述目标弹幕移动的距离达到所述上限距离时,此时就算用户不释放所述目标弹幕,所述目标弹幕也可以自动回归至被选中的位置处,并继续按照预设路径进行移动。上述的指定距离以及上限距离均可以是根据实际情况进行灵活变动的数值,只要保证所述上限距离大于或者等于所述指定距离即可。In another embodiment of the present application, the specified action applied to the target bullet may be to drag the target barrage from a position where the target barrage is selected, such that the target barrage is The distance moved in the current interface reaches a specified distance; after the distance the target barrage moves reaches the specified distance, the target barrage is released. In the present embodiment, whether or not a specified action is applied to the target bullet can be determined by determining whether the target bullet is dragged by a specified distance. Specifically, referring to FIG. 4, also taking a smart phone with a touch screen as an example, the user can drag the target barrage by a finger and move the target barrage in the current interface of the video. Wherein, in the direction away from the selected position, as the moving distance increases, the resistance of the target bullet is also increased. When the target bullet is moved, the upper limit distance that can be moved can be set in advance. When the distance at which the target bullet is dragged reaches the upper limit distance, the target barrage reaches the limit of movement and cannot move in a direction away from the selected position. As can be seen, the upper limit distance will typically be greater than or equal to the specified distance. In the present embodiment, the basis for determining whether to apply the specified action on the target bullet may be whether the distance that the target bullet is moved by the drag is greater than or equal to the specified distance. When it is greater than or equal to the specified distance, it is considered that a specified action is applied to the target bullet. At this time, once the user releases the target barrage, the target barrage can return to the selected position and move according to the preset path from the selected position. The preset path may be a trajectory that is moved before the target barrage is selected. Then when the target barrage returns to the selected position, it can continue to move along the previous trajectory. It should be noted that, if the distance moved by the target barrage reaches the upper limit distance, even if the user does not release the target barrage, the target barrage can automatically return to the selected position, and Continue to move according to the preset path. The specified distance and the upper limit distance may be values that are flexibly changed according to actual conditions, as long as the upper limit distance is greater than or equal to the specified distance.
在本申请另一个实施方式中,还可以通过判断施加于所述目标弹幕上的按压力度,来确定是否对所述目标弹幕执行了指定动作。具体地,在所述目标弹幕被选中时,可以持续检测施加于所述目标弹幕上的按压力度。当施加于所述目标弹幕上的按压力度达到指定压力阈值,便认为在所述目标弹幕上施加了指定动作。具体地,所述按压力度可以通过压敏传感器进行测量。所述压敏传感器可以集成于触摸屏上,也可以集成于外部输入设备中。所述指定压力阈值可以是根据实际情况进行灵活变动的数值。In another embodiment of the present application, it is also determined whether the specified action is performed on the target barrage by determining the pressing force applied to the target bullet. Specifically, when the target bullet is selected, the pressing force applied to the target bullet can be continuously detected. When the pressing force applied to the target barrage reaches a specified pressure threshold, it is considered that a specified action is exerted on the target barrage. Specifically, the pressing force can be measured by a pressure sensitive sensor. The pressure sensitive sensor can be integrated on the touch screen or integrated in an external input device. The specified pressure threshold may be a value that is flexibly changed according to actual conditions.
在本申请另一个实施方式中,在通过按压力度判断是否执行了指定动作时,还可以增加额外的判断步骤。具体地,首先可以检测施加于所述目标弹幕上的按压力度,并且当所述按压力度达到指定压力阈值时,在所述视频的当前界面中展示与所述目标弹幕相关联的选择标签;所述选择标签可以用于提示用户复制所述目标弹幕的内容。请参阅图 5,当在所述目标弹幕上施加的按压力度达到所述指定压力阈值时,可以在所述目标弹幕的右侧弹出带有“复制”字样的选择标签。这样,当所述选择标签被触发时,可以视为在所述目标弹幕上施加了指定动作。所述选择标签被触发的方式例如可以是该选择标签被点击。In another embodiment of the present application, when determining whether the specified action is performed by pressing the strength, an additional judging step may be added. Specifically, first, a pressing force applied to the target bullet can be detected, and when the pressing force reaches a specified pressure threshold, a selection label associated with the target bullet is displayed in a current interface of the video. The selection tag can be used to prompt the user to copy the content of the target barrage. Referring to FIG. 5, when the pressing force applied on the target bullet reaches the specified pressure threshold, a selection label with the word "copy" may be ejected on the right side of the target bullet. Thus, when the selection tag is triggered, it can be considered that a specified action is imposed on the target barrage. The manner in which the selection tag is triggered may be, for example, that the selection tag is clicked.
S3:当存在所述指定动作时,识别所述目标弹幕的内容。S3: Identify the content of the target barrage when the specified action exists.
在本实施方式中,当判定存在所述指定动作时,便可以认为用户当前执行了复制所述目标弹幕的操作,此时,客户端可以识别所述目标弹幕的内容。In the present embodiment, when it is determined that the specified action exists, the user can be considered to have performed the operation of copying the target barrage. At this time, the client can recognize the content of the target barrage.
在本实施方式中,客户端可以通过OCR(Optical Character Recognition,光学字符识别)的方式来识别目标弹幕中的文字内容。具体地,客户端可以通过检测所述目标弹幕中明暗的光线,来确定出所述目标弹幕中包含的字体的形状。在识别出所述字体的形状之后,再将所述字体的形状与字体库中的各个形状进行比对,从而可以得到字体库中相匹配的字体。这样,按照识别的顺序将得到的字体组合起来,便可以作为识别出的所述目标弹幕的内容。具体地,结合步骤S1中阐述的实施方式,识别所述目标弹幕的内容的时机可以如下所述。In the present embodiment, the client can recognize the text content in the target barrage by means of OCR (Optical Character Recognition). Specifically, the client can determine the shape of the font included in the target bullet by detecting the light and dark light in the target bullet. After the shape of the font is recognized, the shape of the font is compared with each shape in the font library, so that a matching font in the font library can be obtained. Thus, the obtained fonts are combined in the order of recognition, and can be used as the content of the identified target barrage. Specifically, in conjunction with the embodiment set forth in step S1, the timing of identifying the content of the target barrage may be as follows.
在一个实施方式中,请参阅图2,当所述目标弹幕被拖拽至所述弹幕发送区域中,并且所述目标弹幕被释放时,客户端可以识别所述目标弹幕中的内容。In one embodiment, referring to FIG. 2, when the target bullet is dragged into the barrage sending area, and the target barrage is released, the client can identify the target barrage content.
在一个实施方式中,请参阅图4,当所述目标弹幕被拖拽的距离大于或者等于指定距离,并且所述目标弹幕被释放时,客户端可以识别所述目标弹幕中的内容。In one embodiment, referring to FIG. 4, when the distance of the target bullet is dragged is greater than or equal to a specified distance, and the target barrage is released, the client can identify the content in the target barrage. .
在一个实施方式中,在所述目标弹幕被选中后,当施加于所述目标弹幕上的按压力度达到指定压力阈值时,客户端可以识别所述目标弹幕中的内容。In one embodiment, after the target barrage is selected, the client can identify the content in the target barrage when the pressing force applied to the target barrage reaches a specified pressure threshold.
在一个实施方式中,请参阅图5,在所述目标弹幕被选中后,当施加于所述目标弹幕上的按压力度达到指定压力阈值时,在所述目标弹幕旁可以弹出选择标签。当所述选择标签被用户触发时,客户端可以识别所述目标弹幕中的内容。In one embodiment, referring to FIG. 5, after the target bullet is selected, when the pressing force applied to the target bullet reaches a specified pressure threshold, a selection label may be popped up beside the target bullet. . When the selection tag is triggered by the user, the client can identify the content in the target barrage.
需要说明的是,在实际应用场景中,在所述目标弹幕被选中时,客户端可以在指定时长内检测是否出现施加于所述目标弹幕上的指定动作。如果在指定时长内检测到了施加于所述目标弹幕上的指定动作,那么便可以继续执行后续的识别目标弹幕内容的流程。但是,如果在指定时长内检测不到施加于所述目标弹幕上的指定动作,所述目标弹幕便可以自动取消被选中的状态,从而从所述被选中时的位置开始按照预设路径进行移动。所述预设路径可以是所述目标弹幕在被选中之前的运行轨迹。这样,在所述目标弹幕取消被选中状态后,便可以继续沿着之前的运行轨迹进行移动。例如,所述目标弹幕是从 视频的右侧向左侧平移,在被用户选中时,便可以停止移动。如果在指定时长内客户端没有检测到施加于所述目标弹幕上的指定动作,那么该目标弹幕可以继续沿着从右侧向左侧的方向平移。It should be noted that, in an actual application scenario, when the target barrage is selected, the client may detect whether a specified action applied to the target barrage occurs within a specified duration. If the specified action applied to the target barrage is detected within the specified length of time, then the subsequent process of identifying the target barrage content can be continued. However, if a specified action applied to the target barrage is not detected within a specified length of time, the target barrage can automatically cancel the selected state, thereby following the preset path from the selected position. Move. The preset path may be a running track of the target barrage before being selected. In this way, after the target barrage is deselected, it can continue to move along the previous trajectory. For example, the target barr is translated from the right side of the video to the left side, and when selected by the user, the movement can be stopped. If the client does not detect a specified action applied to the target bullet within a specified length of time, then the target barrage can continue to translate in a direction from the right to the left.
S5:在所述视频的当前界面中展示与所述目标弹幕的内容相一致的复制弹幕。S5: Display a copy barrage consistent with the content of the target barrage in the current interface of the video.
在本实施方式中,在识别出所述目标弹幕中的内容之后,便可以在所述视频的当前界面中展示与所述目标弹幕的内容相一致的复制弹幕。In this embodiment, after the content in the target barrage is recognized, a copy barrage consistent with the content of the target barrage may be displayed in the current interface of the video.
具体地,在识别所述目标弹幕的内容后,可以向服务器发送包含识别出的所述内容的弹幕发送请求。所述弹幕发送请求可以是按照预设规则进行编写的字符串。其中,所述预设规则可以是所述客户端与所述服务器之间遵循的网络通信协议。例如,所述弹幕发送请求可以是按照HTTP协议进行编写的字符串。所述预设规则可以限定弹幕发送请求中的各个组成部分以及各个组成部分之间的排列顺序。例如,所述弹幕发送请求中可以包括请求标识字段、源IP地址字段以及目的IP地址字段。所述请求标识字段可以填充所述识别出的内容。所述源IP地址字段可以填写所述客户端的IP地址,所述目标IP地址字段可以填写所述服务器的IP地址。这样,所述弹幕发送请求便可以从所述客户端发送至所述服务器处。Specifically, after identifying the content of the target barrage, a barrage transmission request including the identified content may be sent to the server. The barrage sending request may be a character string written according to a preset rule. The preset rule may be a network communication protocol that is followed between the client and the server. For example, the barrage request may be a string written in accordance with the HTTP protocol. The preset rule may define each component in the barrage transmission request and the order of arrangement between the components. For example, the barrage sending request may include a request identifier field, a source IP address field, and a destination IP address field. The request identification field may populate the identified content. The source IP address field may fill in an IP address of the client, and the target IP address field may fill in an IP address of the server. In this way, the barrage request can be sent from the client to the server.
在本实施方式中,当服务器接收到所述弹幕发送请求后,可以从中提取所述识别出的内容。通常而言,所述弹幕发送请求中还可以包括与所述识别出的内容相对应的时间信息。所述时间信息可以是客户端发送所述弹幕发送请求的系统时间,也可以是服务器接收到所述弹幕发送请求的系统时间,也可以是用户执行完所述指定动作的系统时间,还可以是用户执行完所述指定动作对应的视频播放时间。所述时间信息可以用于确定在客户端中展示复制弹幕的时机。In this embodiment, after the server receives the barrage transmission request, the identified content may be extracted therefrom. Generally, the barrage transmission request may further include time information corresponding to the identified content. The time information may be a system time when the client sends the barrage sending request, or may be a system time when the server receives the barrage sending request, or may be a system time when the user performs the specified action, and It may be that the user performs the video playing time corresponding to the specified action. The time information can be used to determine when to display the copying barrage in the client.
在本实施方式中,所述服务器在提取出识别的内容后,可以基于该识别的内容构建弹幕信息。其中,所述弹幕信息的主体字段可以填充所述识别的内容,所述弹幕信息还可以具备为了能够在网络中正常传播,并且能够被客户端识别的头文件。这样,所述服务器在构建了所述弹幕信息后,可以将该弹幕信息反馈至所述客户端。这样,所述客户端可以接收所述服务器针对所述弹幕发送请求反馈的弹幕信息,其中,所述弹幕信息中包括所述识别出的所述内容。需要说明的是,所述服务器在反馈了所述弹幕信息后,还可以将该弹幕信息在本地进行存储,并且将该弹幕信息与所述视频进行关联。这样,后续有其它客户端请求加载该视频时,服务器便可以将所述弹幕信息一并提供给该客户端,这样,使用该客户端的用户便可以查看到之前发送的这条复制弹幕。In this embodiment, after extracting the identified content, the server may construct the barrage information based on the identified content. The body field of the barrage information may fill the identified content, and the barrage information may further include a header file that can be normally transmitted in the network and can be recognized by the client. In this way, after the server constructs the barrage information, the server can feed back the barrage information to the client. In this way, the client may receive the barrage information that the server sends a request feedback to the barrage, wherein the barrage information includes the identified content. It should be noted that after the feedback of the barrage information, the server may further store the barrage information locally, and associate the barrage information with the video. In this way, when another client requests to load the video, the server can provide the barrage information to the client, so that the user using the client can view the previously copied copy barrage.
在本实施方式中,所述客户端可以从所述弹幕信息中提取所述识别出的所述内容,并将所述识别出的所述内容展示于所述视频的当前界面中,从而可以在当前界面中展示与所述目标弹幕的内容一致的复制弹幕。In this embodiment, the client may extract the identified content from the barrage information, and display the identified content in a current interface of the video, so that A copy barrage consistent with the content of the target barrage is displayed in the current interface.
在本申请一个实施方式中,客户端在识别出所述目标弹幕中的内容后,还可以直接将识别出的所述内容作为复制弹幕在本地进行播放。这样,用户可以立即在视频的当前界面上看到自己复制的弹幕。然而,由于没有与服务器进行交互,此时正在观看该视频的其他用户则无法看到这一条复制弹幕。In an embodiment of the present application, after the client identifies the content in the target barrage, the client may directly play the identified content as a copy barrage locally. In this way, the user can immediately see the reproduced barrage on the current interface of the video. However, because there is no interaction with the server, other users who are watching the video at this time cannot see this copy barrage.
在本实施方式中,为了使得后续的用户在观看该视频时能够看到当前发布的这一条复制弹幕,所述客户端可以将识别出的所述内容发送至服务器,以在所述服务器中进行备份。这样,服务器可以将该弹幕信息与所述视频进行关联。这样,后续有其它客户端请求加载该视频时,服务器便可以将所述弹幕信息一并提供给该客户端,从而使得其它用户可以查看到之前发送的这条复制弹幕。In this embodiment, in order to enable a subsequent user to see the currently released copy barb while watching the video, the client may send the identified content to a server to be in the server. Make a backup. In this way, the server can associate the barrage information with the video. In this way, when another client requests to load the video, the server can provide the barrage information to the client, so that other users can view the previously copied copy barrage.
由上可见,在识别出目标弹幕中的内容之后,所述客户端可以自动与所述服务器进行交互,从而实现复制弹幕的展示过程。这一过程不需要用户进行参与,极大地简化了用户发表弹幕的流程,从而提高了用户发表弹幕的速度。It can be seen that after the content in the target barrage is recognized, the client can automatically interact with the server to implement the process of displaying the copy barrage. This process does not require the user to participate, greatly simplifying the process of the user publishing the barrage, thereby increasing the speed at which the user publishes the barrage.
请参阅图6,在本申请一个实施方式中,在识别所述目标弹幕的内容之后,为了确保识别内容的正确性,可以将识别出的内容填充至弹幕输入框中。这样,用户便可以查看到当前想要发表的这条弹幕的内容是否正确。如果识别出的内容存在错误,用户便可以进行修改。这样,当所述弹幕输入框关联的发送按键被触发时,可以在所述视频的当前界面中展示所述识别出的内容。也就是说,在用户确认弹幕输入框内的内容正确无误后,可以点击弹幕输入框旁边的“发送”按键,从而可以发表所述复制弹幕。Referring to FIG. 6, in an embodiment of the present application, after identifying the content of the target barrage, in order to ensure the correctness of the identification content, the identified content may be filled into the barrage input box. This way, the user can see if the content of the current barrage that he wants to publish is correct. If there is an error in the identified content, the user can modify it. Thus, when the send button associated with the barrage input box is triggered, the identified content can be displayed in the current interface of the video. That is to say, after the user confirms that the content in the barrage input box is correct, the "send" button next to the barrage input box can be clicked, so that the copy barrage can be published.
请参阅图7,本申请还提供一种客户端,所述客户端包括处理器100和存储器200,其中,所述存储器200中存储有计算机程序,所述计算机程序被所述处理器100执行时,可以实现以下步骤。Referring to FIG. 7, the present application further provides a client, where the client includes a processor 100 and a memory 200, wherein the memory 200 stores a computer program, and when the computer program is executed by the processor 100, , you can achieve the following steps.
S1:当视频中当前展示的目标弹幕被选中时,检测是否存在施加于所述目标弹幕上的指定动作;S1: detecting whether there is a specified action applied to the target bullet when the target barrage currently displayed in the video is selected;
S3:当存在所述指定动作时,识别所述目标弹幕的内容;S3: identifying the content of the target barrage when the specified action exists;
S5:在所述视频的当前界面中展示与所述目标弹幕的内容相一致的复制弹幕。S5: Display a copy barrage consistent with the content of the target barrage in the current interface of the video.
所述处理器100可以按任何适当的方式实现。例如,处理器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件) 的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式等等。本申请并不作限定。The processor 100 can be implemented in any suitable manner. For example, a processor can employ, for example, a microprocessor or processor and a computer readable medium, logic gate, switch, or application-specific integrated circuit (such as software or firmware) that can be executed by the (micro)processor. Application Specific Integrated Circuit (ASIC), programmable logic controller and embedded microcontroller form, etc. This application is not limited.
在本实施方式中,所述存储器200可以是用于保存信息的记忆设备。在数字系统中,能保存二进制数据的设备可以是存储器;在集成电路中,一个没有实物形式的具有存储功能的电路也可以为存储器,如RAM、FIFO等;在系统中,具有实物形式的存储设备也可以叫存储器,如内存条、TF卡等。In the present embodiment, the memory 200 may be a memory device for storing information. In a digital system, a device capable of storing binary data may be a memory; in an integrated circuit, a circuit having a storage function without a physical form may also be a memory such as a RAM, a FIFO, etc.; in the system, having a physical form of storage The device can also be called a memory, such as a memory stick, a TF card, or the like.
上述实施方式公开的客户端,其处理器100和存储器200实现的具体功能,可以与本申请中的弹幕展示方法实施方式相对照解释,可以实现本申请的弹幕展示方法实施方式并达到方法实施方式的技术效果。The specific functions implemented by the processor 100 and the memory 200 in the above embodiments can be explained in comparison with the embodiment of the barrage display method in the present application, and the implementation method and method of the barrage display method of the present application can be implemented. The technical effect of the embodiment.
由上可见,在本申请中,视频当前界面中展示的目标弹幕可以被用户选中。当该目标弹幕被选中后,可以检测用户是否在该目标弹幕上施加指定动作。该指定动作可以是实现对所述目标弹幕的内容进行复制的动作。当检测到所述指定动作时,客户端可以自动对所述目标弹幕的内容进行识别。在识别出相应的文字内容时,便可以在所述视频的当前界面中展示与该文字内容相一致的复制弹幕,从而完成针对相同内容的弹幕发表过程。由此可见,本申请提供的技术方案,无需用户在弹幕输入框中输入文字信息,而是通过对目标弹幕完成指定动作,便可以复制并发表目标弹幕的内容,提高了用户发表弹幕的速度。It can be seen from the above that in the present application, the target barrage displayed in the current interface of the video can be selected by the user. When the target barrage is selected, it is possible to detect whether the user applies a specified action on the target barrage. The specified action may be an action of implementing copying of the content of the target barrage. When the specified action is detected, the client can automatically identify the content of the target barrage. When the corresponding text content is recognized, a copy barrage consistent with the text content can be displayed in the current interface of the video, thereby completing the barrage publishing process for the same content. It can be seen that the technical solution provided by the present application does not require the user to input text information in the barrage input box, but can complete the specified action of the target barrage, and can copy and publish the content of the target barrage, thereby improving the user's publication of the bullet. The speed of the curtain.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片2。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL (Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, improvements to a technology could clearly distinguish between hardware improvements (eg, improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (for process flow improvements). However, as technology advances, many of today's method flow improvements can be seen as direct improvements in hardware circuit architecture. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented by hardware entity modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logic function is determined by the user programming the device. The designer is self-programming to "integrate" a digital system onto a single PLD without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2 . Moreover, today, instead of manually making integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in programming development, but before compiling The original code has to be written in a specific programming language. This is called the Hardware Description Language (HDL). HDL is not the only one, but there are many kinds, such as ABEL (Advanced Boolean Expression Language). AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be apparent to those skilled in the art that the hardware flow for implementing the logic method flow can be easily obtained by simply programming the method flow into the integrated circuit with a few hardware description languages.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施方式或者实施方式的某些部分所述的方法。It will be apparent to those skilled in the art from the above description of the embodiments that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. An optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The application can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
本领域技术人员也知道,除了以纯计算机可读程序代码方式实现客户端以外,完全可以通过将方法步骤进行逻辑编程来使得客户端以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种客户端可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。Those skilled in the art will also appreciate that in addition to implementing the client in purely computer readable program code, it is entirely possible to logically program the method steps to enable the client to use logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedding. The form of a microcontroller or the like to achieve the same function. Thus such a client can be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component. Or even a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
本说明书中的各个实施方式均采用递进的方式描述,各个实施方式之间相同相似的部分互相参见即可,每个实施方式重点说明的都是与其他实施方式的不同之处。尤其,针对客户端的实施方式来说,均可以参照前述方法的实施方式的介绍对照解释。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the implementation of the client, reference can be made to the introduction of the implementation of the foregoing method.
虽然通过实施方式描绘了本申请,本领域普通技术人员知道,本申请有许多变形和变化而不脱离本申请的精神,希望所附的权利要求包括这些变形和变化而不脱离本申请的精神。While the present invention has been described by the embodiments of the present invention, it will be understood by those skilled in the art

Claims (16)

  1. 一种弹幕展示方法,其特征在于,所述方法包括:A barrage display method, characterized in that the method comprises:
    当视频中当前展示的目标弹幕被选中时,检测是否存在施加于所述目标弹幕上的指定动作;When the target barrage currently displayed in the video is selected, detecting whether there is a specified action applied to the target barrage;
    当存在所述指定动作时,识别所述目标弹幕的内容;Identifying the content of the target barrage when the specified action exists;
    在所述视频的当前界面中展示与所述目标弹幕的内容相一致的复制弹幕。A copy barrage consistent with the content of the target barrage is displayed in the current interface of the video.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当所述目标弹幕被选中时,所述目标弹幕固定于被选中时的位置处。When the target barrage is selected, the target barrage is fixed at the position when it is selected.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    当在指定时长内检测不到施加于所述目标弹幕上的指定动作时,所述目标弹幕从所述被选中时的位置开始按照预设路径进行移动。When a specified motion applied to the target bullet is not detected within a specified length of time, the target bullet is moved according to the preset path from the selected position.
  4. 根据权利要求1所述的方法,其特征在于,当所述目标弹幕被选中时,所述视频的当前界面中的指定位置处显示有弹幕发送区域;相应地,施加于所述目标弹幕上的指定动作包括:The method according to claim 1, wherein when the target barrage is selected, a barrage sending area is displayed at a specified position in the current interface of the video; correspondingly, the target bomb is applied The specified actions on the screen include:
    将所述目标弹幕从被选中的位置向所述弹幕发送区域的位置拖拽,以使得所述目标弹幕位于所述弹幕发送区域内;Dragging the target bullet curtain from the selected position to the position of the barrage sending area, so that the target barrage is located in the barrage sending area;
    当所述目标弹幕位于所述弹幕发送区域内时,释放所述目标弹幕。The target barrage is released when the target barrage is located within the barrage transmission area.
  5. 根据权利要求4所述的方法,其特征在于,所述目标弹幕位于所述弹幕发送区域内包括:The method according to claim 4, wherein the target barrage is located in the barrage transmission area and comprises:
    所述目标弹幕的全部内容位于所述弹幕发送区域内;The entire content of the target bullet is located in the barrage sending area;
    或者or
    所述目标弹幕中大于或者等于指定比例的内容位于所述弹幕发送区域内;The content of the target barrage that is greater than or equal to the specified ratio is located in the barrage sending area;
    或者or
    所述目标弹幕与所述弹幕发送区域之间的交集在所述弹幕发送区域内所占的比例大于或者等于指定阈值。The ratio of the intersection between the target bullet curtain and the barrage transmission area in the barrage transmission area is greater than or equal to a specified threshold.
  6. 根据权利要求4所述的方法,其特征在于,在所述弹幕发送区域显示之后,所述方法还包括:The method according to claim 4, wherein after the display of the barrage transmission area, the method further comprises:
    接收用户输入的尺寸调节指令,并根据所述尺寸调节指令调整所述弹幕发送区域的大小。Receiving a size adjustment instruction input by the user, and adjusting a size of the barrage transmission area according to the size adjustment instruction.
  7. 根据权利要求4或6所述的方法,其特征在于,当所述目标弹幕的长度大于所述弹幕发送区域的长度时,在释放所述目标弹幕之后,所述方法还包括:The method according to claim 4 or claim 6, wherein, when the length of the target barrage is greater than the length of the barrage transmission area, after releasing the target barrage, the method further comprises:
    从所述目标弹幕中确定位于所述弹幕发送区域中的弹幕内容,并向服务器发送包含将所述弹幕内容的弹幕发送请求。A barrage content located in the barrage sending area is determined from the target barrage, and a barrage sending request including the barrage content is sent to the server.
  8. 根据权利要求1所述的方法,其特征在于,施加于所述目标弹幕上的指定动作包括:The method of claim 1 wherein the specified action applied to the target bullet comprises:
    从所述目标弹幕被选中的位置开始拖拽所述目标弹幕,以使得所述目标弹幕在当前界面中移动的距离达到指定距离;Dragging the target barrage from a position where the target barrage is selected, so that the distance that the target barrage moves in the current interface reaches a specified distance;
    在所述目标弹幕移动的距离达到所述指定距离之后,释放所述目标弹幕。The target barrage is released after the target barrage moves a distance that reaches the specified distance.
  9. 根据权利要求8所述的方法,其特征在于,当所述目标弹幕被拖拽的距离达到上限距离时,所述目标弹幕无法沿远离所述被选中的位置的方向移动;其中,所述上限距离大于或者等于所述指定距离。The method according to claim 8, wherein when the distance to which the target bullet is dragged reaches an upper limit distance, the target barrage cannot move in a direction away from the selected position; The upper limit distance is greater than or equal to the specified distance.
  10. 根据权利要求8所述的方法,其特征在于,在释放所述目标弹幕之后,所述目标弹幕回归至所述被选中的位置处,并从所述被选中时的位置开始按照预设路径进行移动。The method according to claim 8, wherein after releasing the target bullet, the target bullet returns to the selected position and follows the preset from the selected position The path moves.
  11. 根据权利要求1所述的方法,其特征在于,施加于所述目标弹幕上的指定动作包括:The method of claim 1 wherein the specified action applied to the target bullet comprises:
    施加于所述目标弹幕上的按压力度达到指定压力阈值。The pressing force applied to the target bullet reaches a specified pressure threshold.
  12. 根据权利要求1所述的方法,其特征在于,在视频中当前展示的目标弹幕被选中后,所述方法还包括:The method according to claim 1, wherein after the target barrage currently displayed in the video is selected, the method further comprises:
    检测施加于所述目标弹幕上的按压力度;Detecting a pressing force applied to the target bullet;
    当所述按压力度达到指定压力阈值时,在所述视频的当前界面中展示与所述目标弹幕相关联的选择标签;所述选择标签用于提示用户复制所述目标弹幕的内容;When the pressing force reaches a specified pressure threshold, displaying a selection tag associated with the target barrage in a current interface of the video; the selection tag is used to prompt a user to copy content of the target barrage;
    相应地,施加于所述目标弹幕上的指定动作包括:所述选择标签被触发。Accordingly, the specified action applied to the target bullet comprises: the selection tag being triggered.
  13. 根据权利要求1所述的方法,其特征在于,在所述视频的当前界面中展示与所述目标弹幕的内容相一致的复制弹幕包括:The method according to claim 1, wherein displaying a copy barrage consistent with the content of the target barrage in a current interface of the video comprises:
    向服务器发送包含识别出的所述内容的弹幕发送请求;Sending a barrage transmission request including the identified content to the server;
    接收所述服务器针对所述弹幕发送请求反馈的弹幕信息,其中,所述弹幕信息中包括所述识别出的所述内容;Receiving the barrage information that the server sends a request feedback to the barrage, wherein the barrage information includes the identified content;
    从所述弹幕信息中提取所述识别出的所述内容,并将所述识别出的所述内容展示于所述视频的当前界面中。Extracting the identified content from the barrage information and presenting the identified content in a current interface of the video.
  14. 根据权利要求1所述的方法,其特征在于,在所述视频的当前界面中展示与所述目标弹幕的内容相一致的复制弹幕包括:The method according to claim 1, wherein displaying a copy barrage consistent with the content of the target barrage in a current interface of the video comprises:
    将识别出的所述内容作为复制弹幕在本地进行播放;Playing the identified content as a copy barrage locally;
    将识别出的所述内容发送至服务器,以在所述服务器中进行备份。The identified content is sent to a server for backup in the server.
  15. 根据权利要求1所述的方法,其特征在于,在识别所述目标弹幕的内容之后,所述方法还包括:The method according to claim 1, wherein after the content of the target bullet is identified, the method further comprises:
    将识别出的内容填充至弹幕输入框中;其中,当所述弹幕输入框关联的发送按键被触发时,在所述视频的当前界面中展示所述识别出的内容。Filling the identified content into the barrage input box; wherein, when the send button associated with the barrage input box is triggered, the identified content is displayed in a current interface of the video.
  16. 一种客户端,其特征在于,所述客户端包括处理器和存储器,其中,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,实现以下步骤:A client, characterized in that the client comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the following steps are implemented:
    当视频中当前展示的目标弹幕被选中时,检测是否存在施加于所述目标弹幕上的指定动作;When the target barrage currently displayed in the video is selected, detecting whether there is a specified action applied to the target barrage;
    当存在所述指定动作时,识别所述目标弹幕的内容;Identifying the content of the target barrage when the specified action exists;
    在所述视频的当前界面中展示与所述目标弹幕的内容相一致的复制弹幕。A copy barrage consistent with the content of the target barrage is displayed in the current interface of the video.
PCT/CN2018/093667 2017-07-04 2018-06-29 Method for displaying on-screen comment, and client WO2019007281A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710536670.9 2017-07-04
CN201710536670.9A CN107396194B (en) 2017-07-04 2017-07-04 Bullet screen display method and client

Publications (1)

Publication Number Publication Date
WO2019007281A1 true WO2019007281A1 (en) 2019-01-10

Family

ID=60335051

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/093667 WO2019007281A1 (en) 2017-07-04 2018-06-29 Method for displaying on-screen comment, and client

Country Status (3)

Country Link
CN (1) CN107396194B (en)
TW (1) TWI698122B (en)
WO (1) WO2019007281A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667081A (en) * 2020-12-28 2021-04-16 北京大米科技有限公司 Bullet screen display method and device, storage medium and terminal
CN114005076A (en) * 2021-12-30 2022-02-01 北京搜狐新动力信息技术有限公司 Image anti-blocking method and system and electronic equipment
CN114520923A (en) * 2020-11-20 2022-05-20 武汉斗鱼网络科技有限公司 Barrage information display method, first terminal, second terminal, medium and equipment
CN115396734A (en) * 2022-05-16 2022-11-25 北京大学 Visualization method and system for bullet screen and user behaviors in video set

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396194B (en) * 2017-07-04 2020-03-20 上海全土豆文化传播有限公司 Bullet screen display method and client
CN109842820B (en) * 2017-11-29 2021-12-14 腾讯数码(天津)有限公司 Barrage information input method and device, mobile terminal and readable storage medium
CN109982127B (en) * 2017-12-28 2022-01-07 阿里巴巴(中国)有限公司 Bullet screen speed control method and device
CN108419139A (en) * 2018-02-05 2018-08-17 李秀荣 Internet big data barrage processing system
CN109063042B (en) * 2018-07-17 2021-06-25 宁波德波优网络科技有限公司 Cloud computing data processing system for big data
CN110113651A (en) * 2019-04-12 2019-08-09 北京奇艺世纪科技有限公司 A kind of barrage answering method, device and electronic equipment
CN112087668B (en) * 2019-06-14 2022-11-04 腾讯科技(深圳)有限公司 Video processing method and device, video processing equipment and storage medium
CN111050223A (en) * 2019-12-27 2020-04-21 维沃移动通信有限公司 Bullet screen information processing method and electronic equipment
CN111277909A (en) * 2020-01-10 2020-06-12 网易(杭州)网络有限公司 Bullet screen processing method and device
CN111556375B (en) * 2020-04-24 2022-10-11 西交利物浦大学 Video barrage generation method and device, computer equipment and storage medium
CN112261487B (en) * 2020-10-20 2024-03-05 腾讯科技(深圳)有限公司 Video barrage processing method and device, electronic equipment and storage medium
CN113691856A (en) * 2021-08-17 2021-11-23 维沃移动通信(杭州)有限公司 Bullet screen generation method and device, electronic equipment and readable storage medium
CN114339363B (en) * 2021-12-21 2023-12-22 深圳市捷视飞通科技股份有限公司 Picture switching processing method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150135097A1 (en) * 2013-11-14 2015-05-14 Dropbox, Inc. File-level commenting
CN105592331A (en) * 2015-12-16 2016-05-18 广州华多网络科技有限公司 Method for processing barrage messages, related equipment, and system
CN105898560A (en) * 2016-03-31 2016-08-24 广州华多网络科技有限公司 Video editing method and device
CN105959816A (en) * 2016-06-27 2016-09-21 乐视控股(北京)有限公司 Pop-up subtitle display method and apparatus
CN106131639A (en) * 2016-06-23 2016-11-16 武汉斗鱼网络科技有限公司 A kind of can wall scroll locking barrage display device, sending method and device
CN107396194A (en) * 2017-07-04 2017-11-24 上海全土豆文化传播有限公司 A kind of barrage methods of exhibiting and client

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8873391B2 (en) * 2012-05-24 2014-10-28 Trellisware Technologies, Inc. Method and system for coordinating access to a barrage relay network
CN102833185B (en) * 2012-08-22 2016-05-25 青岛飞鸽软件有限公司 Pull the method that word starts immediate communication tool chatting window
US20150095248A1 (en) * 2012-10-04 2015-04-02 Jennie Wong Method for requesting and sharing purchases, recommendations, and reviews
CN104822093B (en) * 2015-04-13 2017-12-19 腾讯科技(北京)有限公司 Barrage dissemination method and device
CN105100869B (en) * 2015-07-13 2018-09-04 腾讯科技(深圳)有限公司 Barrage display methods and device
CN106028176B (en) * 2016-05-31 2018-12-14 北京奇艺世纪科技有限公司 The method and device at the time point of Hot Contents in a kind of determining Streaming Media
CN106028075B (en) * 2016-06-21 2018-09-11 腾讯科技(深圳)有限公司 Barrage display methods and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150135097A1 (en) * 2013-11-14 2015-05-14 Dropbox, Inc. File-level commenting
CN105592331A (en) * 2015-12-16 2016-05-18 广州华多网络科技有限公司 Method for processing barrage messages, related equipment, and system
CN105898560A (en) * 2016-03-31 2016-08-24 广州华多网络科技有限公司 Video editing method and device
CN106131639A (en) * 2016-06-23 2016-11-16 武汉斗鱼网络科技有限公司 A kind of can wall scroll locking barrage display device, sending method and device
CN105959816A (en) * 2016-06-27 2016-09-21 乐视控股(北京)有限公司 Pop-up subtitle display method and apparatus
CN107396194A (en) * 2017-07-04 2017-11-24 上海全土豆文化传播有限公司 A kind of barrage methods of exhibiting and client

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114520923A (en) * 2020-11-20 2022-05-20 武汉斗鱼网络科技有限公司 Barrage information display method, first terminal, second terminal, medium and equipment
CN114520923B (en) * 2020-11-20 2023-09-01 武汉斗鱼网络科技有限公司 Barrage information display method, first terminal, second terminal, medium and equipment
CN112667081A (en) * 2020-12-28 2021-04-16 北京大米科技有限公司 Bullet screen display method and device, storage medium and terminal
CN114005076A (en) * 2021-12-30 2022-02-01 北京搜狐新动力信息技术有限公司 Image anti-blocking method and system and electronic equipment
CN114005076B (en) * 2021-12-30 2022-04-26 北京搜狐新动力信息技术有限公司 Image anti-blocking method and system and electronic equipment
CN115396734A (en) * 2022-05-16 2022-11-25 北京大学 Visualization method and system for bullet screen and user behaviors in video set
CN115396734B (en) * 2022-05-16 2024-03-08 北京大学 Visualization method and system for barrage and user behaviors in video set

Also Published As

Publication number Publication date
CN107396194B (en) 2020-03-20
CN107396194A (en) 2017-11-24
TWI698122B (en) 2020-07-01
TW201907734A (en) 2019-02-16

Similar Documents

Publication Publication Date Title
WO2019007281A1 (en) Method for displaying on-screen comment, and client
TWI699998B (en) Barrage information processing method and client terminal
US11520467B2 (en) Input device and user interface interactions
US11190856B2 (en) Synchronizing content and metadata
AU2022202607B2 (en) Column interface for navigating in a user interface
RU2632144C1 (en) Computer method for creating content recommendation interface
CN107995536B (en) Method, device and equipment for extracting video preview and computer storage medium
CN110020411B (en) Image-text content generation method and equipment
CN108121738B (en) Media content display method and device
US20160345049A1 (en) Method and device for switching channel
WO2019184501A1 (en) Video editing method, video playing method, device and computer-readable medium
US20200396315A1 (en) Delivery of apps in a media stream
JP2021522612A (en) Human-machine conversation methods, clients, electronic devices, and programs
WO2018014849A1 (en) Media information display method and apparatus, and computer storage medium
WO2017162031A1 (en) Method and device for collecting information, and intelligent terminal
TW201035860A (en) Method and computer program product for displaying document on mobile device
US11321357B2 (en) Generating preferred metadata for content items
KR102102889B1 (en) Terminal and method for controlling thereof
WO2009029219A1 (en) Information retrieval using keywords from cursor positions on display

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: 18829099

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18829099

Country of ref document: EP

Kind code of ref document: A1