Method for displaying bullet screen and related device

By deploying control barrage display services and providing setting interfaces in the device operating system, the problem that users cannot set barrage display effects is solved, and the device's intelligence and user experience of barrage display are improved.

CN119277163APending Publication Date: 2025-01-07HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310835750.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-07
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

In device playback scenarios, especially in screen casting scenarios, users cannot set the barrage display effect, resulting in the device not being intelligent enough for barrage display and poor user experience.

Method used

Deploy or encapsulate services that control the barrage display effect in the device's operating system, provide a setting interface, allowing users to set barrage display effect according to their personal needs, and achieve intelligent display by receiving or obtaining barrage data.

Benefits of technology

It improves the intelligence of the device in barrage display, improves the user experience, and is suitable for playback and screen casting scenes of the machine, solving the problem that users cannot set the barrage display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277163A_ABST
    Figure CN119277163A_ABST
Patent Text Reader

Abstract

The invention provides a method for displaying a bullet screen and a related device, the method is applied to a first device, and the method comprises the following steps: displaying the bullet screen based on a first display effect; in response to user operation, displaying a setting interface of a bullet screen display effect, the setting interface being provided by an operating system or a system application of the device; and displaying the bullet screen based on a second display effect set by the user on the setting interface. The operating system or the system application of the equipment has the service for providing the bullet screen display effect, so that the equipment can provide the setting interface for displaying the bullet screen display effect for a user, and then the bullet screen can be displayed according to the bullet screen display effect set by the user on the setting interface, and therefore, the user experience is improved. The intelligent degree of bullet screen display of the equipment can be improved, and then the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method for displaying bullet screens and related devices. Background Art

[0002] Bullet screen is a form of information exchange that scrolls and displays the audience's comments and other content on the display screen during video playback. As a form of information exchange, bullet screen meets people's information exchange needs when watching videos.

[0003] There are some applications on the market that support controlling the display of barrage (including system applications or third-party applications). When an application that supports controlling the display of barrage is installed on a device, the device can rely on these applications that support the display of barrage to display barrage in response to the user's settings for the display effect of barrage (such as display area, display speed, font size, etc.)

[0004] However, in some scenarios, for example, in the device playback scenario, when the device uses an application that does not support the control of the barrage display to play content containing barrage data, or in the screen projection scenario, when the device is the receiving end of the screen projection content (including barrage data), and the device is displaying the screen projection content, the user cannot set the barrage display effect on the device, and accordingly, the device cannot respond to the user's setting of the barrage display effect and display the barrage according to the display effect expected by the user. Therefore, the current device's display of barrage is not intelligent enough, and the user experience is poor. Summary of the invention

[0005] The present application provides a method and related device for displaying barrage, in order to improve the intelligence of the device in displaying barrage and improve the user experience.

[0006] The first aspect provides a method for displaying barrage, which can be executed by a first device, or the method can also be executed by a component configured in the first device (such as a chip, a chip system, etc.), or it can also be implemented by a logic module or software that can realize all or part of the functions of the first device, and the present application does not limit this.

[0007] Exemplarily, the method includes: displaying barrage based on a first display effect; in response to user operation, displaying a setting interface for the barrage display effect, the setting interface being provided by an operating system or system application of the first device; and displaying barrage based on a second display effect set by the user on the setting interface.

[0008] Based on the above scheme, the operating system or system application of the device has a service for providing control over the barrage display effect, so that the device can provide the user with a setting interface for displaying the barrage display effect, and then can display the barrage according to the barrage display effect set by the user on the setting interface. Therefore, the intelligence of the device's display of the barrage can be improved, thereby improving the user experience.

[0009] In combination with the first aspect, in some possible implementations, the user operation is an operation on a control, and the control is displayed when the barrage control service is turned on. The barrage control service is a service for providing control over the barrage display effect.

[0010] In combination with the first aspect, in some possible implementations, before displaying the barrage based on the first display effect, the method further includes: acquiring barrage data for displaying the barrage.

[0011] In combination with the first aspect, in some possible implementations, obtaining barrage data for displaying barrage includes: receiving the address of barrage data from a second device, where the second device is a device that initiates screen projection, and the second device has established a screen projection connection with the first device; and obtaining barrage data based on the address.

[0012] In the screen projection scenario, the second device initiates screen projection to the first device, and the first device establishes a screen projection connection with the second device. The second device, as the source of data, can send the address of the barrage data to the first device. Correspondingly, the first device can receive the address of the barrage data from the second device. After receiving the address of the barrage data, the first device can obtain the barrage data based on the address, for example, download the barrage data based on the address.

[0013] In combination with the first aspect, in some possible implementations, obtaining barrage data for displaying barrage includes: receiving barrage data from a second device, where the second device is a device that initiates screen projection, and the second device establishes a screen projection connection with the first device.

[0014] In the screen projection scenario, the second device initiates screen projection to the first device, and the first device establishes a screen projection connection with the second device. The second device, as the source of data, can send barrage data to the first device. Correspondingly, the first device can receive the barrage data from the second device, so that the first device obtains the barrage data.

[0015] In combination with the first aspect, in some possible implementations, obtaining barrage data for displaying barrage includes: receiving an address of the barrage data from a server, where the server is also used to provide playback resources; and obtaining the barrage data based on the address.

[0016] In the local playback scenario, the first device can obtain the address of the playback resource and the barrage data from the server for providing the playback resource, and then download the playback resource and the barrage data based on the address, so that the first device obtains the barrage data.

