CN110324692B - Live broadcast room processing method and device for playing videos through small window - Google Patents

Live broadcast room processing method and device for playing videos through small window Download PDF

Info

Publication number
CN110324692B
CN110324692B CN201810291257.5A CN201810291257A CN110324692B CN 110324692 B CN110324692 B CN 110324692B CN 201810291257 A CN201810291257 A CN 201810291257A CN 110324692 B CN110324692 B CN 110324692B
Authority
CN
China
Prior art keywords
live broadcast
room
playing
video
broadcast room
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
CN201810291257.5A
Other languages
Chinese (zh)
Other versions
CN110324692A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810291257.5A priority Critical patent/CN110324692B/en
Publication of CN110324692A publication Critical patent/CN110324692A/en
Application granted granted Critical
Publication of CN110324692B publication Critical patent/CN110324692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a live broadcast room processing method and a device for playing videos in a small window, wherein the method comprises the following steps: creating a live broadcast page and a dialog box in a hidden state, wherein the live broadcast page comprises a video playing layer and a room listing layer; displaying a live broadcast window of a target live broadcast room and a first small window playing option corresponding to the target live broadcast room on a video playing layer; when the triggering operation of the first small window playing option is detected, acquiring a room ID of a target live broadcast room according to the triggering operation of the first small window playing option; generating a small window playing request based on the room ID of the target live broadcast room, and sending the small window playing request to a server so as to obtain target video information from the server, wherein the target video information comprises a video stream address of the target live broadcast room; and playing the live video of the target live broadcast room in the dialog box based on the video stream address of the target live broadcast room. The live broadcast room processing method and the live broadcast room processing device reduce the area of a display occupied by a live broadcast window.

Description

