CN108900854B - Live broadcast microphone room switching method, storage medium, equipment and system - Google Patents

Live broadcast microphone room switching method, storage medium, equipment and system Download PDF

Info

Publication number
CN108900854B
CN108900854B CN201810738878.3A CN201810738878A CN108900854B CN 108900854 B CN108900854 B CN 108900854B CN 201810738878 A CN201810738878 A CN 201810738878A CN 108900854 B CN108900854 B CN 108900854B
Authority
CN
China
Prior art keywords
live broadcast
room
wheat
anchor
client
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
CN201810738878.3A
Other languages
Chinese (zh)
Other versions
CN108900854A (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 CN201810738878.3A priority Critical patent/CN108900854B/en
Publication of CN108900854A publication Critical patent/CN108900854A/en
Application granted granted Critical
Publication of CN108900854B publication Critical patent/CN108900854B/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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • 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/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8352Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]

Abstract

The invention discloses a live broadcast connecting wheat room switching method, a storage medium, an electronic device and a live broadcast connecting wheat room switching system, relating to the field of application and development of Internet mobile terminals, wherein the method comprises the following steps that a video stream address acquired by a current client from a server is a mixed stream address, and the video corresponding to the acquired mixed stream address is not played by the current client: acquiring the ID and room number of the two broadcasters connecting to the wheat, and packaging the acquired ID and room number into a function; adding a drainage mark on a current live broadcast room player of a client by using an animation function, and adding a click event function to the drainage mark; and when the user clicks the drainage mark, acquiring the room number of the live broadcast room of the other one of the two continuous-broadcasting and continuous-broadcasting from the packaged function, and jumping to the live broadcast room corresponding to the acquired room number. The invention can facilitate the user to switch between the live broadcasting rooms of the two continuous-microphone anchor broadcasters and complete the operation of anchor stream guidance.

Description