[0017] The second aspect provides a method for displaying barrage, which can be executed by a second device, or the method can also be executed by a component configured in the second device (such as a chip, a chip system, etc.), or it can also be implemented by a logic module or software that can realize all or part of the functions of the second device. This application is not limited to this.

[0018] Exemplarily, the method includes: establishing a screen projection connection with a first device; obtaining barrage data when a protocol based on which the screen projection connection established with the first device is a mirroring screen projection protocol; and sending the barrage data to the first device.

[0019] Based on the above scheme, in the screen projection scenario, the second device that initiates the screen projection can obtain the barrage data and send the barrage data to the first device, so that the first device can display the barrage based on the barrage data and according to the barrage display effect set by the user. This can avoid the problem that the first device cannot control the barrage display effect due to the second device directly sending the recorded video screen including the barrage to the first device. This can improve the intelligence of the device's display of the barrage, thereby improving the user experience.

[0020] In combination with the second aspect, in some possible implementations, obtaining the barrage data includes: playing the projected content; screen recording the projected content to obtain a video screen; and separating the barrage data from the video screen.

[0021] A third aspect provides a device, which can be used to implement the method in the first aspect and any possible implementation of the first aspect, or can be used to implement the method in the second aspect and any possible implementation of the second aspect. The device includes a corresponding module for executing the above method. The module included in the device can be implemented by software and / or hardware.

[0022] A fourth aspect provides a device, the device comprising at least one processor and at least one communication interface. The processor is coupled to the communication interface and can be used to execute a program to implement the method for displaying a bullet screen in the first aspect and any possible implementation of the first aspect, or to implement the method for displaying a bullet screen in the second aspect and any possible implementation of the second aspect.

[0023] Optionally, the device further includes a memory, and the processor is coupled to the memory.

[0024] The fifth aspect provides a chip system, which includes at least one processor for supporting the implementation of the functions involved in the above-mentioned first aspect and any possible implementation method of the first aspect, or for supporting the implementation of the functions involved in the above-mentioned second aspect and any possible implementation method of the second aspect, for example, processing the data involved in the above-mentioned method, etc.

[0025] In one possible design, the chip system also includes a memory, which is used to store programs, instructions, or data, etc. The memory is located inside or outside the processor.

[0026] The chip system may be composed of the chip, or may include the chip and other discrete devices.

[0027] The sixth aspect provides a readable storage medium, on which a program (also referred to as code, or instruction) is stored. When the program is run by a device, the method in the above-mentioned first aspect and any possible implementation of the first aspect is executed, or the method in the above-mentioned second aspect and any possible implementation of the second aspect is executed.

[0028] The seventh aspect provides a program product, which includes: a program (also referred to as code, or instruction), which, when executed, causes the method in the above-mentioned first aspect and any possible implementation of the first aspect to be executed, or causes the above-mentioned second aspect and any possible implementation of the second aspect to be executed.

[0029] It should be understood that the third to seventh aspects of the present application correspond to the technical solutions of the first and second aspects of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a structural schematic diagram of a device applicable to the method for displaying bullet screen provided in an embodiment of the present application;

[0031] Figure 2 It is a structural block diagram of software applicable to a device for displaying a bullet screen provided in an embodiment of the present application;

[0032] Figure 3 It is another structural block diagram of software applicable to a device for the method for displaying bullet comments provided in an embodiment of the present application;

[0033] Figure 4 is a schematic flow chart of a method for displaying bullet comments provided in an embodiment of the present application;

[0034] Figure 5is a schematic diagram of a first control provided in an embodiment of the present application;

[0035] Figure 6 is a schematic diagram of a second control provided in an embodiment of the present application;

[0036] Figure 7 is another schematic flow chart of a method for displaying bullet comments provided by an embodiment of the present application;

[0037] Figure 8 is another schematic flow chart of a method for displaying bullet comments provided by an embodiment of the present application;

[0038] Fig. 9 This is another schematic flowchart of the method for displaying barrage provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0040] First, in the embodiments of the present application, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first device and the second device are only used to distinguish different devices, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different.

[0041] Second, in the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B may be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship, but does not exclude the situation where the associated objects before and after are in an "and" relationship. The specific meaning can be understood in conjunction with the context.

[0042] Third, in the present application, "when...", "in the case of...", "if" and "if" all mean that the device will take corresponding actions under certain objective circumstances, but do not limit the time, nor do they require that the device must have a judgment action when it is implemented, nor do they mean that there are other limitations.

[0043] Fourth, in this application, "send" and "receive" refer to the direction of transmission of information, messages, signals or messages.

[0044] For example, “the address at which the first receiving device receives the barrage data from the second device” can be understood as the destination end of the address of the barrage data is the first device, and the source end is the second device.

[0045] For another example, “the second device sends barrage data to the first device” can be understood as the source of the barrage data is the second device, and the destination is the first device.

[0046] Barrage is the scrolling display of audience comments and other content on the display screen during video playback. As a form of information interaction, barrage meets people's information exchange needs when watching videos. There are currently some applications on the market that support controlling the display of barrage (including system applications or third-party applications), such as but not limited to some video playback applications, audio playback applications, and e-book applications. If an application that supports controlling the display of barrage is installed on the device, the device can rely on these applications that support the display of barrage to display barrage in response to the user's settings for the display effect of barrage (such as display area, display speed, font size, etc.).

