CN115442650B - Barrage information processing method and device, barrage information processing equipment and storage medium - Google Patents

Barrage information processing method and device, barrage information processing equipment and storage medium Download PDF

Info

Publication number
CN115442650B
CN115442650B CN202110614376.1A CN202110614376A CN115442650B CN 115442650 B CN115442650 B CN 115442650B CN 202110614376 A CN202110614376 A CN 202110614376A CN 115442650 B CN115442650 B CN 115442650B
Authority
CN
China
Prior art keywords
barrage
view
bullet screen
played
information
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
CN202110614376.1A
Other languages
Chinese (zh)
Other versions
CN115442650A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110614376.1A priority Critical patent/CN115442650B/en
Publication of CN115442650A publication Critical patent/CN115442650A/en
Application granted granted Critical
Publication of CN115442650B publication Critical patent/CN115442650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a barrage information processing method, which comprises the following steps: processing the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and presenting the logical operation processing result of the bullet screen information through the video playing page to be played; configuring a service view for the video playing page to be played, wherein the service view has the same level as the bullet screen view; processing the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information; and when the video playing page to be played is of a barrage cross-scene type, configuring a new scene father view for the video playing page to be played. The invention also provides a barrage information processing device, barrage information processing equipment and a storage medium. According to the method and the device for displaying the bullet screen information, when the user switches scenes, smooth playing of bullet screen information is guaranteed, blocking is reduced, and viewing experience of the user is improved.

Description

