CN106488296B - A kind of method and apparatus showing video barrage - Google Patents

A kind of method and apparatus showing video barrage Download PDF

Info

Publication number
CN106488296B
CN106488296B CN201610909408.XA CN201610909408A CN106488296B CN 106488296 B CN106488296 B CN 106488296B CN 201610909408 A CN201610909408 A CN 201610909408A CN 106488296 B CN106488296 B CN 106488296B
Authority
CN
China
Prior art keywords
barrage
video
frame
target
target image
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
CN201610909408.XA
Other languages
Chinese (zh)
Other versions
CN106488296A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201610909408.XA priority Critical patent/CN106488296B/en
Publication of CN106488296A publication Critical patent/CN106488296A/en
Application granted granted Critical
Publication of CN106488296B publication Critical patent/CN106488296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4756End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for rating content, e.g. scoring a recommended movie

Landscapes

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

Abstract

The invention discloses a kind of methods for showing video barrage, belong to field of computer technology.The described method includes: obtaining target image frame to be shown and barrage comment information corresponding with the time point of the target image frame in target video;The target image frame and the barrage comment information are shown in video layer child window.Using the present invention, user will not can not see barrage comment information when watching video because of the run-time error of terminal system or the code error of application program.

Description

A kind of method and apparatus showing video barrage
Technical field
The present invention relates to field of computer technology, in particular to a kind of method and apparatus for showing video barrage.
Background technique
User can input the comment of oneself, then point percussion in the corresponding comment area of video when watching video online Table, in this way, the server of video provider can store comment information and and record time point of current video frame, other users When watching the video to above-mentioned playback progress, it is aobvious that terminal can show that rule determines that the time point needs according to preset barrage The display position of all comment informations and each comment information shown, to show above-mentioned comment information in the form of barrage.
The broadcast window of video is usually to be made of multilayer child window, including for showing the barrage of comment that user delivers Straton window, and the video layer child window etc. for showing video image, wherein barrage straton window is normally at video straton Window upper layer.When playing video, video image data can be transferred to GPU to handle by terminal, be generated aobvious in video layer child window The video image shown, while transferring to CPU to handle barrage comment information, the barrage image exported in barrage straton window is generated, As shown in Figure 2.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
The overlying relation of multilayer child window may be due to the run-time error of terminal system or the coding of application program Mistake and change, in this way, if barrage straton window and the lamination order of video layer child window change, video image Barrage image will be sheltered from, user can not then see barrage comment information, so that the experience that user watches video is poor.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of methods and dress for showing video barrage It sets.The technical solution is as follows:
In a first aspect, providing a kind of method for showing video barrage, which comprises
Obtain in target video target image frame to be shown and corresponding with the time point of the target image frame Barrage comment information;
The target image frame and the barrage comment information are shown in video layer child window.
Second aspect, provides a kind of device for showing video barrage, and described device includes:
Obtain module, for obtain target image frame to be shown in target video and with the target image frame Time point corresponding barrage comment information;
Display module, for showing the target image frame and the barrage comment information in video layer child window.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, obtain target image frame to be shown in target video and with target image frame when Between put corresponding barrage comment information, displaying target picture frame and barrage comment information in video layer child window.In this way, eventually End in video layer child window while can show picture frame and barrage comment information when playing video, and user will not be because of The lamination order of barrage straton window and video layer child window changes, and can not see barrage comment information.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of method flow diagram for showing video barrage provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram for showing video barrage provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram for showing video barrage provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram for generating video barrage hybrid frame provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram for generating video barrage hybrid frame provided in an embodiment of the present invention;
Fig. 6 is a kind of apparatus structure schematic diagram for showing video barrage provided in an embodiment of the present invention;
Fig. 7 is a kind of apparatus structure schematic diagram for showing video barrage provided in an embodiment of the present invention;
Fig. 8 is a kind of apparatus structure schematic diagram for showing video barrage provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of method for showing video barrage, the executing subject of this method is terminal.Wherein, Terminal can be the terminal with video playback capability, can be computer, mobile phone etc..Video playing can be installed in terminal Class application program, the video playback class application program can have the function of display video barrage.Place can be set in terminal Device, memory are managed, processor is displayed for the relevant treatment of video barrage, and memory can be used for storing following processed The data for needing and generating in journey.It is also provided with audio output part and display unit, audio output part can be used for Audio data in playing video file, display unit can be screen, for showing video barrage.
Below in conjunction with specific embodiment, process flow shown in FIG. 1 is described in detail, content can be as Under:
Step 101, target image frame to be shown in acquisition target video and the display time point with target image frame Corresponding barrage comment information.
In an implementation, the video playback class application program for playing video can be installed, user can make in terminal Video is played online with the video playback class application program.When user needs to play some video (i.e. target video) online, Video playback class application program on-line search target video can be used, user's click play target video, terminal then may be used later To download the video file of target video from the server of above-mentioned video playback class application program, may include in video file The picture frame and barrage comment information of video.In this way, during playing target video, in the available target video of terminal Target image frame to be shown can show that rule determines that the time point of target image frame is corresponding according to preset barrage simultaneously Barrage comment information, specifically, preset barrage display rule in can recorde barrage comment information start show position Set, barrage rotating direction, barrage roll duration etc., in this way, can to determine that the time point of target image frame needs to be shown for terminal All barrage comment informations.It should be noted that terminal can only download preset number after present frame when playing target video The video file of frame, it can cache subsequent partial video content to be played in advance, achieve the effect that deposit when broadcasting.
Step 102, displaying target picture frame and barrage comment information in video layer child window.
In an implementation, during playing target video, terminal can show the video image in video file frame by frame Data and barrage comment information, specifically, when playback progress reaches the time point of a certain frame (i.e. target image frame), at this time eventually End has obtained target image frame and barrage comment information to be shown.Video playback class application program can load above-mentioned target figure As frame and barrage comment information, then displaying target picture frame and barrage comment are believed in the video layer child window of broadcast window Breath, it will be understood that barrage comment information is shown in video layer child window, and without output in barrage straton window, such as Fig. 3 institute Show.Herein, if target frame correspondence is stored with a plurality of barrage data, whole barrage data can be shown, it can also be according to pre- If screening rule selected section barrage data, if target frame correspondence be stored with barrage data, mesh can be directly displayed Logo image frame.
Optionally, terminal can first mix video data and barrage data, then show in video layer child window Show mixed video data and barrage data, the processing of step 102 can be accordingly as follows: commenting according to target image frame and barrage By information, target video barrage hybrid frame, the displaying target video barrage hybrid frame in video layer child window are generated.
In an implementation, terminal, can be to target figure after getting target image frame and barrage comment information to be shown As frame and barrage comment information carry out synthesis processing, generation target video barrage hybrid frame, i.e., in target video barrage hybrid frame Including target image frame and barrage comment information, further, rule can be shown according to preset barrage, determine target video The display position of each barrage comment information in barrage hybrid frame.In this way, when play target video target image frame extremely when Between when putting, can in video layer child window displaying target video barrage hybrid frame, i.e. displaying target picture frame and barrage comment Information.It should be noted that on the one hand, the processing of above-mentioned generation target barrage video mix frame can be completed by the CPU of terminal, Specifically, the frame data and barrage comment information that the CPU of terminal can first will acquire carry out at mixing when playing video Reason generates the mixing frame data of video barrage, and mixing frame data are then transferred to GPU and are handled, so that GPU can basis It mixes frame data and generates corresponding video barrage hybrid frame, and video barrage hybrid frame is stored into video memory;On the other hand, on State generate target barrage video mix frame processing can also be completed by the GPU of terminal, specifically, the CPU of terminal can first by The frame data got are transmitted directly to GPU, and GPU then can generate picture frame according to frame data, and later, the CPU of terminal can be with Barrage comment information is transferred to GPU again, barrage comment information can then be mixed with generated picture frame, be obtained by GPU It stores to video barrage hybrid frame, and by video barrage hybrid frame into video memory.
Optionally, terminal can first generate barrage image, then mix barrage image and video image, accordingly , the processing of above-mentioned generation target video barrage hybrid frame can be such that raw by barrage layered relationship according to barrage comment information At target barrage frame, target image frame and target barrage frame are overlapped according to default layered relationship, generate target video bullet Curtain hybrid frame.
It in an implementation, can be first according to barrage after terminal gets target image frame and barrage comment information to be shown Comment information generates corresponding target barrage frame, specifically, terminal can first create the size of one with target image frame Identical blank image shows that rule determines the display position of every barrage comment information to be shown further according to preset barrage It sets and barrage layered relationship, is then added to all barrage comment informations to be shown according to above-mentioned barrage layered relationship In the blank image at corresponding display position, so as to generate target barrage image, later, terminal can be by target image Frame and target barrage frame are overlapped according to default layered relationship (i.e. target barrage framing bit is in the upper layer of target video frame), are generated Target video barrage hybrid frame, as shown in Figure 4.
Optionally, barrage data can be added in video image by terminal one by one, correspondingly, above-mentioned generation target video The processing of barrage hybrid frame, which can be such that, is successively added to target image frame by barrage layered relationship for barrage comment information, raw At target video barrage hybrid frame.
In an implementation, terminal, can be first according to pre- after getting target image frame and barrage comment information to be shown If barrage display rule determine every barrage data in the display position at the time point of target image frame, later according to barrage layer All barrage comment informations are successively added to the corresponding region in above-mentioned display position in target image frame, barrage layer by folded relationship Folded relationship can be record time forward barrage comment information and be in lower layer, records the barrage comment information of time rearward and is in Upper layer, in this way, then can be generated after barrage comment information to be shown within the time point of all target image frames has all been added Target video barrage hybrid frame, as shown in Figure 5.
Optionally, the switch state based on barrage display function, terminal have different processing accordingly: if barrage is shown Function is in the open state, then the displaying target video barrage hybrid frame in video layer child window;If at barrage display function In closed state, then the displaying target picture frame in video layer child window.
In an implementation, during playing target video, the barrage that user can click in video playback window is shown Key, to be turned on or off barrage display function.Regardless of whether barrage display function opens, terminal can be obtained first to aobvious The picture frame shown and corresponding barrage comment information, and according to picture frame and barrage comment information, video barrage hybrid frame is generated, Video barrage hybrid frame is stored into caching again.In this way, terminal can detecte whether barrage display function opens, if barrage Display function is in the open state, terminal then can in video layer child window displaying target video barrage hybrid frame, if bullet Curtain display function is in close state, then the displaying target picture frame in video layer child window.
In the embodiment of the present invention, obtain target image frame to be shown in target video and with target image frame when Between put corresponding barrage comment information, displaying target picture frame and barrage comment information in video layer child window.In this way, eventually End in video layer child window while can show picture frame and barrage comment information when playing video, and user will not be because of The lamination order of barrage straton window and video layer child window changes, and can not see barrage comment information.
Based on the same technical idea, the embodiment of the invention also provides a kind of devices for showing video barrage, such as Fig. 6 institute Show, which includes:
Obtain module 601, for obtain target image frame to be shown in target video and with the target image frame Time point corresponding barrage comment information;
Display module 602, for showing the target image frame and the barrage comment information in video layer child window.
Optionally, as shown in fig. 7, the display module 602, comprising:
Submodule 6021 is generated, for generating target video according to the target image frame and the barrage comment information Barrage hybrid frame;
Display sub-module 6022, for showing the target video barrage hybrid frame in video layer child window.
Optionally, as shown in figure 8, the generation submodule 6021, comprising:
Generation unit 60211, for generating target barrage frame by barrage layered relationship according to the barrage comment information;
Superpositing unit 60212, for according to default layered relationship to the target image frame and the target barrage frame into Row superposition, generates target video barrage hybrid frame.
Optionally, the generation submodule 6021, is used for:
The barrage comment information is added to the target image frame by barrage layered relationship one by one, generates target video Barrage hybrid frame.
Optionally, the display sub-module 6022, is used for:
If barrage display function is in the open state, show that the target video barrage is mixed in video layer child window Close frame;
If barrage display function is in close state, the target image frame is shown in video layer child window.
In the embodiment of the present invention, obtain target image frame to be shown in target video and with target image frame when Between put corresponding barrage comment information, displaying target picture frame and barrage comment information in video layer child window.In this way, eventually End in video layer child window while can show picture frame and barrage comment information when playing video, and user will not be because of The lamination order of barrage straton window and video layer child window changes, and can not see barrage comment information.
It should be understood that it is provided by the above embodiment display video barrage device when showing video barrage, only with The division progress of above-mentioned each functional module can according to need and for example, in practical application by above-mentioned function distribution by not Same functional module is completed, i.e., the internal structure of device is divided into different functional modules, to complete whole described above Or partial function.In addition, the device of display video barrage provided by the above embodiment and the method for display video barrage are implemented Example belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Referring to FIG. 9, a present invention also exemplary embodiment proposes a kind of structural schematic diagram of terminal, which can be with The method of display video barrage for implementing to provide in above-described embodiment.Specifically:
Terminal 900 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meter The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, the processing for including one or more than one processing core The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 9 is not constituted pair The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.Wireless communication, which can be used, appoints (Global System of Mobile communication, the whole world are moved for one communication standard or agreement, including but not limited to GSM Dynamic communication system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 900 According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 500 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearby After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch event Corresponding visual output is provided on display panel 141.Although touch sensitive surface 131 and display panel 141 are conducts in Fig. 9 Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 900 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 900 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 900.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110 End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 900, it can according to need completely Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 900, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 900, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 900 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal 900 is touch-screen display, and terminal 900 further includes having memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with Upper processor execution states one or more than one program includes the instruction for performing the following operation:
Obtain in target video target image frame to be shown and corresponding with the time point of the target image frame Barrage comment information;
The target image frame and the barrage comment information are shown in video layer child window.
It is optionally, described that the target image frame and the barrage comment information are shown in video layer child window, comprising:
According to the target image frame and the barrage comment information, target video barrage hybrid frame is generated;
The target video barrage hybrid frame is shown in video layer child window.
Optionally, described that the mixing of target video barrage is generated according to the target image frame and the barrage comment information Frame, comprising:
Target barrage frame is generated by barrage layered relationship according to the barrage comment information;
The target image frame and the target barrage frame are overlapped according to default layered relationship, generate target video Barrage hybrid frame.
Optionally, described that the mixing of target video barrage is generated according to the target image frame and the barrage comment information Frame, comprising:
The barrage comment information is added to the target image frame by barrage layered relationship one by one, generates target video Barrage hybrid frame.
Optionally, described to be based on the target video barrage hybrid frame, the target figure is shown in video layer child window As frame and the barrage comment information, comprising:
If barrage display function is in the open state, show that the target video barrage is mixed in video layer child window Close frame;
The method also includes:
If barrage display function is in close state, the target image frame is shown in video layer child window.
In the embodiment of the present invention, obtain target image frame to be shown in target video and with target image frame when Between put corresponding barrage comment information, displaying target picture frame and barrage comment information in video layer child window.In this way, eventually End in video layer child window while can show picture frame and barrage comment information when playing video, and user will not be because of The lamination order of barrage straton window and video layer child window changes, and can not see barrage comment information.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of method for showing video barrage, which is characterized in that the described method includes:
Obtain target image frame and barrage corresponding with the time point of the target image frame to be shown in target video Comment information;
According to the target image frame and the barrage comment information, the mixing of target video barrage is generated according to default layered relationship Frame, the default layered relationship are the upper layer that the barrage comment information is located at the target image frame;
The target video barrage hybrid frame is shown in video layer child window, the video layer child window is located at video playing window In mouthful, the video playback window includes barrage straton window and video layer child window, and the barrage straton window is located at video Straton window upper layer.
2. the method according to claim 1, wherein described comment on according to the target image frame and the barrage Information generates target video barrage hybrid frame according to default layered relationship, comprising:
Target barrage frame is generated by barrage layered relationship according to the barrage comment information;
The target image frame and the target barrage frame are overlapped according to default layered relationship, generate target video barrage Hybrid frame.
3. the method according to claim 1, wherein according to the target image frame and barrage comment letter Breath generates target video barrage hybrid frame according to default layered relationship, comprising:
The barrage comment information is added to the target image frame by barrage layered relationship one by one, generates target video barrage Hybrid frame.
4. being regarded the method according to claim 1, wherein described be based on the target video barrage hybrid frame The target image frame and the barrage comment information are shown in frequency straton window, comprising:
If barrage display function is in the open state, the target video barrage mixing is shown in video layer child window Frame;
The method also includes:
If barrage display function is in close state, the target image frame is shown in video layer child window.
5. a kind of device for showing video barrage, which is characterized in that described device includes:
Module is obtained, the time for obtaining target image frame to be shown in target video and with the target image frame The corresponding barrage comment information of point;
Display module, for showing the target image frame and the barrage comment information, the view in video layer child window Frequency straton window is located in video playback window, and the video playback window includes barrage straton window and video layer child window, The barrage straton window is located at video layer child window upper layer;
Wherein, the display module includes:
Submodule is generated, for being generated according to default layered relationship according to the target image frame and the barrage comment information Target video barrage hybrid frame, the default layered relationship are that the barrage comment information is located at the upper of the target image frame Layer;
Display sub-module, for showing the target video barrage hybrid frame in video layer child window.
6. device according to claim 5, which is characterized in that the generation submodule, comprising:
Generation unit, for generating target barrage frame by barrage layered relationship according to the barrage comment information;
Superpositing unit, it is raw for being overlapped according to default layered relationship to the target image frame and the target barrage frame At target video barrage hybrid frame.
7. device according to claim 5, which is characterized in that the generation submodule is used for:
The barrage comment information is added to the target image frame by barrage layered relationship one by one, generates target video barrage Hybrid frame.
8. device according to claim 5, which is characterized in that the display sub-module is used for:
If barrage display function is in the open state, the target video barrage mixing is shown in video layer child window Frame;
If barrage display function is in close state, the target image frame is shown in video layer child window.
CN201610909408.XA 2016-10-18 2016-10-18 A kind of method and apparatus showing video barrage Active CN106488296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610909408.XA CN106488296B (en) 2016-10-18 2016-10-18 A kind of method and apparatus showing video barrage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610909408.XA CN106488296B (en) 2016-10-18 2016-10-18 A kind of method and apparatus showing video barrage

Publications (2)

Publication Number Publication Date
CN106488296A CN106488296A (en) 2017-03-08
CN106488296B true CN106488296B (en) 2019-06-11

Family

ID=58269770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610909408.XA Active CN106488296B (en) 2016-10-18 2016-10-18 A kind of method and apparatus showing video barrage

Country Status (1)

Country Link
CN (1) CN106488296B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222790A (en) * 2017-05-22 2017-09-29 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for sending barrage
CN107911708B (en) * 2017-11-09 2022-04-05 腾讯数码(天津)有限公司 Barrage display method, live broadcast method and related devices
CN108540850A (en) * 2018-03-27 2018-09-14 优酷网络技术(北京)有限公司 Barrage display methods and device
CN109348252B (en) * 2018-11-01 2020-01-10 腾讯科技(深圳)有限公司 Video playing method, video transmission method, device, equipment and storage medium
CN109543068A (en) * 2018-11-30 2019-03-29 北京字节跳动网络技术有限公司 Method and apparatus for generating the comment information of video
CN111372140A (en) * 2020-03-04 2020-07-03 网易(杭州)网络有限公司 Barrage adjusting method and device, computer readable storage medium and electronic equipment
CN111565337A (en) * 2020-04-26 2020-08-21 华为技术有限公司 Image processing method and device and electronic equipment
CN111796900A (en) * 2020-07-23 2020-10-20 深圳利亚德光电有限公司 Display control method and device of electronic conference system and electronic conference system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002300513A (en) * 2001-03-30 2002-10-11 Minolta Co Ltd Electronic camera
CN104936035A (en) * 2015-06-19 2015-09-23 腾讯科技(北京)有限公司 Barrage processing method and system
CN104967896A (en) * 2014-08-04 2015-10-07 腾讯科技(北京)有限公司 Method for displaying bulletscreen comment information, and apparatus thereof
CN105338410A (en) * 2014-07-07 2016-02-17 乐视网信息技术(北京)股份有限公司 Method and device for displaying barrage of video
CN105578209A (en) * 2015-12-16 2016-05-11 广州酷狗计算机科技有限公司 Pop-up screen display method and apparatus
CN105763950A (en) * 2014-12-19 2016-07-13 中兴通讯股份有限公司 Bullet screen display method and system
CN105872709A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Display method and device of bullet screen information
CN105898560A (en) * 2016-03-31 2016-08-24 广州华多网络科技有限公司 Video editing method and device
CN105979288A (en) * 2016-06-17 2016-09-28 乐视控股(北京)有限公司 Video interception method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631877B2 (en) * 2006-01-26 2009-12-15 Battenfeld Technologies, Inc. Firearm targets and methods for manufacturing firearm targets

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002300513A (en) * 2001-03-30 2002-10-11 Minolta Co Ltd Electronic camera
CN105338410A (en) * 2014-07-07 2016-02-17 乐视网信息技术(北京)股份有限公司 Method and device for displaying barrage of video
CN104967896A (en) * 2014-08-04 2015-10-07 腾讯科技(北京)有限公司 Method for displaying bulletscreen comment information, and apparatus thereof
CN105763950A (en) * 2014-12-19 2016-07-13 中兴通讯股份有限公司 Bullet screen display method and system
CN104936035A (en) * 2015-06-19 2015-09-23 腾讯科技(北京)有限公司 Barrage processing method and system
CN105578209A (en) * 2015-12-16 2016-05-11 广州酷狗计算机科技有限公司 Pop-up screen display method and apparatus
CN105872709A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Display method and device of bullet screen information
CN105898560A (en) * 2016-03-31 2016-08-24 广州华多网络科技有限公司 Video editing method and device
CN105979288A (en) * 2016-06-17 2016-09-28 乐视控股(北京)有限公司 Video interception method and device

Also Published As

Publication number Publication date
CN106488296A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106101736B (en) A kind of methods of exhibiting and system of virtual present
CN106488296B (en) A kind of method and apparatus showing video barrage
CN106454404B (en) A kind of methods, devices and systems playing live video
CN106331826B (en) A kind of methods, devices and systems of setting live streaming template and video mode
CN106933525B (en) A kind of method and apparatus showing image
CN104618217B (en) Share method, terminal, server and the system of resource
CN105554550B (en) Video broadcasting method and device
CN105828145B (en) Interactive approach and device
CN104965843B (en) A kind of method and device obtaining comment information
CN105808060B (en) A kind of method and apparatus of playing animation
CN107438200A (en) The method and apparatus of direct broadcasting room present displaying
CN106791892A (en) It is a kind of to take turns the live methods, devices and systems of wheat
CN104036536B (en) The generation method and device of a kind of stop-motion animation
CN104159140B (en) A kind of methods, devices and systems of Video processing
CN104869465B (en) video playing control method and device
CN104679381B (en) Switch the method and device of chat window
CN106791955B (en) A kind of method and system of determining live streaming duration
CN104602135B (en) Control the method and device of played in full screen
CN106504303B (en) A kind of method and apparatus playing frame animation
CN107396193B (en) The method and apparatus of video playing
CN104519262B (en) Obtain the method, apparatus and terminal of video data
CN104093053B (en) Method, equipment and the system of playing video file
CN104516624B (en) A kind of method and device inputting account information
CN104991699B (en) A kind of method and apparatus of video display control
CN106303605B (en) A kind of methods, devices and systems to send a notification message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant