CN108900854A - Connect wheat room switching method, storage medium, equipment and system in live streaming - Google Patents

Connect wheat room switching method, storage medium, equipment and system in live streaming Download PDF

Info

Publication number
CN108900854A
CN108900854A CN201810738878.3A CN201810738878A CN108900854A CN 108900854 A CN108900854 A CN 108900854A CN 201810738878 A CN201810738878 A CN 201810738878A CN 108900854 A CN108900854 A CN 108900854A
Authority
CN
China
Prior art keywords
main broadcaster
wheat
room
acquisition
function
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.)
Granted
Application number
CN201810738878.3A
Other languages
Chinese (zh)
Other versions
CN108900854B (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

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 connect to connect wheat room switching system in wheat room switching method, a kind of storage medium, a kind of electronic equipment and a kind of live streaming in a kind of live streaming, it is related to internet mobile terminal application and development field, this method includes that the video flowing address that obtains from server of active client is mixed flow address, and video corresponding to mixed flow address of the active client to acquisition does not play out:The main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and the ID and room number that will acquire are packaged into a function;Using animation function, addition drainage indicates on player between client current live, and clicks event functions to drainage mark addition;Drainage mark when the user clicks, the room number of another main broadcaster's direct broadcasting room, jumps to the corresponding direct broadcasting room of room number of acquisition from acquisition in the function of encapsulation even two main broadcaster of wheat.The present invention can facilitate user to switch between the direct broadcasting room of two company wheat main broadcasters, complete the operation drained for main broadcaster.

Description

Connect wheat room switching method, storage medium, equipment and system in live streaming
Technical field
The present invention relates to internet mobile terminal application and development fields, and in particular to connects wheat room switching side in a kind of live streaming Connect wheat room switching system in method, a kind of storage medium, a kind of electronic equipment and a kind of live streaming.
Background technique
With the development of science and technology, the function of Intelligent mobile equipment is also more various, leads to more and more young men The free time for liking dismissing oneself by way of viewing live streaming, enriches the free life of oneself, and then also promotes straight Broadcast flourishing for industry.
Main broadcaster is during live streaming, in order to improve the rich and interest of live content, the frequent company of will do it of main broadcaster Wheat, even wheat refers to that two carry out video interactive between direct broadcasting room or main broadcaster and user, and direct broadcast server allows two by technological means Together, other users are two main broadcasters using the video flowing that live streaming mobile client obtains to the video stream splicing of a main broadcaster at this time Video flowing, if main broadcaster A and main broadcaster B carries out even wheat, the live streaming picture that user sees in the direct broadcasting room of main broadcaster A at this time is main broadcaster A The ornamental value of live streaming is effectively enhanced, but existing by way of even wheat with the live streaming picture of two main broadcasters of main broadcaster B Even in wheat technology, it is merely capable of realizing and watches the live streaming picture of two main broadcasters in a direct broadcasting room, cannot achieve two company wheat masters The free switching for the direct broadcasting room broadcast efficiently is switched to the direct broadcasting room of another main broadcaster from the direct broadcasting room for the main broadcaster for currently connecting wheat In, interactive mode is more single.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide connect wheat room switching side in a kind of live streaming Method can facilitate user to switch between the direct broadcasting room of two company wheat main broadcasters, complete the operation drained for main broadcaster.
To achieve the above objectives, the technical solution adopted by the present invention is that, including:
The video flowing address that active client is obtained from server is mixed flow address, and active client is to the mixed flow of acquisition Video corresponding to address does not play out, executes following operation:
The main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and the ID and room number that will acquire are packaged into a function;
Using animation function, addition drainage indicates on player between client current live, and adds to the drainage mark It adds some points and hits event functions, be the even wherein direct broadcasting room of a main broadcaster in two main broadcaster of wheat between the current live;
Drainage mark when the user clicks, the room of another main broadcaster's direct broadcasting room from acquisition in the function of encapsulation even two main broadcaster of wheat Number, jump to the corresponding direct broadcasting room of room number of acquisition.
Based on the above technical solution,
Even two main broadcaster of wheat includes connecting wheat to initiate main broadcaster and passively connect wheat main broadcaster, and main broadcaster, main broadcaster ID, direct broadcasting room and room Between number correspond;
Even the ID of two main broadcaster of wheat and room number are specially for the acquisition:The company of acquisition wheat initiates main broadcaster's ID room number of main broadcaster, And passively connect main broadcaster's ID room number of wheat main broadcaster.
Based on the above technical solution, even the main broadcaster ID of two main broadcaster of wheat and the room number are present in parametric form It encapsulates in the function formed.
Based on the above technical solution, the drainage mark is the icon for prompting user to click.
Based on the above technical solution, described to be added on player between client current live using animation function Drainage mark, the specific steps are:It is added using the animation function animateWithDuration of UIview control in iOS system Then drainage mark determines the position on drainage mark direct broadcasting room player.
Based on the above technical solution, described to click event functions to drainage mark addition, the specific steps are:
S301:The image attributes userInteractionEnabled of drainage mark is set as allowing to interact;
S302:Indicate for drainage and add touch event, comprising clicking gesture, and the click gesture in the touch event A corresponding call back function, the room that the call back function corresponds to main broadcaster for obtaining non-present direct broadcasting room from the function of encapsulation Number.
Based on the above technical solution, call back function is called, call back function is from envelope after drainage mark when the user clicks The room number that non-present direct broadcasting room corresponds to main broadcaster is obtained in the function of dress, the room number that active client jumps to acquisition is corresponding Direct broadcasting room.
The present invention also provides a kind of storage mediums, are stored thereon with computer program, the computer program is by processor Following steps are realized when execution:
The video flowing address that active client is obtained from server is mixed flow address, and active client is to the mixed flow of acquisition Video corresponding to address does not play out, executes following operation:
The main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and the ID and room number that will acquire are packaged into a function;
Using animation function, addition drainage indicates on player between client current live, and adds to the drainage mark It adds some points and hits event functions, be the even wherein direct broadcasting room of a main broadcaster in two main broadcaster of wheat between the current live;
Drainage mark when the user clicks, the room of another main broadcaster's direct broadcasting room from acquisition in the function of encapsulation even two main broadcaster of wheat Number, jump to the corresponding direct broadcasting room of room number of acquisition.
The present invention also provides a kind of electronic equipment comprising:
Judging unit is used to judge whether the video flowing address that client is obtained from server to be mixed flow address, and Whether active client has carried out the broadcasting that mixed flow address corresponds to video;
Acquiring unit, the video flowing address for being used to obtain from server when client are mixed flow address, and existing customer When video corresponding to the mixed flow address to acquisition being held not play out, the main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and The ID and room number that will acquire are packaged into a function, are to connect the wherein live streaming of a main broadcaster in two main broadcaster of wheat between the current live Between;
Adding unit is used to add drainage mark on player between client current live using animation function, and Indicate that event functions are clicked in addition to the drainage;
Jump-transfer unit is used to drain mark when the user clicks, another from acquisition in the function of encapsulation even two main broadcaster of wheat The room number of main broadcaster's direct broadcasting room jumps to the corresponding direct broadcasting room of room number of acquisition.
The present invention also provides connecting wheat room switching system in a kind of live streaming, including:
Judgment module is used to judge whether the video flowing address that client is obtained from server to be mixed flow address, and Whether active client has carried out the broadcasting that mixed flow address corresponds to video;
Module is obtained, the video flowing address for being used to obtain from server when client is mixed flow address, and existing customer When video corresponding to the mixed flow address to acquisition being held not play out, the main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and The ID and room number that will acquire are packaged into a function,
Adding module is used to add drainage mark on player between client current live using animation function, and Indicate that event functions are clicked in addition to the drainage, is to connect the wherein live streaming of a main broadcaster in two main broadcaster of wheat between the current live Between;
Jump module is used to drain mark when the user clicks, another from acquisition in the function of encapsulation even two main broadcaster of wheat The room number of main broadcaster's direct broadcasting room jumps to the corresponding direct broadcasting room of room number of acquisition.
Compared with the prior art, the advantages of the present invention are as follows:For the main broadcaster of even wheat, the main broadcaster ID of the company of acquisition two main broadcaster of wheat And room number, and be packaged, then using animation function, addition drainage indicates on player between client current live, when User clicks drainage mark, and the room number that non-present direct broadcasting room corresponds to main broadcaster is obtained from the function of encapsulation, jumps to acquisition The corresponding direct broadcasting room of room number facilitates user to switch between the direct broadcasting room of two company wheat main broadcasters, completes to drain main broadcaster While operation, it can also give user good usage experience.
Detailed description of the invention
Fig. 1 is the flow chart for connecting wheat room switching method in the embodiment of the present invention in a kind of live streaming;
Fig. 2 is the structural schematic diagram of a kind of electronic equipment in the embodiment of the present invention.
Specific embodiment
Invention is further described in detail with reference to the accompanying drawings and embodiments.Those skilled in the art Ying Ming White, the embodiment of the present invention can provide as method, system or computer program product.Therefore, complete hardware can be used in the present invention The form of embodiment, complete software embodiment or embodiment combining software and hardware aspects.Moreover, the present invention can be used One or more wherein includes that (including but not limited to disk is deposited for the computer-usable storage medium of computer usable program code Reservoir, CD-ROM, optical memory etc.) on the form of computer program product implemented.
Shown in Figure 1, the embodiment of the present invention, which is provided in a kind of live streaming, connects wheat room switching method, for when user is in visitor In the end of family when the viewing of the company of progress wheat live streaming picture, by clicking, easily it is switched in another direct broadcasting room.The present invention is implemented Client in example is the mobile live streaming client run in iOS system.Connect wheat room in the live streaming of the embodiment of the present invention to cut The method of changing specifically includes following steps:
S1:Judge whether the video flowing address that active client is obtained from server is mixed flow address, and to acquisition Whether video corresponding to mixed flow address has played out, when the video flowing address that client is obtained from server for mixed flow Location, and when active client does not carry out mixed flow address and corresponds to the broadcasting of video, carry out subsequent step.Mixed flow address is to include two The video flowing address of a direct broadcasting room picture, client terminal playing mixed flow address, the then picture shown in client player at this time are The picture of two direct broadcasting rooms, it is generally the case that the picture of two direct broadcasting rooms is in client player in left and right distribution, such as main broadcaster A and main broadcaster B connect wheat, then the corresponding video pictures in mixed flow address are that picture video is broadcast live in main broadcaster A and picture video is broadcast live in main broadcaster B.
Carry out first the video flowing address that is obtained from server of client whether be mixed flow address judgement, if existing customer The video flowing address that end obtains is not mixed flow address, illustrates that the company of progress wheat does not operate main broadcaster, therefore need not carry out subsequent operation, For acquisition video flowing address whether be mixed flow address judgement, client, which parses video flowing address, to be known, Or server adds label to mixed flow address, after client obtains the mixed flow address containing label, also can be carried out video flowing Address whether be mixed flow address judgement.
After the video flowing address of acquisition is mixed flow address, the broadcast state of client is judged at this time, if currently Client plays out the corresponding video in mixed flow address, illustrate active client to even wheat live streaming picture play at Function, therefore need not also carry out subsequent addition drainage flag operation, therefore only when user enters some direct broadcasting room, at this time client When carrying out video address acquisition, the video flowing address of acquisition is mixed flow address, just will do it the addition operation of drainage mark.
S2:The main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and the ID and room number that will acquire are packaged into a function.Even Two main broadcaster of wheat includes connecting wheat to initiate main broadcaster and passively connect wheat main broadcaster, and main broadcaster, main broadcaster ID, direct broadcasting room and room number correspond. Even the ID of two main broadcaster of wheat and room number are specially for acquisition:The company of acquisition wheat initiates main broadcaster's ID room number of main broadcaster, and passively connects wheat Main broadcaster's ID room number of main broadcaster.Even the main broadcaster ID of two main broadcaster of wheat and room number are present in the function that encapsulation is formed with parametric form In, the function for encapsulating formation is pKServiceToAllRoomBroadCast_LianMaiSuccess, under normal circumstances, function Need to be passed to 2 parameters in pKServiceToAllRoomBroadCast_LianMaiSuccess, a parameter is Lian Maifa It plays the main broadcaster ID of main broadcaster and passively connects the main broadcaster ID of wheat main broadcaster, another parameter is that even wheat initiates the room number of main broadcaster and passively connects The room number of wheat main broadcaster further can also be in function pKServiceToAllRoomBroadCast_ A parameter is passed in LianMaiSuccess, which is that even wheat initiates the contribution margin of main broadcaster and passively connects the contribution of wheat main broadcaster Value, by corresponding the given gifts object of direct broadcasting room spectators is broadcast live, how much attendance determines contribution margin.
The function for encapsulating formation include be the relevant information of some main broadcasters, by way of being packaged into a function, Can be excessively complicated to avoid the logic of information, while the subsequent acquisition for main broadcaster's relevant information can also be facilitated to operate.
S3:Using animation function, addition drainage indicates on player between client current live, and marks to the drainage Event functions are clicked in will addition.It is the even wherein direct broadcasting room of a main broadcaster in two main broadcaster of wheat between current live.Drainage mark for for The icon for prompting user to click, the final icon can be present on the player of client, for for prompt click, icon On the mode of text can be used, if the word content on icon is " removing ta direct broadcasting room ", user can easily know very much at this time Road can jump in another direct broadcasting room after clicking the icon.
Using animation function, addition drainage indicates on player between client current live, the specific steps are:Use iOS The animation function animateWithDuration addition drainage mark of UIview control, then determines that drainage mark is straight in system The position on a player is broadcast, the position for draining icon is normally above the live streaming picture for needing the main broadcaster drained, such as user The direct broadcasting room of main broadcaster currently is initiated in even wheat, then drains icon and is located on the picture for passively connecting wheat main broadcaster in live streaming picture, at this time Passively connecting wheat main broadcaster is that need to drain main broadcaster, and user clicks drainage mark at this time can jump to the direct broadcasting room for passively connecting wheat main broadcaster In, after jumping, the picture of user's viewing is still the picture of two main broadcasters, but user is located at the live streaming for passively connecting wheat main broadcaster at this time Between in, passively connect the number of wheat main broadcaster's direct broadcasting room to increase, rise number passively to connect wheat main broadcaster's direct broadcasting room, to reach drainage Purpose;If user currently in the direct broadcasting room for passively connecting wheat main broadcaster, drains icon and connects wheat initiation main broadcaster in live streaming picture Picture on, connecting wheat at this time to initiate main broadcaster is that need to drain main broadcaster, and user clicks drainage mark at this time can the initiation of the company of jumping to wheat In the direct broadcasting room of main broadcaster, after jumping, the picture of user's viewing is still the picture of two main broadcasters, but user is located at Lian Maifa at this time In the direct broadcasting room for playing main broadcaster, to increase the number that even wheat initiates main broadcaster's direct broadcasting room, main broadcaster's direct broadcasting room is initiated for even wheat and is risen number, To achieve the purpose that drainage.Even wheat initiate and passively connect wheat merely to operating to two main broadcasters, be not intended as whether To need to drain defining for main broadcaster.The direct broadcasting room of user's viewing is even wheat direct broadcasting room, then connects wheat and initiate the picture of main broadcaster and passive Even the picture of wheat main broadcaster collectively resides on same player.UIview control indicates one piece of rectangle region in mobile device screen Domain, loser render the content in the region.
Indicate that event functions are clicked in addition to drainage, the specific steps are:
S301:The image attributes userInteractionEnabled of drainage mark is set as allowing to interact.Allow to interact Indicate that the drainage mark can interact between user, such as user can click the drainage mark, move.
S302:Indicate for drainage and add touch event, comprising clicking gesture, and the click gesture in the touch event A corresponding call back function, the room that the call back function corresponds to main broadcaster for obtaining non-present direct broadcasting room from the function of encapsulation Number, it is the direct broadcasting room that even wheat initiates main broadcaster as user most starts the direct broadcasting room being located at, then the company of referring to wheat initiates between current live The direct broadcasting room of main broadcaster, non-present direct broadcasting room refer to the direct broadcasting room for passively connecting wheat main broadcaster.For touch event midpoint hitter's gesture Creation, specially:A gesture is created using the gesture creation function UITapGestureRecognizer in iOS system, it should Gesture is tap, and tap indicates to click, and the call back function of a corresponding gesture is then set for the gesture GotoHerRoomBtnClicked1, that is, the gesture is set and is performed rear corresponding call back function, i.e., user to drainage indicate into After row clicking operation, call back function UITapGestureRecognizer is called, obtains the room that non-present direct broadcasting room corresponds to main broadcaster Between number.
S4:Drainage mark when the user clicks, another main broadcaster's direct broadcasting room from acquisition in the function of encapsulation even two main broadcaster of wheat Room number jumps to the corresponding direct broadcasting room of room number of acquisition.Specifically, calling readjustment letter after drainage mark when the user clicks Number, call back function obtain the room number that non-present direct broadcasting room corresponds to main broadcaster from the function of encapsulation, and active client, which jumps to, to be obtained The corresponding direct broadcasting room of the room number taken.
Further, two variables can be first defined, a variable is activeRoomId, and the company of expression wheat initiates main broadcaster's Room number, another variable are passtiveRoomId, indicate the room number for passively connecting wheat main broadcaster, work as call back function UITapGestureRecognizer is performed, and touch event is transmitted to controller using the mode that code block is adjusted back, In controller, takes non-present direct broadcasting room in the function of encapsulation and correspond to the corresponding variable of main broadcaster's room number, that is, it is straight to take non-present The room number that main broadcaster is corresponded between broadcasting after taking room number, clears up player, while cutting between prompting user being broadcast live It changes, the relevant information that the room number corresponds to direct broadcasting room is then obtained by network request interface getRoomInfo, completes to jump, It realizes drainage, jumps and jump function turnRoom realization using room.
Connect wheat room switching method in the live streaming of the embodiment of the present invention, for the main broadcaster of even wheat, acquisition connects two main broadcaster's of wheat Main broadcaster ID and room number, and be packaged, then add drainage on player between client current live using animation function Mark, drainage mark, the room number that non-present direct broadcasting room corresponds to main broadcaster is obtained from the function of encapsulation, is jumped to when the user clicks The corresponding direct broadcasting room of the room number of acquisition facilitates user to switch between the direct broadcasting room of two company wheat main broadcasters, completes for master While broadcasting drainage procedure, it can also give user good usage experience.
The embodiment of the present invention also provides a kind of storage medium, is stored thereon with computer program, the computer program quilt Processor realizes following steps when executing:
The video flowing address that active client is obtained from server is mixed flow address, and active client is to the mixed flow of acquisition Video corresponding to address does not play out, executes following operation:
The main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and the ID and room number that will acquire are packaged into a function,
Using animation function, addition drainage indicates on player between client current live, and adds to the drainage mark It adds some points and hits event functions, be the even wherein direct broadcasting room of a main broadcaster in two main broadcaster of wheat between the current live;
Drainage mark when the user clicks, the room of another main broadcaster's direct broadcasting room from acquisition in the function of encapsulation even two main broadcaster of wheat Number, jump to the corresponding direct broadcasting room of room number of acquisition.
Shown in Figure 2, the embodiment of the present invention also provides a kind of electronic equipment comprising judging unit 501, acquiring unit 502, adding unit 503 and jump-transfer unit 504.
Judging unit 501 is used for judging whether the video flowing address that client is obtained from server is mixed flow address, and Whether active client has carried out the broadcasting that mixed flow address corresponds to video;
Acquiring unit 502 is for working as the video flowing address that client is obtained from server for mixed flow address, and existing customer When video corresponding to the mixed flow address to acquisition being held not play out, the main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and The ID and room number that will acquire are packaged into a function,
Adding unit 503 is used to add drainage mark on player between client current live using animation function, and Indicate that event functions are clicked in addition to the drainage, is to connect the wherein live streaming of a main broadcaster in two main broadcaster of wheat between the current live Between;
Jump-transfer unit 504 is another from acquisition in the function of encapsulation even two main broadcaster of wheat for drainage mark when the user clicks The room number of main broadcaster's direct broadcasting room jumps to the corresponding direct broadcasting room of room number of acquisition.
The embodiment of the present invention, which also provides, connects wheat room switching system in a kind of live streaming, including judgment module, obtains module, adds Add module and jump module.
Judgment module is used for judging whether the video flowing address that client is obtained from server is mixed flow address, and current Whether client has carried out the broadcasting that mixed flow address corresponds to video;It obtains module and is used to work as the video that client is obtained from server Stream address is mixed flow address, and when video corresponding to mixed flow address of the active client to acquisition does not play out, the company of acquisition The main broadcaster ID and room number of two main broadcaster of wheat, and the ID and room number that will acquire are packaged into a function;Adding module is used for using dynamic Drawing function, addition drainage indicates on player between client current live, and gives drainage mark addition click event letter Number is the wherein direct broadcasting room of a main broadcaster in even two main broadcaster of wheat between the current live;Jump module for draining when the user clicks Mark, the room number of another main broadcaster's direct broadcasting room, jumps to the room number of acquisition from acquisition in the function of encapsulation even two main broadcaster of wheat Corresponding direct broadcasting room.
Even two main broadcaster of wheat includes connecting wheat to initiate main broadcaster and passively connect wheat main broadcaster, and main broadcaster, main broadcaster ID, direct broadcasting room and room number It corresponds;Even the ID of two main broadcaster of wheat and room number are specially for acquisition:The company of acquisition wheat initiates main broadcaster's ID room number of main broadcaster, and Passively connect main broadcaster's ID room number of wheat main broadcaster.Even the main broadcaster ID of two main broadcaster of wheat and room number are present in encapsulation with parametric form and are formed Function in.
Using animation function, addition drainage indicates on player between client current live, the specific steps are:Use iOS The animation function animateWithDuration addition drainage mark of UIview control, then determines that drainage mark is straight in system Broadcast the position on a player.When the user clicks after drainage mark, call back function is called, call back function is obtained from the function of encapsulation The room number of main broadcaster is corresponded between negated current live, active client jumps to the corresponding direct broadcasting room of room number of acquisition.
Connect wheat room switching system in the live streaming of the embodiment of the present invention, for the main broadcaster of even wheat, acquisition connects two main broadcaster's of wheat Main broadcaster ID and room number, and be packaged, then add drainage on player between client current live using animation function Mark, drainage mark, the room number that non-present direct broadcasting room corresponds to main broadcaster is obtained from the function of encapsulation, is jumped to when the user clicks The corresponding direct broadcasting room of the room number of acquisition facilitates user to switch between the direct broadcasting room of two company wheat main broadcasters, completes for master While broadcasting drainage procedure, it can also give user good usage experience.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (10)

1. connecting wheat room switching method in a kind of live streaming, which is characterized in that include the following steps:
The video flowing address that active client is obtained from server is mixed flow address, and active client is to the mixed flow address of acquisition Corresponding video does not play out, executes following operation:
The main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and the ID and room number that will acquire are packaged into a function;
Using animation function, addition drainage indicates on player between client current live, and gives drainage mark addition point It hits event functions, is the wherein direct broadcasting room of a main broadcaster in even two main broadcaster of wheat between the current live;
Drainage mark when the user clicks, the room number of another main broadcaster's direct broadcasting room from acquisition in the function of encapsulation even two main broadcaster of wheat, Jump to the corresponding direct broadcasting room of room number of acquisition.
2. connecting wheat room switching method in a kind of live streaming as described in claim 1, it is characterised in that:
Even two main broadcaster of wheat includes connecting wheat to initiate main broadcaster and passively connect wheat main broadcaster, and main broadcaster, main broadcaster ID, direct broadcasting room and room number It corresponds;
Even the ID of two main broadcaster of wheat and room number are specially for the acquisition:The company of acquisition wheat initiates main broadcaster's ID room number of main broadcaster, and Passively connect main broadcaster's ID room number of wheat main broadcaster.
3. connecting wheat room switching method in a kind of live streaming as claimed in claim 2, it is characterised in that:Even two main broadcaster's of wheat Main broadcaster ID and room number are present in the function that encapsulation is formed with parametric form.
4. connecting wheat room switching method in a kind of live streaming as described in claim 1, it is characterised in that:The drainage mark is use In the icon that prompt user clicks.
5. connecting wheat room switching method in a kind of live streaming as claimed in claim 4, it is characterised in that:It is described to use animation function The addition drainage mark on player between client current live, the specific steps are:Using in iOS system UIview control it is dynamic Function animateWithDuration addition drainage mark is drawn, then determines the position on drainage mark direct broadcasting room player.
6. connecting wheat room switching method in a kind of live streaming as claimed in claim 4, it is characterised in that:It is described to be marked to the drainage Event functions are clicked in will addition, the specific steps are:
S301:The image attributes userInteractionEnabled of drainage mark is set as allowing to interact;
S302:Indicate addition touch event for drainage, includes to click gesture, and the click gesture is corresponding in the touch event One call back function, the room number that the call back function corresponds to main broadcaster for obtaining non-present direct broadcasting room from the function of encapsulation.
7. connecting wheat room switching method in a kind of live streaming as claimed in claim 6, it is characterised in that:Drainage mark when the user clicks After will, call back function is called, call back function obtains the room number that non-present direct broadcasting room corresponds to main broadcaster from the function of encapsulation, currently Client jumps to the corresponding direct broadcasting room of room number of acquisition.
8. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is executed by processor Shi Shixian following steps:
The video flowing address that active client is obtained from server is mixed flow address, and active client is to the mixed flow address of acquisition Corresponding video does not play out, executes following operation:
The main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and the ID and room number that will acquire are packaged into a function;
Using animation function, addition drainage indicates on player between client current live, and gives drainage mark addition point It hits event functions, is the wherein direct broadcasting room of a main broadcaster in even two main broadcaster of wheat between the current live;
Drainage mark when the user clicks, the room number of another main broadcaster's direct broadcasting room from acquisition in the function of encapsulation even two main broadcaster of wheat, Jump to the corresponding direct broadcasting room of room number of acquisition.
9. a kind of electronic equipment, which is characterized in that it includes:
Judging unit is used to judge whether the video flowing address that client is obtained from server to be mixed flow address, and current Whether client has carried out the broadcasting that mixed flow address corresponds to video;
Acquiring unit, the video flowing address for being used to obtain from server when client are mixed flow address, and active client pair When video corresponding to the mixed flow address of acquisition does not play out, the main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and will obtain The ID and room number taken is packaged into a function;
Adding unit is used to be added drainage mark on player between client current live using animation function, and gives institute It states drainage mark addition and clicks event functions, be the wherein direct broadcasting room of a main broadcaster in even two main broadcaster of wheat between the current live;
Jump-transfer unit is used to drain mark when the user clicks, another main broadcaster from acquisition in the function of encapsulation even two main broadcaster of wheat The room number of direct broadcasting room jumps to the corresponding direct broadcasting room of room number of acquisition.
10. connecting wheat room switching system in a kind of live streaming, which is characterized in that including:
Judgment module is used to judge whether the video flowing address that client is obtained from server to be mixed flow address, and current Whether client has carried out the broadcasting that mixed flow address corresponds to video;
Module is obtained, the video flowing address for being used to obtain from server when client is mixed flow address, and active client pair When video corresponding to the mixed flow address of acquisition does not play out, the main broadcaster ID and room number of the company of acquisition two main broadcaster of wheat, and will obtain The ID and room number taken is packaged into a function,
Adding module is used to be added drainage mark on player between client current live using animation function, and gives institute It states drainage mark addition and clicks event functions, be the wherein direct broadcasting room of a main broadcaster in even two main broadcaster of wheat between the current live;
Jump module is used to drain mark when the user clicks, another main broadcaster from acquisition in the function of encapsulation even two main broadcaster of wheat The room number of direct broadcasting room jumps to the corresponding direct broadcasting room of room number of acquisition.
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 true CN108900854A (en) 2018-11-27
CN108900854B 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)