Live broadcast microphone room switching method, storage medium, equipment and system
Technical Field
The invention relates to the field of application development of internet mobile terminals, in particular to a live broadcast connecting wheat room switching method, a storage medium, electronic equipment and a live broadcast connecting wheat room switching system.
Background
With the development of science and technology, the functions of the intelligent mobile device are more and more diversified, so that more and more young people like to develop free time of the intelligent mobile device by watching live broadcast, the amateur life of the intelligent mobile device is enriched, and the vigorous development of the live broadcast industry is further promoted.
In the live broadcast process of the anchor, in order to improve the richness and interest of live broadcast content, the anchor often performs live broadcast, the live broadcast refers to two live broadcast rooms, or the anchor and a user room perform video interaction, a live broadcast server enables video streams of the two anchor to be spliced together through technical means, at the moment, video streams acquired by other users through a live broadcast mobile client are video streams of the two anchor, such as an anchor A and an anchor B perform live broadcast, at the moment, live broadcast pictures seen by the users in the live broadcast room of the anchor A are live broadcast pictures of the two anchor A and the anchor B, the ornamental value of the live broadcast is effectively enhanced through a live broadcast mode, in the existing live broadcast technology, only one live broadcast room can be used for watching pictures of the two anchor, free switching between the live broadcast rooms of the two anchor connected with the live broadcast can not be realized, namely, the live broadcast room of one anchor connected with the current anchor is quickly switched to the live broadcast room of the other anchor, the interaction mode is single.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a live broadcast room switching method, which can facilitate a user to switch between live broadcast rooms of two live broadcast live broadcasts with live broadcasts and complete the operation of stream guidance of the live broadcasts.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
the video stream address obtained by the current client from the server is a mixed flow address, and the current client does not play the video corresponding to the obtained mixed flow address, and the following operations are executed:
acquiring the ID and room number of the two broadcasters connecting to the wheat, and packaging the acquired ID and room number into a function;
adding a drainage mark on a player of a current live broadcast room of a client by using an animation function, and adding a click event function to the drainage mark, wherein the current live broadcast room is a live broadcast room of one of two anchor broadcasts of connecting to the wheat;
and when the user clicks the drainage mark, acquiring the room number of the live broadcast room of the other one of the two continuous-broadcasting and continuous-broadcasting from the packaged function, and jumping to the live broadcast room corresponding to the acquired room number.
On the basis of the technical proposal, the device comprises a shell,
the two continuous-wheat anchor broadcasters comprise a continuous-wheat initiating anchor and a passive continuous-wheat anchor, and the anchor, the anchor ID, the live broadcast room and the room number are in one-to-one correspondence;
the acquiring of the ID and the room number of the two affiliated broadcasters with the same wheat is specifically as follows: and acquiring the anchor ID room number of the anchor initiated by the continuous microphone and the anchor ID room number of the anchor of the passive continuous microphone.
On the basis of the technical scheme, the anchor ID and the room number of the two anchor of the connecting wheat exist in a function formed by packaging in a parameter mode.
On the basis of the technical scheme, the drainage mark is an icon for prompting a user to click.
On the basis of the technical scheme, the method for adding the drainage mark on the player of the current live broadcast room of the client by using the animation function comprises the following specific steps: and adding a drainage mark by using an animation function animatathothDuration of the UIview control in the iOS system, and then determining the position of the drainage mark on the live broadcast room player.
On the basis of the technical scheme, the specific steps of adding the click event function to the drainage mark are as follows:
s301: setting an image attribute userinteractioneenabled of the drainage mark as allowed interaction;
s302: adding a touch event for a drainage mark, wherein the touch event comprises a click gesture, the click gesture corresponds to a callback function, and the callback function is used for acquiring the room number of the anchor program corresponding to the non-current live broadcast room from the packaged function.
On the basis of the technical scheme, after the user clicks the drainage mark, a call-back function is called, the call-back function acquires the room number of the anchor corresponding to the non-current live broadcast room from the packaged function, and the current client side jumps to the live broadcast room corresponding to the acquired room number.
The present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
the video stream address obtained by the current client from the server is a mixed flow address, and the current client does not play the video corresponding to the obtained mixed flow address, and the following operations are executed:
acquiring the ID and room number of the two broadcasters connecting to the wheat, and packaging the acquired ID and room number into a function;
adding a drainage mark on a player of a current live broadcast room of a client by using an animation function, and adding a click event function to the drainage mark, wherein the current live broadcast room is a live broadcast room of one of two anchor broadcasts of connecting to the wheat;
and when the user clicks the drainage mark, acquiring the room number of the live broadcast room of the other one of the two continuous-broadcasting and continuous-broadcasting from the packaged function, and jumping to the live broadcast room corresponding to the acquired room number.
The present invention also provides an electronic device, comprising:
the judging unit is used for judging whether the video streaming address acquired by the client from the server is a mixed flow address or not and whether the current client plays the video corresponding to the mixed flow address or not;
the system comprises an acquisition unit, a live broadcast room and a server, wherein the acquisition unit is used for acquiring the ID and the room number of a main broadcast of two main broadcasts of connecting the wheat when a video stream address acquired by a client from the server is a mixed flow address and a video corresponding to the acquired mixed flow address is not played by the current client, and packaging the acquired ID and the room number into a function, and the current live broadcast room is a live broadcast room of one of the two main broadcasts of connecting the wheat;
the adding unit is used for adding a drainage mark on a current live broadcast room player of the client by using an animation function and adding a click event function to the drainage mark;
and the skipping unit is used for acquiring the room number of the live broadcast room of the other one of the two continuous-broadcasting broadcasts from the packaged function when the user clicks the drainage mark, and skipping to the live broadcast room corresponding to the acquired room number.
The invention also provides a live broadcast connecting wheat room switching system, which comprises:
the judging module is used for judging whether a video stream address acquired by the client from the server is a mixed stream address or not and whether the current client plays a video corresponding to the mixed stream address or not;
an obtaining module, configured to obtain the anchor IDs and room numbers of two anchor broadcasters connecting to the wheat when the video stream address obtained by the client from the server is the mixed stream address and the video corresponding to the obtained mixed stream address is not played by the current client, and package the obtained IDs and room numbers into a function,
the adding module is used for adding a drainage mark on a player of a current live broadcast room of a client by using an animation function and adding a click event function to the drainage mark, wherein the current live broadcast room is a live broadcast room of one of two anchor broadcasts of connecting to the wheat;
and the skipping module is used for acquiring the room number of the live broadcast room of the other one of the two continuous-broadcasting broadcasts from the packaged function when the user clicks the drainage mark, and skipping to the live broadcast room corresponding to the acquired room number.
Compared with the prior art, the invention has the advantages that: for the anchor broadcast connected with the wheat, the anchor broadcast ID and the room number of the two anchor broadcasts connected with the wheat are obtained and packaged, then a drainage mark is added on a player of a current live broadcast room of a client by using an animation function, when a user clicks the drainage mark, the room number of the anchor broadcast corresponding to the non-current live broadcast room is obtained from the packaged function, the live broadcast room corresponding to the obtained room number is jumped to, the user can conveniently switch between the live broadcast rooms of the two anchor broadcasts connected with the wheat, and when the anchor broadcast drainage operation is completed, good use experience can be given to the user.
Drawings
Fig. 1 is a flowchart of a live broadcast and live broadcast room switching method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Referring to fig. 1, an embodiment of the present invention provides a live broadcast room switching method, which is used for conveniently switching to another live broadcast room by clicking when a user watches a live broadcast picture of live broadcast in a client. The client in the embodiment of the invention is a mobile live broadcast client running in an iOS system. The live broadcast connecting wheat room switching method provided by the embodiment of the invention specifically comprises the following steps:
s1: and judging whether the video stream address acquired by the current client from the server is a mixed flow address or not and whether the video corresponding to the acquired mixed flow address is played or not, and performing subsequent steps when the video stream address acquired by the client from the server is the mixed flow address and the video corresponding to the mixed flow address is not played by the current client. The mixed flow address is a video flow address containing two live broadcast room pictures, the client plays the mixed flow address, the pictures displayed on the client player are the pictures of the two live broadcast rooms at the moment, under the normal condition, the pictures of the two live broadcast rooms are distributed on the client player from left to right, and if a main broadcast A and a main broadcast B are connected with wheat, the video pictures corresponding to the mixed flow address are a main broadcast A live broadcast picture video and a main broadcast B live broadcast picture video.
Firstly, judging whether a video stream address acquired by a client from a server is a mixed flow address, if the video stream address acquired by the client is not the mixed flow address, it is indicated that the main broadcast does not carry out a wheat connecting operation, so that subsequent operations are not necessary, and the client can know the video stream address by analyzing the video stream address for judging whether the acquired video stream address is the mixed flow address, or the server adds a label to the mixed flow address, and after the client acquires the mixed flow address containing the label, the client can also judge whether the video stream address is the mixed flow address.
When the acquired video stream address is the mixed flow address, the playing state of the client is judged, if the current client plays the video corresponding to the mixed flow address, the current client plays the live broadcast picture of the connected wheat successfully, so that the subsequent operation of adding the drainage mark is not necessary, and only when a user enters a certain live broadcast room and the client acquires the video address at the moment, the acquired video stream address is the mixed flow address, the operation of adding the drainage mark can be carried out.
S2: and acquiring the anchor ID and the room number of the two anchors connected with the wheat, and packaging the acquired ID and the room number into a function. The two continuous-wheat anchor broadcasters comprise a continuous-wheat initiating anchor broadcaster and a passive continuous-wheat anchor broadcaster, and the anchor broadcasters, the anchor ID, the live broadcast rooms and the room numbers are in one-to-one correspondence. The method for acquiring the ID and the room number of the two continuous-microphone broadcasters comprises the following steps: and acquiring the anchor ID room number of the anchor initiated by the continuous microphone and the anchor ID room number of the anchor of the passive continuous microphone. The method comprises the steps that a main broadcast ID and a room number of two main broadcasts of the connected wheat exist in a packaging formed function in a parameter mode, the packaging formed function is pKServiceToAllRoomBroadCastt _ LianMaiSuccess, in general, 2 parameters need to be introduced into the function pKServiceToAllRoomBroadCastt _ LianMaiSuccess, one parameter is a main broadcast ID of the connected wheat initiating main broadcast and a main broadcast ID of a passive connected wheat main broadcast, the other parameter is a room number of the connected wheat initiating main broadcast and a room number of the passive connected wheat main broadcast, further, a parameter can be introduced into the function pKServiceToAllRoomBroadCastt _ LianMaiSuccess, the parameter is a contribution value of the connected wheat initiating main broadcast and a contribution value of the passive connected wheat main broadcast, and the contribution value is determined by the number of audiences who have sent by the corresponding live broadcast.
The function formed by encapsulation contains some anchor-related information, and the way of encapsulating the function into one function can avoid the logic of the information from being too complex, and can facilitate the subsequent operation of acquiring the anchor-related information.
S3: and adding a drainage mark on a current live broadcast room player of the client by using an animation function, and adding a click event function to the drainage mark. The current live broadcast room is a live broadcast room of one of the two anchor broadcasts of connecting with the wheat. The drainage mark is an icon for prompting a user to click, the icon can exist on a player of the client, and for the prompt click, a text mode can be used on the icon, for example, the text content on the icon is 'ta live broadcast room', and at the moment, the user can easily know that the user can jump to another live broadcast room after clicking the icon.
Adding a drainage mark on a player of a current live broadcast room of a client by using an animation function, and specifically comprising the following steps: adding a drainage mark by using an animation function animatathextduration of a UIview control in an iOS system, then determining the position of the drainage mark on a player of a live broadcast room, wherein the position of the drainage mark is generally positioned above a live broadcast picture of an anchor broadcast needing drainage, if a user is currently in the live broadcast room of the anchor broadcast initiated by the microphone, the drainage mark is positioned on a picture of a passive microphone anchor in the live broadcast picture, the passive microphone anchor is the anchor broadcast needing drainage, the user can jump to the live broadcast room of the passive microphone anchor by clicking the drainage mark at the moment, after the jump, the picture watched by the user is still the pictures of two anchor broadcasts, but the user is positioned in the live broadcast room of the passive microphone anchor, so that the number of people in the live broadcast room of the passive microphone anchor is increased, and the number of people in the live broadcast room of the passive microphone anchor is increased, thereby achieving the purpose of drainage; if the user is currently in the live broadcast room of the passive live broadcast with wheat, the drainage mark is positioned on the picture of the live broadcast with wheat initiating the main broadcast in the live broadcast picture, the live broadcast with wheat initiating the main broadcast needs to be drained at the moment, the user can jump to the live broadcast room of the live broadcast with wheat initiating the main broadcast with wheat clicking the drainage mark at the moment, after the jump, the picture watched by the user is still the picture of the two main broadcasts, but the user is positioned in the live broadcast room of the live broadcast with wheat initiating the main broadcast at the moment, so that the number of people in the live broadcast room with wheat initiating the main broadcast is increased, the number of people in the live broadcast room with wheat initiating the main broadcast with wheat initiating the. The reason for initiating and passively connecting is only to operate two anchor broadcasters and is not a definition of whether or not to need to drain the anchor. If the live broadcast room watched by the user is a live broadcast room with connected wheat, the picture of the main broadcast with connected wheat and the picture of the main broadcast with passive connected wheat exist on the same player together. The UIview control represents a rectangular area on the mobile device screen, the negative rendering the contents of the area.
Adding a click event function to the drainage mark, and specifically comprising the following steps:
s301: the image attribute userinteractioneenabled of the drainage flag is set to allow interaction. The allowed interaction means that the drainage mark can interact with a user, such as the user can click, move, etc. on the drainage mark.
S302: and adding a touch event to the drainage mark, wherein the touch event comprises a click gesture, the click gesture corresponds to a callback function, the callback function is used for acquiring the room number of the anchor broadcast corresponding to the non-current live broadcast room from the packaged function, if the live broadcast room where the user is located at first is the live broadcast room where the anchor broadcast is initiated by connecting the microphone, the current live broadcast room refers to the live broadcast room where the anchor broadcast is initiated by connecting the microphone, and the non-current live broadcast room refers to the live broadcast room of the anchor broadcast of the passive microphone. For the creation of the click gesture in the touch event, the specific steps are as follows: the method comprises the steps of using a gesture creating function UITapGestureRecognizer in an iOS system to create a gesture, wherein the gesture is tap, the tap represents clicking, then setting a callback function gootoHerRoomBtnClicked 1 of a corresponding gesture for the gesture, namely setting the corresponding callback function after the gesture is executed, namely calling the callback function UITapGestureRecognizer after a user clicks a drainage mark to obtain the room number of the anchor corresponding to the non-current live broadcast room.
S4: and when the user clicks the drainage mark, acquiring the room number of the live broadcast room of the other one of the two continuous-broadcasting and continuous-broadcasting from the packaged function, and jumping to the live broadcast room corresponding to the acquired room number. Specifically, after the user clicks the drainage mark, a callback function is called, the callback function acquires the room number of the anchor corresponding to the non-current live broadcast room from the packaged function, and the current client jumps to the live broadcast room corresponding to the acquired room number.
Further, two variables can be defined, one variable is activeRoomId and represents the room number of the anchor connected with the live broadcasting, the other variable is passiveRoomId and represents the room number of the anchor connected with the live broadcasting, when a callback function UITapGestureRecognizer is executed, a touch event is transmitted to the controller in a code block callback mode, in the controller, a variable corresponding to the anchor room number in the encapsulated function and not in the current live broadcasting room is taken, namely the room number of the anchor corresponding to the non-current live broadcasting room is taken, after the room number is taken, the player is cleaned, meanwhile, the user is prompted to switch the live broadcasting room, then the related information of the room corresponding to the room number is obtained through a live broadcasting request interface getRenomInfo, the diversion is completed, and the diversion and the room jump function turnRoom is used for realizing the diversion.
According to the method for switching the live broadcasting room with the wheat in the live broadcasting, for the live broadcasting with the wheat, the ID and the room number of the live broadcasting of the two live broadcasting with the wheat are obtained and packaged, then the current live broadcasting room player of the client is added with the drainage mark by using the animation function, when a user clicks the drainage mark, the room number of the live broadcasting corresponding to the non-current live broadcasting room is obtained from the packaged function, the live broadcasting room corresponding to the obtained room number is jumped to, the user can conveniently switch between the live broadcasting rooms of the two live broadcasting with the wheat, and the good use experience can be given to the user while the live broadcasting drainage operation is completed.
An embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
the video stream address obtained by the current client from the server is a mixed flow address, and the current client does not play the video corresponding to the obtained mixed flow address, and the following operations are executed:
acquiring the anchor ID and room number of two anchors connected to the wheat, and packaging the acquired ID and room number into a function,
adding a drainage mark on a player of a current live broadcast room of a client by using an animation function, and adding a click event function to the drainage mark, wherein the current live broadcast room is a live broadcast room of one of two anchor broadcasts of connecting to the wheat;
and when the user clicks the drainage mark, acquiring the room number of the live broadcast room of the other one of the two continuous-broadcasting and continuous-broadcasting from the packaged function, and jumping to the live broadcast room corresponding to the acquired room number.
Referring to fig. 2, an electronic device according to an embodiment of the present invention further includes a determining unit 501, an obtaining unit 502, an adding unit 503, and a jumping unit 504.
The determining unit 501 is configured to determine whether a video stream address obtained by a client from a server is a mixed stream address, and whether the current client has played a video corresponding to the mixed stream address;
the obtaining unit 502 is configured to, when the video stream address obtained by the client from the server is a mixed stream address and a video corresponding to the obtained mixed stream address is not played by the current client, obtain a anchor ID and a room number of the two anchor broadcasters connecting to the wheat, and encapsulate the obtained ID and the room number into a function,
the adding unit 503 is configured to add a drainage flag on a player of a current live broadcast room of a client by using an animation function, and add a click event function to the drainage flag, where the current live broadcast room is a live broadcast room of one of two anchor broadcasts of a connected-line live broadcast;
the jumping unit 504 is configured to, when the user clicks the drainage flag, obtain a room number of a live broadcast room of another one of the two anchor broadcasts of the continuous microphone from the encapsulated function, and jump to a live broadcast room corresponding to the obtained room number.
The embodiment of the invention also provides a live broadcast connecting wheat room switching system, which comprises a judging module, an obtaining module, an adding module and a skipping module.
The judging module is used for judging whether the video streaming address acquired by the client from the server is a mixed flow address or not and whether the current client plays the video corresponding to the mixed flow address or not; the acquisition module is used for acquiring the anchor IDs and room numbers of the two anchors connected with the wheat when the video streaming address acquired by the client from the server is the mixed flow address and the video corresponding to the acquired mixed flow address is not played by the current client, and packaging the acquired IDs and room numbers into a function; the adding module is used for adding a drainage mark on a player of a current live broadcast room of a client by using an animation function and adding a click event function to the drainage mark, wherein the current live broadcast room is a live broadcast room of one of two anchor broadcasts of connecting to the wheat; and the skipping module is used for acquiring the room number of the other one of the two anchor broadcasters connected with the wheat from the packaged function when the user clicks the drainage mark, and skipping to the live broadcast room corresponding to the acquired room number.
The two continuous-wheat anchor broadcasters comprise a continuous-wheat initiating anchor and a passive continuous-wheat anchor, and the anchor, the anchor ID, the live broadcast room and the room number are in one-to-one correspondence; the method for acquiring the ID and the room number of the two continuous-microphone broadcasters comprises the following steps: and acquiring the anchor ID room number of the anchor initiated by the continuous microphone and the anchor ID room number of the anchor of the passive continuous microphone. The anchor ID and room number of the two anchors are present in the form of parameters in the function formed by the encapsulation.
Adding a drainage mark on a player of a current live broadcast room of a client by using an animation function, and specifically comprising the following steps: and adding a drainage mark by using an animation function animatathothDuration of the UIview control in the iOS system, and then determining the position of the drainage mark on the live broadcast room player. And after the user clicks the drainage mark, calling a callback function, acquiring the room number of the anchor corresponding to the non-current live broadcast room from the packaged function by the callback function, and skipping the current client to the live broadcast room corresponding to the acquired room number.
According to the live broadcast and live broadcast room switching system, for the live broadcast with the live broadcast, the live broadcast ID and the room number of the two live broadcasts with the live broadcast are obtained and packaged, then the current live broadcast room player of the client is added with the drainage mark by using the animation function, when a user clicks the drainage mark, the room number of the live broadcast corresponding to the non-current live broadcast room is obtained from the packaged function, the live broadcast room corresponding to the obtained room number is jumped to, the user can conveniently switch between the live broadcast rooms of the two live broadcasts with the live broadcast, and good use experience can be given to the user while the live broadcast drainage operation is completed.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (10)

