WO2021136330A1 - 弹幕显示控制方法及电子设备 - Google Patents
弹幕显示控制方法及电子设备 Download PDFInfo
- Publication number
- WO2021136330A1 WO2021136330A1 PCT/CN2020/141171 CN2020141171W WO2021136330A1 WO 2021136330 A1 WO2021136330 A1 WO 2021136330A1 CN 2020141171 W CN2020141171 W CN 2020141171W WO 2021136330 A1 WO2021136330 A1 WO 2021136330A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- barrage
- display
- electronic device
- target
- trajectory
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
- H04N21/4586—Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/475—End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
Definitions
- the embodiments of the present invention relate to the field of communication technology, and in particular to a method for controlling barrage display and electronic equipment.
- the user uses the electronic device to watch the video
- the user can trigger the electronic device to turn on the barrage function in the video application, so the electronic device You can display all the barrage sent by users who watched the video.
- the user can trigger the electronic device to turn off the barrage function in the video application, so that the electronic device can cancel all barrage related to the video.
- the electronic device can display all the bullet screens related to the video currently played by the sub-device; if the electronic device turns off the bullet screen function, the electronic device cancels the display of the video currently played by the electronic device All relevant content.
- the way the electronic device displays the barrage is relatively simple and not flexible enough.
- the embodiment of the present invention provides a barrage display control method and an electronic device, which can solve the problem that the existing electronic device displays a barrage in a single way and is not flexible enough.
- an embodiment of the present invention provides a barrage display control method, the method including:
- the target operation includes any of the following: canceling the display of the second barrage, updating the barrage content of the second barrage to the barrage content of the first barrage, and hiding the second barrage in the display area of the first barrage.
- an embodiment of the present invention provides an electronic device that includes a display module and an execution module.
- the display module is used to display the first barrage and the second barrage;
- the execution module is used to execute the second barrage when the first barrage and the second barrage displayed by the display module are updated to the target display state
- the target operation corresponding to the target display state; among them, the target operation includes any of the following: canceling the display of the second barrage, updating the barrage content of the second barrage to the barrage content of the first barrage, and in the first barrage.
- the second barrage is hidden in the display area of the barrage.
- an embodiment of the present invention provides an electronic device that includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
- the computer program is executed by the processor, The steps of the barrage display control method as in the above-mentioned first aspect are realized.
- an embodiment of the present invention provides a computer-readable storage medium that stores a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the barrage display control method as in the above-mentioned first aspect. A step of.
- the first barrage and the second barrage can be displayed; and when the first barrage and the second barrage are updated to the target display state, the execution of the second barrage corresponds to the target display state
- the electronic device can execute the second barrage
- the target operation corresponding to the target display state changes the way the electronic device displays the bullet screen, so that the electronic device can display the bullet screen in different display modes, which can make the electronic device display the bullet screen more flexible, and can make the electronic device
- FIG. 1 is a schematic diagram of the architecture of an operating system provided by an embodiment of the present invention
- FIG. 2 is a schematic diagram of a barrage display control method provided by an embodiment of the present invention.
- FIG 3 is one of the schematic diagrams of the barrage display interface of the barrage display control method provided by the embodiment of the present invention.
- FIG. 4 is a second schematic diagram of a barrage display interface of a barrage display control method provided by an embodiment of the present invention.
- FIG. 5 is the third schematic diagram of the barrage display interface of the barrage display control method provided by the embodiment of the present invention.
- FIG. 6 is a fourth schematic diagram of a barrage display interface of a barrage display control method provided by an embodiment of the present invention.
- FIG. 7 is a fifth schematic diagram of a barrage display interface of a barrage display control method provided by an embodiment of the present invention.
- FIG. 8 is a sixth diagram of a barrage display interface of a barrage display control method provided by an embodiment of the present invention.
- 9 is the seventh schematic diagram of the barrage display interface of the barrage display control method provided by the embodiment of the present invention.
- FIG 10 is the eighth schematic diagram of the barrage display interface of the barrage display control method provided by the embodiment of the present invention.
- FIG. 11 is a ninth schematic diagram of a barrage display interface of a barrage display control method provided by an embodiment of the present invention.
- FIG. 12 is a tenth schematic diagram of a barrage display interface of a barrage display control method provided by an embodiment of the present invention.
- FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
- FIG. 14 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
- first and second in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects.
- first barrage and the second barrage are used to distinguish different barrage, rather than to describe the specific sequence of the barrage.
- words such as “exemplary” or “for example” are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
- multiple refers to two or more than two, for example, multiple processing units refers to two or more processing units, etc.
- the embodiment of the present invention provides a barrage display control method and electronic device, which can display a first barrage and a second barrage; and when the first barrage and the second barrage are updated to the target display state, the second barrage
- the second barrage executes the target operation corresponding to the target display state; the target operation includes any of the following: cancel the display of the second barrage, update the barrage content of the second barrage to the barrage content of the first barrage , Hide the second barrage in the display area of the first barrage.
- the electronic device can execute the second barrage
- the target operation corresponding to the target display state changes the way the electronic device displays the bullet screen, so that the electronic device can display the bullet screen in different display modes, which can make the electronic device display the bullet screen more flexible, and can make the electronic device
- the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
- the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
- the following takes the operating system shown in FIG. 1 as an example to introduce the software environment applied by the barrage display control method provided by the embodiment of the present invention.
- FIG. 1 it is a schematic structural diagram of a possible operating system provided by an embodiment of the present invention.
- the architecture of the operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
- the application layer includes various applications in the operating system (including system applications and third-party applications).
- the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
- the system runtime layer includes a library (also called a system library) and an operating system runtime environment.
- the library mainly provides various resources required by the operating system.
- the operating system operating environment is used to provide a software environment for the operating system.
- the kernel layer is the operating system layer of the operating system and belongs to the lowest level of the operating system software.
- the kernel layer provides core system services and hardware-related drivers for the operating system based on the Linux kernel.
- developers can develop a software program that implements the barrage display control method provided by the embodiment of the present invention based on the system architecture of the operating system shown in FIG.
- the barrage display control method can be run based on the operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the barrage display control method provided by the embodiment of the present invention by running the software program in the operating system.
- the electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc.
- the non-mobile electronic device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
- the execution body of the barrage display control method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the barrage display control method.
- the specifics may be based on actual conditions. The use requirement is determined, and the embodiment of the present invention does not limit it.
- an electronic device is taken as an example to illustrate the barrage display control method provided by the embodiment of the present invention.
- the user in the process of the user watching a video through an electronic device, if the user wants to watch a barrage related to the video, the user can trigger the electronic device to open the barrage function, so that the electronic device can display the barrage related to the video.
- the barrage (which may include the barrage triggered by the user to send the electronic device and/or the barrage triggered by other users watching the video, etc.).
- the electronic device After the electronic device displays these bullet screens, if different bullet screens of the bullet screens displayed by the electronic device (for example, the first bullet screen and the second bullet screen in the embodiment of the present invention) are updated to a preset state (for example, the present invention Target display state in the embodiment), then the electronic device can perform a specific operation corresponding to the preset state on one of the bullet screens (for example, the second bullet screen in the embodiment of the present invention) (for example, the target operation in the implementation of the present invention) ), which can change the way the electronic device displays the barrage. In this way, the way the electronic device displays the barrage can be made more flexible, and the way the electronic device displays the barrage can be diversified.
- a preset state for example, the present invention Target display state in the embodiment
- an embodiment of the present invention provides a method for controlling barrage display.
- the method includes the following steps 201 and 202.
- Step 201 The electronic device displays the first barrage and the second barrage.
- first barrage and the second barrage may be different barrage displayed by the electronic device.
- the electronic device when the electronic device is playing a video, the electronic device can display barrage corresponding to the video played, so that the user can understand the feelings or experiences of different users watching the video by viewing these barrage.
- the above-mentioned first barrage and second barrage may be barrage sent by the same electronic device, or may be barrage sent by different electronic devices. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- the foregoing first barrage may be a barrage sent by an electronic device
- the foregoing second barrage may be a barrage sent by another electronic device.
- the display attribute of the first barrage may be a first attribute, and the first attribute may be moving according to a first trajectory, or may be kept displayed in the target area, and the first trajectory may be The trajectory drawn for the user who triggered the sending of the first barrage.
- the display attribute of the above-mentioned second barrage may be a second attribute, and the second attribute may be moving according to a second trajectory.
- step 201 may be specifically implemented by the following step 201a.
- Step 201a The electronic device displays a first barrage according to the first attribute, and displays a second barrage according to the second attribute.
- the above-mentioned first barrage may be a special barrage.
- the first barrage may be a barrage of a specific type.
- the above-mentioned second track may be a preset movement track of the barrage in the electronic device. That is, the second barrage can be an ordinary barrage.
- the electronic device may obtain the attribute information of a barrage, so as to determine the display attribute of the barrage according to the attribute information.
- the attribute information of the barrage may be determined according to the barrage type selected in the electronic device of the user who triggered the sending of the barrage.
- the electronic device when the electronic device sends a bullet screen, the electronic device can carry the bullet screen type (or the attribute information of the bullet screen) of the bullet screen in the bullet screen content of the bullet screen and send it together.
- the electronic device may first determine the barrage type of the first barrage, and then display the barrage type corresponding to the barrage.
- the attribute displays the first barrage that is, the electronic device can display the first barrage with the above-mentioned first attribute.
- the aforementioned first trajectory may be a preset movement trajectory of the bullet screen in the electronic device that sends the first bullet screen (hereinafter referred to as electronic device 1), or may be a user of electronic device 1 (hereinafter referred to as user 1)
- the movement track of the barrage set in the electronic device 1. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- the first trajectory when the above-mentioned first trajectory is the movement trajectory of the barrage set by the user 1 in the electronic device 1, the first trajectory may be the input of the first barrage in the electronic device 1 by the user 1.
- the movement track set in the electronic device 1 Before the content, the movement track set in the electronic device 1; it can also be the movement track set in the electronic device 1 after the user 1 inputs the content of the first barrage in the electronic device 1.
- it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- the second trajectory is A track may be the input track of the user 1 on the electronic device 1 when the user 1 triggers the electronic device 1 to display the barrage input interface.
- the barrage display control method provided by the embodiment of the present invention can be applied to a scene where an electronic device displays barrage. Since the electronic device can display the first barrage according to the first trajectory drawn by the user who triggered the sending of the first barrage, when When the trajectory drawn by the user who triggers the sending of the first barrage is different, the electronic device can display the first barrage in a different manner, so that the electronic device can display the first barrage in a more flexible manner.
- Step 202 When the first barrage and the second barrage are updated to the target display state, the electronic device performs a target operation corresponding to the target display state on the second barrage.
- the target operation may include any of the following: canceling the display of the second barrage, updating the barrage content of the second barrage to the barrage content of the first barrage, and in the display area of the first barrage Hide the second barrage in.
- the electronic device can determine whether the first barrage and the second barrage are updated to the target display state, if the first barrage and the second barrage are updated The second barrage is updated to the target display state, then the electronic device can perform the target operation corresponding to the target display state on the second barrage. In this way, the way the electronic device displays the barrage can be changed, so that the way the electronic device displays the barrage can be more flexible, and the way the electronic device displays the barrage can be enriched.
- the electronic device can continue to display the second barrage according to the original display mode of the second barrage.
- the target display state may be any one of the following: the first barrage and the second barrage are in contact on the first track, the second barrage moves to the first track, and the second barrage is on the first track.
- the barrage moves to the display area of the first barrage, and the second barrage passes the target boundary line of the first barrage.
- the first trajectory may be the movement trajectory of the first barrage; the display area of the first barrage may be a display area that gradually increases with the display time of the first barrage, or may be a fixed display area.
- the aforementioned target dividing line may be a straight line passing through the content of the first barrage.
- the aforementioned target boundary line may be a straight line passing through the center of the content of the first barrage.
- the barrage display control method provided by the embodiment of the present invention is applied to a scene where an electronic device displays barrage. Since the target display state can include multiple display states, the first barrage and the second barrage are updated to the target display state. There can be multiple situations, so that the electronic device can perform the target operation on the second barrage in different display states, that is, the electronic device can update the display mode of the second barrage under different conditions, so that the display mode of the second barrage can be updated. Makes the way the electronic device displays the barrage more flexible.
- the display state of the target is different, and the target operation corresponding to the actual state of the target may also be different (that is, the target operation performed by the electronic device on the second barrage may also be different).
- the target operation performed by the electronic device on the second barrage may also be different.
- the following four possible situations are used to exemplify the target display state and target operation.
- the embodiment of the present invention takes the following four situations as examples to illustrate the target display state and the target operation, which does not impose any limitation on the embodiment of the present invention.
- the combination between the target display state and the target operation may also include any other possible situations, which may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present invention.
- the above-mentioned step 202 may be specifically implemented by the following step 202a.
- Step 202a When the first barrage and the second barrage are updated to the target display state, the electronic device cancels the display of the second barrage, or updates the content of the second barrage to that of the first barrage. Screen content.
- the electronic device may cancel the display of the second barrage; or, in the first barrage and the second barrage, When the barrage is in contact on the first track, the electronic device may update the barrage content of the second barrage to the barrage content of the first barrage. In this way, the electronic device can change the display mode of the second barrage, so that the barrage displayed by the electronic device can be updated.
- the electronic device may display the above-mentioned first trajectory, or may not display the first trajectory (that is, hide the first trajectory).
- the electronic device may display the above-mentioned first trajectory, or may not display the first trajectory (that is, hide the first trajectory).
- it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- step 202a In order to clearly describe the above step 202a below, the following step 202a1 and step 202a2 are used to illustrate step 202a as an example.
- Step 202a1 when the first barrage and the second barrage are in contact on the first track, the electronic device cancels the display of the second barrage.
- the electronic device in the case where the first barrage and the second barrage are in contact on the first track, the electronic device can cancel the display of the second barrage. It can be understood that when the second barrage moves to the movement track of the first barrage and is in contact with the first barrage, the electronic device can cancel the display of the second barrage, so that the electronic device can be quickly eliminated through the first barrage. The second barrage displayed by the device.
- the first barrage may be a first type of control barrage, and the first type of control barrage has a barrage with an elimination attribute. That is to say, when other barrage is in contact with the first type of control barrage on the movement track of the first type of control, the first type of control barrage can eliminate or annihilate the barrage, that is, the electronic device can cancel the display The barrage.
- the electronic device can determine that the first barrage and the second barrage The second barrage touches on the first track. At this time, the electronic device can cancel the display of the second barrage, and continue to display the first barrage according to the first trajectory.
- the electronic device can determine that the barrage "hahaha” 41 and barrage "It's awesome” 42 are updated to the target display state, the electronic device can cancel the barrage "Really awesome” display, that is, the barrage displayed by the electronic device as shown in Figure 4 (b) is not Including the barrage "It's awesome.”
- the electronic device can continue to display the barrage "hahaha" 41 according to the first trajectory.
- the method for controlling the display of the barrage is applied to a scenario where an electronic device updates the display mode of the second barrage (specifically, it can be canceled to display the second barrage).
- the electronic device can cancel the display of the second barrage. Therefore, on the first track, the first barrage can eliminate or annihilate the second barrage, which can trigger the sending of the first barrage.
- the user of and the user who triggers the sending of the second barrage interact with the second barrage through the first barrage, which can improve the user’s experience when watching the video.
- Step 202a2 when the first barrage and the second barrage are in contact on the first track, the electronic device updates the barrage content of the second barrage to the barrage content of the first barrage.
- the electronic device may update the barrage content of the second barrage to the barrage content of the first barrage. It can be understood that when the second barrage moves to the movement track of the first barrage and is in contact with the first barrage, the first barrage can infect or transform the second barrage, so that the second barrage’s barrage The content is updated to the barrage content of the first barrage.
- the first barrage may be a second type of control barrage
- the second type of control barrage has a barrage with an "infection" attribute (which may also be referred to as a conversion attribute). That is to say, when other barrage comes into contact with the first type of control barrage on the movement track of the first type of control, the first type of control barrage can infect or transform the barrage, that is, the electronic device can The barrage content of the barrage is updated to the barrage content of the first type of control barrage, so that the barrage content of multiple barrages can be quickly updated.
- the electronic device may control the updated second barrage to continue along the original second barrage.
- the movement trajectory of the barrage that is, the aforementioned second trajectory
- the updated second barrage can also be controlled to move along the aforementioned first trajectory.
- it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- the electronic device can determine that the barrage "hahaha” 41 and the barrage "Really awesome” 42 are updated to the target display state, so that the electronic device can update the barrage "Really awesome” to the barrage "hahaha” as shown in Figure 5 (b) 44. At this time, the electronic device can display multiple barrage "hahaha”.
- the barrage display control method provided by the embodiment of the present invention is applied to a scenario where an electronic device updates the display mode of the second barrage (specifically, it can update the content of the barrage of the second barrage).
- the electronic device can update the barrage content of the second barrage to the barrage content of the first barrage. Therefore, on the first trajectory, the first barrage can be infected or The second barrage can be converted, so that the electronic device can quickly change the barrage content of the barrage, thereby making the way the electronic device displays the barrage diversified and more flexible.
- the barrage display method provided in the embodiment of the present invention may further include the following step 203.
- step 202a can be specifically implemented by the following step 202a3.
- step 203 "the electronic device displays the parameters with the target and displays the first barrage” and step 202a3 "the electronic device cancels the display of the second barrage, or changes the display of the second barrage
- the content of the barrage is updated to the content of the barrage of the first barrage are all steps performed by the electronic device when the first barrage and the second barrage are updated to the target display state, so in order to clearly illustrate the step 203 and step 202a3
- the following embodiments only describe in step 203 "when the first barrage and the second barrage meet the target display state".
- the embodiment of the present invention may not limit the execution order of the above step 203 and step 202a3, that is, the electronic device may perform step 203 first, and then perform step 202a3; the electronic device may also perform step 202a3 first, and then perform step 203; Step 203 and step 202a3 can be performed at the same time.
- the electronic device first executes step 203 and then executes step 202a3 as an example for exemplification.
- Step 203 When the first barrage and the second barrage are updated to the target display state, the electronic device displays the first barrage using the target display parameters.
- Step 202a3 The electronic device cancels the display of the second barrage, or updates the barrage content of the second barrage to the barrage content of the first barrage.
- step 202a3 please refer to the above embodiment for the electronic device to cancel the display of the second barrage, and the electronic device updates the barrage content of the second barrage to the barrage of the first barrage.
- the detailed description of the content, in order to avoid repetition, will not be repeated here.
- the electronic device may The above target display parameters, and the first barrage is displayed.
- the electronic device can update the display parameters of the first bullet screen, that is, the electronic device can update the display mode of the first electronic device, so that the way the electronic device displays the bullet screen is more flexible and diversified.
- the display effect corresponding to the target display parameter may include at least one of the following: zooming in and displaying the bullet screen, displaying the bullet screen in a preset color, and adding a preset special effect to the bullet screen.
- the display effect corresponding to the above-mentioned target display parameter may also be any other possible display effect, which can be specifically determined according to actual use requirements, and the implementation of the present invention is not limited.
- the electronic device may increase the font weight of the barrage content of the first barrage.
- the electronic device can update the display parameters of the barrage "hahaha” by increasing the font weight of the barrage content of the barrage "hahaha” (that is, the first barrage) , That is, the electronic device displays the barrage "hahaha” with the target display parameters.
- the display effect of the barrage "hahaha” can be the display effect of the barrage "hahaha” 41 shown in (b) in Figure 4 .
- the barrage display control method provided by the embodiment of the present invention can be applied to a scenario where the electronic device updates the display parameters of the first barrage. Since the first barrage and the second barrage are updated to the target display state, the electronic The device can also display the first barrage with target display parameters. Therefore, by changing the display mode of the first barrage, it means that the electronic device changes the display mode of the second barrage to be triggered by the first barrage, so that the user can be notified, The first barrage is a barrage with special properties.
- the aforementioned first segment of the trajectory may be part of the trajectory in the aforementioned first trajectory, or may be all the trajectories in the first trajectory. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- the display position of the second barrage at the first moment is different, and the timing of the electronic device to perform the target operation on the second barrage may be different.
- the above-mentioned first moment may be the moment when the electronic device starts to display the first barrage.
- the correspondence between the display position of the second barrage at the first moment and the timing of the electronic device performing the above-mentioned target operation on the second barrage may include two possible implementation manners , Specifically can be the following implementation manner one and implementation manner two. The two implementation manners will be exemplarily described in detail below.
- Implementation mode 1 The display position of the second barrage at the first moment is located in the enclosed area formed by the first section of the trajectory.
- the timing for the electronic device to perform the target operation on the second barrage may be: the second barrage touches the first barrage. A trajectory.
- the foregoing step 202 may be specifically implemented by the following step 202b.
- Step 202b In the case where the display position of the second barrage at the first moment is located in the enclosed area, and the second barrage touches the first section of the trajectory, the electronic device cancels the display of the second barrage.
- the electronic device can cancel the display of the second barrage.
- the first trajectory is a trajectory 51
- the trajectory 51 includes the first trajectory constituting a closed area
- the second barrage is the barrage "I like it.” 52.
- the display position of the second barrage at the first moment is located in the closed area, and the moving direction of the second barrage is the direction indicated by the arrow 53.
- the barrage "I like” 52 can move in the direction indicated by the arrow 53, when the barrage "I like” 52 moves to the first track that constitutes the enclosed area
- the electronic device can cancel the display of the barrage "I like", that is, as shown in Figure 6 (b), the electronic device The barrage displayed no longer includes the barrage "I like it".
- the barrage display control method provided by the embodiment of the present invention can be applied to a scenario where an electronic device updates the second barrage display mode. Since the display position of the second barrage at the first moment is located in a closed area, the first The second barrage touches the first segment of the trajectory that constitutes the enclosed area, and the electronic device can cancel the display of the second barrage. Therefore, the closed area formed by the first segment of trajectory is equivalent to an isolated area, which can display the position at the first moment The barrage located in the enclosed area can only be displayed in the enclosed area. In addition, when the bullet screens located in the enclosed area touch the first track at the first moment, the electronic device can quickly cancel the display of the bullet screens, so that the electronic device can cancel the display of the bullet screens more conveniently.
- Implementation mode 2 The display position of the second barrage at the first moment is outside the enclosed area formed by the first track section.
- the timing for the electronic device to perform the target operation on the second barrage can be: the second contact of the second barrage To the first track.
- step 202 may be specifically implemented through the following step 202c.
- Step 202c If the display position of the second barrage at the first moment is outside the enclosed area, the electronic device maintains the display of the second barrage when the first system of the second barrage touches the first trajectory, and When the second barrage touches the first trajectory for the second time, the display of the second barrage is cancelled.
- the electronic device can maintain the display of the second barrage, that is, the electronic device can continue to move the second barrage along the movement track of the second barrage (for example, the second track) until the second barrage.
- the barrage moves to the first trajectory for the second time (that is, the second barrage touches the first trajectory for the second time).
- the electronic device can cancel the display of the second barrage.
- the display position at the first moment is located on the bullet screen outside the closed area.
- the electronic device may not respond to the bullet screen.
- the screen performs any operation, that is, controls the second barrage to continue to move along its original movement track.
- the electronic device can cancel the display of the barrage. That is, the barrage displayed by the electronic device can only enter the closed area and cannot leave the closed area.
- the first trajectory is a trajectory 51
- the trajectory 51 includes a first trajectory constituting a closed area
- the second barrage is a barrage "I like it" 52.
- the display position of the second barrage at the first moment is outside the closed area, and the moving direction of the second barrage is the direction indicated by the arrow 54.
- the barrage "I like” 52 can move in the direction indicated by the arrow 54.
- the electronic device can maintain the display of the barrage "I like” 52, that is, the barrage "I like” 52 can continue to move in the direction indicated by the arrow 54.
- the electronic device can cancel the display of the barrage "I like", that is, as shown in Figure 7 (b), the electronic device displays The barrage "I like it" is no longer included in the barrage.
- the barrage display control method provided by the embodiment of the present invention can be applied to a scenario where the electronic device updates the second barrage display mode. Since the display position of the second barrage at the first moment is outside the closed area, the first barrage The second barrage touches the first segment of the trajectory for the second time, and the electronic device can cancel the display of the second barrage. Therefore, the enclosed area formed by the first segment of the trajectory is a relatively isolated area, so that the display at the first moment can be made The barrage located outside the enclosed area can enter the enclosed area, but cannot leave the enclosed area after entering the enclosed area. In addition, when the barrage outside the enclosed area at the first moment touches the first track for the second time, the electronic device can quickly cancel the display of these barrage, which can make it more convenient for the electronic device to cancel the display of the barrage.
- the electronic device when the first barrage and the second barrage are updated to the target display state, before the electronic device performs the target operation corresponding to the target display state on the second barrage, the electronic device The movement track of the first barrage (that is, the first track) can be displayed. If the first track does not include the first track, the user can trigger the electronic device to update the first track by inputting the first track , So that the updated first trajectory can include the above-mentioned first trajectory. In this way, after the first trajectory is updated, if the first barrage and the second barrage are updated to the target display state, the electronic device can perform the target operation on the second barrage.
- the barrage display control method provided in the embodiment of the present invention may further include the following steps 204 to 206.
- the embodiment of the present invention may not limit the execution order between the above step 201 and step 204, that is, the electronic device may perform step 201 first, and then perform step 204; or may perform step 204 first, and then perform step 201; It is also possible to perform step 201 and step 204 at the same time. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- Step 204 The electronic device displays the first track.
- Step 205 The electronic device receives the first input of the user on the first trajectory.
- Step 206 The electronic device updates the first trajectory in response to the first input.
- the updated first trajectory may include the above-mentioned first trajectory.
- the electronic device when the electronic device displays the first barrage, the electronic device may also display the movement track of the first barrage (that is, the first track). After the electronic device displays the first trajectory, if the user wants to trigger the electronic device to update the movement trajectory of the first bullet screen, the user can trigger the electronic device to update the movement trajectory of the first bullet screen through the above-mentioned first input, that is, trigger the electronic device Update the first track.
- the movement trajectory of the above-mentioned first barrage may be the updated first trajectory.
- the user can change the movement trajectory of the first barrage through the above-mentioned first input, so that the movement trajectory of the first barrage can be drawn in the electronic device according to the needs of the user.
- the aforementioned first input may be an input of the user continuing to drag a finger on the screen of the electronic device starting from the end of the aforementioned first trajectory.
- the user can start from the position of the point A, in the electronic device Continue to drag the finger on the screen of (that is, the above-mentioned first input), and in response to the input, the electronic device can update the first trajectory to a trajectory 62 as shown in (b) in FIG. 8.
- the barrage display control method provided by the embodiment of the present invention can be applied to a scene where an electronic device displays a barrage.
- the user can trigger the electronic device to update the first trajectory (that is, the first barrage) through the above-mentioned first input Therefore, after the electronic device displays the first barrage, the user can change the movement track of the first barrage again, so that the electronic device can display the first barrage in a flexible manner.
- the updated first trajectory includes the above-mentioned first segment of trajectory, and the first segment of trajectory can trigger the electronic device to cancel some barrage displayed by the electronic device (for example, the display position at the first moment is in the first segment).
- the third case the above-mentioned target display state is: the second barrage is moved to the display area of the first barrage; the above-mentioned target operation is: the second barrage is hidden in the display area of the first barrage.
- the above-mentioned step 202 may be specifically implemented by the following step 202d.
- Step 202d When the second barrage is moved to the display area of the first barrage, the electronic device hides the second barrage in the display area of the first barrage.
- the electronic device displays the second barrage when the second barrage moves outside the display area of the first barrage.
- the electronic device only displays the first barrage in the display area of the first barrage, and other barrages cannot be displayed in the display area of the first barrage. That is to say, in the display area of the first barrage, other barrage is invisible to the user.
- the first barrage may be a third type of control barrage, and the display area of the third type of control barrage has a hidden attribute. In other words, when other barrage moves to the display area of the third type of control barrage, the display area of the third type of control barrage will hide these barrage.
- the electronic device may block or cover the second barrage through the display area of the first barrage, so that the second barrage is invisible to the user.
- the display area of the first barrage may be a non-transparent area, and the display area of the first barrage can be displayed on top of the display layers of other barrages, so that the display area of the first barrage can be blocked or Cover the barrage moving to the display area of the first barrage.
- the second barrage can continue to move on the screen of the electronic device until the second barrage moves to the display area of the first barrage.
- the electronic device can display the second barrage again.
- the display area of the first barrage may be a preset area centered on the target position (which may also be referred to as the target anchor point).
- the above-mentioned target location may be a preset location in the electronic device (ie, electronic device 1) that sends the first barrage, or a location set in the electronic device 1 by the user of the electronic device 1 (ie, user 1) .
- the embodiment of the present invention does not limit it.
- the target position when the above-mentioned target position is the position set by the user 1 in the electronic device 1, the target position may be that the user 1 enters the content of the first barrage in the electronic device 1, before the electronic device 1
- the position set in the device 1 it can also be the position set in the electronic device 1 after the user 1 inputs the content of the first barrage in the electronic device 1.
- it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- the target position in the case where the above-mentioned target position is the position set in the electronic device 1 before the user 1 inputs the contents of the first barrage in the electronic device 1, the target position may be When the user 1 triggers the electronic device 1 to display the barrage input interface, the input position of the user 1 on the electronic device 1.
- the position 63 is the above-mentioned target position.
- the display area of the barrage can be set to the position 63 A display area in the center.
- the form of the display area of the first barrage may include two possible display forms, namely form one and form two. These two forms are specifically described below as examples.
- Form 1 The display area of the first barrage is a display area that gradually increases with the display time of the first barrage.
- the first barrage may be displayed at the target position (that is, the center of the display area of the first barrage. Then, the first barrage may be displayed for the first duration (for example, 1 second, etc.). After that, the display area of the first barrage can be centered on the target position and spread around the screen of the electronic device until the display area of the first barrage covers all the screen of the electronic device, that is, the display area of the first barrage The display area may gradually increase with the display time of the first barrage.
- the electronic device may cancel the display of the second time period (for example, any possible time period such as 3 seconds or 5 seconds). A barrage. In this way, after the electronic device cancels displaying the first barrage, the electronic device can continue to display other barrage.
- the second time period for example, any possible time period such as 3 seconds or 5 seconds.
- Form 2 The display area of the first barrage is a fixed display area.
- the display area of the first barrage screen may be a regular-shaped display area (for example, a circular display area or a rectangular display area), it may also be an irregular-shaped display area. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- the display area of the first barrage can form a "forbidden area".
- these barrage will be hidden; in these barrage gradually When moving out of this area, these barrages can continue to be displayed. In other words, only the first barrage can be displayed in this area.
- the first barrage is the barrage "hahaha”
- the second barrage is the barrage "awesome"
- Figure 10 As shown in (a), when the barrage "Awesome” 45 moves to the display area 46 of the barrage "hahaha”, that is, the first barrage and the second barrage are updated to the target display state, and the electronic device can be The barrage "hahaha” hides the barrage "awesome” 45 in the display area 46.
- the barrage display control method provided by the embodiment of the present invention can be applied to a scene where the second barrage is hidden in the display area of the first barrage, because the display area of the first barrage displayed by the electronic device can follow the first barrage.
- the display time of the screen gradually increases, so the hidden barrage will increase with the display time of the first barrage until the electronic device cancels the display of the first barrage.
- the first barrage can temporarily annihilate other barrage displayed by the electronic device, so that the electronic device can quickly hide the barrage displayed in the display area of the first barrage in a short time.
- the foregoing step 202 may be specifically implemented by the following step 202e.
- Step 202e In the case that the second barrage passes the target boundary line of the first barrage, the electronic device sequentially updates the barrage content of the second barrage in the order in which the barrage content of the second barrage passes the target boundary line The barrage content of the first barrage.
- the first barrage may be a fourth type of control barrage
- the target boundary of the fourth type of control barrage has the attribute of infection or transformation.
- the target boundary line can gradually "infect" the second barrage, so that the barrage content of the second barrage Update to the fourth type of control barrage content.
- the electronic device updates the barrage content of the second barrage to the barrage content of the first barrage
- the updated second barrage may continue to move along the movement track of the original second barrage.
- the display position of the first barrage may be a fixed display position.
- the barrage display control method provided by the embodiment of the present invention can be applied to a scene where the barrage content of the second barrage is updated to the barrage content of the first barrage. Because the electronic device can follow the barrage of the second barrage The content goes through the target dividing line in the order, and the second barrage content is updated to the first barrage content in turn, so the second barrage can be infected through the target dividing line of the first barrage, which can make The electronic device simultaneously displays multiple bullet screens with the same content.
- the user when the user is watching a video through the electronic device, the user can trigger the electronic device to display a bullet screen input interface to input the content of the bullet screen that the user wants to send in the bullet screen input interface. .
- the user can select a type of barrage in the barrage input interface to trigger the electronic device to send the barrage that it wants to send with that type of barrage, so that the display mode of the barrage sent by the electronic device can be increased. Diversity.
- the barrage display control method provided by the embodiment of the present invention may further include the following steps 207 and 208.
- the embodiment of the present invention may not limit the execution sequence between steps 201 to 202 and steps 207 to 208, that is, steps 201 to 202 can be performed first, and then steps 207 to 208 are performed; or Step 207 to step 208 are performed first, and then step 201 to step 202 are performed. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
- Step 207 The electronic device receives the second input of the user on the barrage input interface.
- the above-mentioned second input may be an input that triggers the electronic device to select the target barrage type.
- Step 208 In response to the second input, the electronic device sends the to-be-sent barrage in the target barrage type.
- the barrage sent by the electronic device corresponds to different types of barrage, and the display mode of the barrage sent by the electronic device may be different.
- the user can trigger the electronic device to send the barrage to be sent in the electronic device with the target barrage type through the above-mentioned second input.
- the electronic device can display the barrage in a display mode corresponding to the target barrage type.
- the above-mentioned second input may be a user's input for the barrage type selection control in the barrage input interface.
- the above-mentioned second input may include a first sub-input and a second sub-input.
- the first sub-input may be any possible input such as a single-click input or double-click input of the above-mentioned barrage type selection control by the user.
- the electronic device may display at least one barrage type Option (the barrage type indicated by the at least one barrage type option is a barrage type supported by the electronic device).
- the second sub-input may be a single-click input or a long press of the user for a certain barrage type option in the at least one barrage type option (the barrage type indicated by the barrage type option is the target barrage type) Input and other possible inputs.
- the first sub-input is the user's click input to the barrage type selection control
- the second sub-input is the user's click input to the barrage type option indicating the target barrage type
- the target The barrage type is barrage type 1.
- the electronic device after the electronic device sends the barrage to be sent in the electronic device in the target barrage type, the electronic device can display the barrage in a display mode corresponding to the target barrage type, so that the electronic device The device can display the barrage sent by the user triggered by the electronic device according to the display mode desired by the user, thereby improving the interest of the barrage sent by the electronic device.
- the barrage display control method shown in each of the above figures is all exemplified in conjunction with one figure in the embodiment of the present invention.
- the barrage display control method shown in each of the above figures can also be implemented in combination with any other figures that can be combined as illustrated in the above embodiments, and will not be repeated here.
- an embodiment of the present invention provides an electronic device 700.
- the electronic device 700 may include a display module 701 and an execution module 702;
- the display module 701 can be used to display the first barrage and the second barrage; the execution module 702 can be used to display the first barrage and the second barrage displayed by the display module 701 to the target display state.
- the second barrage executes the target operation corresponding to the target display state; the target operation includes any one of the following: cancel the display of the second barrage, update the content of the second barrage to the barrage of the first barrage Content, hide the second barrage in the display area of the first barrage.
- the display attribute of the first barrage is the first attribute, and the first attribute is to move according to the first trajectory or to keep the display in the target area;
- the first trajectory is the trajectory drawn by the user who triggered the sending of the first barrage;
- the display attribute of the second barrage is the second attribute, and the second attribute is to move according to the second trajectory;
- the display module 701 can be specifically used to display the first barrage according to the first attribute, and display the second attribute according to the second attribute. Barrage.
- the electronic device provided by the embodiment of the present invention can be applied to the scene where the electronic device displays the bullet screen. Since the electronic device can display the first bullet screen according to the first trajectory drawn by the user who triggered the sending of the first bullet screen, when the first bullet screen is triggered to send When the trajectory drawn by the user of a barrage is different, the electronic device can display the first barrage in different ways, so that the display mode of the electronic device for displaying the first barrage can be more flexible.
- the target display state is any one of the following: the first barrage is in contact with the second barrage on the first trajectory, the second barrage moves to the first trajectory, and the second barrage moves to the first barrage In the display area of, the second barrage passes the target boundary line of the first barrage; where the first trajectory is the movement trajectory of the first barrage; the display area of the first barrage is gradually increased with the display time of the first barrage Enlarged display area, or fixed display area.
- the electronic device provided by the embodiment of the present invention is applied to a scene where the electronic device displays a barrage. Since the target display state can include multiple display states, the first barrage and the second barrage can be updated to the target display state. Including many types, so that the electronic device can perform target operations on the second bullet screen in different display states, that is, the electronic device can update the display mode of the second bullet screen under different conditions, so that the electronic device can be The way of displaying barrage is more flexible.
- the target display state is: the first barrage is in contact with the second barrage on the first track; the execution module 702 can be specifically used to cancel the display of the second barrage, or change the barrage of the second barrage The content is updated to the barrage content of the first barrage.
- the electronic device provided by the embodiment of the present invention is applied to a scenario where the electronic device updates the display mode of the second barrage.
- the electronic The device can cancel the display of the second barrage, so on the first track, the first barrage can eliminate or annihilate the second barrage, so that the user who triggered the sending of the first barrage and the user who triggered the sending of the second barrage can be triggered ,
- the interaction between the first bullet screen and the second bullet screen can improve the user experience when watching the video.
- the electronic device can update the barrage content of the second barrage to the barrage content of the first barrage when the first barrage is in contact with the second barrage on the first trajectory, On the first trajectory, the first barrage can infect or transform the second barrage, so that the electronic device can quickly change the barrage content of the barrage, which in turn can make the electronic device display the barrage more diversified and more flexible.
- the display module can also be used to display the first barrage with target display parameters when the first barrage and the second barrage are updated to the target display state.
- the electronic device provided by the embodiment of the present invention can be applied to a scenario where the electronic device updates the display parameters of the first barrage. Since the first barrage and the second barrage are updated to the target display state, the electronic device can also The first barrage is displayed with the target display parameters. Therefore, the display mode of the first barrage can be changed to indicate that the electronic device changes the display mode of the second barrage to be triggered by the first barrage. This can inform the user that the first barrage The screen is a barrage with special properties.
- the target display state is: the second barrage moves to the first trajectory, the first trajectory includes the first section of the trajectory, and the first section of the trajectory forms a closed area; the execution module can be specifically used for the second barrage in the When the display position at the first moment is in the enclosed area and the second barrage touches the first trajectory, the display of the second barrage is cancelled, and the first moment is the time when the electronic device starts to display the first barrage; or If the display position of the second barrage at the first moment is outside the enclosed area, the execution module is specifically used to maintain the display of the second barrage when the second barrage touches the first trajectory for the first time , And when the second barrage touches the first section of the trajectory for the second time, the display of the second barrage is cancelled, and the first moment is the time when the electronic device starts to display the first barrage.
- the electronic device provided by the embodiment of the present invention can be applied to a scenario where the electronic device updates the display mode of the second barrage.
- the first The second barrage touches the first segment of the trajectory that constitutes the enclosed area, and the electronic device can cancel the display of the second barrage. Therefore, the closed area formed by the first segment of trajectory is equivalent to an isolated area, which can display the position at the first moment The barrage located in the enclosed area can only be displayed in the enclosed area.
- the second barrage touches the first trajectory for the second time, and the electronic device can cancel the display of the second barrage.
- the enclosed area constituted by the first track is a relatively isolated area, so that the barrage whose display position at the first moment is outside the enclosed area can enter the enclosed area, but cannot leave the enclosed area after entering the enclosed area. Enclosed area. Moreover, because when the barrage outside the enclosed area at the first moment touches the first track for the second time, the electronic device can quickly cancel the display of these barrage, which can make it more convenient for the electronic device to cancel the display of the barrage. .
- the electronic device may also include a receiving module; a display module, which may also be used to perform and target display on the second barrage when the execution module is updated to the target display state of the first barrage and the second barrage.
- a receiving module Before the target operation corresponding to the state, display the first track; the receiving module can be used to receive the user's first input to the first track displayed by the display module; the display module can also be used to respond to the first input received by the receiving module, Update the first trajectory; wherein, the updated first trajectory includes the first trajectory.
- the electronic device provided by the embodiment of the present invention, on the one hand, because the user can trigger the electronic device to update the first trajectory (that is, the movement trajectory of the first bullet screen) through the first input, so after the electronic device displays the first bullet screen , The user can also change the movement track of the first barrage again, so that the electronic device can display the first barrage more flexibly.
- the updated first trajectory includes the above-mentioned first segment of trajectory, and the first segment of trajectory can trigger the electronic device to cancel some barrage displayed by the electronic device (for example, the display position at the first moment is in the first segment).
- the target display state is: the second barrage moves to the display area of the first barrage; the execution module can be specifically used to hide the display of the second barrage in the display area of the first barrage; wherein, When the second barrage moves outside the display area of the first barrage, the second barrage is displayed.
- the electronic device provided by the embodiment of the present invention can be applied to a scene where the second barrage is hidden in the display area of the first barrage. Because the display area of the first barrage displayed by the electronic device can follow the display of the first barrage The time gradually increases, so the hidden barrage will increase with the display time of the first barrage until the electronic device cancels the display of the first barrage. In this way, it is equivalent to that the first barrage can temporarily annihilate other barrage displayed by the electronic device, so that the electronic device can quickly hide the barrage displayed in the display area of the first barrage in a short time.
- the target display state is: the second barrage passes the target boundary line of the first barrage; the execution module can be specifically used to sequentially place the second barrage content in the order in which the barrage content of the second barrage passes the target boundary line.
- the barrage content of the barrage is updated to the barrage content of the first barrage.
- the electronic device provided by the embodiment of the present invention can be applied to a scene where the barrage content of the second barrage is updated to the barrage content of the first barrage, because the electronic device can pass through the target according to the barrage content of the second barrage.
- the barrage content of the second barrage is updated to the barrage content of the first barrage in turn, so the second barrage can be infected through the target dividing line of the first barrage, so that the electronic device can be made at the same time Display multiple bullet screens with the same content.
- the electronic device provided by the embodiment of the present invention can implement the various processes performed by the electronic device in the above-mentioned bullet screen display control method embodiment, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
- An embodiment of the present invention provides an electronic device.
- the electronic device displays a barrage
- the barrage content of the second barrage is updated to the barrage content of the first barrage
- the barrage content of the first barrage is updated. Hiding the second barrage in the display area of the first barrage can change the display mode of the barrage displayed by the electronic device.
- the electronic device can use Perform the target operation corresponding to the target display state on the second barrage, and change the way the electronic device displays the barrage, so that the electronic device can display the barrage in different display modes, thereby making the way the electronic device displays the barrage more flexible , And can diversify the ways in which electronic devices display barrage.
- FIG. 14 is a schematic diagram of hardware of an electronic device that implements various embodiments of the present invention.
- the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, The processor 110, and the power supply 111 and other components.
- the structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device.
- the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
- electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
- the processor 110 can be used to control the display unit 106 to display the first barrage and the second barrage; and to control the second barrage when the first barrage and the second barrage are updated to the target display state.
- the display module 701 in the above-mentioned structural schematic diagram of the electronic device can be realized by the above-mentioned display unit 106; the execution module 702 in the above-mentioned structural schematic diagram of the electronic device can be realized by the above-mentioned processor 110.
- the receiving module of the above-mentioned electronic device can be implemented by the above-mentioned user input unit 107.
- An embodiment of the present invention provides an electronic device.
- the electronic device displays a barrage
- the barrage content of the second barrage is updated to the barrage content of the first barrage
- the barrage content of the first barrage is updated. Hiding the second barrage in the display area of the first barrage can change the display mode of the barrage displayed by the electronic device.
- the electronic device can use Perform the target operation corresponding to the target display state on the second barrage, and change the way the electronic device displays the barrage, so that the electronic device can display the barrage in different display modes, thereby making the way the electronic device displays the barrage more flexible , And can diversify the ways in which electronic devices display barrage.
- the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
- the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
- the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
- the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
- the input unit 104 is used to receive audio or video signals.
- the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042.
- the graphics processing unit 1041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
- the processed image frame can be displayed on the display unit 106.
- the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
- the microphone 1042 can receive sound, and can process such sound into audio data.
- the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
- the electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
- the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
- the display unit 106 is used to display information input by the user or information provided to the user.
- the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- LCD liquid crystal display
- OLED organic light-emitting diode
- the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
- the user input unit 107 includes a touch panel 1071 and other input devices 1072.
- the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
- the touch panel 1071 may include two parts: a touch detection device and a touch controller.
- the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
- the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
- the user input unit 107 may also include other input devices 1072.
- other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
- the touch panel 1071 can be overlaid on the display panel 1061.
- the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
- the type of event provides corresponding visual output on the display panel 1061.
- the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
- the implementation of the input and output functions of the electronic device is not specifically limited here.
- the interface unit 108 is an interface for connecting an external device with the electronic device 100.
- the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
- the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
- the memory 109 can be used to store software programs and various data.
- the memory 109 may mainly include a program storage area and a data storage area.
- the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
- the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
- the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
- the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
- the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
- a power source 111 such as a battery
- the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
- the electronic device 100 includes some functional modules not shown, which will not be repeated here.
- an embodiment of the present invention also provides an electronic device, including a processor 110 as shown in FIG. 14, a memory 109, a computer program stored in the memory 109 and running on the processor 110, and the computer program is
- the processor 110 implements each process of the above-mentioned barrage display control method embodiment during execution, and can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
- the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
- a computer program is executed by the processor shown in FIG. 14, each of the above-mentioned barrage display control method embodiments is implemented.
- the computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
- the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods of the various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明实施例提供一种弹幕显示控制方法及电子设备。该方法包括:显示第一弹幕和第二弹幕;在第一弹幕和第二弹幕更新至目标显示状态的情况下,对第二弹幕执行与目标显示状态对应的目标操作;其中,目标操作包括以下任意一项:取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕。
Description
相关申请的交叉引用
本申请要求于2019年12月31日提交中国国家知识产权局、申请号为201911418933.1、申请名称为“弹幕显示控制方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明实施例涉及通信技术领域,尤其涉及一种弹幕显示控制方法及电子设备。
随着通信技术的高速发展,电子设备的应用越来越广泛,用户对电子设备的性能要求也越来越高。
在用户使用电子设备观看视频的过程中,如果用户想要观看与该视频相关的弹幕信息(以下简称为弹幕),那么用户可以触发电子设备开启视频应用中的弹幕功能,如此电子设备可以显示观看该视频的用户发送的所有弹幕。如果用户只想观看视频,那么用户可以触发电子设备关闭视频应用中的弹幕功能,如此电子设备可以取消显示与该视频相关的所有弹幕。
然而,通过上述方法,若电子设备开启弹幕功能,则电子设备可以显示单子设备当前播放的视频相关的全部弹幕;若电子设备关闭弹幕功能,则电子设备取消显示电子设备当前播放的视频相关的全部内容。如此,导致电子设备显示弹幕的方式比较单一、不够灵活。
发明内容
本发明实施例提供一种弹幕显示控制方法及电子设备,能够解决现有的电子设备显示弹幕的方式比较单一、不够灵活的问题。
为了解决上述技术问题,本发明实施例是这样实现的:
第一方面,本发明实施例提供了一种弹幕显示控制方法,该方法包括:
显示第一弹幕和第二弹幕;并在第一弹幕和第二弹幕更新至目标显示状态的情况下,对第二弹幕执行与目标显示状态对应的目标操作;其中,目标操作包括以下任意一项:取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕。
第二方面,本发明实施例提供了一种电子设备,该电子设备包括显示模块和执行模块。显示模块,用于显示第一弹幕和第二弹幕;执行模块,用于在显示模块显示的第一弹幕和第二弹幕更新至目标显示状态的情况下,对第二弹幕执行与目标显示状态对应的目标操作;其中,目标操作包括以下任意一项:取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕。
第三方面,本发明实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如上述第一方面中的弹幕显示控制方法的步骤。
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如上述第一方面中的弹幕显示控制方法的步骤。
在本发明实施例中,可以显示第一弹幕和第二弹幕;并在第一弹幕和第二弹幕更新至目标显示状态的情况下,对第二弹幕执行与目标显示状态对应的目标操作;其中,目标操作包括以下任意一项:取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕。通过该方案,在电子设备显示弹幕的场景中,由于取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕均可以改变电子设备显示的弹幕的显示 方式,因此在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备可以通过对第二弹幕执行与目标显示状态对应的目标操作,改变电子设备显示弹幕的方式,如此可以使得电子设备以不同的显示方式显示弹幕,从而可以使得电子设备显示弹幕的方式比较灵活,并且可以使得电子设备显示弹幕的方式多样化。
图1为本发明实施例提供的操作系统的架构示意图;
图2为本发明实施例提供的弹幕显示控制方法的示意图;
图3为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之一;
图4为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之二;
图5为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之三;
图6为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之四;
图7为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之五;
图8为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之六;
图9为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之七;
图10为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之八;
图11为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之九;
图12为本发明实施例提供的弹幕显示控制方法的弹幕显示界面的示意图之十;
图13为本发明实施例提供的电子设备的结构示意图;
图14为本发明实施例提供的电子设备的硬件示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一弹幕和第二弹幕等是用于区别不同的弹幕,而不是用于描述弹幕的特定顺序。
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等。
本发明实施例提供一种弹幕显示控制方法及电子设备,可以显示第一弹幕和第二弹幕;并在第一弹幕和第二弹幕更新至目标显示状态的情况下,对第二弹幕执行与目标显示状态对应的目标操作;其中,目标操作包括以下任意一项:取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕。通过该方案,在电子设备显示弹幕的场景中,由于取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕均可以改变电子设备显示的弹幕的显示方式,因此在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备可以通过对第二弹幕执行与目标显示状态对应的目标操作,改变电子设备显示弹幕的方式,如此可以使得电子设备以不同的显示方式显示弹幕,从而可以使得电子设备显示弹幕的方式比较灵活,并且可以使得电子设备显示弹幕的方式多样化。
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。
下面以图1所示的操作系统为例,介绍一下本发明实施例提供的弹幕显示控制方法所应用的软件环境。
如图1所示,为本发明实施例提供的一种可能的操作系统的架构示意图。在图1中,操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。
系统运行库层包括库(也称为系统库)和操作系统运行环境。库主要为操作系统提供其所需的各类资源。操作系统运行环境用于为操作系统提供软件环境。
内核层是操作系统的操作系统层,属于操作系统软件层次的最底层。内核层基于Linux内核为操作系统提供核心系统服务和与硬件相关的驱动程序。
以上述操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的操作系统的系统架构,开发实现本发明实施例提供的弹幕显示控制方法的软件程序,从而使得该弹幕显示控制方法可以基于如图1所示的操作系统运行。即处理器或者电子设备可以通过在操作系统中运行该软件程序实现本发明实施例提供的弹幕显示控制方法。
本发明实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。
本发明实施例提供的弹幕显示控制方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该弹幕显示控制方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以电子设备为例,对本发明实施例提供的弹幕显示控制方法进行示例性的说明。
本发明实施例中,在用户通过电子设备观看视频的过程中,如果用户想要观看与该视频相关的弹幕,那么用户可以触发电子设备打开弹幕功能,从而电子设备可以显示与该视频相关的弹幕(可以包括用户触发电子设备发送的弹幕和/或其他观看该视频的用户触发发送的弹幕等)。在电子设备显示这些弹幕之后,如果电子设备显示的这些弹幕中的不同弹幕(例如本发明实施例中的第一弹幕和第二弹幕)更新到一个预设状态(例如本发明实施例中的目标显示状态),那么电子设备可以对其中一个弹幕(例如本发明实施例中的第二弹幕)执行与该预设状态对应的特定操作(例如本发明实施中的目标操作),从而可以改变电子设备显示该弹幕的方式。如此,可以使得电子设备显示弹幕的方式比较灵活,并且可以使得电子设备显示弹幕的方式多样化。
下面结合各个附图,对本发明实施例提供的弹幕显示控制方法进行示例性的说明。
如图2所示,本发明实施例提供一种弹幕显示控制方法,该方法包括下述的步骤201和步骤202。
步骤201、电子设备显示第一弹幕和第二弹幕。
可以理解,本发明实施例中,上述第一弹幕和第二弹幕可以为电子设备显示的不同弹幕。
本发明实施例中,在电子设备播放视频的过程中,电子设备可以显示与其播放的视频对应的弹幕,如此用户可以通过查看这些弹幕,了解不同用户观看该视频的感受或体验。
可选地,本发明实施例中,上述第一弹幕和第二弹幕可以为相同电子设备发送的弹幕,也可以为不同电子设备发送的弹幕。具体可以根据实际使用需求确定,本发明实施例不作限定。
示例性的,上述第一弹幕可以为电子设备发送的弹幕,上述第二弹幕可以为其它电子设备发送的弹幕。
可选地,本发明实施例中,上述第一弹幕的显示属性可以为第一属性,该第一属性可为按照第一轨迹移动,或可以为在目标区域保持显示,该第一轨迹可以为触发发送第 一弹幕的用户绘制的轨迹。上述第二弹幕的显示属性可以为第二属性,该第二属性可以为按照第二轨迹移动。
可选地,本发明实施例中,上述步骤201具体可以通过下述的步骤201a实现。
步骤201a、电子设备按照第一属性,显示第一弹幕,并按照第二属性,显示第二弹幕。
可以理解,本发明实施例中,上述第一弹幕可以为一种特殊的弹幕。例如,该第一弹幕可以为具有特定类型的弹幕。
本发明实施例中,上述第二轨迹可以为电子设备中预置的弹幕移动轨迹。即第二弹幕可以为普通的弹幕。
可选的,本发明实施例中,对于电子设备显示的每条弹幕,电子设备可以获取一条弹幕的属性信息,从而根据其属性信息确定该一条弹幕的显示属性。其中,该一条弹幕的属性信息可以根据触发发送该一条弹幕的用户在其电子设备中选择的弹幕类型确定。
可以理解,当电子设备发送弹幕时,电子设备可以将弹幕的弹幕类型(或弹幕的属性信息)携带在该弹幕的弹幕内容中,一并发送。
示例性的,以第一弹幕为例,当电子设备显示第一弹幕时,电子设备可以先确定第一弹幕的弹幕类型,然后再以该弹幕对应的弹幕类型对应的显示属性显示第一弹幕,即电子设备可以以上述第一属性显示第一弹幕。
可选地,上述第一轨迹可以为发送第一弹幕的电子设备(以下简称为电子设备1)中预设的弹幕移动轨迹,也可以为电子设备1的用户(以下简称为用户1)在电子设备1中设置的弹幕移动轨迹。具体可以根据实际使用需求确定,本发明实施例不作限定。
可选地,本发明实施例中,当上述第一轨迹为用户1在电子设备1中设置的弹幕移动轨迹时,该第一轨迹可以为用户1在电子设备1中输入第一弹幕的内容之前,在电子设备1中设置的移动轨迹;也可以为用户1在电子设备1中输入第一弹幕的内容之后,在电子设备1中设置的移动轨迹。具体可以根据实际使用需求确定,本发明实施例不作限定。
可选的可选地,本发明实施例中,在上述第一轨迹为用户1在电子设备1中输入第一弹幕的内容之前,在电子设备1中设置的移动轨迹的情况下,该第一轨迹可以为用户1触发电子设备1显示弹幕输入界面时,用户1在电子设备1上的输入轨迹。
示例性的,在电子设备1播放视频的过程中,假设用户通过在电子设备1上输入如图3中的(a)所示的输入轨迹31,触发电子设备1显示如图3中的(b)所示的弹幕输入界面。那么,当用户1在该界面中输入弹幕的弹幕内容,并触发电子设备1发送该弹幕(即第一弹幕)时,该第一弹幕的移动轨迹(即第一轨迹)可以为如图3中的(a)所示的输入轨迹31。
本发明实施例提供的弹幕显示控制方法,可以应用于电子设备显示弹幕的场景中,由于电子设备可以按照触发发送第一弹幕的用户绘制的第一轨迹显示第一弹幕,因此当触发发送第一弹幕的用户绘制的轨迹不同时,电子设备显示第一弹幕的方式可以不同,从而可以使得电子设备显示上述第一弹幕的显示方式更加灵活。
步骤202、在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备对第二弹幕执行与目标显示状态对应的目标操作。
其中,上述目标操作可以包括以下任意一项:取消上述第二弹幕的显示、将第二弹幕的弹幕内容更新为上述第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕。
需要说明的是,本发明实施例中,由于弹幕按照其移动轨迹在电子设备的显示屏上移动,因此可以看作弹幕的显示状态一直在更新。
本发明实施例中,在电子设备显示上述第一弹幕和第二弹幕之后,电子设备可以确定第一弹幕和第二弹幕是否更新至上述目标显示状态,如果第一弹幕和第二弹幕更新至目标显示状态,那么电子设备可以对第二弹幕执行与目标显示状态对应的目标操作。如此,可以改变电子设备显示弹幕的方式,从而可以使得电子设备显示弹幕的方式比较灵活,且丰富电子设备显示弹幕的方式。
相应的,如果第一弹幕和第二弹幕未更新至上述目标显示状态,那么电子设备可以继续按照第二弹幕原本的显示方式显示第二弹幕。
可选地,本发明实施例中,上述目标显示状态可以为以下任意一项:第一弹幕与第二弹幕在第一轨迹上接触、第二弹幕移动至第一轨迹上、第二弹幕移动至第一弹幕的显 示区域中、第二弹幕经过第一弹幕的目标分界线。
其中,上述第一轨迹可以为上述第一弹幕的移动轨迹;上述第一弹幕的显示区域可以为随第一弹幕的显示时间逐渐增大的显示区域,或可以为固定的显示区域。
可选地,上述目标分界线可以为经过第一弹幕的内容的直线。
示例性的,上述目标分界线可以为经过第一弹幕的内容的中心的直线。
需要说明的是,为了清楚的说明上述目标操作与目标显示状态之间的关系,即目标操作如何与目标显示状态对应,对于上述目标显示状态对应的不同情况的相关描述,本申请将在下述的实施例中进行详细的说明,此处不予赘述。
本发明实施例提供的弹幕显示控制方法,应用于电子设备显示弹幕的场景中,由于上述目标显示状态可以包括多种显示状态,因此第一弹幕与第二弹幕更新至目标显示状态的情况可以包括多种,如此可以使得电子设备在不同的显示状态下,对第二弹幕执行目标操作,即可以使得电子设备在不同的情况下,更新第二弹幕的显示方式,从而可以使得电子设备显示弹幕的方式更加灵活。
可选地,本发明实施例中,上述目标显示状态不同,上述目标现实状态对应的目标操作也可以不同(即电子设备对第二弹幕执行的目标操作也可以不同)。也就是说,目标显示状态和目标操作之间可以包括多种任意可能的组合。
下面分别以四种可能的情况(具体可以为下述的第一种情况、第二种情况、第三种情况和第四种情况),对目标显示状态和目标操作进行示例性的说明。
需要说明的是,本发明实施例是以下述的四种情况为例,对目标显示状态和目标操作进行示例性说明的,其并不对本发明实施例造成任何限定。实际实现时,目标显示状态和目标操作之间的组合还可以包括其它任意可能的情况,具体可以根据实际使用需求确定,本发明实施例不作限定。
第一种情况:上述目标显示状态为:第一弹幕与第二弹幕在第一轨迹上接触;上述目标操作为:取消第二弹幕的显示,或将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
示例性的,对于上述第一种情况,上述步骤202具体可以通过下述的步骤202a实现。
步骤202a、在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备取消第二弹幕的显示,或将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
在上述第一种情况中,在上述第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备可以取消第二弹幕的显示;或者,在第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备可以将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。如此,电子设备可以改变第二弹幕的显示方式,从而可以更新电子设备显示的弹幕。
可选地,对于上述第一种情况,电子设备可以显示上述第一轨迹,也可以不显示第一轨迹(即隐藏第一轨迹)。具体可以根据实际使用需求确定,本发明实施例不作限定。
下面为了清楚的描述上述步骤202a,下面分别以下述的步骤202a1和步骤202a2对步骤202a进行示例性的说明。
步骤202a1、在第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备取消第二弹幕的显示。
本发明实施例中,在上述第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备可以取消第二弹幕的显示。可以理解,当第二弹幕移动至第一弹幕的移动轨迹上、且与第一弹幕接触时,电子设备可以取消第二弹幕的显示,从而可以通过第一弹幕快速地消除电子设备显示的第二弹幕。
可以理解,在上述步骤202a1中,上述第一弹幕可以为第一类控制弹幕,该第一类控制弹幕具有消除属性的弹幕。也就是说,当其它弹幕与该第一类控制弹幕在该第一类控制的移动轨迹上接触时,该第一类控制弹幕可以消除或湮灭该弹幕,即电子设备可以取消显示该弹幕。
本发明实施例中,由于第一弹幕沿第一轨迹移动,因此当显示第一弹幕的像素点与显示第二弹幕的像素点存在交集时,电子设备可以确定第一弹幕与第二弹幕在第一轨迹上接触。此时,电子设备可以取消第二弹幕的显示,且按照该第一轨迹继续显示第一弹幕。
示例性的,假设上述第一弹幕为弹幕“哈哈哈”,上述第二弹幕为弹幕“真是太棒了”。那么,如图4中的(a)所示,当弹幕“哈哈哈”41与弹幕“真是太棒了”42在 第一轨迹43上接触时,电子设备可以确定弹幕“哈哈哈”41与弹幕“真是太棒了”42更新至目标显示状态,电子设备可以取消弹幕“真是太棒了”的显示,即如图4中的(b)所示电子设备显示的弹幕不再包括弹幕“真是太棒了”。
并且,如图4中的(b)所示,电子设备可以按照第一轨迹继续显示弹幕“哈哈哈”41。
本发明实施例提供的弹幕显示控制方法,应用于电子设备更新第二弹幕的显示方式(具体可以为取消显示第二弹幕)的场景中,由于在第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备可以取消第二弹幕的显示,因此在第一轨迹上,第一弹幕可以消除或湮灭第二弹幕,从而可以使得触发发送第一弹幕的用户与触发发送第二弹幕的用户,通过第一弹幕与第二弹幕进行互动,从而可以提高用户观看视频时的体验感。
步骤202a2、在第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
本发明实施例中,在上述第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备可以将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。可以理解,当第二弹幕移动到第一弹幕的移动轨迹上、且与第一弹幕接触时,第一弹幕可以感染或转化第二弹幕,以使得第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
可以理解,在上述步骤202a2中,上述第一弹幕可以为第二类控制弹幕,该第二类控制弹幕具有“感染”属性(也可以称为转化属性)的弹幕。也就是说,当其它弹幕与该第一类控制弹幕在该第一类控制的移动轨迹上接触时,该第一类控制弹幕可以感染或转化该弹幕,即电子设备可以将该弹幕的弹幕内容更新为该第一类控制弹幕的弹幕内容,实现快速地更新多条弹幕的弹幕内容。
可选地,本发明实施例中,在电子设备将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容之后,电子设备可以控制更新后的第二弹幕继续沿原第二弹幕的移动轨迹(即上述第二轨迹)移动,也可以控制更新后的第二弹幕沿上述第一轨迹移动。具体可以根据实际使用需求确定,本发明实施例不作限定。
示例性的,假设上述第一弹幕为弹幕“哈哈哈”,上述第二弹幕为弹幕“真是太棒了”。那么,如图5中的(a)所示,当弹幕“哈哈哈”41与弹幕“真是太棒了”42在第一轨迹43上接触时,电子设备可以确定弹幕“哈哈哈”41与弹幕“真是太棒了”42更新至目标显示状态,如此,电子设备可以将弹幕“真是太棒了”更新为如图5中的(b)所示的弹幕“哈哈哈”44。此时,电子设备可以显示多个弹幕“哈哈哈”。
本发明实施例提供的弹幕显示控制方法,应用于电子设备更新第二弹幕的显示方式(具体可以为更新第二弹幕的弹幕内容)的场景中,由于在第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备可以将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容,因此在第一轨迹上,第一弹幕可以感染或转化第二弹幕,从而可以使得电子设备可以快速更改弹幕的弹幕内容,进而可以使得电子设备显示弹幕的方式多样化、且更加灵活。
可选地,对于上述第一种情况,在上述步骤201之后,本发明实施例提供的弹幕显示方法还可以包括下述的步骤203。其中,步骤202a具体可以通过下述的步骤202a3实现。
需要说明的是,本发明实施例中,步骤203中的“电子设备以目标显示参数,显示第一弹幕”和步骤202a3“电子设备取消第二弹幕的显示,或将第二弹幕的弹幕内容更新为第一弹幕的弹幕的内容”均为在第一弹幕与第二弹幕更新至目标显示状态下电子设备执行的步骤,因此为了清楚的说明步骤203和步骤202a3之间的关系,下述实施例仅在步骤203中描述了“在第一弹幕和第二弹幕满足目标显示状态的情况下”。
另外,本发明实施例可以不限定上述步骤203和步骤202a3的执行顺序,即电子设备可以先执行步骤203,后执行步骤202a3;电子设备也可以先执行步骤202a3,后执行步骤203;电子设备还可以同时执行步骤203和步骤202a3。其中,本发明实施例是以电子设备先执行步骤203,后执行步骤202a3为例进行示例性说明的。
步骤203、在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备以目标显示参数,显示第一弹幕。
步骤202a3、电子设备取消第二弹幕的显示,或将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
需要说明的是,对于步骤202a3的相关描述,具体可以参见上述实施例中对电子设 备取消第二弹幕的显示、电子设备将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容的详细描述,为避免重复,此处不再赘述。
在第一种情况中,在第一弹幕与第二弹幕更新至目标显示状态(具体可以为第一弹幕与第二弹幕在第一轨迹上接触)的情况下,电子设备可以以上述目标显示参数,显示第一弹幕。如此,电子设备可以更新第一弹幕的显示参数,即电子设备可以更新第一电子设备的显示方式,从而使得电子设备显示弹幕的方式更加灵活且多样化。
可选地,本发明实施例中,上述目标显示参数对应的显示效果可以包括以下至少一项:放大显示弹幕、以预设色彩显示弹幕、为弹幕添加预设特效。
当然,实际实现时,上述目标显示参数对应的显示效果还可以其它任意可能的显示效果,具体可以根据实际使用需求确定,本发明实施不作限定。
可选地,本发明实施例中,当上述目标显示参数对应的显示效果包括放大显示弹幕时,电子设备可以增大第一弹幕的弹幕内容的字体磅数。
示例性的,假设第一弹幕为弹幕“哈哈哈”,且弹幕“哈哈哈”初始的字体大小可以为图4中的(a)所示的字体大小,在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备可以通过增大弹幕“哈哈哈”(即第一弹幕)的弹幕内容的字体磅数,更新弹幕“哈哈哈”的显示参数,即电子设备以目标显示参数显示弹幕“哈哈哈”。其中,在电子设备增大弹幕内容的字体磅数后,弹幕“哈哈哈”的显示效果可以为如图4中的(b)所示的弹幕“哈哈哈”41所示的显示效果。
本发明实施例提供的弹幕显示控制方法,可以应用于电子设备更新第一弹幕的显示参数的场景中,由于在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备还可以以目标显示参数,显示第一弹幕,因此可以通过改变第一弹幕的显示方式,表示电子设备改变第二弹幕的显示方式为第一弹幕触发的,如此可以告知用户,第一弹幕为具有特殊属性的弹幕。
第二种情况:上述目标显示状态为:第二弹幕移动到第一轨迹上,该第一轨迹可以包括第一段轨迹,第一段轨迹可以形成封闭区域;上述目标操作可以为:取消第二弹幕的显示。
可选地,本发明实施例中,上述第一段轨迹可以为上述第一轨迹中的部分轨迹,也可以为第一轨迹中的全部轨迹。具体可以根据实际使用需求确定,本发明实施例不作限定。
可选地,在上述第二种情况中,上述第二弹幕在第一时刻的显示位置不同,电子设备对第二弹幕执行上述目标操作的时机可以不同。
其中,上述第一时刻可以为电子设备开始显示第一弹幕的时刻。
可选地,对于上述第二种情况,第二弹幕的在第一时刻的显示位置与电子设备对第二弹幕执行上述目标操作的时机之间的对应关系可以包括两种可能的实现方式,具体可以为下述的实现方式一和实现方式二。下面具体对这两种实现方式进行示例性的说明。
实现方式一:第二弹幕的在第一时刻的显示位置位于上述第一段轨迹构成的封闭区域内,电子设备对第二弹幕执行目标操作的时机可以为:第二弹幕接触到第一段轨迹。
对于上述实现方式一,上述步骤202具体可以通过下述的步骤202b实现。
步骤202b、在第二弹幕在第一时刻的显示位置位于封闭区域内,且第二弹幕接触到第一段轨迹的情况下,电子设备取消第二弹幕的显示。
在上述实现方式一中,当第二弹幕在第一时刻的显示位置位于上述封闭区域内时,如果第二弹幕移动到上述第一段轨迹上,即第二弹幕接触到第一段轨迹,那么电子设备可以取消第二弹幕的显示。
示例性的,如图6中的(a)所示,假设上述第一轨迹为轨迹51,该轨迹51包括构成封闭区域的第一段轨迹;且上述第二弹幕为弹幕“我喜欢”52,第二弹幕在第一时刻的显示位置位于封闭区域内,以及第二弹幕的移动方向为箭头53指示的方向。那么,在电子设备显示与其播放的视频相关的弹幕之后,弹幕“我喜欢”52可以沿箭头53指示的方向移动,当弹幕“我喜欢”52移动到构成封闭区域的第一段轨迹上(即弹幕“我喜欢”52接触到构成封闭区域的第一段轨迹)时,电子设备可以取消弹幕“我喜欢”的显示,即如图6中的(b)所示,电子设备显示的弹幕中不再包括弹幕“我喜欢”。
本发明实施例提供的弹幕显示控制方法,可以应用于电子设备更新第二弹幕显示方式的场景中,由于在第二弹幕在第一时刻的显示位置位于封闭区域内的情况下,第二弹 幕接触到构成封闭区域的第一段轨迹,电子设备可以取消该第二弹幕的显示,因此相当于第一段轨迹构成的封闭区域为一个隔离区域,从而可以第一时刻的显示位置位于该封闭区域内的弹幕,仅能在该封闭区域内显示。并且,当第一时刻位于封闭区域内的弹幕接触到该第一段轨迹时,电子设备可以快速地取消显示这些弹幕,从而可以使得电子设备取消显示弹幕的方式更加便捷。
实现方式二:第二弹幕在第一时刻的显示位置位于上述第一段轨迹构成的封闭区域外,电子设备对第二弹幕执行目标操作的时机可以为:第二弹幕第二次接触到第一段轨迹。
对于上述实现方式二,上述步骤202具体可以通过下述的步骤202c实现。
步骤202c、若第二弹幕在第一时刻的显示位置位于封闭区域外,则电子设备在第二弹幕第一系接触到第一段轨迹的情况下,保持第二弹幕的显示,并在第二弹幕第二次接触到第一段轨迹的情况下,取消第二弹幕的显示。
在上述实现方式二中,当第二弹幕在第一时刻的显示位置位于上述封闭区域外时,在第二弹幕第一次移动到第一段轨迹上(即第二弹幕第一次接触到第一段轨迹)时,电子设备可以保持第二弹幕的显示,即电子设备可以继续沿第二弹幕的移动轨迹(例如上述第二轨迹)移动该第二弹幕,直至第二弹幕第二次移动到第一段轨迹(即第二弹幕第二次接触到第一段轨迹)。在第二弹幕第二次接触到第一段轨迹,即第二弹幕离开封闭区域时,电子设备可以取消第二弹幕的显示。
也就是说,第一时刻的显示位置位于上述封闭区域外的弹幕,当该弹幕第一次移动到上述第一轨迹上,即该弹幕进入上述封闭区域时,电子设备可以不对该弹幕执行任何操作,即控制第二弹幕继续沿其原始移动轨迹移动。当该弹幕第二次移动到第一段轨迹上,即该弹幕向封闭区域外移动时,电子设备可以取消该弹幕的显示。即电子设备显示的弹幕只能进入封闭区域,不能离开封闭区域。
示例性的,如图7中的(a)所示,假设上述第一轨迹为轨迹51,该轨迹51包括构成封闭区域的第一段轨迹;且上述第二弹幕为弹幕“我喜欢”52,第二弹幕在第一时刻的显示位置位于封闭区域外,以及第二弹幕的移动方向为箭头54指示的方向。那么,在电子设备显示与其播放的视频相关的弹幕之后,弹幕“我喜欢”52可以沿箭头54指示的方向移动,当弹幕“我喜欢”52第一次接触到第一段轨迹时,电子设备可以保持弹幕“我喜欢”52的显示,即弹幕“我喜欢”52可以继续沿箭头54指示的方向移动。然后,当弹幕“我喜欢”52第二次接触到第一段轨迹时,电子设备可以取消弹幕“我喜欢”的显示,即如图7中的(b)所示,电子设备显示的弹幕中不再包括弹幕“我喜欢”。
本发明实施例提供的弹幕显示控制方法,可以应用于电子设备更新第二弹幕显示方式的场景中,由于在第二弹幕在第一时刻的显示位置位于封闭区域外的情况下,第二弹幕第二次接触到第一段轨迹,电子设备可以取消该第二弹幕显示,因此相当于第一段轨迹构成的封闭区域为一个相对的隔离区域,从而可以使得第一时刻的显示位置位于该封闭区域外的弹幕可以进入该封闭区域,但进入该封闭区域后无法离开该封闭区域。并且,当第一时刻位于封闭区域外的弹幕第二次接触到该第一段轨迹时,电子设备可以快速地取消显示这些弹幕,从而可以使得电子设备取消显示弹幕的方式更加便捷。
可选地,对于上述第二种情况,在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备对第二弹幕执行与目标显示状态对应的目标操作之前,电子设备可以显示第一弹幕的移动轨迹(即上述第一轨迹),如果该第一轨迹不包括上述第一段轨迹,那么用户可以通过对该第一轨迹的输入,触发电子设备更新该第一轨迹,从而可以使得更新后的第一轨迹包括上述第一段轨迹。如此,在第一轨迹更新后,如果第一弹幕和第二弹幕更新至目标显示状态,那么电子设备可以对第二弹幕执行目标操作。
示例性的,在上述第二种情况中,在上述步骤202c之前,本发明实施例提供的弹幕显示控制方法还可以包括下述的步骤204-步骤206。
需要说明的是,本发明实施例可以不限定上述步骤201与步骤204之间的执行顺序,即电子设备可以先执行步骤201,后执行步骤204;也可以先执行步骤204,后执行步骤201;还可以同时执行步骤201和步骤204。具体可以根据实际使用需求确定,本发明实施例不做限定。
步骤204、电子设备显示第一轨迹。
步骤205、电子设备接收用户对该第一轨迹的第一输入。
步骤206、电子设备响应于该第一输入,更新该第一轨迹。
其中,更新后的第一轨迹可以包括上述第一段轨迹。
本发明实施例中,当电子设备显示上述第一弹幕时,电子设备还可以显示第一弹幕的移动轨迹(即上述第一轨迹)。在电子设备显示第一轨迹之后,如果用户想要触发电子设备更新第一弹幕的移动轨迹,那么用户可以通过上述第一输入,触发电子设备更新第一弹幕的移动轨迹,即触发电子设备更新第一轨迹。
可以理解,在电子设备更新第一轨迹之后,上述第一弹幕的移动轨迹可以为更新后的第一轨迹。也就是说,用户可以通过上述第一输入,改变第一弹幕的移动轨迹,从而可以根据其使用需求,在电子设备中绘制第一弹幕的移动轨迹。
需要说明的是,对于上述第一轨迹的相关描述,具体可以参见上述实施例中对第一轨迹的详细描述,为避免重复,此处不再赘述。
可选地,本发明实施例中,上述第一输入可以为用户从上述第一轨迹的终点开始,在电子设备的屏幕上继续拖动手指的输入。
示例性的,假设上述第一轨迹为如图8中的(a)所示的轨迹61,且轨迹61的终点为点A指示位置,那么用户可以从点A的所在的位置开始,在电子设备的屏幕上继续拖动手指(即上述第一输入),响应于该输入,电子设备可以将第一轨迹更新为如图8中的(b)所示的轨迹62。
本发明实施例提供的弹幕显示控制方法,可以应用于电子设备显示弹幕的场景中,一方面,由于用户可以通过上述第一输入,触发电子设备更新上述第一轨迹(即第一弹幕的移动轨迹),因此在电子设备显示第一弹幕之后,用户还可以再次更改第一弹幕的移动轨迹,从而可以使得电子设备显示第一弹幕的方式比较灵活。另一方面,由于更新后的第一轨迹包括上述第一段轨迹,且该第一段轨迹可以触发电子设备取消显示电子设备显示的一些弹幕(例如在第一时刻的显示位置位于第一段轨迹构成的封闭区域内的弹幕等),因此可以通过触发电子设备更新第一弹幕的移动轨迹,更改电子设备显示的其它弹幕的显示方式,从而可以实现电子设备显示的弹幕的显示方式的快速更改。
第三种情况:上述目标显示状态为:第二弹幕移动至第一弹幕的显示区域中;上述目标操作为:在第一弹幕的显示区域中隐藏第二弹幕。
示例性的,对于上述第三种情况,上述步骤202具体可以通过下述的步骤202d实现。
步骤202d、在第二弹幕移动至第一弹幕的显示区域中的情况下,电子设备在第一弹幕的显示区域中隐藏第二弹幕。
其中,在上述第二弹幕移动至第一弹幕的显示区域之外,电子设备显示第二弹幕。
可以理解,在上述第三种情况中,电子设备在第一弹幕的显示区域中仅显示第一弹幕,其它弹幕无法在第一弹幕的显示区域中显示。也就是说,在第一弹幕的显示区域中,其它弹幕对用户不可见。
在上述第三种情况中,上述第一弹幕可以为第三类控制弹幕,该第三类控制弹幕的显示区域具有隐藏属性。也就是说,当其它弹幕移动至该第三类控制弹幕的显示区域中,该第三类控制弹幕的显示区域将隐藏这些弹幕。
可选地,对于上述第三种情况,在电子设备可以通过第一弹幕的显示区域遮挡或覆盖第二弹幕,以使得第二弹幕对用户不可见。
可以理解,第一弹幕的显示区域可以为一个非透明区域,且第一弹幕的显示区域显示图层在其它弹幕的显示图层之上,如此第一弹幕的显示区域可以遮挡或覆盖移动至第一弹幕的显示区域中的弹幕。
需要说明的是,电子设备在第一弹幕的显示区域中隐藏第二弹幕后,第二弹幕可以继续在电子设备的屏幕上移动,直至第二弹幕移动至第一弹幕的显示区域之外,电子设备可以再次显示第二弹幕。
可选地,在上述第三种情况中,上述第一弹幕的显示区域可以为以目标位置(也可以称为目标锚点)为中心的一个预设区域。
可选地,上述目标位置可以为发送第一弹幕的电子设备(即电子设备1)中预设的位置,也可以为电子设备1的用户(即用户1)在电子设备1中设置的位置。具体可以根据实际使用需求确定,本发明实施例不作限定。
可选地,本发明实施例中,当上述目标位置为用户1在电子设备1中设置的位置时,该目标位置可以为用户1在电子设备1中输入第一弹幕的内容之前,在电子设备1中设 置的位置;也可以为用户1在电子设备1中输入第一弹幕的内容之后,在电子设备1中设置的位置。具体可以根据实际使用需求确定,本发明实施例不作限定。
可选地,本发明实施例中,在上述目标位置为用户1在电子设备1中输入第一弹幕的弹幕内容之前,在电子设备1中设置的位置的情况下,该目标位置可以为用户1触发电子设备1显示弹幕输入界面时,用户1在电子设备1上的输入位置。
示例性的,在电子设备1播放视频的过程中,假设用户可以通过在电子设备的屏幕上的双击输入,触发电子设备1显示弹幕输入界面,那么当用户双击如图9所示的位置63(目标位置)时,该位置63即为上述目标位置。如此,当用户1在弹幕输入界面中输入弹幕的弹幕内容,并触发电子设备1发送该弹幕(即第一弹幕)时,该弹幕的显示区域可以为以该位置63为中心的一个显示区域。
可选地,在上述第三种情况中,上述第一弹幕的显示区域的形式可以包括两种可能的显示形式,分别为形式一和形式二。下面具体对这两种形式进行示例性的说明。
形式一:第一弹幕的显示区域为随第一弹幕的显示时间逐渐增大的显示区域。
可选地,在上述形式一中,第一弹幕可以显示在上述目标位置(即第一弹幕的显示区域的中心。然后,在第一弹幕显示第一时长(例如1秒等任意可能的时长)后,第一弹幕的显示区域可以以目标位置为圆心,向电子设备的屏幕的四周扩散,直至第一弹幕的显示区域将电子设备的屏幕全部覆盖,即第一弹幕的显示区域可以随第一弹幕的显示时间逐渐增大。
可选地,对于上述形式一,在第一弹幕的显示区域将电子设备的屏幕全部覆盖之后,电子设备可以在第二时长(例如3秒或5秒等任意可能的时长)后取消显示第一弹幕。如此,在电子设备取消显示第一弹幕之后,电子设备可以继续显示其它弹幕。
可选地,对于上述形式一,在第一弹幕的显示区域扩散的过程中,第一弹幕的显示区域覆盖到哪些弹幕,这些弹幕将被隐藏,即这些弹幕即为上述第二弹幕。
形式二:第一弹幕的显示区域为固定的显示区域。
可选地,对于上述形式二,当上述第一弹幕的显示区域可以为规则形状的显示区域(例如圆形显示区域或矩形显示区域),也可以为不规则形状的显示区域。具体可以根据实际使用需求确定,本发明实施例不作限定。
对于上述形式二,第一弹幕的显示区域可以形成一个“禁止区域”,当除第一弹幕之外的其它弹幕进入该区域中时,这些弹幕会被隐藏;在这些弹幕逐渐移动出该区域时,这些弹幕可以继续显示。也就是说,该区域只可以显示第一弹幕。
示例性的,假设上述第一弹幕的显示区域为圆形显示区域,第一弹幕为弹幕“哈哈哈”,第二弹幕为弹幕“棒极了”,那么如图10中的(a)所示,当弹幕“棒极了”45移动至弹幕“哈哈哈”的显示区域46中时,即第一弹幕与第二弹幕更新至目标显示状态,电子设备可以在弹幕“哈哈哈”的显示区域46中隐藏弹幕“棒极了”45。在弹幕“棒极了”45隐藏之后,弹幕“棒极了”45继续移动,如图10中的(b)所示,当弹幕“棒极了”45移动至弹幕“哈哈哈”的显示区域46外时,电子设备可以继续显示弹幕“棒极了”45。
本发明实施例提供的弹幕显示控制方法,可以应用于在第一弹幕的显示区域中隐藏第二弹幕的场景中,由于电子设备显示的第一弹幕的显示区域可以随第一弹幕的显示时间逐渐增大,因此被隐藏的弹幕也会随第一弹幕的显示时间增多,直至电子设备取消第一弹幕的显示。如此,相当于第一弹幕可以暂时湮灭电子设备显示的其它弹幕,从而电子设备可以实现在短时间内快速隐藏显示在第一弹幕的显示区域中的弹幕。
第四种情况:上述目标显示状态为:第二弹幕经过第一弹幕的目标分界线;上述目标操作为:将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
示例性的,对于上述第四种情况,上述步骤202具体可以通过下述的步骤202e实现。
步骤202e、在第二弹幕经过第一弹幕的目标分界线的情况下,电子设备按照第二弹幕的弹幕内容经过目标分界线的顺序,依次将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
可以理解,在上述步骤202e中,上述第一弹幕可以为第四类控制弹幕,该第四类控制弹幕的目标分界线具有感染或转化属性。也就是说,当第二弹幕的弹幕内容经过该第四类控制弹幕的目标分界线时,目标分界线可以逐渐“感染”第二弹幕,以使得第二弹幕的弹幕内容更新为该第四类控制弹幕的弹幕内容。
需要说明的是,在电子设备将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容之后,更新后的第二弹幕可以继续沿原第二弹幕的移动轨迹移动。
在上述第四种情况中,上述第一弹幕的显示位置可以为固定的显示位置。
示例性的,假设上述第一弹幕为弹幕“哈哈哈”,上述第二弹幕为弹幕“真是太棒了”。那么,如图11中的(a)所示,当弹幕“真是太棒了”42经过弹幕“哈哈哈”41的目标分界线47时,如图11中的(b)所示,电子设备可以逐渐将弹幕“真是太棒了”的弹幕内容更新为弹幕“哈哈哈”的弹幕内容。
本发明实施例提供的弹幕显示控制方法,可以应用于将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容的场景中,由于电子设备可以按照第二弹幕的弹幕内容经过目标分界线的顺序,依次将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容,因此可以通过第一弹幕的目标分界线,感染第二弹幕,从而可以使得电子设备同时显示多个弹幕内容相同的弹幕。
可选地,本发明实施例中,在用户通过电子设备观看视频的过程中,用户可以触发电子设备显示弹幕输入界面,以在该弹幕输入界面中输入用户想要发送的弹幕的内容。具体的,用户可以在该弹幕输入界面中选择一种弹幕类型,以触发电子设备以该种弹幕类型发送其想要发送的弹幕,如此可以增加电子设备发送的弹幕的显示方式的多样性。
可选地,在上述步骤201之前,本发明实施例提供的弹幕显示控制方法还可以包括下述的步骤207和步骤208。
需要说明的是,本发明实施例可以不限定上述步骤201-步骤202和步骤207-步骤208之间的执行顺序,即可以先执行步骤201-步骤202,后执行步骤207-步骤208;也可以先执行步骤207-步骤208,后执行步骤201-步骤202。具体可以根据实际使用需求确定,本发明实施例不做限定。
步骤207、电子设备接收用户在弹幕输入界面的第二输入。
其中,上述第二输入可以为触发电子设备选中目标弹幕类型的输入。
步骤208、电子设备响应于该第二输入,以目标弹幕类型发送待发送弹幕。
其中,电子设备发送的弹幕对应的弹幕类型不同,电子设备发送的弹幕的显示模式可以不同。
本发明实施例中,在电子设备显示弹幕输入界面之后,用户可以通过上述第二输入,触发电子设备以上述目标弹幕类型发送电子设备中的待发送弹幕。如此,在电子设备将该待发送弹幕显示之后,电子设备可以以目标弹幕类型对应的显示模式显示该弹幕。
可选地,本发明实施例中,上述第二输入可以为用户针对弹幕输入界面中的弹幕类型选择控件的输入。
可选地,本发明实施例中,上述第二输入可以包括第一子输入和第二子输入。其中,该第一子输入可以为用户对上述弹幕类型选择控件的单击输入或双击输入等任意可能的输入,在电子设备接收到该第一输入之后,电子设备可以显示至少一个弹幕类型选项(该至少一个弹幕类型选项指示的弹幕类型为电子设备支持的弹幕类型)。该第二子输入可以为用户对该至少一个弹幕类型选项中的某个弹幕类型选项(该弹幕类型选项指示的弹幕类型即为上述目标弹幕类型)的单击输入或长按输入等任意可能的输入。
示例性的,假设上述第一子输入为用户对上述弹幕类型选择控件的单击输入,第二子输入为用户对指示目标弹幕类类型的弹幕类型选项的单击输入,且上述目标弹幕类型为弹幕类型1。那么,如图12中的(a)所示,当用户单击弹幕输入界面中的弹幕类型选择控件64时,电子设备响应于该输入,可以显示如图12中的(b)所示的四个弹幕类型选项(具体可以为选项“弹幕类型1”、选项“弹幕类型2”、选项“弹幕类型3”和选项“弹幕类型4”)。然后,用户可以通过单击选项“弹幕类型1”65(即指示目标弹幕类型的弹幕类型选项),触发电子设备以弹幕类型1发送电子设备中的待发送弹幕。
可选地,本发明实施例中,在电子设备以目标弹幕类型发送电子设备中的待发送弹幕之后,电子设备可以以目标弹幕类型对应的显示模式显示该弹幕,从而可以使得电子设备能够按照用户想要的显示模式显示用户触发电子设备发送的弹幕,进而可以提高电子设备发送弹幕的趣味性。
需要说明的是,本发明实施例中,上述各个附图所示的弹幕显示控制方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个附图所示弹幕显示控制方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不 再赘述。
如图13所示,本发明实施例提供一种电子设备700,电子设备700可以包括显示模块701和执行模块702;
显示模块701,可以用于显示第一弹幕和第二弹幕;执行模块702,可以用于在显示模块701显示的第一弹幕和第二弹幕更新至目标显示状态的情况下,对第二弹幕执行与目标显示状态对应的目标操作;其中,目标操作包括以下任意一项:取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕。
可选地,第一弹幕的显示属性为第一属性,第一属性为按照第一轨迹移动,或为在目标区域保持显示;第一轨迹为触发发送第一弹幕的用户绘制的轨迹;第二弹幕的显示属性为第二属性,第二属性为按照第二轨迹移动;显示模块701,具体可以用于按照第一属性,显示第一弹幕,并按照第二属性,显示第二弹幕。
本发明实施例提供的电子设备,可以应用于电子设备显示弹幕的场景中,由于电子设备可以按照触发发送第一弹幕的用户绘制的第一轨迹显示第一弹幕,因此当触发发送第一弹幕的用户绘制的轨迹不同时,电子设备显示第一弹幕的方式可以不同,从而可以使得电子设备显示上述第一弹幕的显示方式更加灵活。
可选地,目标显示状态为以下任意一项:第一弹幕与第二弹幕在第一轨迹上接触,第二弹幕移动至第一轨迹上,第二弹幕移动至第一弹幕的显示区域中、第二弹幕经过第一弹幕的目标分界线;其中,第一轨迹为第一弹幕的移动轨迹;第一弹幕的显示区域为随第一弹幕的显示时间逐渐增大的显示区域,或为固定的显示区域。
本发明实施例提供的电子设备,应用于电子设备显示弹幕的场景中,由于上述目标显示状态可以包括多种显示状态,因此第一弹幕与第二弹幕更新至目标显示状态的情况可以包括多种,如此可以使得电子设备在不同的显示状态下,对第二弹幕执行目标操作,即可以使得电子设备在不同的情况下,更新第二弹幕的显示方式,从而可以使得电子设备显示弹幕的方式更加灵活。
可选地,目标显示状态为:第一弹幕与第二弹幕在第一轨迹上接触;执行模块702,具体可以用于取消第二弹幕的显示,或将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
本发明实施例提供的电子设备,应用于电子设备更新第二弹幕的显示方式的场景中,一方面,由于在第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备可以取消第二弹幕的显示,因此在第一轨迹上,第一弹幕可以消除或湮灭第二弹幕,从而可以使得触发发送第一弹幕的用户与触发发送第二弹幕的用户,通过第一弹幕与第二弹幕进行互动,从而可以提高用户观看视频时的体验感。另一方面,由于在第一弹幕与第二弹幕在第一轨迹上接触的情况下,电子设备可以将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容,因此在第一轨迹上,第一弹幕可以感染或转化第二弹幕,从而可以使得电子设备可以快速更改弹幕的弹幕内容,进而可以使得电子设备显示弹幕的方式多样化、且更加灵活。
可选地,显示模块,还可以用于在第一弹幕和第二弹幕更新至目标显示状态的情况下,以目标显示参数,显示第一弹幕。
本发明实施例提供的电子设备,可以应用于电子设备更新第一弹幕的显示参数的场景中,由于在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备还可以以目标显示参数,显示第一弹幕,因此可以通过改变第一弹幕的显示方式,表示电子设备改变第二弹幕的显示方式为第一弹幕触发的,如此可以告知用户,第一弹幕为具有特殊属性的弹幕。
可选地,目标显示状态为:第二弹幕移动到第一轨迹上,第一轨迹包括第一段轨迹,第一段轨迹形成封闭区域;执行模块,具体可以用于在第二弹幕在第一时刻的显示位置位于封闭区域内,且第二弹幕接触到第一段轨迹的情况下,取消第二弹幕的显示,第一时刻为电子设备开始显示第一弹幕的时刻;或者,若第二弹幕在第一时刻的显示位置位于封闭区域外,则执行模块,具体用于在第二弹幕第一次接触到第一段轨迹的情况下,保持第二弹幕的显示,并在第二弹幕第二次接触第一段轨迹的情况下,取消第二弹幕的显示,第一时刻为电子设备开始显示第一弹幕的时刻。
本发明实施例提供的电子设备,可以应用于电子设备更新第二弹幕显示方式的场景 中,一方面,由于在第二弹幕在第一时刻的显示位置位于封闭区域内的情况下,第二弹幕接触到构成封闭区域的第一段轨迹,电子设备可以取消该第二弹幕的显示,因此相当于第一段轨迹构成的封闭区域为一个隔离区域,从而可以第一时刻的显示位置位于该封闭区域内的弹幕,仅能在该封闭区域内显示。另一方面,由于在第二弹幕在第一时刻的显示位置位于封闭区域外的情况下,第二弹幕第二次接触到第一段轨迹,电子设备可以取消该第二弹幕显示,因此相当于第一段轨迹构成的封闭区域为一个相对的隔离区域,从而可以使得第一时刻的显示位置位于该封闭区域外的弹幕可以进入该封闭区域,但进入该封闭区域后无法离开该封闭区域。并且,由于当第一时刻位于封闭区域外的弹幕第二次接触到该第一段轨迹时,电子设备可以快速地取消显示这些弹幕,从而可以使得电子设备取消显示弹幕的方式更加便捷。
可选地,电子设备还可以包括接收模块;显示模块,还可以用于在执行模块在第一弹幕和第二弹幕更新至目标显示状态的情况下,对第二弹幕执行与目标显示状态对应的目标操作之前,显示第一轨迹;接收模块,可以用于接收用户对显示模块显示的第一轨迹的第一输入;显示模块,还可以用于响应于接收模块接收的第一输入,更新第一轨迹;其中,更行后的第一轨迹包括第一段轨迹。
本发明实施例提供的电子设备,一方面,由于用户可以通过上述第一输入,触发电子设备更新上述第一轨迹(即第一弹幕的移动轨迹),因此在电子设备显示第一弹幕之后,用户还可以再次更改第一弹幕的移动轨迹,从而可以使得电子设备显示第一弹幕的方式比较灵活。另一方面,由于更新后的第一轨迹包括上述第一段轨迹,且该第一段轨迹可以触发电子设备取消显示电子设备显示的一些弹幕(例如在第一时刻的显示位置位于第一段轨迹构成的封闭区域内的弹幕等),因此可以通过触发电子设备更新第一弹幕的移动轨迹,更改电子设备显示的其它弹幕的显示方式,从而可以实现电子设备显示的弹幕的显示方式的快速更改。
可选地,目标显示状态为:第二弹幕移动至第一弹幕的显示区域中;执行模块,具体可以用于在第一弹幕的显示区域中隐藏第二弹幕的显示;其中,在第二弹幕移动至第一弹幕的显示区域之外,显示第二弹幕。
本发明实施例提供的电子设备,可以应用于在第一弹幕的显示区域中隐藏第二弹幕的场景中,由于电子设备显示的第一弹幕的显示区域可以随第一弹幕的显示时间逐渐增大,因此被隐藏的弹幕也会随第一弹幕的显示时间增多,直至电子设备取消第一弹幕的显示。如此,相当于第一弹幕可以暂时湮灭电子设备显示的其它弹幕,从而电子设备可以实现在短时间内快速隐藏显示在第一弹幕的显示区域中的弹幕。
可选地,目标显示状态为:第二弹幕经过第一弹幕的目标分界线;执行模块,具体可以用于按照第二弹幕的弹幕内容经过目标分界线的顺序,依次将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容。
本发明实施例提供的电子设备,可以应用于将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容的场景中,由于电子设备可以按照第二弹幕的弹幕内容经过目标分界线的顺序,依次将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容,因此可以通过第一弹幕的目标分界线,感染第二弹幕,从而可以使得电子设备同时显示多个弹幕内容相同的弹幕。
本发明实施例提供的电子设备能够实现上述弹幕显示控制方法实施例中电子设备执行的各个过程,且能达到相同的技术效果,为避免重复,此处不再赘述。
本发明实施例提供一种电子设备,在电子设备显示弹幕的场景中,由于取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕均可以改变电子设备显示的弹幕的显示方式,因此在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备可以通过对第二弹幕执行与目标显示状态对应的目标操作,改变电子设备显示弹幕的方式,如此可以使得电子设备以不同的显示方式显示弹幕,从而可以使得电子设备显示弹幕的方式比较灵活,并且可以使得电子设备显示弹幕的方式多样化。
图14为实现本发明各个实施例的一种电子设备的硬件示意图。如图14所示,电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图14中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件, 或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器110,可以用于控制显示单元106显示第一弹幕和第二弹幕;并用于在第一弹幕和第二弹幕更新至目标显示状态的情况下,对第二弹幕执行与目标状态对应的目标操作;其中,目标操作包括以下任意一项:取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕。
可以理解,本发明实施例中,上述电子设备的结构示意图(例如图13)中的显示模块701可以通过上述显示单元106实现;上述电子设备的结构示意图中的执行模块702可以通过上述处理器110;上述电子设备的接收模块可以通过上述用户输入单元107实现。
本发明实施例提供一种电子设备,在电子设备显示弹幕的场景中,由于取消第二弹幕的显示、将第二弹幕的弹幕内容更新为第一弹幕的弹幕内容、在第一弹幕的显示区域中隐藏第二弹幕均可以改变电子设备显示的弹幕的显示方式,因此在第一弹幕和第二弹幕更新至目标显示状态的情况下,电子设备可以通过对第二弹幕执行与目标显示状态对应的目标操作,改变电子设备显示弹幕的方式,如此可以使得电子设备以不同的显示方式显示弹幕,从而可以使得电子设备显示弹幕的方式比较灵活,并且可以使得电子设备显示弹幕的方式多样化。
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(graphics processing unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板1061。
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其 中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图14中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;可选地,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选地,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。
可选地,本发明实施例还提供一种电子设备,包括如图14所示的处理器110,存储器109,存储在存储器109上并可在处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述弹幕显示控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被如图14所示的处理器执行时实现上述弹幕显示控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质可以包括只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下 前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。
Claims (12)
- 一种弹幕显示控制方法,应用于电子设备,所述方法包括:显示第一弹幕和第二弹幕;在所述第一弹幕和所述第二弹幕更新至目标显示状态的情况下,对所述第二弹幕执行与所述目标显示状态对应的目标操作;其中,所述目标操作包括以下任意一项:取消所述第二弹幕的显示、将所述第二弹幕的弹幕内容更新为所述第一弹幕的弹幕内容、在所述第一弹幕的显示区域中隐藏所述第二弹幕。
- 根据权利要求1所述的方法,其中,所述第一弹幕的显示属性为第一属性,所述第一属性为按照第一轨迹移动,或为在目标区域保持显示,所述第一轨迹为触发发送所述第一弹幕的用户绘制的轨迹;所述第二弹幕的显示属性为第二属性,所述第二属性为按照第二轨迹移动;所述显示第一弹幕和第二弹幕,包括:按照所述第一属性,显示所述第一弹幕,并按照所述第二属性,显示所述第二弹幕。
- 根据权利要求1或2所述的方法,其中,所述目标显示状态为以下任意一项:所述第一弹幕与所述第二弹幕在第一轨迹上接触,所述第二弹幕移动至第一轨迹上,所述第二弹幕移动至所述第一弹幕的显示区域中,所述第二弹幕经过所述第一弹幕的目标分界线;其中,所述第一轨迹为所述第一弹幕的移动轨迹;所述第一弹幕的显示区域为随所述第一弹幕的显示时间逐渐增大的显示区域,或为固定的显示区域。
- 根据权利要求3所述的方法,其中,所述目标显示状态为:所述第一弹幕与所述第二弹幕在第一轨迹上接触;所述对所述第二弹幕执行与所述目标显示状态对应的目标操作,包括:取消所述第二弹幕的显示,或将所述第二弹幕的弹幕内容更新为所述第一弹幕的弹幕内容。
- 根据权利要求4所述的方法,其中,所述方法还包括:在所述第一弹幕和所述第二弹幕更新至所述目标显示状态的情况下,以目标显示参数,显示所述第一弹幕。
- 根据权利要求3所述的方法,其中,所述目标显示状态为:所述第二弹幕移动至第一轨迹上,所述第一轨迹包括第一段轨迹,所述第一段轨迹形成封闭区域;所述在所述第一弹幕和所述第二弹幕更新至目标显示状态的情况下,对所述第二弹幕执行与所述目标显示状态对应的目标操作,包括:在所述第二弹幕在第一时刻的显示位置位于所述封闭区域内,且所述第二弹幕接触到所述第一段轨迹的情况下,取消所述第二弹幕的显示,所述第一时刻为所述电子设备开始显示所述第一弹幕的时刻;或者,若所述第二弹幕在第一时刻的显示位置位于所述封闭区域外,则在所述第二弹幕第一次接触到所述第一段轨迹的情况下,保持所述第二弹幕的显示,并在所述第二弹幕第二次接触到所述第一段轨迹的情况下,取消所述第二弹幕的显示,所述第一时刻为所述电子设备开始显示所述第一弹幕的时刻。
- 根据权利要求6所述的方法,其中,所述在第一弹幕和第二弹幕更新至目标显示状态的情况下,对所述第二弹幕执行与所述目标显示状态对应的目标操作之前,所述方法还包括:显示所述第一轨迹;接收用户对所述第一轨迹的第一输入;响应于所述第一输入,更新所述第一轨迹;其中,更新后的所述第一轨迹包括所述第一段轨迹。
- 根据权利要求3所述的方法,其中,所述目标显示状态为:所述第二弹幕移动至所述第一弹幕的显示区域中;所述对所述第二弹幕执行与所述目标显示状态对应的目标操作,包括:在所述第一弹幕的显示区域中隐藏所述第二弹幕;其中,所述第二弹幕移动至所述第一弹幕的显示区域之外,显示所述第二弹幕。
- 根据权利要求3所述的方法,其中,所述目标显示状态为:所述第二弹幕经过所述第一弹幕的目标分界线;所述对所述第二弹幕执行与所述目标显示状态对应的目标操作,包括:按照所述第二弹幕的弹幕内容经过所述目标分界线的顺序,依次将所述第二弹幕的弹幕内容更新为所述第一弹幕的弹幕内容。
- 一种电子设备,所述电子设备包括显示模块和执行模块;所述显示模块,用于显示第一弹幕和第二弹幕;所述执行模块,用于在所述显示模块显示的所述第一弹幕和所述第二弹幕更新至目标显示状态的情况下,对所述第二弹幕执行与所述目标显示状态对应的目标操作;其中,所述目标操作包括以下任意一项:取消所述第二弹幕的显示、将所述第二弹幕的弹幕内容更新为所述第一弹幕的弹幕内容、在所述第一弹幕的显示区域中隐藏所述第二弹幕。
- 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至9中任一项所述的弹幕显示控制方法的步骤。
- 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至9中任一项所述的弹幕显示控制方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911418933.1A CN111147912B (zh) | 2019-12-31 | 2019-12-31 | 弹幕显示控制方法及电子设备 |
| CN201911418933.1 | 2019-12-31 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2021136330A1 true WO2021136330A1 (zh) | 2021-07-08 |
Family
ID=70523063
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/141171 Ceased WO2021136330A1 (zh) | 2019-12-31 | 2020-12-30 | 弹幕显示控制方法及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111147912B (zh) |
| WO (1) | WO2021136330A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114915832A (zh) * | 2022-05-13 | 2022-08-16 | 咪咕文化科技有限公司 | 一种弹幕显示方法、装置及计算机可读存储介质 |
| WO2023071507A1 (zh) * | 2021-10-29 | 2023-05-04 | 北京字跳网络技术有限公司 | 弹幕的控制方法、装置、电子设备和存储介质 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111147912B (zh) * | 2019-12-31 | 2021-11-16 | 维沃移动通信有限公司 | 弹幕显示控制方法及电子设备 |
| CN113473208B (zh) | 2021-07-05 | 2023-02-14 | 腾讯科技(深圳)有限公司 | 弹幕显示方法、装置、计算机设备和存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106998492A (zh) * | 2017-03-02 | 2017-08-01 | 合网络技术(北京)有限公司 | 弹幕的显示控制方法及装置 |
| CN108495166A (zh) * | 2018-01-29 | 2018-09-04 | 上海哔哩哔哩科技有限公司 | 弹幕播放控制方法、终端及弹幕播放控制系统 |
| CN109413484A (zh) * | 2018-12-29 | 2019-03-01 | 咪咕文化科技有限公司 | 一种弹幕展示方法、装置及存储介质 |
| CN111147912A (zh) * | 2019-12-31 | 2020-05-12 | 维沃移动通信有限公司 | 弹幕显示控制方法及电子设备 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106990891B (zh) * | 2017-03-02 | 2020-07-28 | 阿里巴巴(中国)有限公司 | 弹幕的显示控制方法及装置 |
| JP6322757B1 (ja) * | 2017-09-29 | 2018-05-09 | 株式会社ドワンゴ | サーバおよび端末 |
| CN108401177B (zh) * | 2018-02-27 | 2021-04-27 | 上海哔哩哔哩科技有限公司 | 视频播放方法、服务器及视频播放系统 |
-
2019
- 2019-12-31 CN CN201911418933.1A patent/CN111147912B/zh active Active
-
2020
- 2020-12-30 WO PCT/CN2020/141171 patent/WO2021136330A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106998492A (zh) * | 2017-03-02 | 2017-08-01 | 合网络技术(北京)有限公司 | 弹幕的显示控制方法及装置 |
| CN108495166A (zh) * | 2018-01-29 | 2018-09-04 | 上海哔哩哔哩科技有限公司 | 弹幕播放控制方法、终端及弹幕播放控制系统 |
| CN109413484A (zh) * | 2018-12-29 | 2019-03-01 | 咪咕文化科技有限公司 | 一种弹幕展示方法、装置及存储介质 |
| CN111147912A (zh) * | 2019-12-31 | 2020-05-12 | 维沃移动通信有限公司 | 弹幕显示控制方法及电子设备 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2023071507A1 (zh) * | 2021-10-29 | 2023-05-04 | 北京字跳网络技术有限公司 | 弹幕的控制方法、装置、电子设备和存储介质 |
| US12327015B2 (en) | 2021-10-29 | 2025-06-10 | Beijing Zitiao Network Technology Co., Ltd. | Method, apparatus, electronic device, and storage medium for dynamic comment controlling |
| CN114915832A (zh) * | 2022-05-13 | 2022-08-16 | 咪咕文化科技有限公司 | 一种弹幕显示方法、装置及计算机可读存储介质 |
| CN114915832B (zh) * | 2022-05-13 | 2024-02-23 | 咪咕文化科技有限公司 | 一种弹幕显示方法、装置及计算机可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111147912B (zh) | 2021-11-16 |
| CN111147912A (zh) | 2020-05-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2021218902A1 (zh) | 显示控制方法、装置及电子设备 | |
| CN109032486B (zh) | 一种显示控制方法及终端设备 | |
| WO2021136330A1 (zh) | 弹幕显示控制方法及电子设备 | |
| CN111050109B (zh) | 电子设备控制方法及电子设备 | |
| CN110944236B (zh) | 一种群组创建方法及电子设备 | |
| US11526320B2 (en) | Multi-screen interface control method and terminal device | |
| WO2020181955A1 (zh) | 界面控制方法及终端设备 | |
| WO2020173235A1 (zh) | 任务切换方法及终端设备 | |
| WO2020233323A1 (zh) | 显示控制方法、终端设备及计算机可读存储介质 | |
| WO2020192296A1 (zh) | 界面显示方法及终端设备 | |
| WO2020192297A1 (zh) | 屏幕界面切换方法及终端设备 | |
| CN110764666A (zh) | 一种显示控制方法及电子设备 | |
| CN111385415A (zh) | 拍摄方法及电子设备 | |
| CN111399715A (zh) | 一种界面显示方法及电子设备 | |
| WO2020155980A1 (zh) | 控制方法及终端设备 | |
| WO2021082740A1 (zh) | 进度调节方法及电子设备 | |
| WO2020038143A1 (zh) | 显示界面的处理方法和移动终端 | |
| WO2020181956A1 (zh) | 应用标识的显示方法及终端设备 | |
| CN110851098B (zh) | 一种视频窗口显示方法及电子设备 | |
| WO2021036529A1 (zh) | 控制方法及终端设备 | |
| WO2020151490A1 (zh) | 应用的控制方法及终端设备 | |
| CN111314208A (zh) | 一种信息提示方法及电子设备 | |
| CN111338525A (zh) | 一种电子设备的控制方法及电子设备 | |
| CN110750200A (zh) | 一种截屏图片的处理方法及终端设备 | |
| CN111638842A (zh) | 显示控制方法、装置及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20910573 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: 20910573 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20910573 Country of ref document: EP Kind code of ref document: A1 |