CN109379621B - Bullet screen display method and device - Google Patents

Bullet screen display method and device Download PDF

Info

Publication number
CN109379621B
CN109379621B CN201810930893.8A CN201810930893A CN109379621B CN 109379621 B CN109379621 B CN 109379621B CN 201810930893 A CN201810930893 A CN 201810930893A CN 109379621 B CN109379621 B CN 109379621B
Authority
CN
China
Prior art keywords
display area
bullet screen
screen
bullet
full
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.)
Active
Application number
CN201810930893.8A
Other languages
Chinese (zh)
Other versions
CN109379621A (en
Inventor
李立锋
周治尹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MIGU Video Technology Co Ltd
Original Assignee
MIGU Video Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MIGU Video Technology Co Ltd filed Critical MIGU Video Technology Co Ltd
Priority to CN201810930893.8A priority Critical patent/CN109379621B/en
Publication of CN109379621A publication Critical patent/CN109379621A/en
Application granted granted Critical
Publication of CN109379621B publication Critical patent/CN109379621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4314Generation 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 for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a bullet screen display method, which comprises the following steps: receiving a full screen bullet screen display request sent by electronic equipment; acquiring first bullet screen information displayed in a main display area and second bullet screen information displayed in a secondary display area in the electronic equipment based on the full-screen bullet screen display request; combining the first bullet screen information and the second bullet screen information to generate combined bullet screen information; and displaying the combined bullet screen information in a full-screen bullet screen display area of the electronic equipment. The invention also provides a bullet screen display device.

Description

Bullet screen display method and device
Technical Field
The invention relates to a bullet screen display technology, in particular to a bullet screen display method and device.
Background
People often like to watch comments made by others when watching network videos, and in the video playing process, the phenomenon that a large number of comments displayed in a subtitle form appear simultaneously is called as a bullet screen, and correspondingly, dynamically displayed comment information is bullet screen information. When the same user watches different videos simultaneously in different display areas on the same terminal, the situation that different display areas display respective bullet screen information often exists, but because the display areas of different display areas on the terminal screen are limited, the font of the bullet screen information displayed in different display areas is small, the bullet screen content is not easy to see clearly, and the user experience is poor. As shown in particular in figure 1.
FIG. 1 is a diagram illustrating a bullet screen display effect in the prior art; as shown in fig. 1, including the main display area 101 and the three sub-display areas 102, since the display area of the main display area 101 is larger than that of the sub-display area 102, the font of the bullet screen information displayed on the sub-display area 102 is smaller, and the bullet screen content is not clearly seen.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a bullet screen display method and device.
The technical scheme of the embodiment of the invention is realized as follows:
according to an aspect of the embodiments of the present invention, there is provided a bullet screen display method, including:
receiving a full screen bullet screen display request sent by electronic equipment;
acquiring first bullet screen information displayed in a main display area and second bullet screen information displayed in a secondary display area in the electronic equipment based on the full-screen bullet screen display request;
combining the first bullet screen information and the second bullet screen information to generate combined bullet screen information;
and displaying the combined bullet screen information in a full-screen bullet screen display area of the electronic equipment.
In the above scheme, the method further comprises:
receiving a bullet screen playing request sent aiming at the main display area or the auxiliary display area;
acquiring bullet screen attribute information corresponding to the main display area or the auxiliary display area based on the bullet screen playing request;
and displaying bullet screen information corresponding to the main display area or the auxiliary display area in a full-screen bullet screen display area of the electronic equipment based on the bullet screen attribute information.
In the above scheme, the method further comprises:
acquiring request time corresponding to the bullet screen playing request;
determining the number of first barrages to be displayed in the main display area in the request time; and the number of second barrages to be displayed in the slave display area at the request time;
determining that all bullet screens in the main display area occupy a first height of the full-screen bullet screen display area at the request time based on the font size of the bullet screens displayed in the main display area and the number of the first bullet screens;
determining the height difference between the height of the full-screen bullet screen display area and the first height as a second height of the full-screen bullet screen display area occupied by all bullet screens in the secondary display area at the request time;
determining the display height of each bullet screen in the main display area in a full-screen bullet screen display area of the electronic equipment based on the first height; or determining the display height of each bullet screen in the slave display area in a full-screen bullet screen display area of the electronic equipment based on the second height.
In the above scheme, the method further comprises:
determining the display height of each bullet screen in the secondary display area in a full-screen bullet screen display area of the electronic equipment, and keeping the font size of the bullet screen displayed in the secondary display area unchanged when the display height of each bullet screen in the secondary display area is larger than the font height corresponding to the font size of the bullet screen displayed in the secondary display area;
or when the display height of each bullet screen in the secondary display area in the full-screen bullet screen display area of the electronic equipment is determined to be smaller than the font height corresponding to the font size of the bullet screen displayed in the secondary display area and larger than half of the font height, adjusting the font height to be the display height of each bullet screen in the secondary display area in the full-screen bullet screen display area of the electronic equipment;
or when the display height of each bullet screen in the secondary display area in the full-screen bullet screen display area of the electronic equipment is determined to be smaller than half of the font height corresponding to the font size of the bullet screen displayed in the secondary display area, adjusting the font height to be half of the font height.
In the above scheme, the method further comprises:
and establishing the full-screen bullet screen display area, wherein the full-screen bullet screen display area comprises all areas in the screen boundary of the electronic equipment.
In the above scheme, the method further comprises:
the transparency of the full-screen bullet screen display area is smaller than the transparencies of the main display area and the auxiliary display area.
In the above scheme, the method further comprises:
receiving a region selection instruction sent by the electronic equipment; displaying a first bullet screen input box based on the region selection instruction; displaying a first bullet screen trigger identifier and a corresponding first display area identification number in the first bullet screen input frame; sending bullet screen information of a display area corresponding to the first display area identification number to the full-screen bullet screen display area based on the first bullet screen input box;
or receiving a bullet screen input box display instruction sent by the electronic equipment; displaying a second bullet screen input frame based on the bullet screen input frame display instruction; and receiving a second bullet screen trigger identifier and a corresponding second display area identification number which are input aiming at the second bullet screen input box, and sending bullet screen information aiming at a display area corresponding to the second display area identification number to the full-screen bullet screen display area.
In the above scheme, the method further comprises:
comparing the numerical value corresponding to the second display area identification number with the numerical value of the total display area in the electronic equipment; when the comparison result represents that the numerical value corresponding to the second display area identification number is larger than the numerical value of the total display area, calculating the remainder between the numerical value corresponding to the second display area identification number and the numerical value of the total display area; determining a display area identification number corresponding to a value obtained by adding one to the remainder as an area identification number of a target display area corresponding to the bullet screen information;
the method further comprises the following steps:
when the second bullet screen trigger identifier input aiming at the second bullet screen input box is not received, sending bullet screen information aiming at the main display area to the full-screen bullet screen display area;
in the above scheme, the method further comprises:
acquiring current playing time points of the main display area and the auxiliary display area;
sending bullet screen information of a display area corresponding to the first display area identification number to the full-screen bullet screen display area, or sending bullet screen attribute information of the current playing time point and/or the bullet screen information when sending bullet screen information of a display area corresponding to the second display area identification number to the full-screen bullet screen display area;
generating new bullet screen information based on the bullet screen information, the current playing time point and/or the bullet screen attribute information;
and displaying the newly added bullet screen information in the full-screen bullet screen display area.
According to another aspect of embodiments of the present invention, there is provided a bullet screen display device, including:
the receiving unit is used for receiving a full screen bullet screen display request sent by the electronic equipment;
the acquisition unit is used for acquiring first bullet screen information displayed in a main display area and second bullet screen information displayed in a secondary display area in the electronic equipment based on the full-screen bullet screen display request;
the combination unit is used for combining the first bullet screen information and the second bullet screen information to generate combined bullet screen information;
and the display unit is used for displaying the combined bullet screen information in a full-screen bullet screen display area of the electronic equipment.
In the technical scheme of the embodiment of the invention, a bullet screen display method and a bullet screen display device are provided, wherein a full-screen bullet screen display request sent by an electronic device is received; acquiring first bullet screen information displayed in a main display area and second bullet screen information displayed in a secondary display area in the electronic equipment based on the full-screen bullet screen display request; combining the first bullet screen information and the second bullet screen information to generate combined bullet screen information; and displaying the combined bullet screen information in a full-screen bullet screen display area of the electronic equipment. In this way, by combining the bullet screen information displayed in each display area, the combined bullet screen information is displayed on the full screen of the electronic device, and the bullet screen content displayed in each display area can be clearly seen.
Drawings
FIG. 1 is a diagram illustrating a bullet screen display effect in the prior art;
FIG. 2 is a flowchart illustrating a bullet screen display method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the bullet screen display effect according to an embodiment of the present invention;
FIG. 4 is a first schematic structural diagram of a bullet screen display device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a bullet screen display device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
FIG. 2 is a flowchart illustrating a bullet screen display method according to an embodiment of the present invention; as shown in fig. 2, the method includes:
step 201, receiving a full screen bullet screen display request sent by an electronic device;
in the embodiment of the invention, the method is mainly applied to terminals capable of playing multi-channel videos, and the terminals include but are not limited to mobile phones, tablet computers, desktop computers, televisions, servers and other electronic equipment. Specifically, an application program capable of playing videos may be installed on the electronic device, and a user may play multiple channels of videos through the application program.
In the embodiment of the invention, a plurality of area display modes are preset in electronic equipment, a user sends an area dividing request to the electronic equipment by selecting the area display modes, and the electronic equipment responds to the area dividing request when receiving the area dividing request and divides a display area of the electronic equipment into a plurality of sub-display areas according to the area dividing request; the sub display region includes the main display region and the sub display region.
In the embodiment of the invention, each of the main display area and the slave display area is provided with a barrage play switch which is specifically a virtual button, and the virtual button is triggered by a user to output barrage information of the corresponding display area.
In the embodiment of the invention, all areas in the screen boundary of the electronic equipment can be established as a full-screen bullet screen display area, a full-screen bullet screen display switch is further arranged in the full-screen bullet screen display area, and a user can turn on or off the full-screen bullet screen display area by triggering the full-screen bullet screen display switch.
Specifically, when the user triggers the full screen bullet screen display switch to be in an on state, the electronic device can receive a full screen bullet screen display request sent by the electronic device.
In the embodiment of the invention, the transparency of the full-screen bullet screen display area is less than the transparencies of the main display area and the auxiliary display area.
Step 202, acquiring first bullet screen information displayed in a main display area and second bullet screen information displayed in a secondary display area in the electronic equipment based on the full-screen bullet screen display request;
in the embodiment of the invention, when the electronic equipment receives a full screen bullet screen display request, the electronic equipment performs bullet screen detection on the main display area and the auxiliary display area, and when the detection result shows that the main display area and the auxiliary display area have bullet screen information, first bullet screen information displayed in the main display area and second bullet screen information displayed in the auxiliary display area in the electronic equipment are acquired.
Step 203, combining the first bullet screen information and the second bullet screen information to generate combined bullet screen information;
in the embodiment of the present invention, the first bullet screen information and the second bullet screen information include, but are not limited to, bullet screen content, bullet screen attribute information, and bullet screen playing time points, and the electronic device generates the combined bullet screen information by combining the first bullet screen information and the second bullet screen information.
Specifically, the electronic device may further receive a barrage play request sent by a user for the main display area or the slave display area; the bullet screen playing request can be sent by triggering the bullet screen playing switches of the main display area and the auxiliary display area. When the bullet screen play switch is in a state of being started from the top, the electronic equipment can receive the bullet screen play request. Acquiring bullet screen attribute information of a corresponding main display area or a corresponding auxiliary display area based on the bullet screen playing request; and combining the bullet screen information of the main display area and the slave display area based on the bullet screen attribute information, the corresponding bullet screen content and the bullet screen playing time point to generate combined bullet screen information.
Here, the combining the first bullet screen information and the second bullet screen information means that bullet screen information displayed in different display areas is displayed in the same display area, and bullet screen attribute information, bullet screen content, and play time point corresponding to each bullet screen information are kept unchanged in an original state.
And 204, displaying the combined bullet screen information in a full-screen bullet screen display area of the electronic equipment.
In the embodiment of the invention, the electronic equipment sends the generated combined bullet screen information to the full-screen bullet screen display area, and when the full-screen bullet screen display area receives the combined bullet screen information, the combined bullet screen information is displayed in the full-screen display area, that is, bullet screen information corresponding to the main display area or the auxiliary display area is displayed in the full-screen bullet screen display area of the electronic equipment.
In the embodiment of the invention, the electronic equipment can also obtain the request time corresponding to the bullet screen playing request; determining a first height of all bullet screens in the main display area occupying a full screen bullet screen display area at the request time; and occupying a second height of the full screen bullet screen display area by all bullet screens in the display area at the request time; then, determining the display height of each bullet screen in the main display area in a full-screen bullet screen display area of the electronic equipment based on the first height; and determining the display height of each bullet screen in the full-screen bullet screen display area of the electronic equipment from the display area based on the second height.
When determining that all the barrages in the main display area occupy the first height of the full-screen barrage display area at the request time, the electronic equipment can also determine the number of the first barrages to be displayed in the main display area at the request time; and the number of second barrages to be displayed in the request time from the display area; and determining a first height of all bullet screens occupying a full-screen bullet screen display area in the main display area at the request time based on the font size of the bullet screens displayed in the main display area and the number of the first bullet screens.
When determining that all the bullet screens in the secondary display area occupy the second height of the full-screen bullet screen display area at the request time, the electronic device may further calculate a height difference between the height of the full-screen bullet screen display area and the first height, and determine the height difference as the second height of all the bullet screens in the secondary display area occupying the full-screen bullet screen display area at the request time.
Here, the number of first barrages displayed in the main display area is referred to as: n is a radical ofMaster and slave(ii) a The second number of bullet screens displayed from the display area is referred to as: n is a radical ofFromThe font size of the main display area displaying the bullet screen is called as: xMaster and slaveThe font size for displaying the bullet screen from the display area is referred to as: xFrom(ii) a The height of the full screen bullet screen display area is called as:
Hgeneral assembly(ii) a Specifically, by the formula: n is a radical ofMaster and slave×XMaster and slave=HMaster and slaveAnd obtaining the first height of all the bullet screens in the display area occupying the full-screen bullet screen display area at the request time. By the formula: hGeneral assembly-NMaster and slave×XMaster and slave=HGeneral assembly-HMaster and slave=HFromAnd obtaining a second height of the full screen bullet screen display area occupied by all bullet screens in the display area at the request time.
In the embodiment of the invention, after the electronic equipment determines the display heights of all bullet screens in the slave display area in the full-screen bullet screen display area, the display height of each bullet screen in the slave display area in the full-screen bullet screen display area is determined. Specifically, the method comprises the following steps: hFrom k=HFrom÷(ΣNFrom k) And obtaining the display height of each bullet screen in the full-screen bullet screen display area in the display area.
Where K denotes a specific slave display area.
In the embodiment of the invention, after the display height of each bullet screen in the slave display area in the full-screen bullet screen display area is determined, the display height of each bullet screen in the slave display area in the full-screen bullet screen display area is compared with the font height corresponding to the font size of the bullet screen displayed in the slave display area to obtain a first comparison result, and when the first comparison result represents that the display height of each bullet screen in the slave display area in the full-screen bullet screen display area is larger than the font height corresponding to the font size of the bullet screen displayed in the slave display area, the font size of the bullet screen displayed in the slave display area is kept unchanged;
when the first comparison result represents that the display height of each bullet screen in the slave display area in the full-screen bullet screen display area is smaller than the font height corresponding to the font size of each bullet screen displayed in the slave display area, the display height of each bullet screen in the full-screen bullet screen display area in the slave display area is compared with half of the font height corresponding to the font size of each bullet screen displayed in the slave display area to obtain a second comparison result, and when the display height of each bullet screen in the full-screen bullet screen display area in the slave display area represented by the second comparison result is larger than half of the font height corresponding to the font size of each bullet screen displayed in the slave display area, the font height corresponding to the font size of each bullet screen displayed in the slave display area is adjusted to be the display height of each bullet screen in the full-screen bullet screen display area in the slave display area;
and when the second comparison result represents that the display height of each bullet screen in the slave display area in the full-screen bullet screen display area is less than half of the font height corresponding to the font size of the bullet screen displayed in the slave display area, adjusting the font height corresponding to the font size of the bullet screen displayed in the slave display area to be half of the font height.
In the embodiment of the invention, four display areas are assumed to be divided in the electronic equipment, namely a main display area and three auxiliary display areas; and each display area is provided with a bullet screen playing switch. When a user opens the full-screen bullet screen display switch to enable the full-screen bullet screen display switch to be in an open state, the bullet screen playing switch in each display area is in the open state.
The user can send bullet screen closing request to a certain display area through modes such as clicking, dragging, acoustic control, and when electronic equipment received the bullet screen closing request that sends to a certain display area, closed this display area's bullet screen broadcast switch for this bullet screen broadcast switch is in the closed condition, and at this moment, no longer to the bullet screen information of this display area of full-screen bullet screen display area output.
According to the invention, the independent bullet screen playing switch is arranged in each display area, so that different requirements of users can be met, and the users can freely control bullet screen information according to actual requirements.
In the embodiment of the invention, the electronic equipment can also receive a display area deleting instruction sent by a user aiming at the display area, when the electronic equipment receives the display area deleting instruction, the corresponding display area is deleted, meanwhile, the electronic equipment does not send the bullet screen information of the display area to the full screen bullet screen display area any more, and the bullet screen information of the display area which is already present in the full screen bullet screen display area is still normally displayed in the display area before the moment when the electronic equipment receives the deleting instruction. And after the display area is deleted, the bullet screen information of the media file corresponding to the display area will not appear in the full screen bullet screen display area in the time axis after the receiving time of the deletion instruction.
In the embodiment of the invention, the electronic equipment can also receive a new media information playing request sent by a user, and when the electronic equipment receives the media information playing request, the electronic equipment selects the idle display area which does not play the media information in the current display area to play the media. When a user opens a bullet screen playing switch of an idle display area, the electronic equipment acquires the playing time of the current media of the idle display area and detects whether bullet screen information exists at the playing time, when the detection result represents that the bullet screen information exists at the playing time, the electronic equipment combines the bullet screen information with bullet screen information of other display areas and sends the combined bullet screen information to a full-screen bullet screen display area, so that the combined bullet screen information is displayed in the full-screen bullet screen display area.
In the embodiment of the invention, when the user performs the bullet screen sending behavior in the state of playing the multi-channel video, the bullet screen can be sent according to the video source specified by the user.
Specifically, the electronic device may receive a region selection instruction sent by a user for the electronic device; displaying a first bullet screen input box based on the region selection instruction; displaying a first bullet screen trigger identifier and a corresponding first display area identification number in a first bullet screen input box; sending bullet screen information of a display area corresponding to the first display area identification number to a full-screen bullet screen display area based on the first bullet screen input frame;
or the electronic equipment receives a bullet screen input box display instruction sent by a user aiming at the electronic equipment; displaying a second bullet screen input frame based on the bullet screen input frame display instruction; and receiving a second bullet screen trigger identifier and a corresponding second display area identification number which are input by a user aiming at the second bullet screen input box, and sending bullet screen information aiming at a display area corresponding to the second display area identification number to the full-screen bullet screen display area.
Here, the first and second bullet screen trigger identifiers may be represented by a symbol "@", and the first and second display area identification numbers may be represented by arabic numerals, for example, "1, 2, 3, 4". When a user performs click operation on a certain display area, the electronic equipment directly displays the bullet screen input box corresponding to the display area on the display screen. In addition, the bullet screen input box is directly displayed with a symbol "@ #" (# is a corresponding display area identification number); when the user directly implements input click operation on the bullet screen input box, the symbol "@" and the corresponding display area identification number need to be manually input in the bullet screen input box.
In the embodiment of the invention, when a user manually inputs the identification number of the display area, the numerical value corresponding to the identification number of the display area is compared with the numerical value of the total display area in the electronic equipment; when the comparison result represents that the numerical value corresponding to the display area identification number is larger than the numerical value of the total display area, calculating the remainder between the numerical value corresponding to the display area identification number and the numerical value of the total display area; and the display area identification number corresponding to the value obtained by adding one to the remainder is determined as the area identification number of the target display area corresponding to the bullet screen information to be sent.
For example, if the display area identification number manually input by the user is "8", the total display area in the electronic device is "4", and 8>4 is obtained by comparison, then the formula: 8/4, the remainder is 0, 0+1 is 1, the area identification number of the target display area is 1, and the bullet screen information is sent to the display area corresponding to the area identification number 1.
For another example, if the display area identification number manually input by the user is "5", the total display area in the electronic device is "4", and 5>4 is obtained by comparison, then the formula: 5/4, the remainder is 1, 1+1 is 2, the area identification number of the target display area is "2", and the bullet screen information is sent to the display area corresponding to the area identification number "2".
In the embodiment of the present invention, the default area identification number "1" is a master display area, and the area identification numbers "2, 3, and 4" are slave display areas.
In the embodiment of the invention, when the electronic equipment does not receive the bullet screen trigger identifier input by a user aiming at the bullet screen input box, the bullet screen information aiming at the main display area is sent to the full-screen bullet screen display area;
for example, the user has only input the display area identification number in the bullet screen input box, and has not input the bullet screen trigger identifier "@". The bullet screen information is sent to the media information played in the main display area by default.
In the embodiment of the invention, when the electronic device sends the bullet screen information to the target display area, the current playing time point of the target display area (the main display area and/or the auxiliary display area) can be obtained; when the electronic equipment sends the bullet screen information of the target display area corresponding to the display area identification number to the full-screen bullet screen display area, the electronic equipment can also send the bullet screen attribute information of the current playing time point and/or the bullet screen information; generating new bullet screen information based on the bullet screen information, the current playing time point and/or the bullet screen attribute information; and displaying the newly added bullet screen information in the full screen bullet screen display area. Meanwhile, the embodiment of the invention can also simultaneously send a plurality of bullet screens to the media information corresponding to different display areas so as to improve the production efficiency of the bullet screens.
For example, the electronic device obtains the playing time (T) of each display areak). Then, the bullet screen characters input by the user and the playing time point (T) are displayedk) And the bullet screen attribute information carries out bullet screen information sending aiming at the currently played media information of the target display area, the media background corresponding to the currently played media information writes the bullet screen information into a corresponding bullet screen file, and meanwhile, the bullet screen information is displayed on the full-screen bullet screen display areaAnd displaying the newly added bullet screen.
The bullet screen display method provided by the embodiment of the invention can improve the definition of bullet screen information displayed in each display area, improve the vitality of video viewers and enhance the interestingness of bullet screens.
FIG. 3 is a diagram illustrating a bullet screen display effect according to an embodiment of the present invention; as shown in fig. 3, the full-screen bullet screen display area 33 includes a main display area 31, three slave display areas 32, and a full-screen bullet screen display area 33, where an independent bullet screen playing switch 311 is disposed in the main display area 31, an independent bullet screen playing switch 321 is disposed in each of the three slave display areas 32, a full-screen bullet screen display switch 331 is disposed in the full-screen bullet screen display area 33, when a user turns on the full-screen bullet screen display switch 331, the bullet screen playing switch 311 and the bullet screen playing switch 321 are automatically in an on state, and by acquiring first bullet screen information in the main display area 31 and second bullet screen information displayed in each of the three slave display areas 32, the first bullet screen information and the second bullet screen information are combined to generate combined bullet screen information to be displayed in the full-screen bullet screen display area 33, so that the bullet screen information in each display area can be clearly displayed.
FIG. 4 is a first schematic structural diagram of a bullet screen display device according to an embodiment of the present invention; as shown in fig. 4, the apparatus includes:
a receiving unit 401, configured to receive a full screen bullet screen display request sent for an electronic device;
an obtaining unit 402, configured to obtain, based on the full screen barrage display request, first barrage information displayed in a main display area and second barrage information displayed in a slave display area in the electronic device;
a combining unit 403, configured to combine the first bullet screen information and the second bullet screen information to generate combined bullet screen information;
a display unit 404, configured to display the combined bullet screen information in a full-screen bullet screen display area of the electronic device.
In this embodiment of the present invention, the receiving unit 401 is further configured to receive a barrage playing request sent to the main display area or the secondary display area;
an obtaining unit 402, configured to obtain bullet screen attribute information corresponding to the main display area or the secondary display area based on the bullet screen playing request;
the display unit 404 is further configured to display bullet screen information corresponding to the main display area or the slave display area in a full-screen bullet screen display area of the electronic device based on the bullet screen attribute information.
In the embodiment of the present invention, the apparatus further includes: a determination unit 405;
an obtaining unit 402, further configured to obtain a request time corresponding to the barrage play request;
a determining unit 405, configured to determine that all the barrages in the main display area occupy a first height of the full-screen barrage display area at the request time; and all the bullet screens in the secondary display area occupy a second height of the full-screen bullet screen display area at the request time; determining the display height of each bullet screen in the main display area in a full-screen bullet screen display area of the electronic equipment based on the first height; or determining the display height of each bullet screen in the slave display area in a full-screen bullet screen display area of the electronic equipment based on the second height.
In this embodiment of the present invention, the determining unit 405 is further configured to determine the number of first barrages to be displayed in the main display area at the request time; and the number of second barrages to be displayed in the slave display area at the request time; determining that all bullet screens in the main display area occupy a first height of the full-screen bullet screen display area at the request time based on the font size of the bullet screens displayed in the main display area and the number of the first bullet screens; and determining the height difference between the height of the full-screen bullet screen display area and the first height as a second height of the full-screen bullet screen display area occupied by all bullet screens in the secondary display area at the request time.
In the embodiment of the present invention, the apparatus further includes: an adjustment unit 406;
the adjusting unit 406 is configured to determine that the display height of each bullet screen in the secondary display area in a full-screen bullet screen display area of the electronic device is greater than a font height corresponding to the font size of the bullet screen displayed in the secondary display area, and keep the font size of the bullet screen displayed in the secondary display area unchanged; or when the display height of each bullet screen in the secondary display area in the full-screen bullet screen display area of the electronic equipment is determined to be smaller than the font height corresponding to the font size of the bullet screen displayed in the secondary display area and larger than half of the font height, adjusting the font height to be the display height of each bullet screen in the secondary display area in the full-screen bullet screen display area of the electronic equipment; or when the display height of each bullet screen in the secondary display area in the full-screen bullet screen display area of the electronic equipment is determined to be smaller than half of the font height corresponding to the font size of the bullet screen displayed in the secondary display area, adjusting the font height to be half of the font height.
In the embodiment of the present invention, the apparatus further includes: a setup unit 407;
the establishing unit 407 is configured to establish the full screen bullet screen display area, where the full screen bullet screen display area includes all areas within a screen boundary of the electronic device.
The transparency of the full-screen bullet screen display area is smaller than the transparencies of the main display area and the auxiliary display area.
In the embodiment of the present invention, the apparatus further includes: a transmitting unit 408;
a receiving unit 401, configured to receive a region selection instruction sent by the electronic device;
the display unit 404 is configured to display a first bullet screen input box based on the region selection instruction; displaying a first bullet screen trigger identifier and a corresponding first display area identification number in the first bullet screen input frame;
a sending unit 408, configured to send, to the full-screen bullet screen display area, bullet screen information of a display area corresponding to the first display area identification number based on the first bullet screen input box;
or, the receiving unit 401 is configured to receive a bullet screen input box display instruction sent by the electronic device;
the display unit 404 is configured to display a second bullet screen input frame based on the bullet screen input frame display instruction;
a receiving unit 401, configured to receive a second bullet screen trigger identifier and a corresponding second display area identification number, which are input for the second bullet screen input box;
a sending unit 408, configured to send, to the full-screen bullet screen display area, bullet screen information of a display area corresponding to the second display area identification number.
In the embodiment of the present invention, the apparatus further includes: a comparison unit 409;
a comparing unit 409, configured to compare a numerical value corresponding to the second display area identification number with a numerical value of a total display area in the electronic device;
a determining unit 405, configured to calculate a remainder between the numerical value corresponding to the second display area identification number and the numerical value of the total display area when the comparison result indicates that the numerical value corresponding to the second display area identification number is greater than the numerical value of the total display area; determining a display area identification number corresponding to a value obtained by adding one to the remainder as an area identification number of a target display area corresponding to the bullet screen information;
in this embodiment of the present invention, the sending unit 408 is configured to send bullet screen information for the main display area to the full-screen bullet screen display area when the second bullet screen trigger identifier input for the second bullet screen input box is not received;
in this embodiment of the present invention, the obtaining unit 402 is further configured to obtain current playing time points of the main display area and the slave display area;
a sending unit 408, configured to send, to the full-screen bullet screen display area, bullet screen information of a display area corresponding to the first display area identification number, or send, to the full-screen bullet screen display area, bullet screen attribute information of the current play time point and/or the bullet screen information when sending, to the full-screen bullet screen display area, the bullet screen information of a display area corresponding to the second display area identification number; generating new bullet screen information based on the bullet screen information, the current playing time point and/or the bullet screen attribute information;
and a display unit 404, configured to display the newly added bullet screen information in the full-screen bullet screen display area.
It should be noted that: in the bullet screen display device provided in the above embodiment, when the bullet screen is displayed, only the division of the above program modules is taken as an example, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the bullet screen display device provided by the above embodiment and the bullet screen display method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and is not described herein again.
Fig. 5 is a schematic structural diagram of the client version-compatible device, and the bullet screen display device 500 may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver, a game console, a tablet device, a personal digital assistant, an information push server, a content server, or the like. The bullet screen display device 500 shown in fig. 4 includes: at least one processor 501, memory 502, at least one network interface 504, and a user interface 503. The various components in the bullet screen display device 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, a touch screen, or the like, among others.
It will be appreciated that the memory 502 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 502 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 502 in the embodiment of the present invention is used to store various types of data to support the operation of the bullet screen display device 500. Examples of such data include: any computer programs for operating on the bullet screen display device 500, such as an operating system 5021 and application programs 5022; music data; animation data; book information; video, etc. The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 5022 may contain various applications such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. Processor 501 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 502, and the processor 501 reads the information in the memory 502 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the bullet screen display Device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
In an exemplary embodiment, the present invention further provides a computer-readable storage medium, such as a memory 502 including a computer program, which can be executed by the processor 501 of the bullet screen display device 500 to implement the steps of the foregoing method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out any one of the method steps of the above-mentioned bullet screen display method.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (9)