[0047] However, in some scenarios, for example, in the device playback scenario, when the device uses an application that does not support the control of the barrage display to play content containing barrage data, or in the screen projection scenario, when the device is the receiving end of the screen projection content (including barrage data), and the device is displaying the screen projection content, the user cannot set the barrage display effect on the device, and accordingly, the device cannot respond to the user's setting of the barrage display effect and display the barrage according to the display effect expected by the user. Therefore, the current device's display of barrage is not intelligent enough, and the user experience is poor.

[0048] In order to solve the above problems, the present application provides a method and related devices for displaying barrage, by deploying a service for providing control of barrage display effects in the operating system of the device, or encapsulating the service for controlling the barrage display effects as a system application of the device, so that the device can provide a setting interface for displaying barrage display effects for the user, and then can display the barrage according to the barrage display effects set by the user on the setting interface. Therefore, the intelligence of the device's display of barrage can be improved, thereby improving the user experience.

[0049] Before describing in detail the method for displaying bullet screen provided in the embodiment of the present application, Figure 1 , Figure 2 and Figure 3 , an exemplary description is given of a device applicable to an embodiment of the present application.

[0050] The method for displaying bullet screen provided in the embodiment of the present application can be applied to mobile phones, tablet computers, smart TVs, smart screens, smart watches, wearable devices, vehicle-mounted devices, laptop computers, personal computers (PC), ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), distributed devices and other devices. The embodiment of the present application does not impose any restrictions on the specific type of device. Among them, the device can also be called user equipment (UE), mobile device, user terminal, wireless communication device, or user device, etc., and the embodiment of the present application does not limit this.

[0051] In addition, the method described in the embodiments of the present application can support operating systems such as Android operating system (Android OS), Harmony OS, OpenHarmony OS, iOS, Windows OS, and lightweight operating systems (such as LiteOS). The embodiments of the present application do not impose any limitation on this.

[0052] Figure 1 It is a structural schematic diagram of a device suitable for the method for displaying barrage provided in an embodiment of the present application.

[0053] For example, Figure 1 1 shows a schematic diagram of the structure of the device 100. Figure 1As shown, the device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L and a bone conduction sensor 180M, etc.

[0054] The processor 110 may include one or more processing units, for example, the processor 110 may include one or more of an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0055] The application processor outputs sound signals through the audio module 170 (such as the speaker 170A, etc.), or displays images or videos through the display screen 194.

[0056] The controller may be the nerve center and command center of the device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0057] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0058] The processor 110 can perform different operations to achieve different functions by executing instructions. The instructions can be, for example, instructions pre-stored in the memory before the device leaves the factory, or instructions read from the APP after the user installs a new APP during use, and the embodiments of the present application do not impose any limitation on this.

[0059] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.

[0060] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the device 100, and can also be used to transmit data between the device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other devices, such as augmented reality (AR) devices. It can be understood that the interface connection relationship between the modules illustrated in this application is only a schematic illustration and does not constitute a structural limitation on the device 100. In other embodiments, the device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0061] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the device 100. While the charging management module 140 is charging the battery 142, it may also power the device 100 through the power management module 141.

[0062] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0063] The wireless communication function of the device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, etc.

[0064] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.

[0065] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the device 100 .

[0066] The wireless communication module 160 can provide wireless communication solutions applied to the device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared (IR) technology, etc.

[0067] In some embodiments, antenna 1 of device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that device 100 can communicate with the network and other devices through wireless communication technology.

[0068] Device 100 can implement display functions through GPU, display screen 194, and application processor, etc. GPU is a microprocessor for image processing, connected to display screen 194 and application processor. GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0069] The display screen 194, which may also be referred to as a screen, may be used to display images, videos, etc. It should be understood that the display screen 194 may also include more components. For example, a backlight panel, a drive circuit, etc. Among them, the backlight panel may be used to provide a light source, and the display panel emits light based on the light source provided by the backlight panel. The drive circuit may be used to control whether the liquid crystal of the liquid crystal layer is light-transmissive or light-impermeable.

[0070] The device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0071] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0072] The internal memory 121 can be used to store device executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, etc.

[0073] The device 100 can implement audio functions such as music playing and recording through the audio module 170, such as the speaker 170A, the receiver 170B, the microphone 170C and the earphone interface 170D, and the application processor.

[0074] It is understood that the structure illustrated in the present application does not constitute a specific limitation on the device 100. In other embodiments, the device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0075] The software system of the device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture or a cloud architecture, wherein the layered architecture divides the software system of the device 100 into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces. This application takes the layered architecture of the OpenHarmony OS and Android operating systems as examples to exemplify the software structure of the device 100, but should not limit the type of operating system of the device used in the method for displaying bullet screens provided in the embodiments of this application.

[0076] Figure 2 It is a structural block diagram of the software of the device applicable to the method for displaying barrage provided in the embodiment of the present application.

[0077] like Figure 2 As shown, in some embodiments, the operating system is divided into four layers, from top to bottom, namely, the application layer, the framework layer, the system service layer, and the kernel layer. In some embodiments, the device 100 also includes hardware, such as a GPU, a central processing unit (CPU), a display screen, etc.

[0078] The application layer can include a series of application programs. Figure 2 As shown, the application layer may include system applications and third-party applications. System applications may be understood as some applications that come with the system, such as camera, gallery, calendar, call, map, Bluetooth, video, and music applications. Third-party applications may be understood as non-system applications that can be downloaded and installed from an application store or application market. The method for displaying bullet screen provided in the embodiment of the present application is applicable to third-party applications or system applications that support displaying bullet screen.