Live broadcast room processing method and device for playing videos through small window
Technical Field
The invention relates to the technical field of information processing, in particular to a live broadcast room processing method and device for playing videos in a small window.
Background
With the progress of network communication technology and the increasing speed of broadband networks, the video live broadcast technology is developed and applied more and more.
Currently, with the change of user's needs, a user may want to watch live while working, studying or browsing a web page. The existing live broadcast window is complex and occupies a large area on a display. If the user watches live broadcast while working, learning or browsing the web page, the display area reserved for the user to work, learn or browse the web page is too small.
Therefore, the technical problem that the display area occupied by the live broadcast window is overlarge exists in the prior art.
Disclosure of Invention
The invention aims to solve the problem that the display area occupied by the existing live broadcast window is too large.
The invention is realized by the following technical scheme:
a live broadcast room processing method for playing videos in a small window comprises the following steps:
creating a live broadcast page and a dialog box in a hidden state, wherein the live broadcast page comprises a video playing layer and a room listing layer, and the room listing layer is in the hidden state when the video playing layer is displayed;
displaying a live broadcast window of a target live broadcast room and a first small window playing option corresponding to the target live broadcast room on the video playing layer;
when the triggering operation of the first small window playing option is detected, acquiring a room ID of the target live broadcast room according to the triggering operation of the first small window playing option;
generating a small window playing request based on the room ID of the target live broadcast room, and sending the small window playing request to a server so as to obtain target video information from the server, wherein the target video information comprises a video stream address of the target live broadcast room;
and playing the live video of the target live broadcast room in the dialog box based on the video stream address of the target live broadcast room.
Optionally, after detecting the triggering operation of the first widget playing option, the method further includes:
and closing a live broadcast window of the target live broadcast room.
Optionally, after the dialog box plays the live video of the target live broadcast room based on the video stream address of the target live broadcast room, the method further includes:
displaying a main window playing option in the dialog box;
and when the triggering operation of the main window playing option is detected, hiding the dialog box, and playing the live video of the target live broadcast room on the video playing layer.
Optionally, after the dialog box plays the live video of the target live broadcast room based on the video stream address of the target live broadcast room, the method further includes:
displaying a close widget option in the dialog box;
and hiding the dialog box after detecting the triggering operation of the small window closing option.
Optionally, after the dialog box plays the live video of the target live broadcast room based on the video stream address of the target live broadcast room, the method further includes:
displaying a live broadcast window of a first live broadcast room and a second small window playing option corresponding to the first live broadcast room on the video playing layer;
after the triggering operation of the second small window playing option is detected, hiding the dialog box, and obtaining a room ID of the first live broadcast room according to the triggering operation of the second small window playing option;
generating a small window playing request based on the room ID of the first live broadcast room, and sending the small window playing request to a server so as to acquire first video information from the server, wherein the first video information comprises a video stream address of the first live broadcast room;
and playing the live video of the first live broadcast room in the dialog box based on the video stream address of the first live broadcast room.
Optionally, after detecting the triggering operation of the second widget playing option, the method further includes:
and playing the live broadcast video of the target live broadcast room on the video playing layer.
Optionally, the target video information further includes room information of the target live broadcast room, and after the dialog box plays the live video of the target live broadcast room based on the video stream address of the target live broadcast room, the method further includes:
and displaying the room information of the target live room in the dialog box.
The invention also provides a live broadcast room processing device for playing videos in a small window, which comprises:
the system comprises a creating module, a displaying module and a displaying module, wherein the creating module is used for creating a live broadcast page and a dialog box in a hidden state, the live broadcast page comprises a video playing layer and a room list layer, and the room list layer is in the hidden state when the video playing layer is displayed;
the display module is used for displaying a live broadcast window of a target live broadcast room and a first small window playing option corresponding to the target live broadcast room on the video playing layer;
the obtaining module is used for obtaining the room ID of the target live broadcast room according to the triggering operation of the first small window playing option after the triggering operation of the first small window playing option is detected;
the generating module is used for generating a small window playing request based on the room ID of the target live broadcast room;
the receiving and sending module is used for sending the small window playing request to a server so as to obtain target video information from the server, wherein the target video information comprises a video stream address of the target live broadcast room;
and the playing module is used for playing the live video of the target live broadcast room in the dialog box based on the video stream address of the target live broadcast room.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the above-described live room processing method for implementing a small-window played video.
The invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and is characterized in that the live broadcast room processing method for playing videos in the small window is realized when the processor executes the program.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the live broadcast room processing method and device for realizing the small window video playing provided by the invention also create a dialog box in a hidden state when a live broadcast page is created, obtain a room ID of the target live broadcast room according to the triggering operation of a first small window playing option displayed on a video playing layer after the triggering operation of the first small window playing option is detected, generate a small window playing request based on the room ID of the target live broadcast room, send the small window playing request to a server, obtain a video stream address of the target live broadcast room from the server, and play the live broadcast video of the target live broadcast room in the dialog box based on the video stream address of the target live broadcast room. The dialog box is adopted as the live broadcast window, the interface of the dialog box is simple, the dialog box can be zoomed, and the dialog box can be set to be displayed on the top layer, so that the live broadcast window of the live broadcast video is simplified, the area of a display occupied by the live broadcast window is reduced, and a user can conveniently watch the live broadcast and perform other operations on the terminal.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
fig. 1 is a schematic flowchart of a live broadcast room processing method for implementing a small window playing video according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a live broadcast room processing apparatus for implementing small-window video playing according to an embodiment of the present invention;
fig. 3 is a schematic overall structure diagram of a computer device for implementing a small window to play a video according to an embodiment of the present invention.
Detailed Description
The invention provides a live broadcast room processing method and device for playing videos through small windows, and aims to solve the problem that in the prior art, a live broadcast window occupies too large area of a display.
The technical scheme in the embodiment of the application has the following general idea:
creating a live broadcast page and a dialog box in a hidden state, wherein the live broadcast page comprises a video playing layer and a room listing layer, and the room listing layer is in the hidden state when the video playing layer is displayed; displaying a live broadcast window of a target live broadcast room and a first small window playing option corresponding to the target live broadcast room on the video playing layer; when the triggering operation of the first small window playing option is detected, acquiring a room ID of the target live broadcast room according to the triggering operation of the first small window playing option; generating a small window playing request based on the room ID of the target live broadcast room, and sending the small window playing request to a server so as to obtain target video information from the server, wherein the target video information comprises a video stream address of the target live broadcast room; and playing the live video of the target live broadcast room in the dialog box based on the video stream address of the target live broadcast room.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Example 1
The embodiment provides a live broadcast room processing method for playing videos in a small window, which is applied to a terminal. Fig. 1 is a schematic flowchart of the live broadcast room processing method for implementing small window video playing, including:
step S11, creating a live broadcast page and a dialog box in a hidden state, wherein the live broadcast page comprises a video playing layer and a room listing layer, and the room listing layer is in the hidden state when the video playing layer is displayed.
Specifically, because the live broadcast rooms include a plurality of live broadcast rooms, the server is provided with a roomManager room manager, each live broadcast room is provided with a room network interface, the server can communicate with the room interfaces on the terminals through the roomManager, and the management of each live broadcast room is realized. The live page may be implemented by:
a1: creating a window object Qt, and enabling the window object to inherit QQuickView and instantiate;
a2: creating a QQQmlApplicationEngine engine object in Qt for analyzing and creating the ui interface control, wherein the program is realized as follows:
m_engine=new QQmlApplicationEngine(this),
wherein, the m _ engine is an engine object, the QQQmlApplicationEngine is an engine, and the this is a parent class of the QQQmlApplicationEngine;
a3: acquiring a QQQmlContext address in a QQQmlApplicationEngine object, and using the QQmlContext address to bind the object in the Qt, wherein the program is realized as follows:
QQmlContext*context=m_engine->rootContext(),
wherein, QQmlContext is the Context of qml files, and rootContext () is the calling method for obtaining the Context of the root node of Context;
a4: the preset qml file path is set, and the following is realized:
context->setContextPdoperty("_app_path",appPath),
the context- > setcontextproperty is a method for calling a file path, the appPath is a main window file path in a window object, and all ui interface controls of the live broadcast page are loaded through the path;
a5: binding the roomManager objects to the QML context facilitates the invocation of roomManager at QML, each live window interface having a room interface requesting the server, since each live window interface requires a request for a web interface, and a list of all room interfaces (room web interfaces) is maintained in roomManager.
The live page includes two layers: a video playing layer and a room list layer. When the video playing layer is displayed, the room listing layer is in a hidden state, and a user can watch live broadcast of the video playing layer conveniently. In this embodiment, the video playback layer includes a live window of a plurality of live rooms and a live room switching option. The live broadcast room switching option can be realized in a tab paging mode or other modes, and the number of items of the live broadcast room switching option can be set according to specific conditions, such as the size of a terminal display screen, the configuration of a terminal and the like. Each live room switching option corresponds to one live window, and the number of the live windows may be 10, 8, 5, and the like, which is not specifically limited herein.
In a specific implementation process, the room list layer includes a list implementation portion and a data implementation portion, where the list implementation portion is specifically as follows:
b1: adding a gridView control in the qml file, wherein the gridView control is used for displaying a live-view panel style;
b2: setting general attributes of the gridView control, wherein the general attributes are used for setting the format of a panel style of the live broadcast room, such as the position, the size and the size of each node, and each node refers to each live broadcast room in a live broadcast page;
b3: and adding a view display agent for realizing panel styles of all live rooms, wherein the panel styles of all the live rooms are the same and only data is different, the room panel styles refer to the styles of all the live room nodes in the list, and the panel styles are fixed.
The data implementation part is concretely as follows:
c1: after the window object of the live broadcast page is established, sending a get request to a server to acquire list information of all live broadcast rooms;
c2: acquiring room list information in a json format (JavaScript Object Notation, a JS Object Notation, which is a lightweight data exchange format) returned by a server, and analyzing the room list information, wherein the server returns array information in the json format, so that the array information needs to be analyzed to acquire list information of each room, and the list information comprises a room name, a main broadcasting name, the number of people on line and the like;
c3: constructing a view display model, and adding the analyzed list information into the view display model;
c4: setting the constructed view display model to a view display control: and setting data of a view display model in the gridView control, and supplementing the data into a room list.
After the implementation of the room list layer is introduced, the implementation process of the video playing layer is introduced as follows:
d1: adding a TabView control and a player control in the qml file, wherein the TabView control and the player control are used for playing video data of a live broadcast room;
d2: setting the attributes of the TabView control, such as size, position and the like;
d3: adding a Component and adding split pages in the Component, wherein each split page represents a live broadcast window interface of a live broadcast room, and each split page only comprises a player control.
The creating and implementing process of the dialog box is similar to the implementing manner of the live broadcast page, and reference may be specifically made to the descriptions of the foregoing steps a 1-a 5 and steps D1-D3, which are not described herein again. Further, the dialog box may be set as a modeless dialog box displayed on the top layer when setting the property of the dialog box.
And step S12, displaying a live broadcast window of a target live broadcast room and a first small window playing option corresponding to the target live broadcast room on the video playing layer.
Specifically, each live broadcast room is correspondingly provided with a small window playing option. The live broadcast window of the target live broadcast room is a live broadcast window which is watched by a user currently, and a small window playing option corresponding to the live broadcast window of the target live broadcast room is named as a first small window playing option for convenience of description. And opening the target live broadcast room before displaying the live broadcast window of the target live broadcast room and the first small window playing option. And when the user enters the target live broadcast room for the first time, clicking the operation of entering the target live broadcast room, thereby generating a request for entering the target live broadcast room. In a specific implementation process, after receiving an entry request of the target live broadcast room, the server acquires a room network interface of the target live broadcast room through a roomManager object, then caches the room network interface of the target live broadcast room in a player control, and the terminal monitors video information returned by the server, such as room information, a video stream address, gift information and the like.
The method comprises the steps that a post request is sent to a server to acquire a video stream address of the target live broadcast room through a room ID of the target live broadcast room in a room network interface of the target live broadcast room, when video stream address information in a json format returned by the server is received, videos of the video stream address are played through a player control, and a first small window playing option is displayed on a live broadcast window of the target live broadcast room. Furthermore, a get request can be sent to the server through the room ID of the target live broadcast room in the room network interface of the target live broadcast room to acquire the room information of the target live broadcast room, and then the room information in the json format returned by the server is displayed on a live broadcast window of the target live broadcast room.
Step S13, after the trigger operation of the first widget playing option is detected, obtaining the room ID of the target live broadcast room according to the trigger operation of the first widget playing option.
Specifically, the trigger operation may be a mouse click operation or a screen click operation. And a triggering operation signal is generated by clicking operation, the triggering operation signal throws a message, the message carries the room ID of the target live broadcast room, and the room ID of the target live broadcast room is the unique identifier of the target live broadcast room, so that the room ID of the target live broadcast room can be obtained according to the message thrown by the triggering operation signal.
Step S14, generating a small window playing request based on the room ID of the target live broadcast room, and sending the small window playing request to a server to obtain target video information from the server, wherein the target video information comprises a video stream address of the target live broadcast room.
Specifically, the small window playing request is converted based on the room ID of the target live broadcast room, and a post request is sent to a server through the room ID of the target live broadcast room to obtain a video stream address of the target live broadcast room, so as to obtain json format video stream address information from the server; and sending a get request to a server to acquire the room information of the target live broadcast room through the room ID of the target live broadcast room so as to acquire the room information in a json format from the server.
And step S15, based on the video stream address of the target live broadcast room, playing the live broadcast video of the target live broadcast room in the dialog box.
Specifically, after receiving json format video stream address information and room information returned by the server, the live video of the target live broadcast room can be played in the dialog box by setting the video stream address of the player control in the dialog box as the video stream address of the target live broadcast room and displaying the dialog box. And, room information of the target live room may be displayed in the dialog box.
Based on the same inventive concept, the invention also provides a live broadcast room processing method for realizing small-window video playing, which is specifically referred to embodiment 2.
Example 2
In the live broadcast room processing method for implementing a small window playing video according to this embodiment, after the trigger operation of the first small window playing option is detected in embodiment 1, the method further includes: and closing a live broadcast window of the target live broadcast room. By closing the live broadcast window of the target live broadcast room, only the dialog box is used for playing the live broadcast video of the target live broadcast room, the situation that two windows are opened simultaneously to watch the live broadcast video of the same live broadcast room is avoided, and system resources can be saved.
Specifically, the current cut page of the target live broadcast room can be obtained through a TabView control getTab method and a current cut page index, then a cached room network interface is obtained in the current cut page, the current cut page is deleted through a TabView control removedTab method, and the room network interface of the target live broadcast room is deleted from a roommager of the server, so that each live broadcast room is managed, and resource utilization is facilitated.
Based on the same inventive concept, the invention also provides a live broadcast room processing method for realizing small-window video playing, which is specifically referred to as embodiment 3.
Example 3
In the live broadcast room processing method for implementing video playing in a small window according to this embodiment, after the dialog box plays the live broadcast video in the target live broadcast room based on the video stream address in the target live broadcast room in embodiment 1, the method further includes:
displaying a main window playing option in the dialog box;
and when the triggering operation of the main window playing option is detected, hiding the dialog box, and playing the live video of the target live broadcast room on the video playing layer.
Specifically, the home window play option may be set when the dialog box is created. The triggering operation of the main window playing option is similar to the triggering operation of the first small window playing option, the dialog box can be hidden through the triggering operation of the main window playing option, and the room ID of the target live broadcast room can also be obtained. And after the dialog box is hidden, the player control in the dialog box suspends playing. After the room ID of the target live broadcast room is obtained, similar to the first time of entering the target live broadcast room, the live broadcast video of the target live broadcast room is played again on the video playing layer of the live broadcast page. The live broadcast room processing method for realizing the small-window video playing provided by the embodiment can switch the live broadcast video being watched to the original main-window video playing when the user does not need to play the live broadcast video through the small window.
Based on the same inventive concept, the invention also provides a live broadcast room processing method for realizing small-window video playing, which is specifically referred to as embodiment 4.
Example 4
In the live broadcast room processing method for implementing video playing in a small window according to this embodiment, after the dialog box plays the live broadcast video in the target live broadcast room based on the video stream address in the target live broadcast room in embodiment 1, the method further includes:
displaying a close widget option in the dialog box;
and hiding the dialog box after detecting the triggering operation of the small window closing option.
In particular, the close widget option may be set when the dialog box is created. The triggering operation of the close widget option is similar to the triggering operation of the first widget playing option, and the dialog box can be hidden through the triggering operation of the close widget option. And after the dialog box is hidden, the player control in the dialog box suspends playing. The live broadcast room processing method for playing videos in a small window provided by the embodiment can close the dialog box when the user does not want to watch live broadcast videos.
Based on the same inventive concept, the invention also provides a live broadcast room processing method for realizing small-window video playing, which is specifically referred to as embodiment 5.
Example 5
In the live broadcast room processing method for implementing video playing in a small window according to this embodiment, after the dialog box plays the live broadcast video in the target live broadcast room based on the video stream address in the target live broadcast room in embodiment 1, the method further includes:
displaying a live broadcast window of a first live broadcast room and a second small window playing option corresponding to the first live broadcast room on the video playing layer;
after the triggering operation of the second small window playing option is detected, hiding the dialog box, and obtaining a room ID of the first live broadcast room according to the triggering operation of the second small window playing option;
generating a small window playing request based on the room ID of the first live broadcast room, and sending the small window playing request to a server so as to acquire first video information from the server, wherein the first video information comprises a video stream address of the first live broadcast room;
and playing the live video of the first live broadcast room in the dialog box based on the video stream address of the first live broadcast room.
Specifically, the video playing layer includes live broadcast windows of a plurality of live broadcast rooms, so that after the live broadcast window of the target live broadcast room is switched to a small window for watching for a period of time, a user may not be interested in the live broadcast video of the target live broadcast room and wants to switch the live broadcast window of another live broadcast room to a small window for watching. For convenience of description, in this embodiment, a live broadcast room to be switched to a small window for viewing is named as a first live broadcast room, and a small window playing option corresponding to the first live broadcast room is named as a second small window playing option. And when the triggering operation of the second small window playing option is detected, hiding the dialog box, and pausing the playing of a player control in the dialog box. The specific implementation process of playing the live video of the first live broadcast room in the dialog box is similar to the specific implementation process of playing the live video of the target live broadcast room in the dialog box, and is not repeated here.
Based on the same inventive concept, the invention also provides a live broadcast room processing method for realizing small-window video playing, which is specifically referred to as embodiment 6.
Example 6
In the live broadcast room processing method for implementing a small window playing video provided in this embodiment, after the trigger operation of the second small window playing option is detected in embodiment 5, the method further includes:
and playing the live broadcast video of the target live broadcast room on the video playing layer.
The live broadcast room processing method for implementing video playing in a small window provided by this embodiment is similar to that in embodiment 5, and the difference is that: in this embodiment, after the triggering operation of the second small window playing option is detected, the dialog box is hidden, and the live video in the target live broadcast room is switched to be played in the original main window.
Based on the same inventive concept, the invention further provides a live broadcast room processing device for realizing the video playing through the small window, which is specifically referred to as embodiment 7.
Example 7
Fig. 2 is a schematic structural diagram of the live broadcast room processing apparatus for implementing small window video playing, where the interface opening apparatus includes a creation module 11, a display module 12, an obtaining module 13, a generation module 14, a transceiver module 15, and a playing module 16.
Specifically, the creating module 11 is configured to create a live broadcast page and a dialog box in a hidden state, where the live broadcast page includes a video playing layer and a room listing layer, and when the video playing layer is displayed, the room listing layer is in a hidden state; the display module 12 is configured to display a live broadcast window of a target live broadcast room and a first small window play option corresponding to the target live broadcast room on the video play layer; the obtaining module 13 is configured to, after detecting the trigger operation of the first widget playing option, obtain a room ID of the target live broadcast room according to the trigger operation of the first widget playing option; the generating module 14 is configured to generate a widget playing request based on the room ID of the target live broadcast room; the receiving and sending module is used for sending the small window playing request to a server so as to obtain target video information from the server, wherein the target video information comprises a video stream address of the target live broadcast room; the playing module 16 is configured to play the live video in the target live broadcast room in the dialog box based on the video stream address in the target live broadcast room. For a specific working principle of the live broadcast room processing apparatus for implementing small window video playing, reference may be made to the description of step S11 to step S15 in embodiment 1, and this embodiment is not described again.
Based on the same inventive concept, the invention further provides a computer-readable storage medium and computer equipment corresponding to the live broadcast room processing method for playing videos through small windows, and specifically refer to embodiment 8.
Example 8
The present embodiment further provides a computer device for video preview, as shown in fig. 3, the computer device includes: radio Frequency (RF) circuitry 310, memory 320, input unit 330, display unit 340, audio circuitry 350, WiFi module 360, processor 370, and power supply 380. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 3 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The following describes the components of the computer device in detail with reference to fig. 3:
RF circuitry 310 may be used for receiving and transmitting signals, and in particular, for receiving downlink information from base stations and processing the received downlink information to processor 370. In general, the RF circuit 310 includes, but is not limited to, at least one Amplifier, transceiver, coupler, Low Noise Amplifier (LNA), duplexer, and the like.
The memory 320 may be used to store software programs and modules, and the processor 370 may execute various functional applications of the computer device and data processing by operating the software programs and modules stored in the memory 320. The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 330 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. Specifically, the input unit 330 may include a keyboard 331 and other input devices 332. The keyboard 331 can collect the input operation of the user thereon and drive the corresponding connection device according to a preset program. The keyboard 331 collects the output information and sends it to the processor 370. The input unit 330 may include other input devices 332 in addition to the keyboard 331. In particular, other input devices 332 may include, but are not limited to, one or more of a touch panel, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by a user or information provided to the user and various menus of the computer device. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the keyboard 331 may cover the display panel 341, and when the keyboard 331 detects a touch operation on or near the keyboard 331, the keyboard 331 transmits the touch event to the processor 370 to determine the type of the touch event, and then the processor 370 provides a corresponding visual output on the display panel 341 according to the type of the input event. Although the keyboard 331 and the display panel 341 are shown in fig. 3 as two separate components to implement input and output functions of the computer device, in some embodiments, the keyboard 331 and the display panel 341 may be integrated to implement input and output functions of the computer device.
Audio circuitry 350, speaker 351, microphone 352 may provide an audio interface between a user and a computer device. The audio circuit 350 may transmit the electrical signal converted from the received audio data to the speaker 351, and the electrical signal is converted into a sound signal by the speaker 351 and output;
WiFi belongs to short-distance wireless transmission technology, and computer equipment can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 360, and provides wireless broadband internet access for the user. Although fig. 3 shows the WiFi module 360, it is understood that it does not belong to the essential constitution of the computer device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 370 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby monitoring the computer device as a whole. Alternatively, processor 370 may include one or more processing units; preferably, the processor 370 may be integrated with an application processor, wherein the application processor primarily handles operating systems, user interfaces, application programs, and the like.
The computer device also includes a power supply 380 (such as a power adapter) for powering the various components, which may preferably be logically connected to the processor 370 through a power management system.
The live broadcast room processing method, the device and the computer equipment for realizing the small window video playing provided by the embodiment of the invention also create a hidden dialog box when a live broadcast page is created, obtain a room ID of the target live broadcast room according to the triggering operation of a first small window playing option displayed on a video playing layer after the triggering operation of the first small window playing option is detected, generate a small window playing request based on the room ID of the target live broadcast room, send the small window playing request to a server, obtain a video stream address of the target live broadcast room from the server, and play the live broadcast video of the target live broadcast room in the dialog box based on the video stream address of the target live broadcast room. The dialog box is adopted as the live broadcast window, the interface of the dialog box is simple, the dialog box can be zoomed, and the dialog box can be set to be displayed on the top layer, so that the live broadcast window of the live broadcast video is simplified, the area of a display occupied by the live broadcast window is reduced, and a user can conveniently watch the live broadcast and perform other operations on the terminal.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a gateway, proxy server, system according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on a computer-readable storage medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A live broadcast room processing method for playing videos in a small window is characterized by comprising the following steps:
creating a live broadcast page and a dialog box in a hidden state, wherein the live broadcast page comprises a video playing layer and a room listing layer, and the room listing layer is in the hidden state when the video playing layer is displayed, the dialog box is a non-modal dialog box displayed on the top layer, and the video playing layer comprises live broadcast windows of a plurality of live broadcast rooms;
displaying a live broadcast window of a target live broadcast room and a first small window playing option corresponding to the target live broadcast room on the video playing layer;
when the triggering operation of the first small window playing option is detected, closing a live broadcast window of the target live broadcast room, and acquiring a room ID of the target live broadcast room according to the triggering operation of the first small window playing option;
generating a small window playing request based on the room ID of the target live broadcast room, and sending the small window playing request to a server so as to obtain target video information from the server, wherein the target video information comprises a video stream address of the target live broadcast room;
based on the video stream address of the target live broadcast room, playing the live broadcast video of the target live broadcast room in the dialog box;
displaying a live broadcast window of a first live broadcast room and a second small window playing option corresponding to the first live broadcast room on the video playing layer; after the triggering operation of the second small window playing option is detected, hiding the dialog box, and obtaining a room ID of the first live broadcast room according to the triggering operation of the second small window playing option;
generating a small window playing request based on the room ID of the first live broadcast room, and sending the small window playing request to a server so as to acquire first video information from the server, wherein the first video information comprises a video stream address of the first live broadcast room;
and playing the live video of the first live broadcast room in the dialog box based on the video stream address of the first live broadcast room.
2. The live broadcast processing method for implementing small-window video playing as claimed in claim 1, further comprising, after the dialog box plays the live video of the target live broadcast based on the video stream address of the target live broadcast:
displaying a main window playing option in the dialog box;
and when the triggering operation of the main window playing option is detected, hiding the dialog box, and playing the live video of the target live broadcast room on the video playing layer.
3. The live broadcast processing method for implementing small-window video playing as claimed in claim 1, further comprising, after the dialog box plays the live video of the target live broadcast based on the video stream address of the target live broadcast:
displaying a close widget option in the dialog box;
and hiding the dialog box after detecting the triggering operation of the small window closing option.
4. The live broadcast processing method for implementing a widget play video according to claim 3, wherein after detecting the triggering operation of the second widget play option, the method further comprises:
and playing the live broadcast video of the target live broadcast room on the video playing layer.
5. The live broadcast room processing method for implementing small-window video playing according to any one of claims 1 to 4, wherein the target video information further includes room information of the target live broadcast room, and after the dialog box plays the live video of the target live broadcast room based on the video stream address of the target live broadcast room, the method further includes:
and displaying the room information of the target live room in the dialog box.
6. A live room processing apparatus for implementing a small window playing video, comprising:
the system comprises a creating module, a displaying module and a displaying module, wherein the creating module is used for creating a live broadcast page and a dialog box in a hidden state, the live broadcast page comprises a video playing layer and a room listing layer, and the room listing layer is in the hidden state when the video playing layer is displayed, the dialog box is a non-modal dialog box displayed on the top layer, and the video playing layer comprises live broadcast windows of a plurality of live broadcast rooms;
the display module is used for displaying a live broadcast window of a target live broadcast room and a first small window playing option corresponding to the target live broadcast room on the video playing layer;
an obtaining module, configured to close a live broadcast window of the target live broadcast room after detecting a trigger operation of the first widget play option, and obtain a room ID of the target live broadcast room according to the trigger operation of the first widget play option;
the generating module is used for generating a small window playing request based on the room ID of the target live broadcast room;
the receiving and sending module is used for sending the small window playing request to a server so as to obtain target video information from the server, wherein the target video information comprises a video stream address of the target live broadcast room;
the playing module is used for playing the live video of the target live broadcast room in the dialog box based on the video stream address of the target live broadcast room;
displaying a live broadcast window of a first live broadcast room and a second small window playing option corresponding to the first live broadcast room on the video playing layer;
after the triggering operation of the second small window playing option is detected, hiding the dialog box, and obtaining a room ID of the first live broadcast room according to the triggering operation of the second small window playing option;
generating a small window playing request based on the room ID of the first live broadcast room, and sending the small window playing request to a server so as to acquire first video information from the server, wherein the first video information comprises a video stream address of the first live broadcast room;
and playing the live video of the first live broadcast room in the dialog box based on the video stream address of the first live broadcast room.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the live room processing method for implementing a small-window played video according to any one of claims 1 to 5.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the live-room processing method for implementing a small-window playing of a video according to any one of claims 1 to 5 when executing the program.
CN201810291257.5A 2018-03-30 2018-03-30 Live broadcast room processing method and device for playing videos through small window Active CN110324692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810291257.5A CN110324692B (en) 2018-03-30 2018-03-30 Live broadcast room processing method and device for playing videos through small window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810291257.5A CN110324692B (en) 2018-03-30 2018-03-30 Live broadcast room processing method and device for playing videos through small window