1. A bullet screen display method, the method comprising:
receiving a full screen bullet screen display request sent by electronic equipment;
acquiring first bullet screen information displayed in a main display area and second bullet screen information displayed in a secondary display area in the electronic equipment based on the full-screen bullet screen display request;
receiving a bullet screen playing request sent aiming at the main display area or the auxiliary display area;
combining the first bullet screen information and the second bullet screen information to generate combined bullet screen information;
displaying the combined bullet screen information in a full-screen bullet screen display area of the electronic equipment;
acquiring request time corresponding to the bullet screen playing request;
determining the number of first barrages to be displayed in the main display area in the request time; and the number of second barrages to be displayed in the slave display area at the request time;
determining that all bullet screens in the main display area occupy a first height of the full-screen bullet screen display area at the request time based on the font size of the bullet screens displayed in the main display area and the number of the first bullet screens;
determining the height difference between the height of the full-screen bullet screen display area and the first height as a second height of the full-screen bullet screen display area occupied by all bullet screens in the secondary display area at the request time;
determining a first display height of each bullet screen in the main display area in a full-screen bullet screen display area of the electronic equipment based on the first height; or determining a second display height of each bullet screen in the slave display area in a full-screen bullet screen display area of the electronic equipment based on the second height.
2. The method of claim 1, further comprising:
acquiring bullet screen attribute information corresponding to the main display area or the auxiliary display area based on the bullet screen playing request;
and displaying bullet screen information corresponding to the main display area or the auxiliary display area in a full-screen bullet screen display area of the electronic equipment based on the bullet screen attribute information.
3. The method of claim 1, further comprising:
comparing the second display height with the font height corresponding to the font size of the bullet screen displayed in the display area to obtain a comparison result;
when the comparison result represents that the second display height is larger than the font height corresponding to the font size of the bullet screen displayed in the secondary display area, keeping the font size of the bullet screen displayed in the secondary display area unchanged;
or when the comparison result represents that the second display height is smaller than the font height corresponding to the font size of the bullet screen displayed in the secondary display area and is greater than half of the font height, adjusting the font height to be the display height of each bullet screen in the secondary display area in the full-screen bullet screen display area of the electronic equipment;
or when the comparison result represents that the second display height is smaller than half of the font height corresponding to the font size of the bullet screen displayed in the display area, adjusting the font height to be half of the font height.
4. The method of claim 1, further comprising:
and establishing the full-screen bullet screen display area, wherein the full-screen bullet screen display area comprises all areas in the screen boundary of the electronic equipment.
5. The method of claim 1, further comprising:
the transparency of the full-screen bullet screen display area is smaller than the transparencies of the main display area and the auxiliary display area.
6. The method of claim 1, further comprising:
receiving a region selection instruction sent by the electronic equipment; displaying a first bullet screen input box based on the region selection instruction; displaying a first bullet screen trigger identifier and a corresponding first display area identification number in the first bullet screen input frame; sending bullet screen information of a display area corresponding to the first display area identification number to the full-screen bullet screen display area based on the first bullet screen input box;
or receiving a bullet screen input box display instruction sent by the electronic equipment; displaying a second bullet screen input frame based on the bullet screen input frame display instruction; and receiving a second bullet screen trigger identifier and a corresponding second display area identification number which are input aiming at the second bullet screen input box, and sending bullet screen information aiming at a display area corresponding to the second display area identification number to the full-screen bullet screen display area.
7. The method of claim 6, further comprising:
comparing the numerical value corresponding to the second display area identification number with the numerical value of the total display area in the electronic equipment; when the comparison result represents that the numerical value corresponding to the second display area identification number is larger than the numerical value of the total display area, calculating the remainder between the numerical value corresponding to the second display area identification number and the numerical value of the total display area; determining a display area identification number corresponding to a value obtained by adding one to the remainder as an area identification number of a target display area corresponding to the bullet screen information;
the method further comprises the following steps:
and when the second bullet screen trigger identifier input aiming at the second bullet screen input box is not received, sending bullet screen information aiming at the main display area to the full-screen bullet screen display area.
8. The method of claim 6, further comprising:
acquiring current playing time points of the main display area and the auxiliary display area;
sending bullet screen information of a display area corresponding to the first display area identification number to the full-screen bullet screen display area, or sending bullet screen attribute information of the current playing time point and/or the bullet screen information when sending bullet screen information of a display area corresponding to the second display area identification number to the full-screen bullet screen display area;
generating new bullet screen information based on the bullet screen information, the current playing time point and/or the bullet screen attribute information;
and displaying the newly added bullet screen information in the full-screen bullet screen display area.
9. A bullet screen display device, characterized in that the device comprises:
the receiving unit is used for receiving a full screen bullet screen display request sent by the electronic equipment; receiving a bullet screen playing request sent aiming at the main display area or the auxiliary display area;
the acquisition unit is used for acquiring first bullet screen information displayed in a main display area and second bullet screen information displayed in a secondary display area in the electronic equipment based on the full-screen bullet screen display request; the system is used for acquiring the request time corresponding to the bullet screen playing request;
the combination unit is used for combining the first bullet screen information and the second bullet screen information to generate combined bullet screen information;
the display unit is used for displaying the combined bullet screen information in a full-screen bullet screen display area of the electronic equipment;
the determining unit is used for determining the number of first barrages to be displayed in the main display area in the request time; and the number of second barrages to be displayed in the slave display area at the request time; determining that all bullet screens in the main display area occupy a first height of the full-screen bullet screen display area at the request time based on the font size of the bullet screens displayed in the main display area and the number of the first bullet screens; determining the height difference between the height of the full-screen bullet screen display area and the first height as a second height of the full-screen bullet screen display area occupied by all bullet screens in the secondary display area at the request time; determining a first display height of each bullet screen in the main display area in a full-screen bullet screen display area of the electronic equipment based on the first height; or determining a second display height of each bullet screen in the slave display area in a full-screen bullet screen display area of the electronic equipment based on the second height.
CN201810930893.8A 2018-08-15 2018-08-15 Bullet screen display method and device Active CN109379621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810930893.8A CN109379621B (en) 2018-08-15 2018-08-15 Bullet screen display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810930893.8A CN109379621B (en) 2018-08-15 2018-08-15 Bullet screen display method and device