Barrage information processing method and device, barrage information processing equipment and storage medium
Technical Field
The present invention relates to barrage information processing technologies, and in particular, to a barrage information processing method, device, barrage information processing apparatus, and storage medium.
Background
A bullet screen is a display mode in which a large number of user comments are displayed in the form of a closed caption on a video being played while the video is being played. In the related art, when watching an online video, a spectator can add a barrage, after the server acquires the barrage added by the spectator, the barrage is sent to all spectator clients playing the video, after the spectator clients acquire the barrage, the barrage in a pure text form is sequentially scrolled according to the time sequence of the barrage sent by the spectator when playing the online video, but the barrage often has some additional UI (user interface) expression or UI dynamic effect, and the dynamic processing of the barrage cannot be realized in the related technical scheme. Meanwhile, when the user switches the scenes, the related technology cannot realize smooth playing of the barrage across the scenes.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a barrage information processing method, apparatus, barrage information processing device, and storage medium, which can ensure that barrage information represented by an additional UI is dynamically processed, and corresponding services are executed, and simultaneously, when a user switches scenes, smooth playing of barrage information is ensured, and the jamming is reduced, so that the viewing experience of the user is improved.
The technical scheme of the embodiment of the invention is realized as follows:
The embodiment of the invention provides a barrage information processing method, which comprises the following steps:
Acquiring a video playing page, wherein the video playing page to be played is used for presenting video to be played and bullet screen information received through the video playing page to be played;
Configuring a corresponding barrage assembly for the barrage view of the video playing page to be played;
processing the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and presenting the logical operation processing result of the bullet screen information through the video playing page to be played;
Configuring a service view for the video playing page to be played, wherein the service view has the same level as the bullet screen view;
processing the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information;
When the video playing page to be played is of a bullet screen cross-scene type, configuring a new scene father view for the video playing page to be played;
and processing the barrage information received by the video playing page to be played through the new scene father view to form the barrage information of the cross-scene.
The embodiment of the invention also provides a barrage information processing device, which comprises:
the information transmission module is used for acquiring a video playing page, wherein the video playing page to be played is used for presenting videos to be played and bullet screen information received through the video playing page to be played;
The information processing module is used for configuring corresponding barrage components for barrage views of the video playing page to be played;
the information processing module is used for processing the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and presenting the logical operation processing result of the bullet screen information through the video playing page to be played;
the information processing module is used for configuring a service view for the video playing page to be played, wherein the service view has the same level as the barrage view;
The information processing module is used for processing the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information;
The information processing module is used for configuring a new scene father view for the video playing page to be played when the video playing page to be played is of a barrage cross-scene type;
And the information processing module is used for processing the barrage information received by the video playing page to be played through the new scene father view to form the barrage information of the cross-scene.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for triggering the mobile end frame of the video playing page to be played;
The information processing module is used for separating a parent view and a child view in the view component of the mobile end frame;
And the information processing module is used for binding the sub-view and the barrage assembly to obtain a barrage sub-view, wherein the barrage sub-view comprises the barrage assembly.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for initializing bullet screen components in the bullet screen sub-view through the play page parameters and bullet screen parameters acquired by the sub-view;
The information processing module is used for processing the logical operation of the bullet screen information through the bullet screen assembly subjected to the initialization processing to obtain a logical operation processing result of the bullet screen information;
the information processing module is used for determining layout parameters of the bullet screen information through the sub-view;
The information processing module is used for determining dynamic page logic parameters corresponding to the barrage information through the father view;
The information processing module is used for presenting the logical operation processing result of the barrage information through the video playing page to be played according to the layout parameters of the barrage information and the dynamic page logical parameters corresponding to the barrage information.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for maintaining the matched barrage information service when the matched barrage information service is adjusted,
The information processing module is used for establishing two-way communication connection with the bullet screen child view through the mobile end frame of the video playing page to be played by the father view so as to acquire the configuration information of the service matched with the bullet screen information.
In the above-described arrangement, the first and second embodiments,
The information processing module is configured to determine a service type corresponding to the barrage information, where the service type corresponding to the barrage information includes at least one of the following:
determining heat parameters of the barrage information, determining total praise of the barrage information, reporting the barrage information and determining publisher information of the barrage information;
The information processing module is used for determining the function of the service view based on the service type corresponding to the barrage information;
The information processing module is used for configuring service views with the same level based on the level of the bullet screen view.
In the above-described arrangement, the first and second embodiments,
And the information processing module is used for dynamically adjusting the bullet screen view level and the service view level according to the service quantity when the matched service of the bullet screen information is adjusted.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for determining a new scene father view matched with a new playing scene when the video playing page to be played is of a barrage cross-scene type;
the information processing module is used for separating the bullet screen view from the original structure;
The information processing module is used for sending the identification information of the father view of the new scene to the bullet screen view;
The information processing module is used for establishing a hierarchical relationship between the barrage view and the new scene father view through the identification information of the new scene father view, wherein the barrage view is a child node of the new scene father view.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for determining the playing parameters of the playing page through the father view of the new scene;
the information processing module is used for multiplexing bullet screen data corresponding to bullet screen views in the father view of the new scene to obtain bullet screen data processing results;
The information processing module is used for forming the barrage information of the cross-scene based on the playing parameters of the playing page and the barrage data processing result.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for carrying out uniform processing on the video to be played and the barrage displayed in the video to be played through the barrage view when entering a barrage editing mode;
And the information processing module is used for canceling the unification of the video to be played and the barrage displayed in the video to be played when the barrage editing mode is exited.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for suspending playing the video to be played through the barrage view and stopping moving the barrage in the video to be played, and
And the information processing module is used for carrying out the unification processing on the video to be played which is paused and the barrage which stops moving through the barrage view.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for continuing to play the video to be played and continuing to display the barrage in the video to be played through the father view of the new scene, and
And the information processing module is used for carrying out the unification processing on the video which is continuously played and the barrage which is continuously displayed in the video to be played through the father view of the new scene.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for acquiring touch position coordinates of the selection operation, and acquiring the selection operation of the displayed barrage through the touch position coordinates.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for controlling and adjusting the display position of the barrage by the control layer component corresponding to the video to be played so as to realize the display of the barrage.
In the above-described arrangement, the first and second embodiments,
The information processing module is used for acquiring replacement operation aiming at the target barrage through the barrage editing component;
and in response to the replacement operation, editing the content of the target barrage by the barrage editing component to form a new barrage.
The embodiment of the invention also provides bullet screen information processing equipment, which comprises:
a memory for storing executable instructions;
And the processor is used for realizing the pre-processing barrage information processing method when the executable instructions stored in the memory are operated.
The embodiment of the invention also provides a computer readable storage medium which stores executable instructions, wherein the executable instructions realize the bullet screen information processing method when being executed by a processor.
The embodiment of the invention has the following beneficial effects:
According to the embodiment of the invention, the video playing page to be played is used for presenting the video to be played and bullet screen information received by the video playing page to be played; configuring a corresponding barrage assembly for the barrage view of the video playing page to be played; processing the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and presenting the logical operation processing result of the bullet screen information through the video playing page to be played; configuring a service view for the video playing page to be played, wherein the service view has the same level as the bullet screen view; processing the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information; when the video playing page to be played is of a bullet screen cross-scene type, configuring a new scene father view for the video playing page to be played; and processing the barrage information received by the video playing page to be played through the new scene father view to form the barrage information of the cross-scene, so that dynamic processing of the barrage information expressed by the additional UI can be realized, corresponding business is executed, and meanwhile, when the user switches the scene, smooth playing of the barrage information is ensured, the blocking is reduced, and the viewing experience of the user is improved.
Drawings
FIG. 1 is a schematic diagram of a usage scenario of a barrage information processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the composition of a barrage information processing apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a related art barrage information processing process;
FIG. 4 is a schematic flow chart of an alternative barrage information processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an arrangement of a bullet screen assembly according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a business view configuration process in an embodiment of the present invention;
FIG. 7 is a schematic diagram of a new scene parent view configuration process according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a display effect of a pop-up screen according to an embodiment of the present invention;
FIG. 9 is a schematic diagram showing the effect of the bullet screen according to the embodiment of the present invention.
Detailed Description
The present invention will be further described in detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present invention more apparent, and the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
Before describing embodiments of the present invention in further detail, the terms and terminology involved in the embodiments of the present invention will be described, and the terms and terminology involved in the embodiments of the present invention will be used in the following explanation.
1) View (View): the generic term for UI controls is used to expose a collection of things that a user can see.
2) REACT NATIVE: is a cross-platform mobile application development framework that is open-source by Facebook at 2015, month 4.
3) Activity: activity is an application component that provides a screen that a user can use to interact to accomplish a task.
4) Flutter: flutter is a google mobile UI framework that can quickly build high quality native user interfaces on iOS and Android.
5) Window: in the android system, window is an abstract class, and the concrete implementation is PhoneWin dow. Whether Activity, dialog, toast their views are attached to Windo, so Window is effectively a direct manager of View.
6) In response to a condition or state that is used to represent the condition or state upon which the performed operation depends, the performed operation or operations may be in real-time or with a set delay when the condition or state upon which it depends is satisfied; without being specifically described, there is no limitation in the execution sequence of the plurality of operations performed.
7) Terminals, including but not limited to: the system comprises a common terminal and a special terminal, wherein the common terminal is in long connection and/or short connection with a sending channel, and the special terminal is in long connection with the sending channel.
8) A client, a carrier in a terminal that implements a specific function, for example, a mobile client (APP), is a carrier of a specific function in a mobile terminal, for example, a function of performing live video on line or a play function of video on line.
Fig. 1 is a schematic view of a usage scenario of a barrage information processing method provided in an embodiment of the present application, referring to fig. 1, a terminal (including a terminal 10-1 and a terminal 10-2) is provided with corresponding clients (a short video client, a long video client, and a long video client) capable of playing barrage information, the terminal is connected to a server 200 through a network 300, the network 300 may be a wide area network or a local area network, or a combination of the two, and data transmission is implemented by using a wireless link, where the barrage information includes but is not limited to text, pictures, GIF animation, and advertisement information. The types of bullet screen information acquired by the terminals (including the terminal 10-1 and the terminal 10-2) from the corresponding server 200 through the network 300 may be the same or different, for example: the terminals (including the terminal 10-1 and the terminal 10-2) may acquire the video advertisement by the advertiser from the corresponding server 200 through the network 300, or may acquire the image advertisement by the advertiser from the corresponding server 200 through the network 300, and the specific type of the present application is not limited. Different bullet screen information may be stored in the server 200, where the bullet screen information used as the advertisement may be content in different dynamic formats, such as text advertisements, picture advertisements, and the like.
As an example, the server 200 is configured to lay a corresponding barrage information processing model to implement the barrage information processing method provided by the present application, or lay a barrage information processing device to implement the barrage information processing method, and specifically, obtain a video playing page, where the video playing page to be played is used to present a video to be played and barrage information received through the video playing page to be played; configuring a corresponding barrage assembly for the barrage view of the video playing page to be played; processing the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and presenting the logical operation processing result of the bullet screen information through the video playing page to be played; configuring a service view for the video playing page to be played, wherein the service view has the same level as the bullet screen view; processing the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information; when the video playing page to be played is of a bullet screen cross-scene type, configuring a new scene father view for the video playing page to be played; the bullet screen information received by the video playing page to be played is processed through the new scene father view to form cross-scene bullet screen information, different short bullet screen information with different data sources is usually processed in short video playing, and finally, the bullet screen information which is different from the corresponding bullet screen information can be clicked by a user or can be reported on the user interface UI (User Interface).
The barrage information processing method provided by the embodiment of the application is realized based on artificial intelligence, wherein the artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) is a theory, a method, a technology and an application system which simulate, extend and expand human intelligence by using a digital computer or a machine controlled by the digital computer, sense environment, acquire knowledge and acquire an optimal result by using the knowledge. In other words, artificial intelligence is an integrated technology of computer science that attempts to understand the essence of intelligence and to produce a new intelligent machine that can react in a similar way to human intelligence. Artificial intelligence, i.e. research on design principles and implementation methods of various intelligent machines, enables the machines to have functions of sensing, reasoning and decision.
The artificial intelligence technology is a comprehensive subject, and relates to the technology with wide fields, namely the technology with a hardware level and the technology with a software level. Artificial intelligence infrastructure technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and other directions.
In the embodiment of the application, the mainly related artificial intelligence software technology comprises the voice processing technology, machine learning and other directions. For example, speech recognition techniques (Automatic Speech Recognition, ASR) in speech technology (Speech Technology) may be involved, including speech signal preprocessing (SPEECH SIGNAL preprocessing), speech signal frequency domain analysis (SPEECH SIGNAL frequency analyzing), speech signal feature extraction (SPEECH SIGNAL feature extraction), speech signal feature matching/recognition (SPEECH SIGNAL feature matching/recognition), training of speech (SPEECH TRAINING), and the like.
For example, machine learning (MACHINE LEARNING, ML) can be involved, which is a multi-domain interdisciplinary, involving multiple disciplines such as probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory, and the like. It is specially studied how a computer simulates or implements learning behavior of a human to acquire new knowledge or skills, and reorganizes existing knowledge structures to continuously improve own performance. Machine learning is the core of artificial intelligence, a fundamental approach to letting computers have intelligence, which is applied throughout various areas of artificial intelligence. Machine learning typically includes techniques such as deep learning (DEEP LEARNING) that includes artificial neural networks (ARTIFICIAL NEURAL NETWORK), such as convolutional neural networks (Convolutional Neural Network, CNN), recurrent neural networks (Recurrent Neural Network, RNN), deep neural networks (Deep neural network, DNN), and the like.
It can be appreciated that the bullet screen information processing method and the voice processing provided by the application can be applied to an intelligent device (INTELLIGENT DEVICE), and the intelligent device can be any device with an information display function, for example, an intelligent terminal, an intelligent home device (such as an intelligent sound box and an intelligent washing machine), an intelligent wearing device (such as an intelligent watch), a vehicle-mounted intelligent central control system (for displaying bullet screen information to a user through small programs for executing different tasks) and the like.
The following describes in detail the structure of the bullet screen information processing apparatus according to the embodiment of the present invention, and the bullet screen information processing apparatus may be implemented in various forms, such as a smart phone with a video playing function, a tablet computer, a desktop computer, and other terminals, or may be a server with a video display function. Fig. 2 is a schematic diagram of the composition structure of the barrage information processing apparatus provided in the embodiment of the present invention, and it is understood that fig. 2 only shows an exemplary structure of the barrage information processing apparatus, but not all the structure, and that part or all of the structure shown in fig. 2 may be implemented as needed.
The bullet screen information processing device provided by the embodiment of the invention comprises: at least one processor 201, a memory 202, a user interface 203, and at least one network interface 204. The various components in the barrage information processing device are coupled together by a bus system 205. It is understood that the bus system 205 is used to enable connected communications between these components. The bus system 205 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 205 in fig. 2.
The user interface 203 may include, among other things, a display, keyboard, mouse, trackball, click wheel, keys, buttons, touch pad, or touch screen, etc.
It will be appreciated that the memory 202 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The memory 202 in embodiments of the present invention is capable of storing data to support operation of the terminal (e.g., 10-1). Examples of such data include: any computer program, such as an operating system and application programs, for operation on the terminal (e.g., 10-1). The operating system 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 may comprise various applications.
In some embodiments, the bullet screen information processing apparatus provided in the embodiments of the present invention may be implemented by combining software and hardware, and as an example, the image apparatus provided in the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the bullet screen information processing method provided in the embodiments of the present invention. For example, a processor in the form of a hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable logic devices (PLDs, programmable Logic Device), complex Programmable logic devices (CPLDs, complex Programmable Logic Device), field-Programmable gate arrays (FPGAs), or other electronic components.
As an example of implementation of the barrage information processing apparatus provided by the embodiment of the present invention by combining software and hardware, the barrage information processing apparatus provided by the embodiment of the present invention may be directly embodied as a software module executed by the processor 201, where the software module may be located in a storage medium, the storage medium is located in the memory 202, and the processor 201 reads executable instructions included in the software module in the memory 202, and performs the barrage information processing method provided by the embodiment of the present invention by combining necessary hardware (including, for example, the processor 201 and other components connected to the bus 205).
By way of example, the Processor 201 may be an integrated circuit chip having signal processing capabilities such as a general purpose Processor, such as a microprocessor or any conventional Processor, a digital signal Processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
As an example of implementation of the barrage information processing apparatus provided by the embodiment of the present invention by hardware, the apparatus provided by the embodiment of the present invention may be implemented directly by the processor 201 in the form of a hardware decoding processor, for example, by one or more Application specific integrated circuits (ASICs, application SPECIFIC INTEGRATED circuits), DSPs, programmable logic devices (PLDs, programmable Logic Device), complex Programmable logic devices (CPLDs, complex Programmable Logic Device), field-Programmable gate arrays (FPGAs), or other electronic components.
The memory 202 in the embodiment of the present invention is used to store various types of data to support the operation of the barrage information processing apparatus. Examples of such data include: any executable instructions, such as executable instructions, for operating on a barrage information processing apparatus, a program implementing the slave barrage information processing method of the embodiments of the present invention may be contained in the executable instructions.
In other embodiments, the barrage information processing apparatus provided in the embodiments of the present invention may be implemented in software, and fig. 2 shows a barrage information processing apparatus 2020 stored in a memory 202, which may be software in the form of a program, a plug-in, and a series of modules, and as an example of the program stored in the memory 202, may include the barrage information processing apparatus 2020, where the barrage information processing apparatus 2020 includes the following software modules: an information transmission module 2081 and an information processing module 2082. When software modules in the multimedia information processing apparatus are read into the RAM by the processor 201 and executed, the multimedia information processing method provided by the embodiment of the present invention will be implemented, and the functions of the respective software modules in the multimedia information processing apparatus will be described further below, wherein,
The information transmission module 2081 is configured to obtain a video playing page, where the video playing page to be played is used to present a video to be played and bullet screen information received by the video playing page to be played;
The information processing module 2082 is configured to configure a corresponding barrage assembly for the barrage view of the video playing page to be played;
The information processing module 2082 is configured to process the logical operation of the bullet screen information through the bullet screen assembly, obtain a result of processing the logical operation of the bullet screen information, and present the result of processing the logical operation of the bullet screen information through the video playing page to be played;
the information processing module 2082 is configured to configure a service view for the video playing page to be played, where the service view is at the same level as the bullet screen view;
the information processing module 2082 is configured to process, through the service view, a service that is matched with the bullet screen information, so as to obtain a service processing result that corresponds to the bullet screen information;
The information processing module 2082 is configured to configure a new scene father view for the video playing page to be played when the video playing page to be played is a barrage cross-scene type;
The information processing module 2082 is configured to process, through the new scene parent view, the barrage information received by the video playing page to be played, to form barrage information of a cross-scene.
According to the multimedia information processing apparatus shown in fig. 2, which is packaged in an electronic device, in one aspect of the present application, the present application also provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. The computer instructions are read from the computer readable storage medium by a processor of the electronic device, which executes the computer instructions, causing the electronic device to perform the different embodiments and combinations of embodiments provided in the various alternative implementations of the bullet screen information processing method described above.
The bullet screen information processing method provided by the embodiment of the present invention is described with reference to exemplary applications and implementations of the terminal provided by the embodiment of the present invention, and it can be understood from the foregoing that the bullet screen information processing method provided by the embodiment of the present invention may be implemented by various types of devices with bullet screen information processing functions, such as a dedicated device for video playing, a computer, a server, and so on.
Before introducing the bullet screen information processing method provided by the application, firstly introducing the bullet screen information processing defect in the related art, referring to fig. 3, fig. 3 is a schematic diagram of the bullet screen information processing process in the related art, and the dynamic framework technology of the moving end is a new technology for enabling an developer to develop the native application of the mobile end by using the front end development technology, and the basic principle is that the bottom layer of the mobile end provides a bridge communicated with the front end, and the bridge receives the command transmitted by the front end to generate various View elements specific to the mobile end, and because of the dynamics of the front end, the generated mobile end page has dynamics. Drawbacks of this process include, however: 1) Under the scene of a dynamic framework, the barrage is packaged into a View element related to the UI, on one hand, an instruction for drawing the UI transmitted from the side of the framework is required to be received, on the other hand, barrage drawing on-screen logic and barrage data processing logic are required to be executed, the performance loss is too large, and the traditional combination mode is not applicable any more. 2) The screen often has some additional UI performance or UI dynamic effects, especially in some scenes with strong interaction, such as live scenes, double click and praise operation on the bullet screen, double finger kneading operation, long-press reporting or more complex interaction and animation, etc., and under the bullet screen scene of a pure client, the traditional UI layout level cannot meet or achieve the purpose of dynamic. The local UI dynamics, that is, the color, font size, etc. of the barrage can be achieved by the background configuration issue, but there is no way to achieve the logic dynamics, for example, what to process after clicking the barrage. 3) When the cross-scene processing is performed, the same video is perfectly connected before and after full-screen switching, flicker and click feeling are not given to a user, repeated requests to the background can be avoided through caching the form of bullet screen data in the traditional technology, so that user experience in the cross-scene process is improved, but the click feeling is still given to the user.
In order to solve these drawbacks, the bullet screen information processing method provided by the embodiment of the present invention is described with reference to the bullet screen information processing apparatus shown in fig. 2, and referring to fig. 4, fig. 4 is an optional flowchart of the bullet screen information processing method provided by the embodiment of the present invention, it will be understood that the steps shown in fig. 4 may be performed by various electronic apparatuses running the bullet screen information processing function, for example, a terminal, a server or a server cluster of a type such as a computer, a smart phone, etc. with video playing and processing functions. The following is a description of the steps shown in fig. 4.
Step 401: the bullet screen information processing device acquires a video playing page.
The video playing page is used for presenting videos to be played and barrage information received through the video playing page.
In some embodiments of the present invention, when a video client running through a terminal acquires video data sent by a corresponding server, a bullet screen sent by the server is synchronously acquired and stored in a bullet screen queue to be displayed corresponding to the acquired video, where the bullet screen acquired by the video client to be played may be submitted by different users watching the communication video through the respective client, or may be submitted by different users watching the communication video through the corresponding web page playing interface. And when the video to be played is played through the client, calling the bullet screen queue to be displayed so as to display the bullet screen in the playing process of the video to be played.
Step 402: and configuring a corresponding barrage component for the barrage view of the video playing page to be played by the barrage information processing device.
In some embodiments of the present invention, configuring a corresponding barrage component for a barrage view of the video playing page to be played may be implemented by:
Triggering the mobile end frame of the video playing page to be played; separating a parent view and a child view in a view component of the mobile end frame; binding the sub-view with the barrage assembly to obtain a barrage sub-view, wherein the barrage sub-view comprises the barrage assembly. Referring to fig. 5, fig. 5 is a schematic diagram of a configuration process of a bullet screen assembly according to an embodiment of the present invention, specifically, the configuration process of the bullet screen assembly uses a View assembly provided by a mobile end frame, but a concept of a parent View and a child View is extracted from the View, where the parent View is responsible for a bullet screen UI, and the child View is logically bound with the bullet screen assembly.
In some embodiments of the present invention, the processing of the logical operation of the bullet screen information by the bullet screen assembly obtains the result of the processing of the logical operation of the bullet screen information, and the result of the processing of the logical operation of the bullet screen information is presented by the video playing page to be played, which may be achieved by:
Initializing bullet screen components in the bullet screen sub-view according to the play page parameters and bullet screen parameters acquired by the sub-view; processing the logic operation of the bullet screen information through the bullet screen assembly subjected to initialization processing to obtain a logic operation processing result of the bullet screen information; determining layout parameters of the bullet screen information through the sub-views; determining dynamic page logic parameters corresponding to the barrage information through the father view; and presenting the logical operation processing result of the bullet screen information through the video playing page to be played according to the layout parameters of the bullet screen information and the dynamic page logical parameters corresponding to the bullet screen information. Specifically, on the UI side, the parent view may process UI related operations, such as width and height, number of bullet screen lines, background color, etc., and the child view only needs to care about the width, height and bullet screen data transmitted from the front end side to initialize the bullet screen assembly, and meanwhile, the front end side code control is adopted, and the client code extraction form is used to avoid other unrelated UI operations, for example, setting of background color, setting of scaling ratio, etc., which are all elements unrelated to the bullet screen assembly, so that the generation speed of the complex video card can be improved by only retaining the form of necessary UI operations.
Step 403: the bullet screen information processing device processes the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and the logical operation processing result of the bullet screen information is presented through the video playing page to be played.
In the process, when the matched service of the bullet screen information is adjusted or the matched service of the bullet screen information is maintained, the father view establishes two-way communication connection with the bullet screen child view through the mobile end frame of the video playing page to be played so as to acquire the configuration information of the service matched with the bullet screen information, wherein the father view has the capacity of two-way communication of the dynamic frame, so that the interaction realization between the playing process and the front end is possible, and the logic separation is realized through the mode, thereby facilitating the expansion of the subsequent service and the maintenance of the original service.
Step 404: and configuring a service view for the video playing page to be played by the barrage information processing device, wherein the service view has the same level as the barrage view.
In some embodiments of the present invention, a service view is configured for the video playing page to be played, where the service view and the bullet screen view have the same level, and may be implemented by the following manner:
Determining a service type corresponding to the barrage information, wherein the service type corresponding to the barrage information comprises at least one of the following:
Determining heat parameters of the barrage information, determining total praise of the barrage information, reporting the barrage information and determining publisher information of the barrage information; determining the function of the service view based on the service type corresponding to the bullet screen information; and configuring service views with the same level based on the level of the bullet screen view. Referring to fig. 6, fig. 6 is a schematic diagram of a service View configuration process in an embodiment of the present application, specifically, for a service, a barrage only meets an interaction requirement, provides functions of playing, suspending, barrage publishing, and the like, and cannot well display a specific service form thereof, and another new component is needed to display a specific service form, such as barrage heat, total approval of the barrage, barrage reporting, and the like, but if the barrage is included in the barrage View, the barrage logic which is originally complex is more complex, so that a new playing service display component is needed to be designed from a technical level to meet requirements of playing and service complement, and is easy to expand and develop later. Meanwhile, when the matched barrage information service is adjusted, the barrage view level and the service view level can be dynamically adjusted according to the service quantity, so that the barrage information processing method can adapt to more use scenes.
Step 405: and the barrage information processing device processes the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information.
Step 406: and when the video playing page to be played is of a barrage cross-scene type, the barrage information processing device configures a new scene father view for the video playing page to be played.
In some embodiments of the present invention, when the video playing page to be played is a barrage cross-scene type, a new scene father view matched with a new playing scene may be determined; separating the bullet screen view from the original structure; transmitting the identification information of the father view of the new scene to the bullet screen view; and establishing a hierarchical relationship between the bullet screen view and the new scene father view through the identification information of the new scene father view, wherein the bullet screen view is a child node of the new scene father view. Referring to fig. 7, fig. 7 is a schematic diagram of a new scene parent View configuration process in an embodiment of the present invention, in this process, a new barrage View is not created during the cross-scene process, but rather the barrage View is directly extracted from the original hierarchical structure, and is added to the new parent View of the new scene, so as to realize a process of seamless cross-scene continuous uploading, and meanwhile, since the new barrage View is not created, all barrage data under the View can be continuously multiplexed, and the process of repeatedly requesting data to the background is avoided, so that the transient blank of the barrage area is avoided, and the play fluency of the barrage is improved.
Step 407: and the barrage information processing device processes barrage information received by the video playing page to be played through the new scene father view to form barrage information of the cross-scene.
In some embodiments of the present invention, processing, through the new scene parent view, bullet screen information received by the video playing page to be played to form bullet screen information of a cross-scene includes:
Determining playing parameters of the playing page through the new scene father view; multiplexing barrage data corresponding to barrage views in the father view of the new scene to obtain barrage data processing results; and forming the bullet screen information of the cross-scene based on the playing parameters of the playing page and the bullet screen data processing result. Referring to fig. 8 in combination with the foregoing fig. 7, fig. 8 is a schematic view of a bullet screen display effect in an embodiment of the present invention, and a parent view is created for a new scene: the View is taken as a Parent of the bullet screen View to be moved, the bullet screen View can be added as a child node of the bullet screen View, after the View is created, the View id of the bullet screen View needs to be informed of the bullet screen View, so that the bullet screen View can find a new scene father View of the bullet screen View conveniently (taking an android system of a mobile terminal as an example, the View id can be taken as a unique representation of the View, and the obtained id is equivalent to the obtained View, and the operation of addChild can be continuously executed
Removing from the original scene original Parent: taking android as an example, the original Parent is directly found, and the screen View example can be obtained by calling removeChild methods provided by the android system, destroyView cannot be adjusted, and the screen View is directly destroyed by the methods.
Add to the new scene parent view: and according to the View id, acquiring a parent View instance of the new scene, and calling a addChild method provided by the android system to add the barrage View under the new parent. After the execution is finished, the result is thrown back to the front end side, and the bullet screen View has realized the movement across scenes.
Referring to fig. 9, fig. 9 is a schematic view of a bullet screen display effect according to an embodiment of the present invention, and in some embodiments of the present invention, the method further includes:
When entering a barrage editing mode, unifying the video and the barrages displayed in the video; and when exiting the barrage editing mode, canceling the unification of the video and the barrages displayed in the video. The video and the barrage displayed in the video are consistent when entering the barrage editing mode, so that the influence of the video image and the barrage displayed on the editing of the target barrage can be avoided, and certainly, the video and the barrage displayed in the video are consistent when exiting the barrage editing mode, the video playing and the barrage display can be recovered, and the continuity is maintained, so that the visual experience of a user is improved. Note that, exiting the barrage editing mode includes at least one of: loading the bullet screen editing component and forming the new bullet screen; abandoning editing of the target barrage and ending the editing mode; the barrage editing component crashes or no response to the editing operation occurs.
In some embodiments of the present invention, the unifying the video and the bullet screen displayed in the video includes:
And when the configuration parameters of the equipment do not meet the configuration conditions, suspending playing the video, stopping moving the barrage in the video, and carrying out uniform processing on the video which is suspended to play and the barrage which is stopped to move. Because the types of the terminals running the video client are various, the hardware configuration of the terminals is different, and therefore, different processing strategies can be executed for the devices with different configuration parameters. When the configuration parameters of the equipment do not meet the configuration conditions, in the process of unifying the video and the barrage in the video, the playing of the video and the movement of the barrage in the video need to be paused, so that the situation that the video playing and/or the barrage display are blocked due to insufficient capability of a processor of the equipment for parallel processing tasks to influence the watching experience of a user is avoided. Wherein the suspending playing the video and suspending movement of the barrage in the video comprises: and displaying the stagnation state of the current barrage in the static video picture.
In some embodiments of the present invention, the unifying the video and the bullet screen displayed in the video includes:
And when the configuration of the equipment meets the configuration conditions, continuing to play the video, and unifying the video which is continuously played and the barrage displayed in the video. Because the types of the terminals running the video client are various, the hardware configuration of the terminals is different, and therefore, different processing strategies can be executed for the devices with different configuration parameters. When the configuration of the device meets the configuration condition, in the process of unifying the video and the barrage in the video, as the capability of the parallel processing task of the processor of the device is sufficient, video playing and/or barrage display is not blocked, and a user can obtain better viewing experience, the video can be continuously played, and the video which is continuously played and the barrage displayed in the video can be unified.
In summary, the embodiment of the invention has the following technical effects:
According to the embodiment of the invention, the video playing page to be played is used for presenting the video to be played and bullet screen information received by the video playing page to be played; configuring a corresponding barrage assembly for the barrage view of the video playing page to be played; processing the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and presenting the logical operation processing result of the bullet screen information through the video playing page to be played; configuring a service view for the video playing page to be played, wherein the service view has the same level as the bullet screen view; processing the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information; when the video playing page to be played is of a bullet screen cross-scene type, configuring a new scene father view for the video playing page to be played; and processing the barrage information received by the video playing page to be played through the new scene father view to form the barrage information of the cross-scene, so that dynamic processing of the barrage information expressed by the additional UI can be realized, corresponding business is executed, and meanwhile, when the user switches the scene, smooth playing of the barrage information is ensured, the blocking is reduced, and the viewing experience of the user is improved.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (16)

1. A barrage information processing method, the method comprising:
Acquiring a video playing page, wherein the video playing page is used for presenting videos to be played and bullet screen information received through the video playing page;
configuring a corresponding barrage assembly for a barrage view of a video playing page to be played;
processing the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and presenting the logical operation processing result of the bullet screen information through the video playing page to be played;
Configuring a service view for the video playing page to be played, wherein the service view has the same level as the bullet screen view;
processing the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information;
When the video playing page to be played is of a bullet screen cross-scene type, configuring a new scene father view for the video playing page to be played;
and processing the barrage information received by the video playing page to be played through the new scene father view to form the barrage information of the cross-scene.
2. The method of claim 1, wherein configuring the corresponding bullet screen assembly for the bullet screen view of the video playing page to be played comprises:
Triggering the mobile end frame of the video playing page to be played;
separating a parent view and a child view in a view component of the mobile end frame;
Binding the sub-view with the barrage assembly to obtain a barrage sub-view, wherein the barrage sub-view comprises the barrage assembly.
3. The method according to claim 2, wherein the processing, by the bullet screen assembly, the logical operation of the bullet screen information to obtain a result of processing the logical operation of the bullet screen information, and presenting, by the video playing page to be played, the result of processing the logical operation of the bullet screen information includes:
Initializing bullet screen components in the bullet screen sub-view according to the play page parameters and bullet screen parameters acquired by the sub-view;
processing the logic operation of the bullet screen information through the bullet screen assembly subjected to initialization processing to obtain a logic operation processing result of the bullet screen information;
determining layout parameters of the bullet screen information through the sub-views;
determining dynamic page logic parameters corresponding to the barrage information through the father view;
and presenting the logical operation processing result of the bullet screen information through the video playing page to be played according to the layout parameters of the bullet screen information and the dynamic page logical parameters corresponding to the bullet screen information.
4. The method according to claim 2, wherein the method further comprises:
when the matching service of the barrage information is adjusted, or the matching service of the barrage information is maintained,
And the father view establishes two-way communication connection with the bullet screen child view through the mobile end frame of the video playing page to be played so as to acquire the configuration information of the service matched with the bullet screen information.
5. The method of claim 1, wherein the configuring a service view for the video playing page to be played, wherein the service view is at the same level as the bullet screen view, comprises:
Determining a service type corresponding to the barrage information, wherein the service type corresponding to the barrage information comprises at least one of the following:
determining heat parameters of the barrage information, determining total praise of the barrage information, reporting the barrage information and determining publisher information of the barrage information;
determining the function of the service view based on the service type corresponding to the bullet screen information;
and configuring service views with the same level based on the level of the bullet screen view.
6. The method of claim 5, wherein the method further comprises:
And when the matching service of the bullet screen information is adjusted, dynamically adjusting the bullet screen view level and the service view level according to the service quantity.
7. The method according to claim 1, wherein when the video playing page to be played is a barrage cross-scene type, configuring a new scene parent view for the video playing page to be played includes:
When the video playing page to be played is of a barrage cross-scene type, determining a new scene father view matched with a new playing scene;
Separating the bullet screen view from the original structure;
Transmitting the identification information of the father view of the new scene to the bullet screen view;
and establishing a hierarchical relationship between the bullet screen view and the new scene father view through the identification information of the new scene father view, wherein the bullet screen view is a child node of the new scene father view.
8. The method of claim 7, wherein the processing, through the new scene parent view, the bullet screen information received by the video playing page to be played to form bullet screen information of a cross-scene includes:
determining playing parameters of the playing page through the new scene father view;
multiplexing barrage data corresponding to barrage views in the father view of the new scene to obtain barrage data processing results;
and forming the bullet screen information of the cross-scene based on the playing parameters of the playing page and the bullet screen data processing result.
9. The method according to claim 1, wherein the method further comprises:
when entering a barrage editing mode, carrying out uniform processing on the video to be played and the barrage displayed in the video to be played through the barrage view;
and when exiting the barrage editing mode, canceling the unification of the video to be played and the barrage displayed in the video to be played.
10. The method of claim 9, wherein the unifying the video to be played and the barrage displayed in the video to be played through the barrage view comprises:
Suspending playing the video to be played through the barrage view, stopping moving the barrage in the video to be played, and
And carrying out unification processing on the video to be played which is paused and the barrage which stops moving through the barrage view.
11. The method of claim 9, wherein the unifying the video to be played and the barrage displayed in the video to be played through the barrage view comprises:
Continuing to play the video to be played and continuing to display the barrage in the video to be played through the new scene father view, and
And carrying out the unification processing on the video which is continuously played and the barrage which is continuously displayed in the video to be played through the father view of the new scene.
12. The method according to claim 1, wherein the method further comprises:
Acquiring replacement operation for a target barrage through the barrage editing component;
and in response to the replacement operation, editing the content of the target barrage by the barrage editing component to form a new barrage.
13. A bullet screen information processing apparatus, the apparatus comprising:
The information transmission module is used for acquiring a video playing page, wherein the video playing page to be played is used for presenting the video to be played and bullet screen information received through the video playing page to be played;
The information processing module is used for configuring corresponding barrage components for barrage views of the video playing page to be played;
the information processing module is used for processing the logical operation of the bullet screen information through the bullet screen assembly to obtain a logical operation processing result of the bullet screen information, and presenting the logical operation processing result of the bullet screen information through the video playing page to be played;
the information processing module is used for configuring a service view for the video playing page to be played, wherein the service view has the same level as the barrage view;
The information processing module is used for processing the service matched with the barrage information through the service view to obtain a service processing result corresponding to the barrage information;
The information processing module is used for configuring a new scene father view for the video playing page to be played when the video playing page to be played is of a barrage cross-scene type;
And the information processing module is used for processing the barrage information received by the video playing page to be played through the new scene father view to form the barrage information of the cross-scene.
14. A barrage information processing apparatus, the barrage information processing apparatus comprising:
a memory for storing executable instructions;
a processor for implementing the barrage information processing method of any one of claims 1 to 12 when executing the executable instructions stored in the memory.
15. A computer-readable storage medium storing executable instructions which when executed by a processor implement the barrage information processing method of any one of claims 1 to 12.
16. A computer program product comprising computer instructions which, when executed by a processor, implement the barrage information processing method of any of claims 1 to 12.
CN202110614376.1A 2021-06-02 Barrage information processing method and device, barrage information processing equipment and storage medium Active CN115442650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110614376.1A CN115442650B (en) 2021-06-02 Barrage information processing method and device, barrage information processing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110614376.1A CN115442650B (en) 2021-06-02 Barrage information processing method and device, barrage information processing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115442650A CN115442650A (en) 2022-12-06
CN115442650B true CN115442650B (en) 2024-06-21

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144652A (en) * 2018-08-28 2019-01-04 武汉斗鱼网络科技有限公司 A kind of view display methods, device, electronic equipment and storage medium
CN112087668A (en) * 2019-06-14 2020-12-15 腾讯科技(深圳)有限公司 Video processing method and device, video processing equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144652A (en) * 2018-08-28 2019-01-04 武汉斗鱼网络科技有限公司 A kind of view display methods, device, electronic equipment and storage medium
CN112087668A (en) * 2019-06-14 2020-12-15 腾讯科技(深圳)有限公司 Video processing method and device, video processing equipment and storage medium

Similar Documents

Publication Publication Date Title
US11800192B2 (en) Bullet screen processing method and apparatus, electronic device, and computer-readable storage medium
CN107995536A (en) A kind of method, apparatus, equipment and computer-readable storage medium for extracting video preview
WO2017113730A1 (en) Method and system for generating and controlling composite user interface control
US20230130438A1 (en) Method and apparatus for providing multimedia content, and device
US20110001758A1 (en) Apparatus and method for manipulating an object inserted to video content
TW201907734A (en) Method for displaying on-screen comment, and client
CN107728905B (en) Bullet screen display method and device and storage medium
US20230013601A1 (en) Program trial method, system, apparatus, and device, and medium
CN112764871B (en) Data processing method, data processing device, computer equipment and readable storage medium
CN112527115B (en) User image generation method, related device and computer program product
CN109154943A (en) Conversion based on server of the automatic broadcasting content to click play content
EP4376423A1 (en) Virtual object interaction method and device, and storage medium and computer program product
CN112235520A (en) Image processing method and device, electronic equipment and storage medium
CN111862280A (en) Virtual role control method, system, medium, and electronic device
CN111124668A (en) Memory release method and device, storage medium and terminal
CN111949908A (en) Media information processing method and device, electronic equipment and storage medium
CN112752132A (en) Cartoon picture bullet screen display method and device, medium and electronic equipment
CN111626021B (en) Presentation generation method and device
CN111294662B (en) Barrage generation method, device, equipment and storage medium
CN109091866B (en) Display control method and device, computer readable medium and electronic equipment
CN115442650B (en) Barrage information processing method and device, barrage information processing equipment and storage medium
CN109905753A (en) The display methods and device of footmark, storage medium, electronic device
CN110300118B (en) Streaming media processing method, device and storage medium
CN113286181A (en) Data display method and device
CN114449355B (en) Live interaction method, device, equipment and storage medium

Legal Events

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