Cited By (11)

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

Citations (8)

* 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
CN106028166A (en) * 2016-06-24 2016-10-12 北京小米移动软件有限公司 Method and device for switching live broadcasting rooms in live broadcasting process
CN106101796A (en) * 2016-06-29 2016-11-09 乐视控股(北京)有限公司 Method and device is appreciated in beating of a kind of net cast
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

Patent Citations (8)

* 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
CN106028166A (en) * 2016-06-24 2016-10-12 北京小米移动软件有限公司 Method and device for switching live broadcasting rooms in live broadcasting process
CN106101796A (en) * 2016-06-29 2016-11-09 乐视控股(北京)有限公司 Method and device is appreciated in beating of a kind of net cast
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

Cited By (14)

* 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
CN109982101A (en) * 2019-04-04 2019-07-05 广州虎牙信息科技有限公司 A kind of method, apparatus, equipment and the storage medium of live streaming processing
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
CN111836074A (en) * 2020-07-23 2020-10-27 北京达佳互联信息技术有限公司 Live wheat-connecting method, device and system
CN112104913A (en) * 2020-09-11 2020-12-18 腾讯科技(深圳)有限公司 Continuous microphone switching method and device, computer 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
CN112383832A (en) * 2020-11-13 2021-02-19 咪咕文化科技有限公司 Live broadcast room interaction method, electronic equipment and computer readable storage medium
CN112383832B (en) * 2020-11-13 2022-12-06 咪咕文化科技有限公司 Live broadcast room interaction method, electronic equipment and computer readable storage medium
CN113784223A (en) * 2021-09-17 2021-12-10 广州方硅信息技术有限公司 Live broadcast room transmission method, device, storage medium, computer equipment and system
CN113784223B (en) * 2021-09-17 2024-02-23 广州方硅信息技术有限公司 Live broadcast room transmission method, device, storage medium, computer equipment and system
CN114025187A (en) * 2021-10-28 2022-02-08 北京达佳互联信息技术有限公司 Live broadcast method and device and electronic equipment