[0079] The framework layer may include a bullet screen control module. The bullet screen control module may provide services including but not limited to bullet screen control services, which are services for providing control over bullet screen display effects. For example, the setting interface for bullet screen display effects is an interface provided by the bullet screen control service for interacting with users. For a detailed description of the bullet screen control module, please refer to the relevant description below. In one possible implementation, the bullet screen control module may also be encapsulated as a system application of the device to provide users with bullet screen control services, etc.

[0080] In some possible implementations, the application layer may also include an image acquisition module and a barrage separation module. Among them, the image acquisition module can be used to record the screen content that needs to be projected by the device when the protocol based on which the screen projection connection established between the device and other devices is a mirror projection protocol to obtain video data. The barrage separation module can be used to process the video data obtained by the image acquisition module, for example, performing image recognition technology and / or layer separation technology on the video data to separate the barrage data from the video data. Thereby, the device can send the barrage data to other devices with which it has established a screen projection connection.

[0081] In the embodiments of the present application, Figure 2 As shown, the device may include a barrage control module, an image acquisition module and a barrage separation module, so that the device has the ability to implement the method for displaying barrage provided in the present application.

[0082] Figure 2 Not shown in the figure, the framework layer may also include a user interface (UI) framework, a user program framework, and a component framework. The framework layer provides the operating system's application with a multi-language user program framework and component framework in C, C++, JavaScript (JS), and other languages, as well as a multi-language framework application programming interface (API) for various software and hardware services to the outside world; it also provides a multi-language UI framework in C, C++, JS, and other languages ​​for the device. The APIs supported by different devices are related to the degree of componentization and tailoring of the system.

[0083] Figure 2 Not shown in the figure, the system service layer may include a system basic capability subsystem set, a basic software service subsystem set, an enhanced software service subsystem set, and a hardware service subsystem set. The system service layer is a core capability set of the operating system, providing services for applications through the framework layer.

[0084] Among them, the system basic capability subsystem set can be composed of subsystems such as distributed soft bus and distributed data management. The system basic capability subsystem set can provide basic capabilities for the operation, scheduling, migration and other operations of distributed applications on multiple devices.

[0085] The basic software service subsystem set can be composed of subsystems such as event notification, telephone, multimedia, etc., and can provide public and general software services.

[0086] The enhanced software service subsystem set can be composed of subsystems such as smart screen proprietary services, wearable proprietary services, and Internet of Things (IoT) proprietary services, and can provide differentiated capability-enhanced software services for different devices.

[0087] The hardware service subsystem set can be composed of subsystems such as location services, biometric recognition, wearable proprietary hardware services, IoT proprietary hardware services, etc., which can provide hardware services.

[0088] It should be noted that, according to the deployment environment of different device forms, the basic software service subsystem set, enhanced software service subsystem set and hardware service subsystem set can be cut according to the subsystem granularity, and each subsystem can be cut according to the functional granularity. This embodiment of the application does not make any limitation to this.

[0089] Figure 2 Not shown in the figure, the kernel layer may include a kernel subsystem and a driver subsystem. The operating system may adopt a multi-kernel design. Based on the kernel subsystem, the operating system supports the selection of suitable OS kernels for different resource-constrained devices; the kernel abstract layer (KAL) shields the differences between multiple kernels and provides basic kernel capabilities to the upper layer, including process management / thread management, memory management, file system, network management, and peripheral management. The driver framework in the driver subsystem is the basis for the openness of the operating system hardware ecosystem, and can provide unified peripheral access capabilities and driver development and management frameworks.

[0090] Figure 3 It is another structural block diagram of the software of the device applicable to the method for displaying barrage provided in the embodiment of the present application.

[0091] like Figure 3 As shown, in some embodiments, the Android operating system is divided from top to bottom into an application layer, an application framework layer, an Android runtime (Android runtime), a system library, and a kernel layer.

[0092] In some embodiments, the device 100 also includes hardware, such as a GPU, a CPU, a display screen, etc.

[0093] The application layer can include a series of application programs. Figure 3 As shown, the application layer may include system applications and third-party applications. System applications may be understood as some applications that come with the system, such as camera, gallery, calendar, call, map, Bluetooth, video, and music applications. Third-party applications may be understood as non-system applications that can be downloaded and installed from an application store or the like. The method for displaying bullet screen provided in the embodiment of the present application is applicable to third-party applications and system applications that support displaying bullet screen.

[0094] The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include a bullet screen control module, a bullet screen separation module, an image acquisition module, etc. For detailed descriptions of the bullet screen control module, the image acquisition module, and the bullet screen separation module, please refer to Figure 2 For the sake of brevity, the relevant contents in are not repeated here.

[0095] Figure 3 Not shown in the figure, the Android runtime may include a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android operating system.

[0096] The core library can include two parts: one part is the function that needs to be called by the Java language, and the other part is the core library of the Android operating system.

[0097] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0098] Figure 3 Although not shown in the figure, the system library may include multiple functional modules, such as status monitoring service, surface manager, media library, 3D graphics processing library (e.g., OpenGLES), 2D graphics engine (e.g., SGL), etc.

[0099] The kernel layer is the layer between hardware and software. Figure 3 Not shown in the figure, the kernel layer may include power management services, sensor services (also called sensor drivers), display services (also called display drivers), camera drivers, audio drivers, etc. The present application embodiment does not impose any limitation on this.

[0100] In the embodiments of the present application, Figure 2 or Figure 3 As shown, the device may include a barrage control module, an image acquisition module and a barrage separation module, so that the device has the ability to implement the method for displaying barrage provided in the present application.