Publications (2)

Publication Number Publication Date
CN109379621A CN109379621A (en) 2019-02-22
CN109379621B true CN109379621B (en) 2021-10-29

Family

ID=65404517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810930893.8A Active CN109379621B (en) 2018-08-15 2018-08-15 Bullet screen display method and device

Country Status (1)

Country Link
CN (1) CN109379621B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111479157A (en) 2020-04-07 2020-07-31 北京字节跳动网络技术有限公司 Bullet screen display method and device, electronic equipment and computer storage medium
CN112291580A (en) * 2020-10-27 2021-01-29 珠海格力电器股份有限公司 Bullet screen information control method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426152A (en) * 2015-12-23 2016-03-23 小米科技有限责任公司 Bullet screen display method and device
US20160241686A1 (en) * 2015-02-16 2016-08-18 Beijing Lenovo Software Ltd. Electronic device
CN107562680A (en) * 2017-08-29 2018-01-09 广州阿里巴巴文学信息技术有限公司 Data processing method, device and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160241686A1 (en) * 2015-02-16 2016-08-18 Beijing Lenovo Software Ltd. Electronic device
CN105426152A (en) * 2015-12-23 2016-03-23 小米科技有限责任公司 Bullet screen display method and device
CN107562680A (en) * 2017-08-29 2018-01-09 广州阿里巴巴文学信息技术有限公司 Data processing method, device and terminal device

