CN109240709A - SDK cut-in method and device for live streaming - Google Patents
SDK cut-in method and device for live streaming Download PDFInfo
- Publication number
- CN109240709A CN109240709A CN201810834513.0A CN201810834513A CN109240709A CN 109240709 A CN109240709 A CN 109240709A CN 201810834513 A CN201810834513 A CN 201810834513A CN 109240709 A CN109240709 A CN 109240709A
- Authority
- CN
- China
- Prior art keywords
- sdk
- client
- virtual image
- verifying
- live streaming
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/44—Program or device authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
- G06T13/40—3D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
This application discloses a kind of SDK cut-in methods and device for live streaming.The SDK cut-in method for being used for live streaming includes that client passes through the first SDK access live streaming picture;Client receives the use request of the 2nd SDK;Whether verifying has access right to the 2nd SDK;And if verifying has access right to the 2nd SDK, the 2nd SDK is accessed in client.Present application addresses live streaming process it is relatively complicated the technical issues of.The application, which realizes, need to only be accessed using the 2nd SDK and can be realized resource updates and render the technical effect of the load of figure layer.
Description
Technical field
This application involves live data process fields, in particular to a kind of SDK cut-in method and dress for live streaming
It sets.
Background technique
Spectators by network direct broadcasting platform can program request or watch main broadcaster network video.
Inventors have found that if it is intended to needing to change existing to the interactive expansion in network direct broadcasting between main broadcaster and spectators
Some live streaming processes.Further such that live streaming process is complex, user experience is poor.
For the relatively complicated problem of live streaming process in the related technology, currently no effective solution has been proposed.
Summary of the invention
The main purpose of the application is to provide a kind of SDK cut-in method and device for live streaming, to solve live stream
The relatively complicated problem of journey.
To achieve the goals above, according to the one aspect of the application, a kind of access side SDK for live streaming is provided
Method.
The SDK cut-in method for live streaming according to the application includes: that client passes through the first SDK access live streaming picture;
Client receives the use request of the 2nd SDK;Whether verifying has access right to the 2nd SDK;And it if verifies to institute
Stating the 2nd SDK has access right, then accesses the 2nd SDK in client.
Further, if verifying has access right to the 2nd SDK, the 2nd SDK packet is accessed in client
It includes: judging whether client binds virtual image direct broadcasting room;If it is determined that the unbound virtual image direct broadcasting room of client, then it will be objective
Family end and the virtual image direct broadcasting room are bound;And after the client and the virtual image direct broadcasting room are bound, client
End receives the avatar data of the second SDK.
Further, verifying includes: to judge whether client pays usage charges to whether the 2nd SDK has access right
With;And if it is determined that client pays cost of use, then verifying client has calling qualification simultaneously to the API in the 2nd SDK
SDK, which is returned, to client renders figure layer.
Further, verifying includes: to judge whether client call number reaches to whether the 2nd SDK has access right
To preset value;And if it is determined that client call number is not up to preset value, then client is verified to the API in the 2nd SDK
Figure layer is rendered with calling qualification and returning to SDK to client.
Further, verifying includes: verifying client to the 2nd SDK to whether the 2nd SDK has access right
Whether the access right of default virtual image is had;If verifying client has the use of default virtual image to the 2nd SDK
Permission then opens the default API of the 2nd SDK to client.
To achieve the goals above, according to the another aspect of the application, a kind of SDK access dress for live streaming is provided
It sets.
Include: the first AM access module according to the SDK access device for live streaming of the application, passes through first for client
SDK access live streaming picture;Receiving module receives the use request of the 2nd SDK for client;Authentication module, for verifying pair
Whether the 2nd SDK has access right;And second AM access module, when having access right to the 2nd SDK for verifying,
The 2nd SDK is accessed in client.
Further, second AM access module includes: judging unit, for judging whether client binds virtual image
Direct broadcasting room;Binding unit is for judging the unbound virtual image direct broadcasting room of client, then straight by client and the virtual image
It is bound between broadcasting;And receiving unit, for by after the client and virtual image direct broadcasting room binding, client to receive the
The avatar data of two SDK.
Further, the authentication module includes: expense judging unit, for judging whether client pays usage charges
With;And first authentication unit, when for judging that client pays cost of use, verifying client has the API in the 2nd SDK
Have and calls qualification and return to SDK rendering figure layer to client.
Further, the authentication module includes: frequency judging unit, for judging whether client call number reaches
Preset value;And second authentication unit, when for judging that client call number is not up to preset value, then client is verified to
API in two SDK, which has to call qualification and return to SDK to client, renders figure layer.
Further, the authentication module includes: permission judging unit, is to the 2nd SDK for verifying client
The no access right for having default virtual image;Third authentication unit has the 2nd SDK for verifying client default virtual
The access right of image, then open the default API of the 2nd SDK to client.
In the embodiment of the present application, the 2nd SDK is received by the first SDK access live streaming picture and client using client
Use request mode, by verifying whether have access right to the 2nd SDK, reached verifying to the 2nd SDK
There is access right, then accesses the purpose of the 2nd SDK in client, it only need to be using the 2nd SDK access and energy to realize
It enough realizes resource updates and renders the technical effect of the load of figure layer, and then solve the relatively complicated technology of live streaming process and ask
Topic.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, so that the application's is other
Feature, objects and advantages become more apparent upon.The illustrative examples attached drawing and its explanation of the application is for explaining the application, not
Constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the SDK cut-in method schematic diagram for live streaming according to the application first embodiment;
Fig. 2 is the SDK cut-in method schematic diagram for live streaming according to the application second embodiment;
Fig. 3 is the SDK cut-in method schematic diagram for live streaming according to the application 3rd embodiment;
Fig. 4 is the SDK cut-in method schematic diagram for live streaming according to the application fourth embodiment;
Fig. 5 is the SDK cut-in method schematic diagram for live streaming according to the 5th embodiment of the application;
Fig. 6 is the SDK access device schematic diagram for live streaming according to the application first embodiment;
Fig. 7 is the SDK access device schematic diagram for live streaming according to the application second embodiment;
Fig. 8 is the SDK access device schematic diagram for live streaming according to the application 3rd embodiment;
Fig. 9 is the SDK access device schematic diagram for live streaming according to the application fourth embodiment;And
Figure 10 is the SDK access device schematic diagram for live streaming according to the 5th embodiment of the application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
In this application, term " on ", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outside",
" in ", "vertical", "horizontal", " transverse direction ", the orientation or positional relationship of the instructions such as " longitudinal direction " be orientation based on the figure or
Positional relationship.These terms are not intended to limit indicated dress primarily to better describe the application and embodiment
Set, element or component must have particular orientation, or constructed and operated with particular orientation.
Also, above-mentioned part term is other than it can be used to indicate that orientation or positional relationship, it is also possible to for indicating it
His meaning, such as term " on " also are likely used for indicating certain relations of dependence or connection relationship in some cases.For ability
For the those of ordinary skill of domain, the concrete meaning of these terms in this application can be understood as the case may be.
In addition, term " installation ", " setting ", " being equipped with ", " connection ", " connected ", " socket " shall be understood in a broad sense.For example,
It may be a fixed connection, be detachably connected or monolithic construction;It can be mechanical connection, or electrical connection;It can be direct phase
It even, or indirectly connected through an intermediary, or is two connections internal between device, element or component.
For those of ordinary skills, the concrete meaning of above-mentioned term in this application can be understood as the case may be.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The SDK cut-in method for live streaming in the application passes through the first SDK access live streaming picture in client;Client
End receives the use request of the second SDK;Whether background server verifying has access right to the 2nd SDK;And if after
Platform server authentication has access right to the 2nd SDK, then accesses the 2nd SDK in client.The client for needing to be broadcast live
Specific render process of the end without being concerned about virtual image only need to activate SDK in the page for needing to render virtual image, and by tying up
The API of direct broadcasting room is determined to obtain the addition of rendering figure layer in the page.Then need to be implemented change the outfit, model animation when
Call correlation API, SDK that this operation can be rendered into automatically in all figure layers for being bundled in same direct broadcasting room.
Scheme according to the invention carries out integrated live streaming platform, with lower coupling, the integrated spy quickly and easily safeguarded
Point.Main broadcaster/spectator client is without changing existing live streaming logic, it is only necessary to be added in engineering and draw to virtual image SDK
With, and corresponding API is transferred according to demand, update, the load of resource are all completed inside virtual image SDK.
Application programming interface (full name in English: Application Programming Interface, referred to as: API)
Software Development Kit (full name in English: Software Development Kit, referred to as: SDK) more usually
Software engineer is developing instrument when specific software package, software frame, hardware platform, operating system etc. establish application software
Set.
Specifically, this application involves live streaming SDK/API, virtual image SDK/API.
As shown in Figure 1, this method includes the following steps, namely S102 to step S108:
Step S102, client pass through the first SDK access live streaming picture;
First SDK is primarily used for the SDK of live streaming.The major function of live streaming SDK is to acquire audio, video data from main broadcaster end
Stream, and it is distributed to other broadcasting ends.Live streaming picture is had access to by the first SDK in client, to open live streaming or sight
It sees live.
It specifically, can be spectators by live streaming platform, main broadcaster provides the first SDK software package.Pass through the first SDK software package
Complete audio/video flow living broadcast channel can be provided.
Step S104, client receive the use request of the 2nd SDK;
2nd SDK is primarily used for the SDK being virtually broadcast live.If it is intended to the virtual image for generating the first user then needs
It is allowed to access virtual image SDK.Virtual image SDK is to generate virtual image according to the video data of main broadcaster end acquisition, and turn
It sends out virtual image and its other broadcasting ends is arrived in movement.
Specifically, when spectators or main broadcaster are wanted using virtual direct broadcast function, making for the 2nd SDK is received in client
With request, refer to request rendering figure layer normally with request.
It should be noted that can be made to background server after the request request that client has received the 2nd SDK
With the verifying of permission, the 2nd SDK only can accessed by the client after verifying.
Whether step S106, verifying have access right to the 2nd SDK;
By the way that whether there is access right to the 2nd SDK in background server verifying, for example, can verify whether to belong to conjunction
Whether method request, request time-out etc. and return to specific response in background server.
Simultaneously, it should be noted that verifying usually requires when whether having access right to the 2nd SDK and virtual image
Direct broadcasting room binding.
Step S108 accesses the 2nd SDK in client if verifying has access right to the 2nd SDK.
If having access right to the 2nd SDK in server authentication, the 2nd SDK can be accessed in client.
Preferably, the client of main broadcaster must bind virtual image direct broadcasting room when carrying out virtual image live streaming using SDK
The data of virtual image can be just got afterwards.
Preferably, the client of spectators must bind virtual image direct broadcasting room when carrying out virtual image viewing using SDK
The data of virtual image can be just got afterwards.
It can be seen from the above description that the application realizes following technical effect:
In the embodiment of the present application, the 2nd SDK is received by the first SDK access live streaming picture and client using client
Use request mode, by verifying whether have access right to the 2nd SDK, reached verifying to the 2nd SDK
There is access right, then accesses the purpose of the 2nd SDK in client, it only need to be using the 2nd SDK access and energy to realize
It enough realizes resource updates and renders the technical effect of the load of figure layer, and then solve the relatively complicated technology of live streaming process and ask
Topic.
According to the embodiment of the present application, as the preferred of the present embodiment, as shown in Fig. 2, if verifying has the 2nd SDK
Access right, then accessing the 2nd SDK in client includes:
Step S202, judges whether client binds virtual image direct broadcasting room;
It needs to judge whether client binds virtual image direct broadcasting room before verifying, and carries out the verifying client of next step
Access right verifying.
The virtual shape carried out as unit of it should be noted that needing in access of virtual image SDK by virtual image room
As relaying, a mark is so needed when main broadcaster's client is broadcast live and when spectator client plays specify it is specific which
One room is relayed and is watched.
Step S204, if it is determined that the unbound virtual image direct broadcasting room of client, then by client and the virtual image
Direct broadcasting room binding;And
If the unbound virtual image direct broadcasting room of client, client and the virtual image direct broadcasting room are executed into binding
Operation.One virtual direct broadcasting room can specifically be corresponded to the client of spectators or main broadcaster.
Step S206, after the client and virtual image direct broadcasting room binding, client receives the void of the 2nd SDK
Quasi- image data.
Specifically, client can be realized the load that SDK renders figure layer by receiving the avatar data of the 2nd SDK,
This operation can be rendered into automatically in all figure layers for being bundled in same direct broadcasting room by the 2nd SDK.
By aforesaid operations step, virtual image direct broadcasting room and client can be bound, so, main broadcaster's client
It is being broadcast live or spectator client is when being watched can access SDK and call API therein.
According to the embodiment of the present application, as the preferred of the present embodiment, as shown in figure 3, whether verifying has the 2nd SDK
Access right includes:
Step S302, judges whether client pays cost of use;And
Judge whether client pays cost of use in background server, for example, generating using virtual image direct broadcasting room empty
Intend the viewing expense for the virtual image bound in the cost of use of image, or viewing virtual image direct broadcasting room.
Step S304, if it is determined that client pays cost of use, then verifying client has the API in the 2nd SDK
It calls qualification and returns to SDK to client and render figure layer.
If background server judges that client has paid out cost of use, need further to verify client to
API in two SDK, which has, calls qualification.It is also desirable to which returning to SDK to client renders figure layer, client is rendered by SDK
Figure layer renders virtual image, can be broadcast live with live streaming picture cooperation.
Specifically, a set of SDK is provided in live streaming platform, the function which provides includes: verifying client access right
Verifying, provides virtual portrait rendering for client, operates related API for example, changing the outfit, playing model for client open model
Animation provides the mold sync based on direct broadcasting room.
According to the embodiment of the present application, as the preferred of the present embodiment, as shown in figure 4, whether verifying has the 2nd SDK
Access right includes:
Step S402, judges whether client call number reaches preset value;And
Judge whether client has reached the upper limit of API Calls in background server.For example, using virtual image direct broadcasting room
API changes the number of virtual image, or viewing virtual image direct broadcasting room API changes the number of virtual image.
Step S404 then verifies client in the 2nd SDK if it is determined that client call number is not up to preset value
API, which has to call qualification and return to SDK to client, renders figure layer.
If background server judges that client has paid out cost of use, need further to verify client to
API in two SDK, which has, calls qualification.It is also desirable to which returning to SDK to client renders figure layer, client is rendered by SDK
Figure layer renders virtual image, can be broadcast live with live streaming picture cooperation.
Specifically, a set of SDK is provided in live streaming platform, the function which provides includes: verifying client access right
Verifying, provides virtual portrait rendering for client, operates related API for example, changing the outfit, playing model for client open model
Animation provides the mold sync based on direct broadcasting room.
According to the embodiment of the present application, as the preferred of the present embodiment, as shown in figure 5, whether verifying has the 2nd SDK
Access right includes:
Whether step S502, verifying client have the access right of default virtual image to the 2nd SDK;
Whether the 2nd SDK has the access right of default virtual image to may is that verifying client access right verifying, if
The access right and whether be that the related API of client open model operation is such as empty that virtual portrait renders are provided for client
The changing the outfit of quasi- image, the access right of the playing model animation of virtual image, while it is same to provide the model based on binding direct broadcasting room
Step.
Step S504, if verifying client has the access right of default virtual image to the 2nd SDK, to client
The default API of open 2nd SDK in end.
Specifically, live streaming/main broadcaster's client is not necessarily to be concerned about the specific render process of virtual image, only need to need to render void
Intend image the page activate virtual image SDK, and by bind direct broadcasting room API come obtain rendering with figure layer add the page i.e.
It can.Further, need to be implemented change the outfit, model animation when call correlation API, virtual image SDK can by relevant operation oneself
It is dynamic to be rendered into all figure layers for being bundled in same direct broadcasting room.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
According to the embodiment of the present application, additionally provide it is a kind of for implementing the device of the above-mentioned SDK cut-in method for live streaming,
As shown in fig. 6, the device includes:
First AM access module 10 passes through the first SDK access live streaming picture for client;
The first SDK in first AM access module 10 of the present embodiment is primarily used for the SDK of live streaming.The main of SDK is broadcast live
Function is to acquire audio and video data streams from main broadcaster end, and be distributed to other broadcasting ends.It is had access in client by the first SDK
Picture is broadcast live, to open live streaming or viewing live streaming.
It specifically, can be spectators by live streaming platform, main broadcaster provides the first SDK software package.Pass through the first SDK software package
Complete audio/video flow living broadcast channel can be provided.
Receiving module 20 receives the use request of the 2nd SDK for client;
The 2nd SDK in the receiving module 20 of the present embodiment, is primarily used for the SDK being virtually broadcast live.If it is intended to generating
The virtual image of first user then needs to be allowed to access virtual image SDK.Virtual image SDK is the view acquired according to main broadcaster end
Frequency forwards virtual image and its movement to other broadcasting ends according to generation virtual image.
Specifically, when spectators or main broadcaster are wanted using virtual direct broadcast function, making for the 2nd SDK is received in client
With request, refer to request rendering figure layer normally with request.
It should be noted that can be made to background server after the request request that client has received the 2nd SDK
With the verifying of permission, the 2nd SDK only can accessed by the client after verifying.
Authentication module 30, for verifying whether have access right to the 2nd SDK;And
By whether there is the right to use to the 2nd SDK in background server verifying in the authentication module 30 of the present embodiment
Limit, for example, can verify whether to belong to legitimate request, whether request time-out etc. and returns to specific response in background server.
Simultaneously, it should be noted that verifying usually requires when whether having access right to the 2nd SDK and virtual image
Direct broadcasting room binding.
Second AM access module 40 when having access right to the 2nd SDK for verifying, accesses described second in client
SDK。
It, can if having access right to the 2nd SDK in server authentication in second AM access module 40 of the present embodiment
To access the 2nd SDK in client.
Preferably, the client of main broadcaster must bind virtual image direct broadcasting room when carrying out virtual image live streaming using SDK
The data of virtual image can be just got afterwards.
Preferably, the client of spectators must bind virtual image direct broadcasting room when carrying out virtual image viewing using SDK
The data of virtual image can be just got afterwards.
According to the embodiment of the present application, provide it is a kind of for implementing the above-mentioned SDK access device for live streaming, such as Fig. 7 institute
Show, second AM access module 40 includes:
Judging unit 401, for judging whether client binds virtual image direct broadcasting room;
Need to judge whether client binds virtual image live streaming in the judging unit 401 of the present embodiment before verifying
Between, and carry out the verifying client access right verifying of next step.
The virtual shape carried out as unit of it should be noted that needing in access of virtual image SDK by virtual image room
As relaying, a mark is so needed when main broadcaster's client is broadcast live and when spectator client plays specify it is specific which
One room is relayed and is watched.
Binding unit 402, for judging the unbound virtual image direct broadcasting room of client, then by client and the virtual shape
As direct broadcasting room is bound;And
If the unbound virtual image direct broadcasting room of client in the binding unit 402 of the present embodiment, by client with
The virtual image direct broadcasting room executes bindings.One virtual direct broadcasting room can specifically be corresponded to the visitor of spectators or main broadcaster
Family end.
Receiving unit 403, for by after the client and virtual image direct broadcasting room binding, client to receive second
The avatar data of SDK.
In the receiving unit 403 of the present embodiment specifically, the avatar data energy that client passes through the 2nd SDK of reception
Enough realize the load of SDK rendering figure layer, this operation can be rendered into automatically all figure layers for being bundled in same direct broadcasting room by the 2nd SDK
On.
By aforesaid operations step, virtual image direct broadcasting room and client can be bound, so, main broadcaster's client
It is being broadcast live or spectator client is when being watched can access SDK and call API therein.
According to the embodiment of the present application, provide it is a kind of for implementing the above-mentioned SDK access device for live streaming, such as Fig. 8 institute
Show, the authentication module 30 includes:
Expense judging unit 3011, for judging whether client pays cost of use;And
Judge whether client pays cost of use in background server in the expense judging unit 3011 of the present embodiment,
For example, the cost of use of virtual image is generated using virtual image direct broadcasting room, or bound in viewing virtual image direct broadcasting room
The viewing expense of virtual image.
First authentication unit 3012 when for judging that client pays cost of use, verifies client in the 2nd SDK
API, which has to call qualification and return to SDK to client, renders figure layer.
If background server judges that client has paid out use in first authentication unit 3012 of the present embodiment
Expense, then needing further to verify client has calling qualification to the API in the 2nd SDK.It is also desirable to be returned to client
It returns SDK and renders figure layer, client renders figure layer by SDK and renders virtual image, can be broadcast live with live streaming picture cooperation.
Specifically, a set of SDK is provided in live streaming platform, the function which provides includes: verifying client access right
Verifying, provides virtual portrait rendering for client, operates related API for example, changing the outfit, playing model for client open model
Animation provides the mold sync based on direct broadcasting room.
According to the embodiment of the present application, provide it is a kind of for implementing the above-mentioned SDK access device for live streaming, such as Fig. 9 institute
Show, the authentication module 30 includes:
Frequency judging unit 3021, for judging whether client call number reaches preset value;And
Judge whether client has reached API Calls in background server in the frequency judging unit 3021 of the present embodiment
The upper limit.For example, changing the number of virtual image using virtual image direct broadcasting room API, or viewing virtual image direct broadcasting room API
Change the number of virtual image.
Second authentication unit 3022 then verifies client pair when for judging that client call number is not up to preset value
API in 2nd SDK, which has to call qualification and return to SDK to client, renders figure layer.
If background server judges that client has paid out use in second authentication unit 3022 of the present embodiment
Expense, then needing further to verify client has calling qualification to the API in the 2nd SDK.It is also desirable to be returned to client
It returns SDK and renders figure layer, client renders figure layer by SDK and renders virtual image, can be broadcast live with live streaming picture cooperation.
Specifically, a set of SDK is provided in live streaming platform, the function which provides includes: verifying client access right
Verifying, provides virtual portrait rendering for client, operates related API for example, changing the outfit, playing model for client open model
Animation provides the mold sync based on direct broadcasting room.
According to the embodiment of the present application, provide it is a kind of for implementing the above-mentioned SDK access device for live streaming, such as Figure 10 institute
Show, the authentication module 30 includes:
Whether permission judging unit 3031 has the use of default virtual image to the 2nd SDK for verifying client
Permission;
Whether the 2nd SDK has the access right of default virtual image can be in the permission judging unit 3031 of the present embodiment
It is: verifying client access right verifying, if provide the access right and whether be visitor that virtual portrait renders for client
Family end open model operates the changing the outfit of related API such as virtual image, the access right of the playing model animation of virtual image,
Mold sync based on binding direct broadcasting room is provided simultaneously.
Third authentication unit 3032 has the access right of default virtual image to the 2nd SDK for verifying client,
The default API of the 2nd SDK is then opened to client.
In the third authentication unit 3032 of the present embodiment specifically, live streaming/main broadcaster's client is without being concerned about virtual image
Specific render process, only need to activate virtual image SDK in the page for needing to render virtual image, and pass through binding direct broadcasting room
API adds to obtain rendering figure layer in the page.Further, need to be implemented change the outfit, model animation when call phase
API is closed, relevant operation can be rendered into automatically in all figure layers for being bundled in same direct broadcasting room by virtual image SDK.
Obviously, those skilled in the art should be understood that each module of above-mentioned the application or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the application be not limited to it is any specific
Hardware and software combines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.
Claims (10)
1. a kind of SDK cut-in method for live streaming characterized by comprising
Client passes through the first SDK access live streaming picture;
Client receives the use request of the 2nd SDK;
Whether verifying has access right to the 2nd SDK;And
If verifying has access right to the 2nd SDK, the 2nd SDK is accessed in client.
2. the SDK cut-in method according to claim 1 for live streaming, which is characterized in that if verifying is to described second
SDK has access right, then accesses the 2nd SDK in client and include:
Judge whether client binds virtual image direct broadcasting room;
If it is determined that the unbound virtual image direct broadcasting room of client, then bind client and the virtual image direct broadcasting room;With
And
After the client and virtual image direct broadcasting room binding, client receives the avatar data of the 2nd SDK.
3. the SDK cut-in method according to claim 1 for live streaming, which is characterized in that verify is to the 2nd SDK
No have the access right to include:
Judge whether client pays cost of use;And
If it is determined that client pays cost of use, then verifies client and have to the API in the 2nd SDK and call qualification and to visitor
Family end returns to SDK and renders figure layer.
4. the SDK cut-in method according to claim 1 for live streaming, which is characterized in that verify is to the 2nd SDK
No have the access right to include:
Judge whether client call number reaches preset value;And
If it is determined that client call number is not up to preset value, then verifying client has calling money to the API in the 2nd SDK
Lattice simultaneously return to SDK rendering figure layer to client.
5. the SDK cut-in method according to claim 1 for live streaming, which is characterized in that verify is to the 2nd SDK
No have the access right to include:
Whether verifying client has the access right of default virtual image to the 2nd SDK;
If verifying client has the access right of default virtual image to the 2nd SDK, described the is opened to client
The default API of two SDK.
6. a kind of SDK access device for live streaming characterized by comprising
First AM access module passes through the first SDK access live streaming picture for client;
Receiving module receives the use request of the 2nd SDK for client;
Authentication module, for verifying whether have access right to the 2nd SDK;And
Second AM access module when having access right to the 2nd SDK for verifying, accesses the 2nd SDK in client.
7. SDK access device according to claim 6, which is characterized in that second AM access module includes:
Judging unit, for judging whether client binds virtual image direct broadcasting room;
Then client and the virtual image are broadcast live for judging the unbound virtual image direct broadcasting room of client for binding unit
Between bind;And
Receiving unit, for by after the client and virtual image direct broadcasting room binding, client to receive the void of the 2nd SDK
Quasi- image data.
8. SDK access device according to claim 6, which is characterized in that the authentication module includes:
Expense judging unit, for judging whether client pays cost of use;And
First authentication unit, when for judging that client pays cost of use, verifying client has the API in the 2nd SDK
It calls qualification and returns to SDK to client and render figure layer.
9. SDK access device according to claim 6, which is characterized in that the authentication module includes:
Frequency judging unit, for judging whether client call number reaches preset value;And
Second authentication unit when for judging that client call number is not up to preset value, then verifies client in the 2nd SDK
API have call qualification and to client return SDK render figure layer.
10. SDK access device according to claim 6, which is characterized in that the authentication module includes:
Whether permission judging unit has the access right of default virtual image to the 2nd SDK for verifying client;
Third authentication unit has the access right of default virtual image to the 2nd SDK for verifying client, then to client
The default API of open 2nd SDK in end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810834513.0A CN109240709A (en) | 2018-07-26 | 2018-07-26 | SDK cut-in method and device for live streaming |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810834513.0A CN109240709A (en) | 2018-07-26 | 2018-07-26 | SDK cut-in method and device for live streaming |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109240709A true CN109240709A (en) | 2019-01-18 |
Family
ID=65072467
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810834513.0A Pending CN109240709A (en) | 2018-07-26 | 2018-07-26 | SDK cut-in method and device for live streaming |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109240709A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112601098A (en) * | 2020-11-09 | 2021-04-02 | 北京达佳互联信息技术有限公司 | Live broadcast interaction method and content recommendation method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012173656A1 (en) * | 2011-06-13 | 2012-12-20 | General Instrument Corporation | A method to query the status of a live tv streaming device |
CN104978169A (en) * | 2014-04-02 | 2015-10-14 | 北京大学 | SDK processing method and SDK processing device for periodical reading application |
CN105847854A (en) * | 2016-04-12 | 2016-08-10 | 乐视控股(北京)有限公司 | Webcasting method and system |
CN107087217A (en) * | 2017-03-10 | 2017-08-22 | 北京潘达互娱科技有限公司 | Interface alternation method and live client in net cast |
CN107750005A (en) * | 2017-09-18 | 2018-03-02 | 迈吉客科技(北京)有限公司 | Virtual interactive method and terminal |
CN108200446A (en) * | 2018-01-12 | 2018-06-22 | 北京蜜枝科技有限公司 | Multimedia interactive system and method on the line of virtual image |
-
2018
- 2018-07-26 CN CN201810834513.0A patent/CN109240709A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012173656A1 (en) * | 2011-06-13 | 2012-12-20 | General Instrument Corporation | A method to query the status of a live tv streaming device |
CN104978169A (en) * | 2014-04-02 | 2015-10-14 | 北京大学 | SDK processing method and SDK processing device for periodical reading application |
CN105847854A (en) * | 2016-04-12 | 2016-08-10 | 乐视控股(北京)有限公司 | Webcasting method and system |
CN107087217A (en) * | 2017-03-10 | 2017-08-22 | 北京潘达互娱科技有限公司 | Interface alternation method and live client in net cast |
CN107750005A (en) * | 2017-09-18 | 2018-03-02 | 迈吉客科技(北京)有限公司 | Virtual interactive method and terminal |
CN108200446A (en) * | 2018-01-12 | 2018-06-22 | 北京蜜枝科技有限公司 | Multimedia interactive system and method on the line of virtual image |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112601098A (en) * | 2020-11-09 | 2021-04-02 | 北京达佳互联信息技术有限公司 | Live broadcast interaction method and content recommendation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104869452B (en) | Digital device and its method for handling screen protection program | |
CN106534757B (en) | Face exchange method and device, anchor terminal and audience terminal | |
CN108986192A (en) | Data processing method and device for live streaming | |
CN106331754A (en) | Method of via-microphone live broadcast in live Internet broadcast, and anchor-side device | |
CN106060526A (en) | Live broadcast method and device based on two cameras | |
CN105635716B (en) | Aggregated media method based on augmented reality | |
CN110248216A (en) | TV throws screen method, apparatus, TV throws screen system and computer equipment | |
CN106131591A (en) | Live broadcasting method, device and terminal | |
CN102882876A (en) | Intelligent guest room service method and system of public house | |
CN106534910A (en) | Multimedia playing control system, method and device | |
CN104936033B (en) | Unidirectional terminal barrage method based on Conditional Access of Digital Television | |
CN110290290A (en) | Implementation method, device, computer equipment and the storage medium of the studio cloud VR | |
CN102883131A (en) | Signaling interaction method and device based on tele-presence system | |
CN110035316A (en) | The method and apparatus for handling media data | |
CN105072477A (en) | Method and device for generating interactive feedback information of interactive TV system | |
CN108600239A (en) | Data synthesis method and device, client, server | |
CN106507159A (en) | Display device and its control method | |
PL183917B1 (en) | Separation of data section from a stream of transmitted data | |
US8219083B2 (en) | Service roaming system and method | |
CN109240709A (en) | SDK cut-in method and device for live streaming | |
CN106937164A (en) | The Set Top Box of television set and the exchange method of smart mobile phone | |
CN109102416A (en) | Live telecast social contact method and system, intelligent terminal based on intelligent terminal | |
CN106886705A (en) | A kind of processing method and processing device of film information | |
US20130291023A1 (en) | Method and apparatus for processing augmented broadcast content using augmentation region information | |
JP3521749B2 (en) | Method and system for realizing broadcast-type content in three-dimensional shared virtual space and storage medium storing program for realizing broadcast-type content in three-dimensional shared virtual space |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190118 |