[0101] It should be understood that Figure 1 , Figure 2 and Figure 3 This is only an example and should not limit the embodiments of the present application.

[0102] Figure 4 It is a schematic flowchart of a method for displaying barrage provided in an embodiment of the present application.

[0103] like Figure 4 As shown, method 400 may include steps 410 to 430. The steps of method 400 may be performed by the first device, or the method 400 may be performed by a component (such as a chip or a chip system, etc.) configured in the first device, or may be implemented by a logic module or software that can implement all or part of the functions of the first device, which is not limited in the present embodiment of the application. The first device may have Figure 1 , Figure 2 or Figure 3 The structure shown in the embodiment of the present application is not limited to this. Figure 4 Detailed description of each step in.

[0104] In step 410, the bullet screen is displayed based on the first display effect.

[0105] The first device can display the barrage based on the first display effect.

[0106] In one example, in a local playback scenario, the first device uses an application that does not support the control of barrage display to play content containing barrage data, and the first display effect can be the default barrage display effect played by the application that does not support the control of barrage display.

[0107] In another example, in a screen projection scenario, a first device establishes a screen projection connection with a second device, the second device is the device initiating the screen projection, that is, the second device is the source of the screen projection content, and the first device is the receiving end of the screen projection content (including bullet screen data). The first device can display the bullet screen based on the first display effect, and the first display effect can be the bullet screen display effect set by the user on the second device, or the first display effect can also be the default bullet screen display effect on the second device. In other words, the bullet screen display effect on the first device depends on the bullet screen display effect on the second device.

[0108] In step 420, in response to the user's operation, a setting interface for the barrage display effect is displayed, and the setting interface is provided by the operating system or system application of the first device.

[0109] The first device can display a setting interface for the barrage display effect in response to the user's operation, so that the user can set the barrage display effect that the user wants the first device to display through the setting interface according to personal needs.

[0110] The setting interface is provided by the operating system or system application of the first device. For example, a possible implementation is as follows: Figure 2 or Figure 3As shown, a bullet screen control module may be deployed in the operating system of the first device, and the bullet screen control module may be used to provide services including but not limited to bullet screen control services. Another possible implementation is to encapsulate the bullet screen control module as a system application of the first device to provide users with bullet screen control services. The setting interface is an interface provided by the bullet screen control service for interacting with the user.

[0111] In a possible implementation, the user operation is an operation on a control, and the control is displayed when a bullet screen control service is turned on. The bullet screen control service is a service for providing control over the bullet screen display effect.

[0112] It is understandable that the user can operate the control to call out the setting interface of the barrage display effect, that is, the control can be used to call out the setting interface.

[0113] As an example but not limitation, in some possible implementations, the first device may provide a control for turning on or off the bullet screen control service in a side toolbar (such as a side toolbar of a smart screen) or a drop-down toolbar (such as a drop-down toolbar of a mobile phone or tablet) or a control center (for ease of description, the control is referred to as a first control); in some other possible implementations, the first device may provide the first control in a service setting interface. This allows the user to turn on or off the bullet screen control service at any time by operating the first control as needed.

[0114] It is understandable that the above-mentioned user operation may be that the user operates the first control to start the bullet screen control service.

[0115] Figure 5 It is a schematic diagram of the first control provided in an embodiment of the present application.

[0116] like Figure 5 As shown, the control labeled with the words "bullet screen control" may be an example of the first control. Figure 5 In a), the style of the control marked with the words "bullet screen control" can indicate that the bullet screen control service is closed. The user can click the control marked with the words "bullet screen control" to turn on the bullet screen control service and switch the control to the following state: Figure 5 The style shown in b) of FIG. 1 may indicate that the bullet screen control service is turned on. It is understandable that Figure 5 This is only an example and should not be construed as limiting the present application.

[0117] When the bullet screen control service is turned on, the first device can display the above-mentioned control (for the convenience of description, the control is recorded as the second control), and the user can operate the second control to call out the setting interface of the above-mentioned bullet screen display effect.

[0118] Figure 6 It is a schematic diagram of the second control provided in an embodiment of the present application.

[0119] like Figure 6 The second control shown in a) of FIG. 1 may be operated by the user, for example, including but not limited to clicking the second control to call up a Figure 6 The setting interface of the barrage display effect shown in b).

[0120] In some possible implementations, the setting interface of the bullet screen display effect may include but is not limited to options for setting the display area, display speed, font size, font color, opacity, removing occlusion, removing duplication, removing advertisements, automatically avoiding portraits, and intelligent spoiler prevention. This application does not impose any restrictions on this. Figure 6 In b), options for setting the opacity, display speed, font size, display area, automatic avoidance of portraits, and intelligent spoiler prevention are shown by way of example. It is understandable that Figure 6 This is only an example and should not limit the present application in any way.

[0121] In one possible implementation, as an example but not a limitation, the priority of the bullet screen control service provided by the operating system of the first device is higher than the ability of third-party applications and system applications to control the display of bullet screens. For example, a video playback application installed on the first device has the ability to control the display of bullet screens. When the first device uses the video playback application to play a video resource with bullet screen data, when the bullet screen control service of the first device is turned on, the first device can display the bullet screen based on the bullet screen display effect set by the user on the setting interface of the bullet screen display effect provided by the bullet screen control service of the operating system of the first device, and the setting of the bullet screen display effect in the video playback application can be ignored.