1. A live broadcast middle microphone room switching method is characterized by comprising the following steps:
the video stream address obtained by the current client from the server is a mixed flow address, and the current client does not play the video corresponding to the obtained mixed flow address, and the following operations are executed:
acquiring the ID and room number of the two broadcasters connecting to the wheat, and packaging the acquired ID and room number into a function;
adding a drainage mark on a player of a current live broadcast room of a client by using an animation function, and adding a click event function to the drainage mark, wherein the current live broadcast room is a live broadcast room of one of two anchor broadcasts connected with the wheat, the drainage mark is positioned above a live broadcast picture of the anchor broadcast needing to be drained, and the drainage mark comprises characters for click prompt;
when a user clicks the drainage mark, acquiring the room number of the live broadcast room of the other one of the two anchor broadcasters connected with the wheat from the packaged function, and jumping to the live broadcast room corresponding to the acquired room number;
when the mixed flow address is played by the client, the pictures displayed on the player of the client are the pictures of the two live broadcast rooms, one picture is a live broadcast room for initiating a main broadcast by connecting the wheat, and the other picture is a picture of a passive main broadcast by connecting the wheat; when a user is positioned in a live broadcast room of a main broadcast initiated by connecting the wheat, the drainage mark is positioned on a picture of the main broadcast of the passive connecting the wheat; when the user is located in the live broadcast room of the passive microphone connecting main broadcast, the drainage mark is located on the picture of the microphone connecting main broadcast.
2. The live broadcast microphone-connected room switching method as claimed in claim 1, characterized in that:
the two continuous-wheat anchor broadcasters comprise a continuous-wheat initiating anchor and a passive continuous-wheat anchor, and the anchor, the anchor ID, the live broadcast room and the room number are in one-to-one correspondence;
the acquiring of the ID and the room number of the two affiliated broadcasters with the same wheat is specifically as follows: and acquiring the anchor ID room number of the anchor initiated by the continuous microphone and the anchor ID room number of the anchor of the passive continuous microphone.
3. The live broadcast microphone-connected room switching method as claimed in claim 2, characterized in that: the anchor ID and room number of the two anchors are present in the form of parameters in the function formed by the encapsulation.
4. The live broadcast microphone-connected room switching method as claimed in claim 1, characterized in that: the drainage mark is an icon for prompting a user to click.
5. The live broadcast connecting-to-wheat room switching method as claimed in claim 4, characterized in that: the method comprises the following steps of adding a drainage mark on a current live broadcast room player of a client by using an animation function, and specifically comprises the following steps: and adding a drainage mark by using an animation function animatathothDuration of the UIview control in the iOS system, and then determining the position of the drainage mark on the live broadcast room player.
6. The live broadcast connecting-to-wheat room switching method as claimed in claim 4, characterized in that: the method for adding the click event function to the drainage mark comprises the following specific steps:
s301: setting an image attribute userinteractioneenabled of the drainage mark as allowed interaction;
s302: adding a touch event for a drainage mark, wherein the touch event comprises a click gesture, the click gesture corresponds to a callback function, and the callback function is used for acquiring the room number of the anchor program corresponding to the non-current live broadcast room from the packaged function.
7. The live broadcast microphone-connected room switching method as claimed in claim 6, wherein: and after the user clicks the drainage mark, calling a callback function, acquiring the room number of the anchor corresponding to the non-current live broadcast room from the packaged function by the callback function, and skipping the current client to the live broadcast room corresponding to the acquired room number.
8. A storage medium having a computer program stored thereon, the computer program, when executed by a processor, performing the steps of:
the video stream address obtained by the current client from the server is a mixed flow address, and the current client does not play the video corresponding to the obtained mixed flow address, and the following operations are executed:
acquiring the ID and room number of the two broadcasters connecting to the wheat, and packaging the acquired ID and room number into a function;
adding a drainage mark on a player of a current live broadcast room of a client by using an animation function, and adding a click event function to the drainage mark, wherein the current live broadcast room is a live broadcast room of one of two anchor broadcasts connected with the wheat, the drainage mark is positioned above a live broadcast picture of the anchor broadcast needing to be drained, and the drainage mark comprises characters for click prompt;
when a user clicks the drainage mark, acquiring the room number of the live broadcast room of the other one of the two anchor broadcasters connected with the wheat from the packaged function, and jumping to the live broadcast room corresponding to the acquired room number;
when the mixed flow address is played by the client, the pictures displayed on the player of the client are the pictures of the two live broadcast rooms, one picture is a live broadcast room for initiating a main broadcast by connecting the wheat, and the other picture is a picture of a passive main broadcast by connecting the wheat; when a user is positioned in a live broadcast room of a main broadcast initiated by connecting the wheat, the drainage mark is positioned on a picture of the main broadcast of the passive connecting the wheat; when the user is located in the live broadcast room of the passive microphone connecting main broadcast, the drainage mark is located on the picture of the microphone connecting main broadcast.
9. An electronic device, comprising:
the judging unit is used for judging whether the video streaming address acquired by the client from the server is a mixed flow address or not and whether the current client plays the video corresponding to the mixed flow address or not;
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring the ID and the room number of a main broadcasting of a connecting-to-microphone two-main broadcasting when a video stream address acquired by a client from a server is a mixed flow address and a video corresponding to the acquired mixed flow address is not played by the current client, and packaging the acquired ID and the room number into a function;
the device comprises an adding unit, a display unit and a display unit, wherein the adding unit is used for adding a drainage mark on a current live broadcast room player of a client by using an animation function and adding a click event function to the drainage mark, the current live broadcast room is a live broadcast room of one of two anchor broadcasts connected with the TV, the drainage mark is positioned above a live broadcast picture of the anchor broadcast needing to be drained, and the drainage mark comprises characters used for carrying out click prompt;
the skipping unit is used for acquiring the room number of the live broadcast room of the other one of the two anchor broadcasts of the continuous microphone from the encapsulated function when the user clicks the drainage mark, and skipping to the live broadcast room corresponding to the acquired room number;
when the mixed flow address is played by the client, the pictures displayed on the player of the client are the pictures of the two live broadcast rooms, one picture is a live broadcast room for initiating a main broadcast by connecting the wheat, and the other picture is a picture of a passive main broadcast by connecting the wheat; when a user is positioned in a live broadcast room of a main broadcast initiated by connecting the wheat, the drainage mark is positioned on a picture of the main broadcast of the passive connecting the wheat; when the user is located in the live broadcast room of the passive microphone connecting main broadcast, the drainage mark is located on the picture of the microphone connecting main broadcast.
10. A live broadcast connecting wheat room switching system is characterized by comprising:
the judging module is used for judging whether a video stream address acquired by the client from the server is a mixed stream address or not and whether the current client plays a video corresponding to the mixed stream address or not;
an obtaining module, configured to obtain the anchor IDs and room numbers of two anchor broadcasters connecting to the wheat when the video stream address obtained by the client from the server is the mixed stream address and the video corresponding to the obtained mixed stream address is not played by the current client, and package the obtained IDs and room numbers into a function,
the system comprises an adding module, a current live broadcast room player and a current live broadcast room player, wherein the adding module is used for adding a drainage mark on the current live broadcast room player of a client by using an animation function and adding a click event function to the drainage mark, the current live broadcast room is a live broadcast room of one of two anchor broadcasts connected with the TV, the drainage mark is positioned above a live broadcast picture of the anchor broadcast needing to be drained, and the drainage mark comprises characters used for carrying out click prompt;
the skipping module is used for acquiring the room number of the live broadcast room of the other one of the two anchor broadcasts of the continuous microphone from the encapsulated function when the user clicks the drainage mark, and skipping to the live broadcast room corresponding to the acquired room number;
when the mixed flow address is played by the client, the pictures displayed on the player of the client are the pictures of the two live broadcast rooms, one picture is a live broadcast room for initiating a main broadcast by connecting the wheat, and the other picture is a picture of a passive main broadcast by connecting the wheat; when a user is positioned in a live broadcast room of a main broadcast initiated by connecting the wheat, the drainage mark is positioned on a picture of the main broadcast of the passive connecting the wheat; when the user is located in the live broadcast room of the passive microphone connecting main broadcast, the drainage mark is located on the picture of the microphone connecting main broadcast.
CN201810738878.3A 2018-07-06 2018-07-06 Live broadcast microphone room switching method, storage medium, equipment and system Active CN108900854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810738878.3A CN108900854B (en) 2018-07-06 2018-07-06 Live broadcast microphone room switching method, storage medium, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810738878.3A CN108900854B (en) 2018-07-06 2018-07-06 Live broadcast microphone room switching method, storage medium, equipment and system

