CN108965932B - Continuous wheat window display method and device - Google Patents

Continuous wheat window display method and device Download PDF

Info

Publication number
CN108965932B
CN108965932B CN201710349543.8A CN201710349543A CN108965932B CN 108965932 B CN108965932 B CN 108965932B CN 201710349543 A CN201710349543 A CN 201710349543A CN 108965932 B CN108965932 B CN 108965932B
Authority
CN
China
Prior art keywords
microphone
wheat
information
window
user
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
CN201710349543.8A
Other languages
Chinese (zh)
Other versions
CN108965932A (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 CN201710349543.8A priority Critical patent/CN108965932B/en
Publication of CN108965932A publication Critical patent/CN108965932A/en
Application granted granted Critical
Publication of CN108965932B publication Critical patent/CN108965932B/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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client requests
    • 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/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • 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
    • 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

Abstract

The invention provides a method and a device for displaying a connecting window. The method comprises the following steps: s1, obtaining a user wheat connecting request of a live broadcast room, and carrying out wheat connecting; and S2, after confirming that the microphone connection is successful, obtaining a microphone connection information model of the data server through a socket request to display microphone connection window information. The invention displays the connecting window and the related information by combining the live video stream and the socket message; the problems that the display of a live broadcast window completely depends on video stream, so that the delay is serious and the information related to the live broadcast cannot be well displayed are solved. Through the combination of the socket message and the video stream, the synchronism and the real-time performance are very good, and the display of the microphone connecting window can be perfectly carried out.

Description

Continuous wheat window display method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for displaying a connecting window.
Background
At present, with the rapid development of mobile terminals of mobile phones, connecting microphones are very popular and popular with users as a very interesting function in the live broadcasting process.
The connecting system is a relatively complex process involving a main broadcasting end, a connecting end and a user end, wherein the user end may be thousands of the user ends, and the connecting end generally has only a limited number. The main broadcasting end needs to see the video picture of the main broadcasting end and can also see the picture of the person who connects the wheat; the connecting terminal can see the own picture and also can see the picture of the main broadcast; the user can see the picture of the main broadcasting and the picture of the person who connects to the wheat.
At present, no better technical scheme exists how to reasonably display video pictures and related window information at a microphone connecting end, a user end and a main broadcasting end. In some existing schemes, the display of a live broadcast window completely depends on video streams, so that delay is serious, and the display of a nickname on the window has problems.
Disclosure of Invention
The present invention provides a method and apparatus for displaying a window of connected microphones that overcomes or at least partially solves the above-mentioned problems.
According to a first embodiment of the present invention, a method for displaying a window with microphone is provided, which includes:
s1, obtaining a user wheat connecting request of a live broadcast room, and carrying out wheat connecting;
and S2, after confirming that the microphone connection is successful, obtaining a microphone connection information model of the data server through a socket request to display microphone connection window information.
Further, the S1 further includes:
s1.1, monitoring a user wheat connecting request on a live broadcast room page;
s1.2, based on the user wheat connecting request, triggering a wheat connecting notification by utilizing a video playing component of the live broadcast room.
Further, the S2 further includes:
s2.1, analyzing dictionary information notified by the microphone connecting, and judging that the microphone connecting is successful according to a specific field of the dictionary information;
s2.2, acquiring a microphone connecting information model of the data server through a socket request;
and S2.3, displaying a connecting wheat small window to display the connecting wheat window information based on the connecting wheat information model.
Further, the S1.1 further includes:
s1.1.1, in the loading method of the live broadcast room page, acquiring a single example of a notification center single example class of a live broadcast APP, and setting the live broadcast room page as an observer of the single example;
s1.1.2, when the singleton receives a user's request for connecting to the wheat, it triggers the callback method of the method selector of the live broadcast room page, thus monitoring the user's request for connecting to the wheat.
Specifically, S2.2 the microphone connecting information model is microphone connecting window information of the live broadcast room, and includes:
the coordinate (x, y) and the width and the height (w, h) of the microphone connecting window, the microphone connecting authority, the current identity information of the microphone connecting window, the nickname of a microphone connecting person and the grade of the microphone connecting person.
Further, the S2.3 further includes:
s2.3.1, acquiring a connecting terminal video stream corresponding to the user connecting request through a video server;
s2.3.2, sending the wheat-connecting information model to a controller corresponding to the user wheat-connecting request;
s2.3.3, creating a continuous microphone small window according to the coordinate (x, y) and the width and the height (w, h) of the continuous microphone window in the continuous microphone information model, and displaying the continuous microphone video stream and other information in the continuous microphone information model in the continuous microphone small window display.
Further, the S2.3.3 further includes:
displaying a main broadcasting picture and a wheat connecting picture of the live broadcasting room at a main broadcasting end, a wheat connecting end and a user end;
and determining that the small window displays the main broadcasting picture or the picture of the wheat-connecting person currently according to the current identity information of the wheat-connecting window in the wheat-connecting information model.
According to a second embodiment of the invention, a display device of a microphone connecting window is provided, which comprises a microphone connecting module and a display module;
and the wheat connecting module is used for acquiring a wheat connecting request of a user in a live broadcast room and connecting the wheat.
And the display module is used for acquiring a microphone connecting information model of the data server through a socket request after confirming that microphone connecting is successful so as to display microphone connecting window information.
According to a third embodiment of the present invention, there is provided a window display device with microphone, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to be able to perform the method of the first embodiment of the present invention or various implementations of the first embodiment.
According to a fourth embodiment of the present invention, there is provided a non-transitory computer readable storage medium, characterized in that it stores computer instructions that cause the computer to execute the method according to the first embodiment of the present invention or various implementations of the first embodiment.
The invention provides a method and a device for displaying a microphone connecting window, wherein after a microphone connecting request of a user is successfully obtained and connected, a microphone connecting information model of a data server is obtained through a socket request, and a microphone connecting window and related information are displayed by combining a live video stream and a socket message; the problems that the display of a live broadcast window completely depends on video stream, so that the delay is serious and the information related to the live broadcast cannot be well displayed are solved. Through the combination of the socket message and the video stream, the synchronism and the real-time performance are very good, and the display of the microphone connecting window can be perfectly carried out.
Drawings
Fig. 1 is a flowchart of a method for displaying a window with wheat according to an embodiment of the present invention;
fig. 2 is a schematic view of a frame of a window display device connected with a microphone according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The technical solutions of all the embodiments of the present invention are implemented by computer software, and can be implemented in any programming language development environment or in combination with multiple programming languages, and are not limited to a specific development environment. The corresponding descriptions in the embodiments are only examples, and are not intended to limit the implementation manner of the technical solutions in all embodiments of the present invention.
Some technical schemes can display the information of the connecting wheat and the main broadcasting picture, but cannot conveniently switch windows.
As shown in fig. 1, a first embodiment of the present invention provides a method for displaying a window with microphone, including:
and S1, obtaining a user wheat connecting request of the live broadcast room, and carrying out wheat connecting.
And S2, after confirming that the microphone connection is successful, obtaining a microphone connection information model of the data server through a socket request to display microphone connection window information.
In the embodiment, after a user microphone connecting request is successfully obtained and microphone connecting is successfully carried out, a microphone connecting information model of a data server is obtained through a socket request, and a microphone connecting window and related information are displayed by combining a live video stream and a socket message; the problems that the display of a live broadcast window completely depends on video stream, so that the delay is serious and the information related to the live broadcast cannot be well displayed are solved. Through the combination of the socket message and the video stream, the synchronism and the real-time performance are very good, and the display of the microphone connecting window can be perfectly carried out.
In this embodiment and subsequent embodiments, the data server may be a c + + server, where the c + + server refers to a server implemented by using a c + + programming language, and is not described herein again.
In one embodiment of the first embodiment, the S1 further includes:
s1.1, monitoring a user wheat connecting request on a live broadcast room page;
s1.2, based on the user wheat connecting request, triggering a wheat connecting notification by utilizing a video playing component of the live broadcast room.
Generally, each application consists of many pages, and in a live APP, a live room is a page. The live broadcast APP is an application program for live video broadcast, and further the live broadcast APP is used for achieving technical schemes of all embodiments of the document.
In the embodiment, a user microphone connecting request related to the live broadcast room is monitored through the live broadcast room page. And triggering a microphone connecting notification to connect the microphone by utilizing a video playing component of the live broadcast room after a microphone connecting request of a user is monitored.
The embodiment uses the form of triggering the notification by the video playing component, is a better scheme for notifying the live broadcast room page to display the window, and is easier to decouple compared with other modes.
In another embodiment of the first embodiment, the S2 further includes:
s2.1, analyzing dictionary information notified by the microphone connecting, and judging that the microphone connecting is successful according to a specific field of the dictionary information;
s2.2, acquiring a microphone connecting information model of the data server through a socket request;
and S2.3, displaying a connecting wheat small window to display the connecting wheat window information based on the connecting wheat information model.
In this embodiment, the microphone connecting notification is a microphone connecting notification triggered by a video playing component in the live broadcast room, and in a specific embodiment, the data type of the microphone connecting notification may be a dictionary type, for example, in an iOS system, the data type of the microphone connecting notification may be NSDictionary. A field, such as isConnected, may be set in the NSDictionary to indicate whether the link was successful, and the value of isConnected may be determined to determine whether the link was successful. In an implementation, when the mic is successfully connected, isConnected may be set to 1, and when the mic is not successfully connected, isConnected may be set to 0, and in S2.1, it may be determined whether isConnected is equal to 1 to confirm whether the mic is successfully connected.
In this embodiment, in S2.2, the obtaining of the wheat connection information model of the data server through a socket request further includes obtaining the attention number of the live broadcast room. In all embodiments of this document, live APP has a http server, the http server is generally a video server, and a socket server is generally a data server. Each time a user enters a live broadcast room, a network request is sent to a video server to acquire basic information of the room, wherein the basic information comprises dozens of items of anchor information such as an anchor name, an unique id of the anchor, an anchor head portrait and the like; after the video server successfully logs in, the login method loginCServer of the data server is used for logging in the data server, and after the loginCServer successfully logs in, the normal data server of the network can push the information related to the user through the socket as long as the normal data server of the network is used.
In S2.2, the microphone connecting information is obtained through the scoket, and a network request using http is not used, because socket interaction is light, and the load bearing performance of the server is better.
Moreover, the video playing component is inconvenient to take the user information, the interface and the encapsulation of the program code are damaged because the video playing component takes too much user information, the data server is more suitable for inquiring the user information and information interaction, and the interactive inquiring logic operation speed is high. In the process of connecting the microphone, the advantage of combining the video playing component and the data server is utilized, and the method is a very optimized scheme from the architectural level.
In this embodiment, the user information acquired by the data server through the socket request is a character string type, and the user information may be analyzed into a microphone information model by using a character string analysis method.
After the connected wheat information model is obtained, S2.3 can display the connected wheat small window according to the user information in the connected wheat information model. The user information of the connected wheat is transmitted to the page through the model, and the model can conveniently transmit data, so that the data transmission of the model is not easy to make mistakes, and the model is convenient to display, analyze and use; any page needs the microphone information, the analyzed model is directly taken, and the bullet screen information does not need to be analyzed.
The connected wheat small window is a video small window used for displaying the video information of the connected wheat user end and the user information of the connected wheat user in the live broadcast APP, and is smaller in size compared with the video live broadcast window of the original main broadcast end, so that the connected wheat small window is called as a connected wheat small window.
In all embodiments of the invention, the connected wheat small window and the main broadcasting window can be switched, namely, under one condition, the main broadcasting end video is displayed through the small window, and the connected wheat end video is displayed through the large window; under another condition, the connected-to-microphone video is displayed through a small window, and the anchor video is displayed through a large window.
In another embodiment of the first embodiment, the S1.1 further comprises:
s1.1.1, in the loading method of the live broadcast room page, acquiring a single example of a notification center single example class of a live broadcast APP, and setting the live broadcast room page as an observer of the single example;
s1.1.2, when the singleton receives a user's request for connecting to the wheat, it triggers the callback method of the method selector of the live broadcast room page, thus monitoring the user's request for connecting to the wheat.
The embodiment further describes how to listen to the user's microphone connecting request through the live room page.
In the embodiment, each live broadcast APP has a notification center which is a single instance type; the notification center is used for monitoring all notification messages of the live APP. In program language, a singleton is a static, globally unique object.
Each page, i.e. each live room, has a loading method in which the page is started and initialized, and the loading method is used for loading a page so that a page is loaded and is not displayed. In general, some method for initializing init, or listening for notification, etc. may be added to the loading method.
In the loading method of the live broadcast room page in this embodiment, a monitor is added to monitor the microphone connection notification. In the S1.1.1, firstly, a single instance of a notification center single instance class of a live APP is obtained; in this embodiment, the single instance has a method for setting the current monitor observer, so that the live room page is set as the single instance observer after the single instance is obtained.
In S1.1.2, a user's request for connecting to the microphone is monitored through the singleton. A method selector is also implemented in the live room page described in this embodiment.
Generally speaking, a method selector can be simply understood as a method invocation. Unlike ordinary method calls, the selector is characterized by cross-class participation. You can declare a method in class A and then control the invocation of the method in class B. The flexibility of the program is greatly improved by the mechanism, and the SEL parameter can be transmitted to a method, so that the method can dynamically execute a certain method; we can also specify the method to be executed by the configuration file, and the program reads the configuration file and translates the character string of the method into SEL variable and then sends the message to the corresponding object.
Taking the iOS system as an example, the method selector @ selector () is a number of a class-taking method, and its behavior can be basically equal to that of a middle function pointer of C language, except that in C language, a function name can be directly assigned to a function pointer, and the class of Object-C cannot directly apply the function pointer, so that only one @ selector syntax can be taken.
In S1.1.2, the live broadcast room page implements a method selector, and when the single instance monitors a user's microphone connection request, a callback method of the method selector of the live broadcast room page is triggered, so as to monitor the user's microphone connection request.
In another embodiment of the first embodiment, S2.2 the microphone connecting information model is microphone connecting window information of the live broadcast room, and includes:
the coordinate (x, y) and the width and the height (w, h) of the microphone connecting window, the microphone connecting authority, the current identity information of the microphone connecting window, the nickname of a microphone connecting person and the grade of the microphone connecting person.
The Lianmai information model comprises a plurality of fields, at least comprising the fields listed in the embodiment. The current identity information of the microphone connecting window indicates whether the microphone connecting window is a main broadcasting or a microphone connecting person currently.
In another embodiment of the first embodiment, the S2.3 further comprises:
s2.3.1, acquiring a connecting terminal video stream corresponding to the user connecting request through a video server;
s2.3.2, sending the wheat-connecting information model to a controller corresponding to the user wheat-connecting request;
s2.3.3, creating a continuous microphone small window according to the coordinates (x, y) and the width and the height (w, h) of the continuous microphone window in the continuous microphone information model, and displaying the continuous microphone video stream and other information in the continuous microphone information model in the continuous microphone small window.
The embodiment further describes how to display the connected microphone window information by performing connected microphone small window display based on the connected microphone information model.
In the embodiment, a video server acquires a video stream of a microphone connecting end corresponding to the user microphone connecting request; and sending the microphone connecting information model to a controller corresponding to the microphone connecting request of the user, controlling the display of the microphone connecting small window through the corresponding controller, firstly, creating the microphone connecting small window, and playing the microphone connecting end video stream in the microphone connecting small window through a video playing component.
The video playing component in the embodiments of the present invention is used for playing a video stream, and mainly finishes pulling a video stream from a video stream server, i.e., a video server in each embodiment of the present invention, and can push video stream information of a user side or a connecting terminal to the video stream server, i.e., the video server. In the process of pulling and pushing the video stream, state messages are triggered, for example, the video is pushed completely, the pushing fails, the anchor is not started and live, and the like, and the state messages are used for informing indicators of the change of the video stream state of the app for some interfaces or notifications.
In the embodiment, the video server acquires the microphone connecting end video stream corresponding to the user microphone connecting request, the microphone connecting information model of the data server is acquired through the socket request in combination with the embodiment, and the microphone connecting window and the related information are displayed through the combination of the live video stream and the socket message. The socket firstly takes the user information of the microphone connecting request, and after the video stream is connected, the socket is triggered to display the user information taken by the socket. Because the socket is light and the message transmission is fast, the good synchronism can be achieved, namely, after the video stream is loaded, the basic information of the windows connected with the microphone can be displayed immediately, and the synchronism and the real-time performance are very good.
In another embodiment of the first embodiment, the S2.3.3 further includes:
displaying a main broadcasting picture and a wheat connecting picture of the live broadcasting room at a main broadcasting end, a wheat connecting end and a user end;
and determining that the small window displays the main broadcasting picture or the picture of the wheat-connecting person currently according to the current identity information of the wheat-connecting window in the wheat-connecting information model.
In this embodiment, various displays after the live broadcasting are connected are described, and the main broadcasting screen and the microphone connecting screen of the live broadcasting room need to be displayed on the main broadcasting terminal, the microphone connecting terminal and the user terminal, so that the main broadcasting screen or the microphone connecting screen displayed in the microphone connecting small window is not necessarily the same for different users, and the main broadcasting screen and the microphone connecting screen can be switched at any time, so that a fast method is needed. In the embodiment, the current identity information of the microphone connecting window in the microphone connecting information model is used for determining that the microphone connecting small window currently displays the main broadcast picture or the microphone connecting picture, and as the data sources of the video stream and the microphone connecting information are separated and are respectively obtained through the video server and the data server, the video stream can be treated as a whole during switching, and the microphone connecting information part consumes less flow resources obtained through the data server, so that rapid switching can be realized.
In all embodiments of the present invention, the video server may be a PHP server, and the PHP server is a server implemented by using a PHP language.
The second embodiment of the invention provides a connecting wheat window display device, which comprises a connecting wheat module and a display module;
and the wheat connecting module is used for acquiring a wheat connecting request of a user in a live broadcast room and connecting the wheat.
And the display module is used for acquiring a microphone connecting information model of the data server through a socket request after confirming that microphone connecting is successful so as to display microphone connecting window information.
This embodiment and the following embodiments correspond to the first embodiment, and for detailed description, reference is made to the related description of the first embodiment, which is not repeated herein.
In an embodiment of the second embodiment, the microphone connecting module further includes:
the monitoring unit is used for monitoring a user microphone connecting request on the live broadcast room page;
and the trigger notification unit is used for triggering the microphone connecting notification by utilizing the video playing component of the live broadcast room based on the microphone connecting request of the user.
In another embodiment of the second embodiment, the display module further comprises:
the microphone connecting unit is used for analyzing the dictionary information of the microphone connecting notification and judging that microphone connecting is successful according to the specific field of the dictionary information;
the information acquisition unit is used for acquiring a microphone connecting information model of the data server through a socket request;
and the display unit is used for displaying the connected wheat small window to display the connected wheat window information based on the connected wheat information model.
In another embodiment of the second embodiment, the listening unit further comprises:
the method is used for acquiring a single case of a notification center single case class of a live broadcast APP in the loading method of the live broadcast room page, and setting the live broadcast room page as an observer of the single case;
and triggering a callback method of a method selector of the live broadcast room page when the single instance receives a user microphone connecting request, thereby monitoring the user microphone connecting request.
In another embodiment of the second embodiment, the microphone connecting information model of the information obtaining unit is microphone connecting window information of the live broadcast room, and includes:
the coordinate (x, y) and the width and the height (w, h) of the microphone connecting window, the microphone connecting authority, the current identity information of the microphone connecting window, the nickname of a microphone connecting person and the grade of the microphone connecting person.
In another embodiment of the second embodiment, the display unit further comprises:
the system comprises a video server, a client and a server, wherein the video server is used for acquiring a connecting end video stream corresponding to the user connecting request;
the controller is used for sending the microphone connecting information model to the controller corresponding to the microphone connecting request of the user;
and the method is used for creating a continuous microphone small window according to the coordinates (x, y) and the width and height (w, h) of the continuous microphone window in the continuous microphone information model, and displaying the continuous microphone video stream and other information in the continuous microphone information model in the continuous microphone small window.
In another embodiment of the second embodiment, the display unit further comprises:
the system comprises a live broadcast room, a microphone connecting end and a user end, wherein the live broadcast room is used for displaying a live broadcast picture and a microphone connecting picture of the live broadcast room at the live broadcast end, the microphone connecting end and the user end; and determining that the small window displays the main broadcasting picture or the picture of the wheat-connecting person currently according to the current identity information of the wheat-connecting window in the wheat-connecting information model.
Fig. 2 is a block diagram showing a third embodiment of a window display device according to the present invention.
Referring to fig. 2, the apparatus includes: a processor (processor)601, a memory (memory)602, and a bus 603;
wherein the content of the first and second substances,
the processor 601 and the memory 602 communicate with each other through the bus 603;
the processor 601 is configured to call program instructions in the memory 602 to perform the methods provided by the above-mentioned method embodiments, for example, including: obtaining a user wheat connecting request of a live broadcast room, and carrying out wheat connecting; and after confirming that the microphone is successfully connected, requesting to acquire a microphone connecting information model of the data server through the socket so as to display microphone connecting window information.
Another embodiment of the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-mentioned method embodiments, for example, including: obtaining a user wheat connecting request of a live broadcast room, and carrying out wheat connecting; and after confirming that the microphone is successfully connected, requesting to acquire a microphone connecting information model of the data server through the socket so as to display microphone connecting window information.
A fourth embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, comprising: obtaining a user wheat connecting request of a live broadcast room, and carrying out wheat connecting; and after confirming that the microphone is successfully connected, requesting to acquire a microphone connecting information model of the data server through the socket so as to display microphone connecting window information.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of a windows display device and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A continuous wheat window display method is characterized by comprising the following steps:
s1, obtaining a user wheat connecting request of a live broadcast room, and carrying out wheat connecting;
the S1 further includes:
s1.1, monitoring a user wheat connecting request on a live broadcast room page;
s1.2, based on the user wheat connecting request, triggering a wheat connecting notification by utilizing a video playing component of the live broadcast room;
s2, after confirming that the microphone connection is successful, obtaining a microphone connection information model of the data server through a socket request to display microphone connection window information;
the S2 further includes:
s2.1, analyzing dictionary information notified by the microphone connecting, and judging that the microphone connecting is successful according to a specific field of the dictionary information;
s2.2, acquiring user information acquired by a data server through a socket request, and analyzing the user information into a microphone connecting information model through a character string analysis method, wherein the user information is of a character string type;
and S2.3, displaying a connecting wheat small window to display the connecting wheat window information based on the connecting wheat information model.
2. The method of claim 1, wherein the S1.1 further comprises:
s1.1.1, in the loading method of the live broadcast room page, acquiring a single example of a notification center single example class of a live broadcast APP, and setting the live broadcast room page as an observer of the single example;
s1.1.2, when the single instance receives a user's request for connecting to the wheat, the method of the method selector of the live broadcast room page is triggered, so as to monitor the user's request for connecting to the wheat.
3. The method of claim 1, wherein S2.2 the Lima information model is Lima window information of the live room, comprising:
the coordinate (x, y) and the width and the height (w, h) of the microphone connecting window, the microphone connecting authority, the current identity information of the microphone connecting window, the nickname of a microphone connecting person and the grade of the microphone connecting person.
4. The method of claim 3, wherein the S2.3 further comprises:
s2.3.1, acquiring a microphone connecting end video stream corresponding to the user microphone connecting request through a video server;
s2.3.2, sending the wheat-connecting information model to a controller corresponding to the user wheat-connecting request;
s2.3.3, creating a continuous microphone small window according to the coordinates (x, y) and the width and the height (w, h) of the continuous microphone window in the continuous microphone information model, and displaying the continuous microphone video stream and other information in the continuous microphone information model in the continuous microphone small window.
5. The method of claim 4, wherein said S2.3.3 further comprises:
displaying a main broadcasting picture and a wheat connecting picture of the live broadcasting room at a main broadcasting end, a wheat connecting end and a user end;
and determining that the small window displays the main broadcasting picture or the picture of the wheat-connecting person currently according to the current identity information of the wheat-connecting window in the wheat-connecting information model.
6. A display device of a wheat connecting window is characterized by comprising a wheat connecting module and a display module;
the connecting module is used for acquiring a user connecting request of a live broadcast room and connecting the live broadcast room;
the wheat connecting module further comprises:
the monitoring unit is used for monitoring a user microphone connecting request on the live broadcast room page;
the trigger notification unit is used for triggering a microphone connecting notification by utilizing a video playing component of the live broadcast room based on the microphone connecting request of the user;
the display module is used for acquiring a microphone connecting information model of the data server through a socket request after confirming that microphone connecting is successful so as to display microphone connecting window information;
the display module further includes:
the microphone connecting unit is used for analyzing the dictionary information of the microphone connecting notification and judging that microphone connecting is successful according to the specific field of the dictionary information;
the system comprises an information acquisition unit, a data server and a data processing unit, wherein the information acquisition unit is used for acquiring user information acquired by the data server through a socket request and analyzing the user information into a microphone connecting information model through a character string analysis method, and the user information is of a character string type;
and the display unit is used for displaying the connected wheat small window to display the connected wheat window information based on the connected wheat information model.
7. A window display apparatus with microphone, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 5.
8. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 5.
CN201710349543.8A 2017-05-17 2017-05-17 Continuous wheat window display method and device Active CN108965932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710349543.8A CN108965932B (en) 2017-05-17 2017-05-17 Continuous wheat window display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710349543.8A CN108965932B (en) 2017-05-17 2017-05-17 Continuous wheat window display method and device

Publications (2)

Publication Number Publication Date
CN108965932A CN108965932A (en) 2018-12-07
CN108965932B true CN108965932B (en) 2021-05-28

Family

ID=64462508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710349543.8A Active CN108965932B (en) 2017-05-17 2017-05-17 Continuous wheat window display method and device

Country Status (1)

Country Link
CN (1) CN108965932B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324655B (en) * 2019-08-05 2021-07-06 北京字节跳动网络技术有限公司 Live broadcast room client connection method, device, equipment and storage medium
CN111918086B (en) * 2020-08-07 2022-12-09 广州繁星互娱信息科技有限公司 Video connection method, device, terminal, server and readable storage medium
CN111901671B (en) * 2020-08-12 2022-11-15 上海连尚网络科技有限公司 Video connection method and device
CN114554129B (en) * 2020-11-25 2023-10-31 北京字节跳动网络技术有限公司 Wheat connecting system, method, device, equipment and storage medium
CN113068060A (en) * 2021-03-24 2021-07-02 北京达佳互联信息技术有限公司 Video account matching method and device and electronic equipment
CN117376590A (en) * 2022-06-30 2024-01-09 北京字跳网络技术有限公司 View rendering method, view rendering device, electronic device, storage medium and program product
CN115567733B (en) * 2022-11-15 2023-02-07 易方信息科技股份有限公司 SDK-based live broadcast room switching method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008017638A1 (en) * 2008-04-04 2009-10-08 Ritto Gmbh & Co. Kg Door intercom unit for use as e.g. door station, in office building, has electronic module in computer unit producing and/or receiving data contents, which are transferred by standardized network protocol
CN104156465A (en) * 2014-08-22 2014-11-19 金石易诚(北京)科技有限公司 Real-time webpage synchronization and background distributed data storage system
CN106028089A (en) * 2016-06-24 2016-10-12 武汉斗鱼网络科技有限公司 Method and device for shielding advertisement put on live video image
CN106303657A (en) * 2016-08-18 2017-01-04 北京奇虎科技有限公司 A kind of even method that wheat is live and main broadcaster's end equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163297B (en) * 2007-09-18 2011-04-20 中兴通讯股份有限公司 Embedded type interface design device and method
CN102625079B (en) * 2012-03-21 2015-01-14 厦门亿联网络技术股份有限公司 Video implementation method for trilateral video conference
US9118864B2 (en) * 2012-08-17 2015-08-25 Flextronics Ap, Llc Interactive channel navigation and switching
CN105933721A (en) * 2016-06-29 2016-09-07 四川长虹电器股份有限公司 Design method for function interfaces of digital television receiver

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008017638A1 (en) * 2008-04-04 2009-10-08 Ritto Gmbh & Co. Kg Door intercom unit for use as e.g. door station, in office building, has electronic module in computer unit producing and/or receiving data contents, which are transferred by standardized network protocol
CN104156465A (en) * 2014-08-22 2014-11-19 金石易诚(北京)科技有限公司 Real-time webpage synchronization and background distributed data storage system
CN106028089A (en) * 2016-06-24 2016-10-12 武汉斗鱼网络科技有限公司 Method and device for shielding advertisement put on live video image
CN106303657A (en) * 2016-08-18 2017-01-04 北京奇虎科技有限公司 A kind of even method that wheat is live and main broadcaster's end equipment

Also Published As

Publication number Publication date
CN108965932A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108965932B (en) Continuous wheat window display method and device
US10873769B2 (en) Live broadcasting method, method for presenting live broadcasting data stream, and terminal
CN109547511B (en) WEB message real-time pushing method, server, client and system
US20170163580A1 (en) Interactive method and device for playback of multimedia
CN110765744A (en) Multi-person collaborative document editing method and system
CN109710370B (en) Session list display method and device and electronic equipment
CN106933839B (en) Page jump method and device
US20170279748A1 (en) Information processing method and terminal, and computer storage medium
CN108027725B (en) Method, device and equipment for guiding terminal equipment operation
CN108234659B (en) Data processing method, device and system
CN108933947B (en) Bullet screen display method and device
CN110674040A (en) Application testing method, device, equipment and storage medium
CN111343503B (en) Video transcoding method and device, electronic equipment and storage medium
CN111381749A (en) Image display and processing method, device, equipment and storage medium
CN107205173B (en) Live webcast interaction method and device
CN105898596B (en) Direct broadcasting room display control method and device
CN112911320A (en) Live broadcast method and device, computer equipment and storage medium
CN109831673B (en) Live broadcast room data processing method, device, equipment and storage medium
CN114748873B (en) Interface rendering method, device, equipment and storage medium
CN111143017A (en) Cloud operating system interaction processing method, client and cloud operating system
WO2016066056A1 (en) Image remote projection method, server and client
CN113965640B (en) Message processing method and device
CN113452948B (en) Conference terminal control method, device, equipment and storage medium
CN113617020B (en) Game control method, game control device, storage medium, server and terminal
CN115421841A (en) Notification processing method, terminal device, server and computer storage medium

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