Publications (2)

Publication Number Publication Date
CN110324692A CN110324692A (en) 2019-10-11
CN110324692B true CN110324692B (en) 2022-03-22

Family

ID=68112232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810291257.5A Active CN110324692B (en) 2018-03-30 2018-03-30 Live broadcast room processing method and device for playing videos through small window

Country Status (1)

Country Link
CN (1) CN110324692B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259704B (en) * 2021-05-19 2023-06-09 杭州米络星科技(集团)有限公司 Live broadcast room initialization method, device, equipment and storage medium
CN113365149A (en) * 2021-06-02 2021-09-07 上海哔哩哔哩科技有限公司 Live broadcast picture playing method and device of live broadcast room

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577028A (en) * 2012-07-25 2014-02-12 深圳市快播科技有限公司 Playing control method and device and player
CN106028143A (en) * 2016-05-27 2016-10-12 北京小米移动软件有限公司 Video live broadcasting method and device
CN106303568A (en) * 2016-08-18 2017-01-04 北京奇虎科技有限公司 Method, client and the server of a kind of video radio hookup
CN106534879A (en) * 2016-11-08 2017-03-22 天脉聚源(北京)传媒科技有限公司 Live broadcasting switching method and system based on attention
CN106993214A (en) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 Live network broadcast method and device
CN107092417A (en) * 2017-03-30 2017-08-25 北京潘达互娱科技有限公司 Live network broadcast method and device
CN107426613A (en) * 2017-03-31 2017-12-01 武汉斗鱼网络科技有限公司 Based on the video resource mirror image loading player method and system between network direct broadcasting

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007237357A1 (en) * 2007-12-05 2009-06-25 Canon Kabushiki Kaisha Smooth resolution switching method in multipe window display system
CN103957447B (en) * 2014-05-08 2017-07-18 济南四叶草信息技术有限公司 Suspension multi-window playing system
CN104135693A (en) * 2014-07-22 2014-11-05 乐视网信息技术(北京)股份有限公司 A video playing method, smart TV and server
CN105867762A (en) * 2015-12-31 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and apparatus for displaying video being played
CN106303664B (en) * 2016-10-13 2019-07-23 合一信息技术(北京)有限公司 Video broadcasting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577028A (en) * 2012-07-25 2014-02-12 深圳市快播科技有限公司 Playing control method and device and player
CN106028143A (en) * 2016-05-27 2016-10-12 北京小米移动软件有限公司 Video live broadcasting method and device
CN106303568A (en) * 2016-08-18 2017-01-04 北京奇虎科技有限公司 Method, client and the server of a kind of video radio hookup
CN106534879A (en) * 2016-11-08 2017-03-22 天脉聚源(北京)传媒科技有限公司 Live broadcasting switching method and system based on attention
CN106993214A (en) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 Live network broadcast method and device
CN107092417A (en) * 2017-03-30 2017-08-25 北京潘达互娱科技有限公司 Live network broadcast method and device
CN107426613A (en) * 2017-03-31 2017-12-01 武汉斗鱼网络科技有限公司 Based on the video resource mirror image loading player method and system between network direct broadcasting