Publications (2)

Publication Number Publication Date
CN108900854A CN108900854A (en) 2018-11-27
CN108900854B true CN108900854B (en) 2021-05-28

Family

ID=64348584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810738878.3A Active CN108900854B (en) 2018-07-06 2018-07-06 Live broadcast microphone room switching method, storage medium, equipment and system

Country Status (1)

Country Link
CN (1) CN108900854B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385592A (en) * 2018-12-29 2020-07-07 广州市百果园信息技术有限公司 Cross-room live broadcast connection method and device, storage medium and server
CN109982101B (en) * 2019-04-04 2021-11-23 广州虎牙信息科技有限公司 Live broadcast processing method, device, equipment and storage medium
CN111277851A (en) * 2020-02-13 2020-06-12 北京达佳互联信息技术有限公司 Live broadcast method, device, equipment and computer readable storage medium
CN111263179A (en) * 2020-02-20 2020-06-09 广州虎牙科技有限公司 Live broadcast room drainage method, device, system, server and storage medium
CN111586446A (en) * 2020-04-13 2020-08-25 微梦创科网络科技(中国)有限公司 Method, device and system for seamless switching of media streams
CN111836074B (en) * 2020-07-23 2022-09-09 北京达佳互联信息技术有限公司 Live wheat-connecting method and device, electronic equipment and storage medium
CN112104913B (en) * 2020-09-11 2023-09-26 腾讯科技(深圳)有限公司 Wheat connecting switching method and device, computer equipment and storage medium
CN114339420A (en) * 2020-10-09 2022-04-12 武汉斗鱼鱼乐网络科技有限公司 Stream pulling method and device, electronic equipment and storage medium
CN112383832B (en) * 2020-11-13 2022-12-06 咪咕文化科技有限公司 Live broadcast room interaction method, electronic equipment and computer readable storage medium
CN113784223B (en) * 2021-09-17 2024-02-23 广州方硅信息技术有限公司 Live broadcast room transmission method, device, storage medium, computer equipment and system
CN114025187B (en) * 2021-10-28 2023-01-20 北京达佳互联信息技术有限公司 Live broadcast method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898341A (en) * 2015-12-14 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and mobile client enabling simultaneous video live broadcast by two persons
CN106713945A (en) * 2016-12-06 2017-05-24 广州华多网络科技有限公司 Client microbonding live processing method and device, live server and live system
CN106791894A (en) * 2016-11-26 2017-05-31 广州华多网络科技有限公司 A kind of method and apparatus for playing live video
CN107124652A (en) * 2017-04-19 2017-09-01 武汉斗鱼网络科技有限公司 One kind connects wheat live middle windows switching method and device
WO2018040823A1 (en) * 2016-08-31 2018-03-08 腾讯科技(深圳)有限公司 Interaction method, device, and system for live broadcast room
CN107864122A (en) * 2017-10-18 2018-03-30 武汉斗鱼网络科技有限公司 A kind of display methods and device of even wheat main broadcaster's live TV stream

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028166B (en) * 2016-06-24 2020-01-10 北京小米移动软件有限公司 Live broadcast room switching method and device in live broadcast process
CN106101796A (en) * 2016-06-29 2016-11-09 乐视控股(北京)有限公司 Method and device is appreciated in beating of a kind of net cast

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898341A (en) * 2015-12-14 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and mobile client enabling simultaneous video live broadcast by two persons
WO2018040823A1 (en) * 2016-08-31 2018-03-08 腾讯科技(深圳)有限公司 Interaction method, device, and system for live broadcast room
CN106791894A (en) * 2016-11-26 2017-05-31 广州华多网络科技有限公司 A kind of method and apparatus for playing live video
CN106713945A (en) * 2016-12-06 2017-05-24 广州华多网络科技有限公司 Client microbonding live processing method and device, live server and live system
CN107124652A (en) * 2017-04-19 2017-09-01 武汉斗鱼网络科技有限公司 One kind connects wheat live middle windows switching method and device
CN107864122A (en) * 2017-10-18 2018-03-30 武汉斗鱼网络科技有限公司 A kind of display methods and device of even wheat main broadcaster's live TV stream