Also Published As

Publication number Publication date
CN109379621A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
US11223880B2 (en) Picture generation method and apparatus, device, and storage medium
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
CN108566561B (en) Video playing method, device and storage medium
WO2022089330A1 (en) Method for taking screenshot, apparatus, electronic device, and readable storage medium
CN109195010B (en) Code rate adjusting method and device
JP2021506196A (en) Video processing methods, devices, terminals and media
CN108874336B (en) Information processing method and electronic equipment
CN110007829B (en) Content display method, device, terminal and storage medium
CN112035195B (en) Application interface display method and device, electronic equipment and storage medium
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
CN109379621B (en) Bullet screen display method and device
US20170185422A1 (en) Method and system for generating and controlling composite user interface control
US20240184434A1 (en) Display method and apparatus
US20240220091A1 (en) Information display method, electronic device, and storage medium
CA3098735C (en) Display interface switching method, display interface switching apparatus, and electronic device
CN113365010A (en) Volume adjusting method, device, equipment and storage medium
CN115866314B (en) Video playing method and device
WO2023030292A1 (en) Multimedia file playback method and apparatus
CN114253449B (en) Screen capturing method, device, equipment and medium
CN113096686B (en) Audio processing method and device, electronic equipment and storage medium
CN115643445A (en) Interaction processing method and device, electronic equipment and storage medium
CN114817781A (en) Method and equipment for determining interface display content
CN114780180B (en) Object data display method and device, electronic equipment and storage medium
CN111208912B (en) Input method and device
US20240331735A1 (en) Data processing apparatus, data processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant