CN111277887A - Bullet screen data processing method and device - Google Patents
Bullet screen data processing method and device Download PDFInfo
- Publication number
- CN111277887A CN111277887A CN202010033921.3A CN202010033921A CN111277887A CN 111277887 A CN111277887 A CN 111277887A CN 202010033921 A CN202010033921 A CN 202010033921A CN 111277887 A CN111277887 A CN 111277887A
- Authority
- CN
- China
- Prior art keywords
- bullet screen
- text
- data
- determining
- characteristic value
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
- H04N21/44218—Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a bullet screen data processing method and a bullet screen data processing device, and the bullet screen data processing method is characterized by comprising the following steps: responding to a trigger operation acted on a display screen of a mobile terminal, and acquiring first inclination angle data of the mobile terminal and a first barrage text in a preset period according to the preset period; determining a direction characteristic value according to the first inclination angle data; and when the direction characteristic value is a negative value, determining a second bullet screen text which is obtained in advance, and displaying the second bullet screen text. Therefore, when a user watches live programs, historical bullet screen data can be backtracked, interactive operation which is not different from normal bullet screen data is executed on the historical bullet screen data, and the propagation duration of bullet screen contents is effectively prolonged when the peak value is reached.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a bullet screen data processing method and a bullet screen data processing apparatus.
Background
On a live broadcast platform, a bullet screen is used as UGC (User Generated Content) information data in a live broadcast room, and has an important meaning.
However, currently, the bullet screen in the live broadcast room is real-time information data with time sequence property, and does not have the characteristic of repeatedly browsing backtracking history. Once a user misses a bullet screen at a certain moment, more interactive operations, such as follow-up, praise, comment, complaint and the like, cannot be performed on the bullet screen within a certain period of history, which shortens the propagation duration of the bullet screen content at each peak value and cannot effectively prolong the propagation duration of the bullet screen content at the peak value for the live broadcast content with the peak effect.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a bullet screen data processing method and a corresponding bullet screen data processing apparatus that overcome or at least partially solve the above problems.
The embodiment of the invention discloses a bullet screen data processing method, which comprises the following steps:
responding to a trigger operation acted on a display screen of a mobile terminal, and acquiring first inclination angle data of the mobile terminal and a first barrage text in a preset period according to the preset period;
determining a direction characteristic value according to the first inclination angle data;
and when the direction characteristic value is a negative value, determining a second bullet screen text which is obtained in advance, and displaying the second bullet screen text.
Optionally, the determining the direction characteristic value according to the first inclination data includes:
extracting an azimuth angle in the first inclination data;
when the azimuth angle is a negative value, determining that the direction characteristic value is a negative value; or, when the azimuth angle is a positive value, determining that the direction characteristic value is a positive value.
Optionally, after the step of determining a direction feature value according to the first tilt data, the method further includes:
and judging whether the direction characteristic value is a negative value or not.
Optionally, the first tilt angle data further includes tilt angle data, and the displaying the second barrage text includes:
acquiring a first bullet screen speed, a first screen state of the mobile terminal and a bullet screen position corresponding to the second bullet screen text in the preset period;
determining the moving direction of the bullet screen according to the first screen state;
determining a second bullet screen speed according to the inclination angle data and the first bullet screen speed;
determining the speed of the bullet screen according to the moving direction of the bullet screen, the second bullet screen speed and the direction characteristic value;
and displaying the second bullet screen text according to the bullet screen position and the bullet screen speed corresponding to the second bullet screen text.
Optionally, the method further comprises:
acquiring a bullet screen position corresponding to the first bullet screen text;
and when the direction characteristic value is a positive value, displaying the first bullet screen text according to the bullet screen speed and the bullet screen position corresponding to the first bullet screen text.
Optionally, the mobile terminal has an inclination sensor, and the acquiring first inclination data of the mobile terminal according to a preset period includes:
and acquiring first inclination angle data of the mobile terminal, which is acquired by the inclination angle sensor, according to a preset period.
Optionally, the triggering operation is an operation of long-pressing the bullet screen area or an operation of touching a preset control.
The embodiment of the invention also discloses a bullet screen data processing device, which comprises:
the data acquisition module is used for responding to a trigger operation acted on a display screen of the mobile terminal, and acquiring first inclination angle data of the mobile terminal and a first barrage text in a preset period according to the preset period;
the characteristic value determining module is used for determining a direction characteristic value according to the first inclination angle data;
and the bullet screen display module is used for determining a second bullet screen text which is obtained in advance when the direction characteristic value is a negative value, and displaying the second bullet screen text.
Optionally, the first inclination data includes an azimuth, and the characteristic value determination module includes:
an azimuth extracting submodule for extracting an azimuth in the first inclination data;
the direction characteristic value determining submodule is used for determining that the direction characteristic value is a negative value when the azimuth angle is a negative value; or, when the azimuth angle is a positive value, determining that the direction characteristic value is a positive value.
Optionally, the apparatus further comprises:
and the judging module is used for judging whether the direction characteristic value is a negative value.
Optionally, the first inclination data further includes inclination data, and the bullet screen display module includes:
the data acquisition submodule is used for acquiring a first bullet screen speed, a first screen state of the mobile terminal and a bullet screen position corresponding to the second bullet screen text in the preset period;
the direction determining submodule is used for determining the moving direction of the bullet screen according to the first screen state;
the speed determining submodule is used for determining a second bullet screen speed according to the inclination angle data and the first bullet screen speed;
the speed determining submodule is used for determining the speed of the bullet screen according to the moving direction of the bullet screen, the speed of the second bullet screen and the direction characteristic value;
and the bullet screen display submodule is used for displaying the second bullet screen text according to the bullet screen position corresponding to the second bullet screen text and the bullet screen speed.
Optionally, the apparatus further comprises:
the position acquisition module is used for acquiring a bullet screen position corresponding to the first bullet screen text;
and the first bullet screen text display module is used for displaying the first bullet screen text according to the bullet screen speed and the bullet screen position corresponding to the first bullet screen text when the direction characteristic value is a positive value.
Optionally, the mobile terminal has a tilt sensor, and the data acquisition module includes:
and the inclination angle data acquisition submodule is used for acquiring the first inclination angle data of the mobile terminal, which is acquired by the inclination angle sensor, according to a preset period.
Optionally, the triggering operation is an operation of long-pressing the bullet screen area or an operation of touching a preset control.
The embodiment of the invention also discloses an electronic device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform one or more of the method steps as described in embodiments of the invention.
Embodiments of the invention also disclose a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform one or more of the method steps as described in embodiments of the invention.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the first inclination angle data of the mobile terminal is obtained by responding to the trigger operation acted on the display screen of the mobile terminal, the direction characteristic value is determined by the first inclination angle data, and when the direction characteristic value is a negative value, the condition of backtracking the historical bullet screen data is met, so that the second bullet screen text obtained in advance is determined and displayed, so that when a user watches a live program, the historical bullet screen data can be backtracked, the interactive operation which is not different from the normal bullet screen data is carried out on the historical bullet screen data, and the propagation duration of the bullet screen content at the peak value is effectively prolonged.
Drawings
FIG. 1 is a flowchart illustrating the steps of an embodiment of a bullet screen data processing method according to the present invention;
fig. 2 is a block diagram of an embodiment of a bullet screen data processing device according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a bullet screen data processing method according to the present invention is shown, and specifically, the method may include the following steps:
it should be noted that the mobile terminal may include various mobile devices, such as a mobile phone, a tablet computer, a PDA, and the like.
The operating system of the mobile terminal may include Android (Android), IOS, Windows Phone, Windows, and the like, and may generally support various live applications to run.
The method comprises the steps of running a live broadcast application on the mobile terminal, rendering a graphical User Interface (UI) on a touch display screen of the mobile terminal, wherein live broadcast video pictures can be contained in the UI, the live broadcast video pictures can be displayed in a full screen mode or not, and users can watch the live broadcast video pictures on the mobile terminal. The graphic user interface can also comprise a bullet screen input box and a determination control, a user can issue bullet screen data through the bullet screen input box and the determination control, and the server displays the bullet screen data on the graphic user interface in real time after receiving the bullet screen data sent by the user.
Because the barrage data displayed on the graphical user interface has real-time performance, in the embodiment of the invention, if a user needs to check the historical barrage data to perform operations such as reply, approval, comment and the like on the historical barrage data, the trigger operation can be performed on the display screen of the mobile terminal, and the mobile terminal can detect the trigger operation acting on the display screen of the mobile terminal and send the trigger operation to the live application. Specifically, the triggering operation may be an operation for triggering the backtracking of the historical bullet screen data, for example, the triggering operation is an operation of pressing a bullet screen region for a long time or an operation of touching a preset control, the bullet screen region may be a region where the bullet screen is displayed on the graphical user interface, and the preset control may be a preset control for triggering the backtracking of the historical bullet screen data.
In the embodiment of the present invention, the live broadcast application may respond to the received trigger operation, and use a preset period as a period for acquiring data, and acquire the first tilt angle data of the mobile terminal once every other preset period, and the first barrage text in the preset period. The preset period may be a preset time interval, and is used to indicate a period for acquiring the first inclination data and the first bullet screen text, for example, the preset period is 1 s. The first tilt angle data may be angle data of the mobile terminal in a current preset period, including tilt angle data, azimuth angle data, and rotation angle data, etc. The first barrage text can be the barrage text which needs to be displayed by the live application in the current preset period.
in an embodiment of the present invention, the direction characteristic value may be determined from the first tilt angle data. The direction characteristic value may be used to indicate a characteristic parameter of a moving direction of the bullet screen text, and the direction characteristic value may include a positive value and a negative value.
Specifically, a moving direction of the bullet screen may be determined according to the first inclination data, the moving direction of the bullet screen is not necessarily the same as the current moving direction of the bullet screen, and the moving direction of the bullet screen may be further determined based on the direction characteristic value.
And 103, when the direction characteristic value is a negative value, determining a second bullet screen text acquired in advance, and displaying the second bullet screen text.
In the embodiment of the invention, whether the historical bullet screen data needs to be backtracked can be determined by judging whether the direction characteristic value meets the condition of backtracking the historical bullet screen data. Specifically, the condition for backtracking the historical bullet screen data may be: the direction characteristic value is a negative value, and whether the historical bullet screen data need to be backtracked is determined by judging whether the direction characteristic value is the negative value.
And when the direction characteristic value is a negative value, the historical bullet screen data is considered to need to be backtracked, a second bullet screen text can be obtained in advance, and the second bullet screen text is displayed. The second barrage text may be the first barrage text acquired before the current time.
In specific implementation, an association relationship between the periodic time period, the first inclination angle data and the first barrage text can be established, and when a second barrage text acquired in advance needs to be determined, the second barrage text is directly determined from the association relationship between the periodic time period, the inclination angle data and the barrage text. As an example: the association relationship among the periodic time period, the inclination angle data and the bullet screen text can be established as shown in the following table 1:
periodic time period | Inclination data | Barrage text |
1 | A | a |
2 | B | b |
3 | C | c |
TABLE 1
When the direction characteristic value is a negative value, determining that the bullet screen text b corresponding to the period time period 2 and the bullet screen text c corresponding to the period time period 3 are second bullet screen texts from the association relationship among the period time period, the inclination angle data and the bullet screen texts, and displaying the bullet screen text b and the bullet screen text c. It should be noted that, when displaying the bullet screen text, the latest acquired bullet screen text may be displayed first and the earliest acquired bullet screen text may be displayed last according to a last-in first-out principle, and of course, when implementing the present solution, a person skilled in the art may also display the second bullet screen text according to actual needs, which is not limited by the embodiment of the present invention.
In a preferred embodiment of the present invention, the first inclination data includes an azimuth angle, and the step 102 may include the steps of:
extracting an azimuth angle in the first inclination data; when the azimuth angle is a negative value, determining that the direction characteristic value is a negative value; or, when the azimuth angle is not a negative value, determining that the direction characteristic value is a positive value.
In the embodiment of the present invention, the first inclination data may include inclination angle data, azimuth angle data, rotation angle data, and the like, and the direction characteristic value may be determined by extracting an azimuth angle in the first inclination data and determining whether the azimuth angle is a negative value; and when the azimuth angle is a negative value, determining that the direction characteristic value is a negative value, and when the azimuth angle is a positive value, determining that the direction characteristic value is a positive value.
In a preferred embodiment of the present invention, after the step 102, the following steps may be further included:
and judging whether the direction characteristic value is a negative value or not.
Sign () function may be adopted to determine whether the direction feature value is a negative value, and if the direction feature value is a positive number, 1 is returned, and if the direction feature value is a negative number, 1 is returned. It should be noted that, when implementing the embodiment of the present invention, a person skilled in the art may also determine whether the direction characteristic value is a negative value by using other methods according to actual needs, and the embodiment of the present invention is not limited thereto.
In a preferred embodiment of the present invention, the first tilt angle data further comprises tilt angle data, and the step 103 may comprise the sub-steps of:
acquiring a first bullet screen speed, a first screen state of the mobile terminal and a bullet screen position corresponding to the second bullet screen text in the preset period; determining the moving direction of the bullet screen according to the first screen state; determining a second bullet screen speed according to the inclination angle data and the first bullet screen speed; determining the speed of the bullet screen according to the moving direction of the bullet screen, the second bullet screen speed and the direction characteristic value; and displaying the second bullet screen text according to the bullet screen position and the bullet screen speed corresponding to the second bullet screen text.
The first barrage rate may be a rate of barrage texts that the live application needs to display in a preset period. The first screen state may be a screen state of the mobile terminal in a current preset period, the screen state includes a horizontal screen state and a vertical screen state, a live video picture is displayed in a full screen mode in the horizontal screen state, and a live video picture is displayed in a non-full screen mode in the vertical screen state. And the bullet screen text acquired each time has a corresponding bullet screen position and is used for indicating the rendering position of the bullet screen text on the display screen of the mobile terminal.
In the embodiment of the invention, the first screen state in the preset period can be acquired, and the moving direction of the first bullet screen is determined according to the first screen state.
Further, a second bullet screen speed can be determined according to the inclination angle data and the first bullet screen speed. Specifically, the inclination angle data in the first inclination angle data may be extracted, and the value range of the inclination angle data is [ -180 °, 180 ° ], then the first bullet screen speed and the second bullet screen speed may satisfy the following relation: the second bullet screen speed is the inclination angle data/180 the first bullet screen speed, and the second bullet screen speed can be determined by adopting the first inclination angle data and the first bullet screen speed according to the relation between the first bullet screen speed and the second bullet screen speed.
Then, the bullet screen moving direction, the second bullet screen speed and the direction characteristic value are adopted to determine the bullet screen speed, the bullet screen speed has the direction and the size, and the second bullet screen text is displayed by adopting the bullet screen speed and the bullet screen position corresponding to the second bullet screen text. Therefore, when a user watches live programs, historical bullet screen data can be backtracked, and interactive operation which is not different from normal bullet screen data is executed on the historical bullet screen data.
In concrete realization, can establish the mapping relation between inclination data, bullet screen speed, bullet screen position and the bullet screen text to when need backtrack historical bullet screen data, in the mapping relation between inclination data and bullet screen speed and the bullet screen text, look for the bullet screen text that needs the show, and the bullet screen speed and the bullet screen position that correspond, thereby adopt bullet screen speed and bullet screen position show this bullet screen text.
In a preferred embodiment of the present invention, the method further comprises:
acquiring a bullet screen position corresponding to the first bullet screen text;
and when the direction characteristic value is a positive value, displaying the first bullet screen text according to the bullet screen speed and the bullet screen position corresponding to the first bullet screen text.
In the embodiment of the invention, the bullet screen position corresponding to the first bullet screen text can be obtained, when the direction characteristic value is a positive value, the historical bullet screen data does not need to be backtracked, and the first bullet screen text can be displayed by adopting the bullet screen speed and the bullet screen position corresponding to the first bullet screen text, so that the live broadcast application can correspondingly adjust the moving speed of the bullet screen according to the inclination degree of the current mobile terminal of the user, and the user experience is improved.
In a preferred embodiment of the present invention, the mobile terminal has an inclination sensor, and the acquiring the first inclination data of the mobile terminal according to the preset period includes:
and acquiring first inclination angle data of the mobile terminal, which is acquired by the inclination angle sensor, according to a preset period.
In the embodiment of the invention, the mobile terminal is provided with the tilt angle sensor, and the first tilt angle data of the mobile terminal, which is acquired by the tilt angle sensor, can be acquired according to a preset period after the triggering operation acting on the display screen of the mobile terminal is detected. The triggering operation can be an operation of long-time pressing of a bullet screen area or an operation of touch control of a preset control, and when the triggering operation is not finished, namely when a finger of a user does not leave a display screen of the mobile terminal, first inclination angle data of the mobile terminal, acquired by the inclination angle sensor, are continuously acquired so that a subsequent process can display bullet screen texts according to the first inclination angle data.
In the embodiment of the invention, the first inclination angle data of the mobile terminal is obtained by responding to the trigger operation acted on the display screen of the mobile terminal, the direction characteristic value is determined by the first inclination angle data, and when the direction characteristic value is a negative value, the condition of backtracking the historical bullet screen data is met, so that the second bullet screen text obtained in advance is determined and displayed, so that the historical bullet screen data can be backtracked when a user watches a live program, and the interactive operation which is not different from the normal bullet screen data is executed on the historical bullet screen data.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 2, a block diagram of a bullet screen data processing apparatus according to an embodiment of the present invention is shown, and may specifically include the following modules:
the data acquisition module 201 is configured to respond to a trigger operation acting on a display screen of a mobile terminal, and acquire first inclination data of the mobile terminal and a first barrage text in a preset period according to the preset period;
a characteristic value determining module 202, configured to determine a direction characteristic value according to the first tilt data;
and the bullet screen display module 203 is configured to determine a second bullet screen text obtained in advance when the direction feature value is a negative value, and display the second bullet screen text.
In a preferred embodiment of the present invention, the first inclination data comprises an azimuth angle, and the characteristic value determining module 202 may comprise the following sub-modules:
an azimuth extracting submodule for extracting an azimuth in the first inclination data;
the direction characteristic value determining submodule is used for determining that the direction characteristic value is a negative value when the azimuth angle is a negative value; or, when the azimuth angle is a positive value, determining that the direction characteristic value is a positive value.
In a preferred embodiment of the present invention, the apparatus may further include the following modules:
and the judging module is used for judging whether the direction characteristic value is a negative value.
In a preferred embodiment of the present invention, the first tilt angle data further includes tilt angle data, and the bullet screen display module 203 may include the following sub-modules:
the data acquisition submodule is used for acquiring a first bullet screen speed, a first screen state of the mobile terminal and a bullet screen position corresponding to the second bullet screen text in the preset period;
the direction determining submodule is used for determining the moving direction of the bullet screen according to the first screen state;
the speed determining submodule is used for determining a second bullet screen speed according to the inclination angle data and the first bullet screen speed;
the speed determining submodule is used for determining the speed of the bullet screen according to the moving direction of the bullet screen, the speed of the second bullet screen and the direction characteristic value;
and the bullet screen display submodule is used for displaying the second bullet screen text according to the bullet screen position corresponding to the second bullet screen text and the bullet screen speed.
In a preferred embodiment of the present invention, the apparatus may further include the following modules:
the position acquisition module is used for acquiring a bullet screen position corresponding to the first bullet screen text;
and the first bullet screen text display module is used for displaying the first bullet screen text according to the bullet screen speed and the bullet screen position corresponding to the first bullet screen text when the direction characteristic value is a positive value.
In a preferred embodiment of the present invention, the mobile terminal has a tilt sensor, and the data acquisition module 201 may include the following sub-modules:
and the inclination angle data acquisition submodule is used for acquiring the first inclination angle data of the mobile terminal, which is acquired by the inclination angle sensor, according to a preset period.
In a preferred embodiment of the present invention, the triggering operation is an operation of pressing the bullet screen area for a long time or an operation of touching a preset control.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform steps of a method as described by embodiments of the invention.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon instructions, which, when executed by one or more processors, cause the processors to perform the steps of the method according to embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The bullet screen data processing method and the bullet screen data processing device provided by the invention are described in detail, and a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A bullet screen data processing method is characterized by comprising the following steps:
responding to a trigger operation acted on a display screen of a mobile terminal, and acquiring first inclination angle data of the mobile terminal and a first barrage text in a preset period according to the preset period;
determining a direction characteristic value according to the first inclination angle data;
and when the direction characteristic value is a negative value, determining a second bullet screen text which is obtained in advance, and displaying the second bullet screen text.
2. The method of claim 1, wherein the first tilt data comprises an azimuth angle, and wherein determining a directional characteristic from the first tilt data comprises:
extracting an azimuth angle in the first inclination data;
when the azimuth angle is a negative value, determining that the direction characteristic value is a negative value; or, when the azimuth angle is a positive value, determining that the direction characteristic value is a positive value.
3. The method according to claim 1 or 2, further comprising, after the step of determining a directional characteristic value from the first tilt data:
and judging whether the direction characteristic value is a negative value or not.
4. The method of claim 1, wherein the first tilt angle data further comprises tilt angle data, the presenting the second barrage text comprising:
acquiring a first bullet screen speed, a first screen state of the mobile terminal and a bullet screen position corresponding to the second bullet screen text in the preset period;
determining the moving direction of the bullet screen according to the first screen state;
determining a second bullet screen speed according to the inclination angle data and the first bullet screen speed;
determining the speed of the bullet screen according to the moving direction of the bullet screen, the second bullet screen speed and the direction characteristic value;
and displaying the second bullet screen text according to the bullet screen position and the bullet screen speed corresponding to the second bullet screen text.
5. The method of claim 4, further comprising:
acquiring a bullet screen position corresponding to the first bullet screen text;
and when the direction characteristic value is a positive value, displaying the first bullet screen text according to the bullet screen speed and the bullet screen position corresponding to the first bullet screen text.
6. The method according to claim 1, wherein the mobile terminal has a tilt sensor, and the acquiring the first tilt data of the mobile terminal according to the preset period comprises:
and acquiring first inclination angle data of the mobile terminal, which is acquired by the inclination angle sensor, according to a preset period.
7. The method according to claim 1, wherein the trigger operation is an operation of long-pressing a bullet screen area or an operation of touching a preset control.
8. A bullet screen data processing device, characterized in that the device comprises:
the data acquisition module is used for responding to a trigger operation acted on a display screen of the mobile terminal, and acquiring first inclination angle data of the mobile terminal and a first barrage text in a preset period according to the preset period;
the characteristic value determining module is used for determining a direction characteristic value according to the first inclination angle data;
and the bullet screen display module is used for determining a second bullet screen text which is obtained in advance when the direction characteristic value is a negative value, and displaying the second bullet screen text.
9. An electronic device, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the steps of the method of one or more of claims 1-7.
10. A computer-readable storage medium having stored thereon instructions, which, when executed by one or more processors, cause the processors to perform the steps of the method of one or more of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010033921.3A CN111277887B (en) | 2020-01-13 | 2020-01-13 | Bullet screen data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010033921.3A CN111277887B (en) | 2020-01-13 | 2020-01-13 | Bullet screen data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111277887A true CN111277887A (en) | 2020-06-12 |
CN111277887B CN111277887B (en) | 2022-02-22 |
Family
ID=71001914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010033921.3A Active CN111277887B (en) | 2020-01-13 | 2020-01-13 | Bullet screen data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111277887B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102290045A (en) * | 2011-05-13 | 2011-12-21 | 北京瑞信在线***技术有限公司 | Method and device for controlling music rhythm and mobile terminal |
CN105120006A (en) * | 2015-09-11 | 2015-12-02 | 百度在线网络技术(北京)有限公司 | Live commenting control method, live commenting server and live commenting control device for electronic readings |
CN105163157A (en) * | 2015-06-30 | 2015-12-16 | 北京奇艺世纪科技有限公司 | Display method and device for bullet screen contents |
CN106406741A (en) * | 2016-09-30 | 2017-02-15 | 维沃移动通信有限公司 | Operation processing method of mobile terminal and mobile terminal |
US20170272800A1 (en) * | 2016-03-21 | 2017-09-21 | Le Holdings (Beijing) Co., Ltd. | Method for bullet screen pushing and electronic device |
CN108495165A (en) * | 2018-01-29 | 2018-09-04 | 上海哔哩哔哩科技有限公司 | Barrage control method for playing back, mobile terminal and barrage broadcasting control system |
CN109495779A (en) * | 2018-10-15 | 2019-03-19 | 咪咕音乐有限公司 | Bullet screen adjusting method and device and computer readable storage medium |
-
2020
- 2020-01-13 CN CN202010033921.3A patent/CN111277887B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102290045A (en) * | 2011-05-13 | 2011-12-21 | 北京瑞信在线***技术有限公司 | Method and device for controlling music rhythm and mobile terminal |
CN105163157A (en) * | 2015-06-30 | 2015-12-16 | 北京奇艺世纪科技有限公司 | Display method and device for bullet screen contents |
CN105120006A (en) * | 2015-09-11 | 2015-12-02 | 百度在线网络技术(北京)有限公司 | Live commenting control method, live commenting server and live commenting control device for electronic readings |
US20170272800A1 (en) * | 2016-03-21 | 2017-09-21 | Le Holdings (Beijing) Co., Ltd. | Method for bullet screen pushing and electronic device |
CN106406741A (en) * | 2016-09-30 | 2017-02-15 | 维沃移动通信有限公司 | Operation processing method of mobile terminal and mobile terminal |
CN108495165A (en) * | 2018-01-29 | 2018-09-04 | 上海哔哩哔哩科技有限公司 | Barrage control method for playing back, mobile terminal and barrage broadcasting control system |
CN109495779A (en) * | 2018-10-15 | 2019-03-19 | 咪咕音乐有限公司 | Bullet screen adjusting method and device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111277887B (en) | 2022-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8379053B1 (en) | Identification of areas of interest on a web page | |
US8904305B2 (en) | Automatically hiding controls | |
EP2924591A1 (en) | Method and device for controlling page rollback | |
US9411499B2 (en) | Jump to top/jump to bottom scroll widgets | |
CN106445243B (en) | Touch response device and method of intelligent equipment | |
CN103135987A (en) | Dynamic icon display method and device | |
CN106843700B (en) | Screenshot method and device | |
US10331327B2 (en) | Message display method, apparatus and terminal | |
CN106611065B (en) | Searching method and device | |
KR20160059455A (en) | Method and device for identifying encoding of web page | |
CN107153684A (en) | Display methods, device and the equipment of PUSH message | |
CN113342438A (en) | Application program guiding method, device, equipment and medium | |
JP2016177614A (en) | Conference system, information processing device, information terminal, and program | |
CN107340955B (en) | Method and device for acquiring position information of view after position change on screen | |
CN107391534B (en) | Page display method, page file return method, page display device, page file return device and computer storage medium | |
US8504940B1 (en) | Smooth hardware accelerated scrolling | |
CN110837368B (en) | Data processing method and device and electronic equipment | |
CN110889057B (en) | Service data visualization method and service object visualization device | |
CN111143713A (en) | Information display method and device, electronic equipment and computer readable storage medium | |
CN104156488A (en) | Webpage change detection method and device | |
CN111277887B (en) | Bullet screen data processing method and device | |
CN113496017B (en) | Verification method, device, equipment and storage medium | |
CN110868347A (en) | Message prompting method, device and system | |
CN107335218B (en) | Game scene moving method and device, storage medium, processor and terminal | |
US20140240247A1 (en) | Method for presenting a photo gallery and terminal device thereof |
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 |