[0122] In step 430, the bullet screen is displayed based on the second display effect set by the user on the setting interface.

[0123] Exemplarily, the user operates on the setting interface of the bullet screen display effect, and the first device can display the bullet screen with the second display effect in response to the user's operation. It is understandable that the second display effect is different from the first display effect, and the difference between the second display effect and the first display effect can be reflected in at least one of the following differences, including but not limited to the display area, display speed, font size, font color, opacity, removal of occlusion, removal of duplication, removal of advertisements, automatic avoidance of portraits, and intelligent spoiler prevention of the bullet screen, and this application does not make any limitation on this.

[0124] In a possible implementation, before displaying the barrage based on the first display effect, method 400 further includes: acquiring barrage data for displaying the barrage.

[0125] It is understandable that the premise that the first device displays the bullet screen based on the first display effect includes that the first device needs to obtain bullet screen data for displaying the bullet screen. The bullet screen data may be data having a certain encoding format, and the encoding format may include but is not limited to a file format, a real-time transport protocol (RTP) format, a video container format (such as MP4 format, etc.) or a transport stream (TS) format, etc., and this application does not impose any limitation on this.

[0126] In some embodiments, obtaining barrage data for displaying barrage includes: receiving an address of barrage data from a second device, where the second device is a device that initiates screen projection, and the second device has established a screen projection connection with the first device; and obtaining barrage data based on the address.

[0127] In the screen projection scenario, the second device initiates screen projection to the first device, and the first device establishes a screen projection connection with the second device. The second device, as the source of data, can send the address of the barrage data to the first device. Correspondingly, the first device can receive the address of the barrage data from the second device. After receiving the address of the barrage data, the first device can obtain the barrage data based on the address, for example, download the barrage data based on the address.

[0128] In other embodiments, obtaining barrage data for displaying barrage includes: receiving barrage data from a second device, where the second device is a device that initiates screen projection, and the second device establishes a screen projection connection with the first device.

[0129] In the screen projection scenario, the second device initiates screen projection to the first device, and the first device establishes a screen projection connection with the second device. The second device, as the source of data, can send barrage data to the first device. Correspondingly, the first device can receive the barrage data from the second device, so that the first device obtains the barrage data.

[0130] In some other embodiments, obtaining barrage data for displaying barrage includes: receiving an address of the barrage data from a server, where the server is also used to provide playback resources; and obtaining the barrage data based on the address.

[0131] It is understandable that the playback resources may include but are not limited to video resources, audio resources, and e-book resources.

[0132] In the local playback scenario, the first device can obtain the address of the playback resource and the address of the barrage data from the server used to provide the playback resource, and then download the playback resource based on the address of the playback resource, and download the barrage data based on the address of the barrage data, so that the first device obtains the barrage data.

[0133] Based on the above scheme, the operating system of the device has a service for providing control of the display effect of the bullet screen, so that the device can provide the user with a setting interface for displaying the display effect of the bullet screen, and then display the bullet screen according to the bullet screen display effect set by the user on the setting interface. Therefore, the intelligence of the device's display of the bullet screen can be improved, thereby improving the user experience. Furthermore, the method for displaying the bullet screen is applicable to local playback scenarios and screen projection scenarios, etc., does not depend on the provider of the bullet screen data, and has good universality.

[0134] Figure 7 It is another schematic flowchart of the method for displaying barrage provided in an embodiment of the present application.

[0135] like Figure 7 As shown, method 700 may include steps 710 to 730. The steps of method 700 may be performed by the second device, or the method 700 may be performed by a component (such as a chip or a chip system, etc.) configured in the second device, or may be implemented by a logic module or software that can implement all or part of the functions of the second device, which is not limited in the present embodiment. The second device may have the following features: Figure 1 , Figure 2 or Figure 3 The structure shown in the embodiment of the present application is not limited to this. Figure 7 Detailed description of each step in.

[0136] In step 710, a screen projection connection is established with the first device.

[0137] As an example and not a limitation, the second device and the first device may support the mirroring screen projection protocol and / or the digital living network alliance (DLNA) screen projection protocol, or the second device and the first device may also support shared playback over a local area network, which is not limited in this application. In an embodiment of the present application, sharing playback between the second device and the first device via a local area network can also be classified as a screen projection scenario between the first device and the second device. Among them, the mirroring screen projection protocol may include but is not limited to the Miracast screen projection protocol or the AirPlay screen projection protocol.

[0138] In the screen projection scenario, the second device can initiate screen projection to the first device in response to the user's operation and establish a screen projection connection with the first device.

[0139] In step 720, when the protocol based on which the screen projection connection established with the first device is a mirroring screen projection protocol, the barrage data is obtained.

[0140] The second device establishes a screen projection connection with the first device, and the second device can learn the protocol based on which the established screen projection connection is based. When the protocol based on which the screen projection connection established with the first device is a mirror screen projection protocol, the second device can first obtain the barrage data before sending the barrage data to the first device.

[0141] In a possible implementation, obtaining the barrage data includes: playing the projected content; screen recording the projected content to obtain a video screen; and separating the barrage data from the video screen.

[0142] It is understandable that the screen projection content may include but is not limited to video resources, audio resources or e-book resources containing barrage data. Figure 2 or Figure 3 As shown, an image acquisition module and a barrage separation module may be deployed in the operating system of the second device. When the protocol based on which the screen projection connection established with the first device is a mirror screen projection protocol, the second device can play the projection content and perform screen recording of the projection content based on the image acquisition module to obtain a video screen. Furthermore, the second device can separate the barrage data from the video screen based on the barrage separation module. For example, the second device can perform image recognition technology and / or layer separation technology on the video screen based on the barrage separation module to separate the barrage data from the video screen. This application does not impose any limitation on this.