Also Published As

Publication number Publication date
CN108900854B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN108900854A (en) Connect wheat room switching method, storage medium, equipment and system in live streaming
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
CN102905170B (en) Screen popping method and system for video
CN108810637A (en) Video broadcasting method, device and terminal device
CN105892864B (en) A kind of widget interaction method and device based on Android system player
CN105959828A (en) Audio/video sharing method and device, audio/video playing method and device and electronic equipment
CN103384311A (en) Method for generating interactive videos in batch mode automatically
CN112416229A (en) Audio content adjusting method and device and electronic equipment
CN106162362A (en) A kind of video broadcasting method and player
CN108282683A (en) A kind of video clip display methods and device
CN110505528A (en) The matched method, apparatus of game, equipment and readable storage medium storing program for executing in live streaming
CN109905721A (en) A kind of direct broadcasting room exchange method, system, equipment and computer-readable medium
CN113391751A (en) Interface display method and device, storage medium and electronic equipment
CN108710512A (en) Preloading method, apparatus, storage medium and the intelligent terminal of application program
CN105872608A (en) Live broadcast page refreshing method and device
CN108260019A (en) Barrage display methods, device and readable storage medium storing program for executing
CN113596555B (en) Video playing method and device and electronic equipment
CN110536147A (en) The method, apparatus and system of processing is broadcast live
CN112309449A (en) Audio recording method and device
CN105554536A (en) Method and system for configuration management on intelligent television power-on non-stop application
CN110286954A (en) A kind of the starting method, apparatus and storage medium of application program
CN109286834A (en) Method for processing video frequency, device and server
CN114422843B (en) video color egg playing method and device, electronic equipment and medium
CN111167119A (en) Game development display method, device, equipment and storage medium
CN113282268B (en) Sound effect configuration method and device, storage medium and electronic equipment

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