Also Published As

Publication number Publication date
CN108900854A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN108900854B (en) Live broadcast microphone room switching method, storage medium, equipment and system
US10609308B2 (en) Overly non-video content on a mobile device
CN108632633B (en) Live webcast data processing method and device
CN109525853B (en) Live broadcast room cover display method and device, terminal, server and readable medium
US8875204B2 (en) Information processor, information processing method and program
CN106453284B (en) Tag update method, apparatus and terminal device is broadcast live
CN108632632B (en) Live webcast data processing method and device
US10225613B2 (en) Method and apparatus for video playing processing and television
JP6499324B2 (en) Method, client and computer storage medium for playing video
CN109640129B (en) Video recommendation method and device, client device, server and storage medium
WO2016074327A1 (en) Control method, apparatus and system of media stream
CN108635863B (en) Live webcast data processing method and device
JP2011234301A (en) Content reproduction device, control information providing server, and content reproduction system
WO2021047296A1 (en) Method and device for improving efficiency of vr video interaction
US10231005B2 (en) Operation instructing method and apparatus for remote controller of intelligent television
CN111935551A (en) Video processing method and device, electronic equipment and storage medium
CN109413477A (en) Display methods and device for historical content service in display terminal
CN106878825B (en) Live broadcast-based sound effect display method and device
CN105791971A (en) Method and device for switching stream media audios
CN107529075B (en) Cross-screen continuous playing method, system, server, equipment and cross-screen continuous playing equipment
WO2020253452A1 (en) Status message pushing method, and method, device and apparatus for switching interaction content in live broadcast room
WO2017076011A1 (en) Live program watch-back method and system
CN114422843B (en) video color egg playing method and device, electronic equipment and medium
US20150026711A1 (en) Method and apparatus for video content distribution
CN110675477A (en) Animation display method

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