[0143] In step 730, the bullet screen data is sent to the first device.

[0144] Exemplarily, after acquiring the barrage data, the second device may send the barrage data to the first device.

[0145] In some possible implementations, when the screen projection connection established with the first device is based on the DLNA screen projection protocol or the local area network shared playback protocol, the second device can directly send the address of the barrage data to the first device, so that the first device can obtain the barrage data based on the address of the barrage data. This application does not impose any limitations on this.

[0146] Based on the above scheme, in the mirror screen projection scenario, the second device that initiates the screen projection can obtain the barrage data and send the barrage data to the first device, so that the first device can display the barrage based on the barrage data and according to the barrage display effect set by the user. This can avoid the problem that the first device cannot control the barrage display effect due to the second device directly sending the recorded video screen including the barrage to the first device. This can improve the intelligence of the device's display of the barrage, thereby improving the user experience.

[0147] In order to better understand the method for displaying bullet comments provided by the present application, the following Figure 8 and Fig. 9 The method for displaying barrage provided in this application is further explained.

[0148] Figure 8 It is another schematic flowchart of the method for displaying barrage provided in an embodiment of the present application.

[0149] In step 810, the second device initiates screen projection in response to the user's operation; the first device negotiates screen projection with the second device and establishes a screen projection connection.

[0150] Exemplarily, the second device can initiate a screen projection connection request to the first device in response to the user's screen projection operation. The first device can respond to the request of the second device, and screen projection negotiation can be performed with the second device, and the first device and the second device establish a screen projection connection.

[0151] In step 820, when the protocol based on which the screen projection connection established with the first device is the mirroring screen projection protocol, the second device performs screen recording on the projection content to obtain a video image.

[0152] like Figure 2 or Figure 3 As shown, an image acquisition module can be deployed in the operating system of the second device. When the protocol based on which the screen projection connection established with the first device is a mirror projection protocol, the second device can play the projection content and perform screen recording of the projection content based on the image acquisition module to obtain a video screen.

[0153] In step 830, the second device separates the barrage data from the video screen to obtain the original playback resources and the barrage data.

[0154] The original playback resource may refer to a playback resource that does not include the bullet screen data. In this implementation, the original playback resource and the bullet screen data are stored in the same data file. If the second device directly sends the recorded video screen to the first device, the first device cannot control the display effect of the bullet screen. Therefore, the second device needs to separate the bullet screen data from the video screen.

[0155] like Figure 2 or Figure 3 As shown, a barrage separation module can be deployed in the operating system of the second device, and the second device can separate the barrage data from the video screen based on the barrage separation module. For example, the second device can perform image recognition technology and / or layer separation technology on the video screen based on the barrage separation module to separate the barrage data from the video screen.

[0156] In step 840, the second device sends the bullet screen data and the original playback resource to the first device. Correspondingly, the first device receives the bullet screen data and the original playback resource from the second device.

[0157] After separating the bullet screen data from the video screen, the second device can encode the bullet screen data and the original playback data respectively, and transmit them to the first device.

[0158] In step 850, the first device plays the original playback resource and displays the barrage based on the first display effect.

[0159] Exemplarily, the first device may start a player, decode and display the original playback resource, and create a surface view control to display the bullet screen based on the bullet screen data.

[0160] For a detailed description of the first device displaying the barrage based on the first display effect, please refer to the relevant description of step 410 in the above method 400. For the sake of brevity, it will not be repeated here.

[0161] In step 860, in response to the user's operation of calling up a setting interface for the barrage display effect, the first device displays the setting interface.

[0162] Exemplarily, the first device can create a view for controlling the display effect of the bullet screen on the surface view in response to the user's operation, that is, a setting interface for the display effect of the bullet screen, which includes but is not limited to setting options for controlling the display area, display speed, font size, font color, opacity, removing advertisements, removing occlusions, removing duplications, automatically avoiding portraits, and intelligent spoiler prevention for the bullet screen, so that the user can operate on the setting interface. When the user operates at least one option on the setting interface, the first device can adjust the surface view by setting the attribute value of the surface view in response to the user's operation, and generate a corresponding bullet screen control strategy, and a corresponding bullet screen display effect can be generated based on the generation of the corresponding bullet screen control strategy.

[0163] For a detailed description, please refer to the relevant description of step 420 in the above method 400, which will not be repeated here for the sake of brevity.

[0164] In step 870, the first device displays the barrage based on the second display effect set by the user on the setting interface.

[0165] It can be understood that each time the property value of the surface view is adjusted, the barrage can be displayed with the adjusted barrage display effect.

[0166] For a detailed description, please refer to the relevant description of step 430 in the above method 400, which will not be repeated here for the sake of brevity.

[0167] Fig. 9 This is another schematic flowchart of the method for displaying barrage provided in an embodiment of the present application.

[0168] In step 910, the second device initiates screen projection in response to the user's operation; the first device negotiates screen projection with the second device and establishes a screen projection connection.

[0169] For a detailed description, please refer to the relevant description of step 810 above, which will not be repeated here for the sake of brevity.

[0170] In step 920, when the protocol based on which the screen projection connection established with the first device is the DLNA screen projection protocol or the LAN shared playback protocol, the second device sends the address of the screen projection content to the first device, and the screen projection content includes the original playback resources and barrage data.