Also Published As

Publication number Publication date
CN110324692A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
US10841661B2 (en) Interactive method, apparatus, and system in live room
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
JP6700344B2 (en) Information exchange method, device, audio terminal, computer-readable storage medium and program
US8707321B2 (en) Resource sharing system and method thereof
US20120166538A1 (en) Virtual smart home system, server, home gateway based on cloud computing and smart home service method
CN108810594A (en) Remote screen projection method, device and system
US20180083828A1 (en) Method and apparatus for extending service capabilities in a communication network
CN108228125A (en) The long-range control method and system of smart machine
CN108810602B (en) Method and device for displaying information of live broadcast room and computer equipment
US9361787B2 (en) Information processing apparatus, information processing method, program control target device, and information processing system
CN108881930B (en) Method and system for presenting gift and electronic equipment
US10796087B2 (en) Method and apparatus for obtaining web content
CN110324693A (en) The direct broadcasting room processing method and processing device of video is played for realizing how small window
Bhardwaj et al. Ecc: Edge cloud composites
WO2019000723A1 (en) Method and apparatus for achieving popup interaction event, and computer device
CN110324692B (en) Live broadcast room processing method and device for playing videos through small window
CN108667900A (en) The method and device of the control panel of remotely located smart machine
CN102707914B (en) Messaging device and method
JP7385041B2 (en) Live room interaction methods, equipment, readable media and electronic equipment
CN110035294B (en) Processing method and device for live broadcast room, computer readable storage medium and computer equipment
CN113391559A (en) Smart home equipment control method and terminal equipment
CN114143371A (en) Screen projection method and device, storage medium and electronic equipment
CN108521598B (en) Method and device for video preview and computer equipment
CN110213631A (en) Effect data generation method and equipment based on OTT video traffic
CN107463524A (en) A kind of method and relevant device for accessing data

Legal Events

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