[0171] As mentioned above, the original playback resource may refer to a playback resource that does not include barrage data. In this implementation, the original playback resource and the barrage data are not stored in the same data file, and the address of the screen projection content includes the address of the original playback resource and the address of the barrage data.

[0172] When the screen projection connection established with the first device is based on the DLNA screen projection protocol or the LAN shared playback protocol, the second device can directly send the address of the original playback resource and the address of the barrage data to the first device, so that the first device can obtain the barrage data based on the address of the barrage data.

[0173] In step 930, the first device obtains the original playback resources and barrage data based on the address of the projected content.

[0174] The first device can obtain the barrage data based on the address of the barrage data, and obtain the original playback resource based on the address of the original playback resource.

[0175] In step 940, the first device plays the original playback resource and displays the barrage based on the first display effect.

[0176] For a detailed description, please refer to the relevant description of step 850 above, which will not be repeated here for the sake of brevity.

[0177] In step 950, in response to the user's operation of calling up a setting interface for the barrage display effect, the first device displays the setting interface.

[0178] For a detailed description, please refer to the relevant description of step 860 above, which will not be repeated here for the sake of brevity.

[0179] In step 960, the first device displays the barrage based on the second display effect set by the user on the setting interface.

[0180] For a detailed description, please refer to the relevant description of step 870 above, which will not be repeated here for the sake of brevity.

[0181] The present application also provides a device, which includes a device for executing the above Figure 4 , Figures 7 to 9 The corresponding modules of the steps in any one of the items. The modules included in the device can be implemented by software and / or hardware.

[0182] The embodiment of the present application also provides a device, which includes a memory and a processor, wherein the memory is used to store a program, and the processor is used to call and execute the program, so that the device performs the above Figure 4 , Figures 7 to 9 Steps in any one of the above.

[0183] The present application also provides a chip system, which includes at least one processor for implementing the above Figure 4 , Figures 7 to 9 The functions involved in the steps in any one of the items.

[0184] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0185] The chip system may be composed of the chip, or may include the chip and other discrete devices.

[0186] The embodiment of the present application also provides a readable storage medium on which a program is stored. When the program is executed by a device, the device executes the above Figure 4 , Figures 7 to 9 Steps in any one of the above.

[0187] The embodiment of the present application also provides a program product, including a program, which, when executed, enables the device to execute the above Figure 4 , Figures 7 to 9 Steps in any one of the above.

[0188] It should be understood that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined to perform. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0189] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.

[0190] The terms "unit", "module" and the like used in this specification may be used to represent device-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution.

[0191] It will be appreciated by those skilled in the art that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in combination with software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. In the several embodiments provided in this application, it should be understood that the disclosed devices, equipment and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0192] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0193] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more units may be integrated into one module.

[0194] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the software product is stored in a storage medium, including several instructions for enabling a device to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0195] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for displaying bullet comments, characterized in that: Applied to a first device, the method includes: Displaying the bullet screen based on the first display effect; In response to a user operation, displaying a setting interface for a bullet screen display effect, wherein the setting interface is provided by an operating system or a system application of the first device; The barrage is displayed based on the second display effect set by the user on the setting interface.

2. The method according to claim 1, characterized in that Before displaying the bullet screen based on the first display effect, the method further includes: Get the bullet chat data used to display the bullet chat.

3. The method according to claim 2, characterized in that The obtaining of bullet screen data for displaying bullet screen includes: Receiving the address of the bullet screen data from a second device, where the second device is a device that initiates screen projection, and the second device has established a screen projection connection with the first device; The bullet screen data is obtained based on the address.

4. The method according to claim 2, characterized in that The obtaining of bullet screen data for displaying bullet screen includes: The barrage data is received from a second device, where the second device is a device that initiates screen projection, and the second device establishes a screen projection connection with the first device.

5. The method according to claim 2, characterized in that The obtaining of bullet screen data for displaying bullet screen includes: Receiving the address of the bullet screen data from a server, wherein the server is also used to provide playback resources; The bullet screen data is obtained based on the address.

6. The method according to any one of claims 1 to 5, characterized in that The user operation is an operation on a control, and the control is displayed when the barrage control service is turned on. The barrage control service is a service for providing control over the barrage display effect.

7. A method for displaying bullet comments, characterized in that: Applied to a second device initiating screen projection, the method includes: Establishing a screen projection connection with the first device; When the screen projection connection established with the first device is based on a mirroring screen projection protocol, obtaining barrage data; Send the barrage data to the first device.

8. The method according to claim 7, characterized in that The obtaining of bullet screen data includes: Play the screen projection content; Performing screen recording on the screen projection content to obtain a video screen; The bullet screen data is separated from the video screen.

9. A device, characterized in that: comprising a processor and a memory, wherein: The memory is used to store programs; The processor is configured to call the program so that the device executes the method according to any one of claims 1 to 6, or so that the device executes the method according to claim 7 or 8.

10. A readable storage medium having a program stored thereon, characterized in that: When the program is executed, the device executes the method according to any one of claims 1 to 6, or the device executes the method according to claim 7 or 8.

11. A program product, characterized in that The invention comprises a program, which, when being executed, causes the device to execute the method according to any one of claims 1 to 6, or causes the device to execute the method according to claim 7 or 8.

Citation Information

Patent Citations

  • Bullet screen display method and apparatus, and readable storage medium

    CN108260019A

  • Barrage presenting method and device thereof

    CN108965978A