CN106686420A - Live streaming application program management method and apparatus - Google Patents

Live streaming application program management method and apparatus Download PDF

Info

Publication number
CN106686420A
CN106686420A CN201611135895.5A CN201611135895A CN106686420A CN 106686420 A CN106686420 A CN 106686420A CN 201611135895 A CN201611135895 A CN 201611135895A CN 106686420 A CN106686420 A CN 106686420A
Authority
CN
China
Prior art keywords
plug
broadcast service
packet
live broadcast
application program
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
Application number
CN201611135895.5A
Other languages
Chinese (zh)
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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201611135895.5A priority Critical patent/CN106686420A/en
Publication of CN106686420A publication Critical patent/CN106686420A/en
Pending legal-status Critical Current

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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a live streaming application program management method and apparatus. The method includes the following steps: receiving a live streaming service update instruction sent from a live streaming service end; under the indication of the live streaming service update instruction, obtaining a data package corresponding to a live streaming service plug-in from the service end, wherein the data package is developed in advance and is independent from data packages corresponding to other live streaming service plug-ins; and dynamically loading the data package, adding the live streaming service plug-in to an application program, and updating a live streaming service function of the application program through the live streaming service plug-in. Through the embodiment, the service function is developed to be an independent data package, and the application program, when needing to be updated, can automatically download the data package and dynamically load the data package. Therefore, an application program with a new version needs not to be installed, operations of uses are reduced, convenience is brought to users, and user losses are prevented.

Description

The management method and device of live application program
Technical field
The application is related to Internet technical field, more particularly to the management method and device of live application program.
Background technology
Network direct broadcasting technology is that the live video data of main broadcaster user is broadcasted to multiple spectators users by a kind of service end The Internet technology of row viewing.Increasing user selects installing the live application that direct broadcast service business provides in mobile terminal Program, by live application program live events are participated in.
In live applicationpackage, it will usually be related to various different business functions, such as there is show field in direct broadcasting room, show , play and sing meeting or the electricity business function such as competing, or when direct broadcasting room has key activitiess (such as annual grand ceremony, Valentine's Day activity, New Year work Dynamic, Christmas activity etc.) when, it is also desirable to develop new business function.In correlation technique, when there is business function to update, typically The application program of redaction is issued by direct broadcast service end, is downloaded in the terminal by user and new application program is installed.This kind of mode, On the one hand operate comparatively laborious;On the other hand, it is impossible to ensure that all users can carry out application program update so that new business Function cannot be promoted.
The content of the invention
To overcome problem present in correlation technique, this application provides the management method and device of live application program.
According to the first aspect of the embodiment of the present application, there is provided a kind of management method of live application program, methods described bag Include:
Receive the live broadcast service more new command that direct broadcast service end is sent;
Under the instruction of live broadcast service more new command, the corresponding packet of live broadcast service plug-in unit is obtained from direct broadcast service end, The packet is developed in advance, and independently of other corresponding packets of live broadcast service plug-in unit;
Packet acquired in dynamic load, the corresponding live broadcast service plug-in unit is added into application program, is passed through The live broadcast service function of the live broadcast service update of plug-in application program.
Optionally, the packet includes resource, in the packet acquired in dynamic load, adds in the following way Carry the resource:
By the member function of the explorer of reflex mechanism call operation system, the path of the resource is supplied to The member function, and be the asset creation resource object using the member function, complete the dynamic load of the resource.
Optionally, the packet includes class file, in the packet acquired in dynamic load, in the following way Load the class file:
The class file is loaded by the Classloader of operating system, and performs the class file, complete the class file Dynamic load.
Optionally, methods described also includes:
In the live broadcast service plug-in component operation, the readjustment of the life cycle of plug-in item is carried out in the following way:
The plug-in item of the live broadcast service plug-in unit is performed by the master project agency of application program, to carry out plug-in item Life cycle readjustment;And/or
By reflex mechanism, the example of the member variable mInstrumentation in ActivityThread is replaced with The example of plug-in item, by the instantiation for rewriteeing the newActivty methods of Instrumentation to realize plug-in item, To carry out the readjustment of the life cycle of plug-in item using the mInstrumentation.
Optionally, methods described also includes:
Before the packet acquired in dynamic load, safety verification is carried out to the packet.
According to the second aspect of the embodiment of the present application, there is provided a kind of managing device of live application program, described device bag Include:
Command reception module, is used for:Receive the live broadcast service more new command that direct broadcast service end is sent;
Packet acquisition module, is used for:Under the instruction of live broadcast service more new command, from direct broadcast service end live industry is obtained The corresponding packet of business plug-in unit, the packet is developed in advance, and independently of other corresponding packets of live broadcast service plug-in unit;
Load-on module, is used for:Packet acquired in dynamic load, the live broadcast service plug-in unit is added to application program In, by the live broadcast service function of the live broadcast service update of plug-in application program.
Optionally, the packet includes resource, the load-on module, including resource loading submodule, for dynamic When state loads acquired packet, the resource is loaded in the following way:
By the member function of the explorer of reflex mechanism call operation system, the path of the resource is supplied to The member function, and be the asset creation resource object using the member function, complete the dynamic load of the resource.
Optionally, the packet includes class file, the load-on module, including class file load-on module, for During packet acquired in dynamic load, the class file is loaded in the following way:
The class file is loaded by the Classloader of operating system, and performs the class file, complete the class file Dynamic load.
Optionally, described device also includes callback module, is used for:
In the live broadcast service plug-in component operation, the readjustment of the life cycle of plug-in item is carried out in the following way:
The plug-in item of the live broadcast service plug-in unit is performed by the master project agency of application program, to carry out plug-in item Life cycle readjustment;And/or
By reflex mechanism, the example of the member variable mInstrumentation in ActivityThread is replaced with The example of plug-in item, by the instantiation for rewriteeing the newActivty methods of Instrumentation to realize plug-in item, To carry out the readjustment of the life cycle of plug-in item using the mInstrumentation.
Optionally, described device also includes secure verification module, is used for:It is right before the packet acquired in dynamic load The packet carries out safety verification.
The technical scheme that embodiments herein is provided can include following beneficial effect:
In the application, the live broadcast service more new command that direct broadcast service end is sent can be received;Update in live broadcast service and refer to Under the instruction of order, the corresponding packet of live broadcast service plug-in unit is obtained from service end, the packet is developed in advance, and independently of it The live broadcast service plug-in unit of his function;Packet described in dynamic load, the live broadcast service plug-in unit is added into application program, is led to Cross the live broadcast service function of the live broadcast service update of plug-in application program.In the present embodiment, by being by business function exploitation Independent packet, application program need update when, application program can with automatically downloading data bag go forward side by side Mobile state loading, because This need not install the application program of redaction, can reduce user operation, provide the user facility, prevent customer loss.
By the Managed Solution of the live application program using the present embodiment, direct broadcast service business can be according to different business Demand, quickly more new business plug-in unit.When live application program goes wrong, energy online updating plug-in unit repairs problem.Also, The process for frequently sending out version can be reduced, the low process of redaction user coverage rate is solved.User can also be reduced and answer edition upgrading, Loaded down with trivial details installation operation process.At the same time it can also solve the problems, such as that installation kit volume constantly becomes big, the use of cell-phone customer terminal is lifted Family is experienced, and increases the high availability of live application program.By such scheme, developer can as far as possible take out business module As out, and can develop in an independent engineering, lower coupling, also reduce what the exploitation in same engineering project was brought Code conflicts.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The application can be limited.
Description of the drawings
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement for meeting the application Example, and be used to explain the principle of the application together with description.
Figure 1A is the application of the management method of a kind of live application program of the application according to an exemplary embodiment Schematic diagram of a scenario.
Figure 1B is the interface schematic diagram of a kind of live application program of the application according to an exemplary embodiment.
Fig. 2 is the flow process of the management method of a kind of live application program of the application according to an exemplary embodiment Figure.
Fig. 3 is the block diagram of the managing device of a kind of live application program of the application according to an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is, only merely for the purpose of description specific embodiment, and to be not intended to be limiting the application in term used in this application. " one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein is referred to and wrapped Containing one or more associated any or all possible combinations for listing project.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for that same type of information is distinguished from each other out.For example, without departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
As shown in Figure 1A, it is the management method of a kind of live application program of the application according to an exemplary embodiment Application scenarios schematic diagram, Figure 1A includes the server as server device and the intelligent handss as client device Machine and panel computer.Wherein, client device can also be that (Personal Digital Assistant, individual digital is helped PDA Reason), multimedia player, the smart machine such as wearable device.
In live application program, according to different business demands, show field, scene, the object for appreciation meeting of singing or the electricity difference such as competing can be related to Live broadcast service function;Or, when direct broadcasting room has key activitiess (as annual grand ceremony, Valentine's Day activity, New Year activity, Christmas live Move) when, more business function also can be provided in live application program.As shown in Figure 1B, it is that the application is exemplary according to one The interface schematic diagram of a kind of live application program that enforcement is exemplified, shows four kinds of differences in live application program in Figure 1B Business function.
In correlation technique, if live broadcast service has renewal, it usually needs the iterative development on the basis of former application program, issue The application program of redaction, is downloaded in the terminal and is installed by user.Under this kind of mode, the manual update new edition of user is needed This, the renewal process of new edition application is relatively complicated;Due to user might not all can active update redaction, because The user coverage rate of this redaction often also cannot ensure, or even also result in customer loss.
Often there is following situation in also Jing in practical application:In application development process, may for a kind of business demand There are various designs, when it is optimum that cannot determine which kind of scheme, examination may be issued by multiple version iteration Mistake, then observes the statistical data that user uses, and then the scheme that the most users of selection use, and this process is A/B TEST mistakes Journey.Due to being required for issuing the application program of redaction every time, the process is more very long, and coverage rate is relatively low.
And the scheme provided in the embodiment of the present application, the live broadcast service that direct broadcast service end sent can be received and updated and refer to Order;Under the instruction of live broadcast service more new command, from service end the corresponding packet of live broadcast service plug-in unit, the packet are obtained Exploitation in advance, and independently of the live broadcast service plug-in unit of other functions;Packet described in dynamic load, by the live broadcast service plug-in unit Add into application program, by the live broadcast service function of the live broadcast service update of plug-in application program.In the present embodiment, lead to It is independent packet to cross business function exploitation, and when application program needs to update, application program can be with backstage downloading data Wrap Mobile state of going forward side by side to load, therefore the application program of redaction need not be installed, user operation can be reduced, provide the user just Profit, prevents customer loss.Next the embodiment of the present application is described in detail.
As shown in Fig. 2 Fig. 2 is the manager of a kind of live application program of the application according to an exemplary embodiment The flow chart of method, can be applicable to smart machine, comprise the following steps 201 to 203:
In step 201, the live broadcast service more new command that direct broadcast service end is sent is received.
In step 202., under the instruction of live broadcast service more new command, from direct broadcast service end live broadcast service plug-in unit pair is obtained The packet answered, the packet is developed in advance, and independently of the live broadcast service plug-in unit of other functions.
In step 203, the packet acquired in dynamic load, the corresponding live broadcast service plug-in unit is added to application In program, by the live broadcast service function of the live broadcast service update of plug-in application program.
In the embodiment of the present application, smart machine can be smart mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), E-book reader, intelligent watch, multimedia player etc..Certainly, the application reality Apply the application that example is also not excluded on computers.Generally, operating system is installed, operating system is to manage and control in smart machine The computer program of computer hardware processed and software resource, is to run directly in the most basic systems soft ware on equipment, any Other application software must could run under the support of operating system.The operating system of common smart machine is included Android (ARIXTRA) operating system, the iOS handheld equipment operating system of exploitation (Apple), (SuSE) Linux OS or Windows operating system etc..
The live application program of the present embodiment, by direct broadcast service, business provides, and by user installation in smart machine.It is live Business plug-in unit, refers to and be not mounted and wish by the live application program having been mounted on smart machine, straight by this Broadcast the plug-in unit of application program operation.The developer at direct broadcast service end can develop new live industry according to live broadcast service demand The project file of business plug-in unit, by the compiling of live broadcast service plug-in unit packet is packaged into.
Using the method for the embodiment of the present application, the developer of service end can be by each functional independence of application program Module detaches split out as far as possible, exploitation application module independent mutually, business plug-in item is that is to say, so that respectively There is the relatively low degree of coupling between individual business plug-in unit.When there is new live broadcast service function, independent live broadcast service can be developed Plug-in unit, by the project file of exploitation packet is packaged as, and the packet is usually the file of the forms such as .zip .apk or .so.Should Packet is provided to the application program of intelligent terminal, by the application program dynamic load packet, live broadcast service plug-in unit is added In adding to application program.
In actual applications, due to the difference such as type, operating system, device screen of different intelligent equipment, in order to be adapted to Different smart machines, the application program that direct broadcast service business is provided has various different versions, answering for different editions With program, the live broadcast service plug-in unit of corresponding exploitation is likely to different versions.Service end can store live broadcast service plug-in unit Can be that live broadcast service plug-in unit and application program all configure respective identification, live industry specifically with the corresponding relation of application program The mark of business plug-in unit can indicate following one or more information:The version of plug-in unit, the entry-into-force time of plug-in unit, (i.e. plug-in unit was assorted Available in time range), cover type (such as iOS system, android system etc.), cover user type (such as fee Family, free users etc.), in order to the smart machine that corresponding plug-in's data bag can be issued to corresponding types.
Developer can select the packet for needing to update according to service needed, and be handed down to client.Under specific The process of sending out, can be that service end pushes live broadcast service more new command to application program, can carry in live broadcast service more new command Have the concrete download address and mark of packet, application program after live broadcast service more new command is received, according to download ground Download the packet of matching in location.It is concrete when downloading, can also by the plug-in version added in current application program with it is to be downloaded Version number contrasted, if the plug-in version added in current application program is not latest edition, can with down loading updating, If not latest edition, then can not update plug-in unit.
Application program can carry out the process of dynamic load after downloading data bag to acquired packet.In order to anti- The problems such as only packet of plug-in unit malfunctions or is tampered in downloading process, in an optional implementation, methods described Also include:
Before the packet acquired in dynamic load, safety verification is carried out to the packet.
Wherein, safety verification can adopt Message Digest 5, symmetric key, unsymmetrical key in correlation technique etc. many Plant safety verification mode.The packet downloaded can carry out follow-up dynamic load after safety verification, just and process;If no By safety verification, then it represents that packet is possible to be tampered, or file makes a mistake, and application program then can be carried out Re-download or stop renewal etc. to process, so as to improve the safety of application program management.
In the embodiment of the present application, for Android operation system, during by business plug-in unit bag dynamic load to application program, Need the problems such as considering resource loading, class file loading and life cycle callback.Next carry out in detail for the problems referred to above Explanation.
Resource is loaded:
In the present embodiment, the business plug-in unit includes resource, in the packet acquired in dynamic load, by as follows Mode loads the resource:
By the member function of the explorer of reflex mechanism call operation system, the path of the resource is supplied to The member function, and be the asset creation resource object using the member function, complete the dynamic load of the resource.
Wherein, resource refer to image file included in plug-in's data bag, xml (extensible markup language, Extensible Markup Language) file such as file, animation file or audio-video document.Specifically, android system In, resource loading needs the addAssetPath methods (money in the AssetManager (explorer) of call operation system The member function of source manager).Because addAssetPath methods belong to hiding interface, it is impossible to directly invoke.Therefore this enforcement Example calls the method using reflex mechanism.
Reflex mechanism, refers in running status, for any one class, can know this class all properties and Method;For any one object, its any one method and attribute can be called;The information of this dynamic access and The function of the method for dynamic call object is referred to as a kind of reflex mechanism of Java (computer programming language) language.Therefore, pass through Reflex mechanism calls addAssetPath methods, and the path of resource is supplied to into called addAssetPath methods.Wherein, Resource file is integrated in the packet, and herein the path of resource can refer to the path of packet.By addAssetPath methods, Resource in packet can be loaded onto in AssetManager, created by AssetManager afterwards one it is new Resources (resource) object, completes the loading of resource.By the Resources objects for creating, application program can be using Resource in packet, so as to share the resource file of plug-in unit and application program.
Class file is loaded:
In the present embodiment, the business plug-in unit includes class (class) file, in the packet acquired in dynamic load When, the class file is loaded in the following way:
The class file is loaded by the Classloader of operating system, and performs the class file, complete the class file Dynamic load.
In Java, Classloader (ClassLoader) can be used to dynamic loading class files, the Java of standard SDK (SDK, Software Development Kit) includes ClassLoader classes, can be filled by such The class files for needing are carried, on condition that the initialization of ClassLoader classes need to obtain the path of class files.ClassLoader Can be with the loading class file of freedom and flexibility, and for Android, it substantially uses Java to develop, using mark Accurate Java compiler can compile out class files, the class text after the project file compiling of Android, included in packet Part is the file of dex types, and class files are repacked and generated by dex files, and the rule of packing is not simply to press Contracting, but completely to the various function tables of class file internals, argument table is optimized, and produces a new file.Therefore add When carrying this special class files, DexClassLoader loaders can be adopted to complete the dynamic load of class file.
The readjustment of life cycle:
In the present embodiment, after live broadcast service plug-in unit dynamic load, plug-in unit can run in the application, however, due to The plug-in items such as the Activity (activity) in plug-in's data bag are registered without inside the Manifest of master project, so cannot A series of initialization procedures of experience operating system Framework level, the Activity examples for ultimately resulting in acquisition do not have Life cycle, and res resources cannot be used.Therefore, the present embodiment realizes the readjustment of life cycle by the following two kinds mode.
The first,
The plug-in item of the live broadcast service plug-in unit is performed by the master project agency of application program, to carry out plug-in item Life cycle readjustment.
The present embodiment realizes the readjustment of plug-in item life cycle, and the establishment of plug-in item view by the form acted on behalf of And binding.Because application program master project (also referred to as host's project) activity (the four big infrastructure components of Android it One), services (one of four big infrastructure components of Android) is that by operating system management and initialization, host's project can be with Receive the readjustment of the life cycle of operating system.The execution plug-in item that the present embodiment goes to act on behalf of by host's project Activity or service, and then allow plug-in item also to receive the readjustment of the life cycle of operating system, and plug-in item Also the reference of host's project can be passed through, by the establishment and renewal of host's item setup view.
Secondth,
By reflex mechanism, the example of the member variable mInstrumentation in ActivityThread is replaced with The example of plug-in item, by the instantiation for rewriteeing the newActivty methods of Instrumentation to realize plug-in item, To carry out the readjustment of the life cycle of plug-in item using the mInstrumentation.
In the present embodiment, in Android operation system, Instrumentation is of ActivityThread House keeper, the readjustment of the life cycle of host's project, operating system bottom is also to be called by Instrumentation.Cause This, the reflex mechanism that the present embodiment passes through Java, by calling Instrumentation methods, by Instrumentation side The example of the mInstrumentation member variables in method replaces with the example of plug-in item, by rewriteeing The method of the newActivty of Instrumentation can realize the instantiation of plug-in item, such that it is able to utilize MInstrumentation solves the problems, such as life cycle callback.
From above-described embodiment, by the management method of the live application program using the present embodiment, direct broadcast service business Can be according to different business demands, quick more new business plug-in unit.When live application program goes wrong, energy online updating is inserted Part, repairs problem.And it is possible to reduce the process for frequently sending out version, the low process of redaction user coverage rate is solved.Can also subtract Few user answers edition upgrading, loaded down with trivial details installation operation process.At the same time it can also solve the problems, such as that installation kit volume constantly becomes big, The Consumer's Experience of cell-phone customer terminal is lifted, increases the high availability of live application program.By said method, developer can be with Business module is abstracted as far as possible, and can be developed in an independent engineering, lower coupling, also reduced in same engineering Brought code conflicts are developed in project.
It is corresponding with the embodiment of the management method of aforementioned live application program, present invention also provides live application program Managing device embodiment.
As shown in figure 3, Fig. 3 is the management dress of a kind of live application program of the application according to an exemplary embodiment The block diagram put, described device includes:
Command reception module 31, is used for:Receive the live broadcast service more new command that direct broadcast service end is sent.
Packet acquisition module 32, is used for:Under the instruction of live broadcast service more new command, obtain live from direct broadcast service end The corresponding packet of business plug-in unit, the packet is developed in advance, and independently of other corresponding packets of live broadcast service plug-in unit.
Load-on module 33, is used for:Packet acquired in dynamic load, by the corresponding live broadcast service plug-in unit add to In application program, by the live broadcast service function of the live broadcast service update of plug-in application program.
In an optional implementation, the packet include resource, the load-on module 31, including resource plus Carrier module (not shown in Fig. 3), in the packet acquired in dynamic load, the money being loaded in the following way Source:
By the member function of the explorer of reflex mechanism call operation system, the path of the resource is supplied to The member function, and be the asset creation resource object using the member function, complete the dynamic load of the resource.
In an optional implementation, the packet includes class file, the load-on module 31, including class text Part load-on module (not shown in Fig. 3), in the packet acquired in dynamic load, the class being loaded in the following way File:
The class file is loaded by the Classloader of operating system, and performs the class file, complete the class file Dynamic load.
In an optional implementation, described device also includes callback module (not shown in Fig. 3), is used for:
In the live broadcast service plug-in component operation, the readjustment of the life cycle of plug-in item is carried out in the following way:
The plug-in item of the live broadcast service plug-in unit is performed by the master project agency of application program, to carry out plug-in item Life cycle readjustment;
And/or
By reflex mechanism, the example of the member variable mInstrumentation in ActivityThread is replaced with The example of plug-in item, by the instantiation for rewriteeing the newActivty methods of Instrumentation to realize plug-in item, To carry out the readjustment of the life cycle of plug-in item using the mInstrumentation.
In an optional implementation, described device also includes secure verification module (not shown in Fig. 3), is used for: Before the packet acquired in dynamic load, safety verification is carried out to the packet.
The function of modules and effect realizes that process specifically refers in said method correspondence step in said apparatus Process is realized, be will not be described here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality Apply the part explanation of example.Device embodiment described above is only schematic, wherein described as separating component The module of explanation can be or may not be physically separate, can be as the part that module shows or can also It is not physical module, you can be located at a place, or can also be distributed on multiple mixed-media network modules mixed-medias.Can be according to reality Need the purpose for selecting some or all of module therein to realize application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
Those skilled in the art will readily occur to its of the application after the invention that description and practice are applied here is considered Its embodiment.The application is intended to any modification, purposes or the adaptations of the application, these modifications, purposes or The common knowledge in the art that person's adaptations follow the general principle of the application and do not apply including the application Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the application and spirit are by following Claim is pointed out.
It should be appreciated that the application is not limited to the precision architecture for being described above and being shown in the drawings, and And can without departing from the scope carry out various modifications and changes.Scope of the present application is only limited by appended claim.
The preferred embodiment of the application is the foregoing is only, not to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.

Claims (10)

1. a kind of management method of live application program, it is characterised in that methods described includes:
Receive the live broadcast service more new command that direct broadcast service end is sent;
Under the instruction of live broadcast service more new command, the corresponding packet of live broadcast service plug-in unit is obtained from direct broadcast service end, it is described Packet is developed in advance, and independently of other corresponding packets of live broadcast service plug-in unit;
Packet acquired in dynamic load, corresponding live broadcast service plug-in unit is added into application program, by described live The live broadcast service function of business update of plug-in application program.
2. method according to claim 1, it is characterised in that the packet includes resource, is obtained in dynamic load During the packet for taking, the resource is loaded in the following way:
By the member function of the explorer of reflex mechanism call operation system, the path of the resource is supplied to described Member function, and be the asset creation resource object using the member function, complete the dynamic load of the resource.
3. method according to claim 1, it is characterised in that the packet includes class file, in dynamic load institute During the packet of acquisition, the class file is loaded in the following way:
The class file is loaded by the Classloader of operating system, the class file is performed, the dynamic of the class file is completed Loading.
4. method according to claim 1, it is characterised in that methods described also includes:
In the live broadcast service plug-in component operation, the readjustment of the life cycle of plug-in item is carried out in the following way:
The plug-in item of the live broadcast service plug-in unit is performed by the master project agency of application program, to carry out the life of plug-in item The readjustment in life cycle;And/or
By reflex mechanism, the example of the member variable mInstrumentation in ActivityThread is replaced with into plug-in unit The example of project, by the instantiation for rewriteeing the newActivty methods of Instrumentation to realize plug-in item, with profit The readjustment of the life cycle of plug-in item is carried out with the mInstrumentation.
5. method according to claim 1, it is characterised in that methods described also includes:
Before the packet acquired in dynamic load, safety verification is carried out to the packet.
6. a kind of managing device of live application program, it is characterised in that described device includes:
Command reception module, is used for:Receive the live broadcast service more new command that direct broadcast service end is sent;
Packet acquisition module, is used for:Under the instruction of live broadcast service more new command, obtain live broadcast service from direct broadcast service end and insert The corresponding packet of part, the packet is developed in advance, and independently of other corresponding packets of live broadcast service plug-in unit;
Load-on module, is used for:Packet acquired in dynamic load, the corresponding live broadcast service plug-in unit is added to applying journey In sequence, by the live broadcast service function of the live broadcast service update of plug-in application program.
7. device according to claim 6, it is characterised in that the packet includes resource, the load-on module, bag Resource loading submodule is included, in the packet acquired in dynamic load, the resource being loaded in the following way:
By the member function of the explorer of reflex mechanism call operation system, the path of the resource is supplied to described Member function, and be the asset creation resource object using the member function, complete the dynamic load of the resource.
8. device according to claim 6, it is characterised in that the packet includes class file, the load-on module, Including class file load-on module, in the packet acquired in dynamic load, the class file being loaded in the following way:
The class file is loaded by the Classloader of operating system, and performs the class file, complete the dynamic of the class file State is loaded.
9. device according to claim 6, it is characterised in that described device also includes callback module, is used for:
In the live broadcast service plug-in component operation, the readjustment of the life cycle of plug-in item is carried out in the following way:
The plug-in item of the live broadcast service plug-in unit is performed by the master project agency of application program, to carry out the life of plug-in item The readjustment in life cycle;And/or
By reflex mechanism, the example of the member variable mInstrumentation in ActivityThread is replaced with into plug-in unit The example of project, by the instantiation for rewriteeing the newActivty methods of Instrumentation to realize plug-in item, with profit The readjustment of the life cycle of plug-in item is carried out with the mInstrumentation.
10. device according to claim 6, it is characterised in that described device also includes secure verification module, is used for: Before packet acquired in dynamic load, safety verification is carried out to the packet.
CN201611135895.5A 2016-12-09 2016-12-09 Live streaming application program management method and apparatus Pending CN106686420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611135895.5A CN106686420A (en) 2016-12-09 2016-12-09 Live streaming application program management method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611135895.5A CN106686420A (en) 2016-12-09 2016-12-09 Live streaming application program management method and apparatus

Publications (1)

Publication Number Publication Date
CN106686420A true CN106686420A (en) 2017-05-17

Family

ID=58868795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611135895.5A Pending CN106686420A (en) 2016-12-09 2016-12-09 Live streaming application program management method and apparatus

Country Status (1)

Country Link
CN (1) CN106686420A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273142A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Method for updating program, program operating method and device
CN107678801A (en) * 2017-10-09 2018-02-09 武汉斗鱼网络科技有限公司 A kind of method and apparatus of plug-in unit loading
CN109151601A (en) * 2017-06-28 2019-01-04 武汉斗鱼网络科技有限公司 Quick start and method, storage medium, equipment and the system for obtaining game picture
CN109213534A (en) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 A kind of method and device of extension live streaming software function
CN110007980A (en) * 2019-01-29 2019-07-12 阿里巴巴集团控股有限公司 The implementation method and device at multi-services end
CN110381332A (en) * 2019-08-01 2019-10-25 广州虎牙科技有限公司 Direct broadcasting room component processing method, device, electronic equipment and readable storage medium storing program for executing
CN111190609A (en) * 2018-11-14 2020-05-22 广东万丈金数信息技术股份有限公司 Service processing method, device, equipment and storage medium
CN111475171A (en) * 2019-01-23 2020-07-31 阿里巴巴集团控股有限公司 Application program component downloading method and device and electronic equipment
CN111722857A (en) * 2019-03-20 2020-09-29 北京柏林互动科技有限公司 Updating method and device of software development kit, electronic equipment and storage medium
CN113573081A (en) * 2021-07-16 2021-10-29 杭州时趣信息技术有限公司 Play function management method and system for live broadcast room, electronic equipment and storage medium
CN113778558A (en) * 2021-09-15 2021-12-10 北京快来文化传播集团有限公司 Live broadcast software extension method and device based on plug-in and storage medium
CN113891162A (en) * 2021-11-23 2022-01-04 广州方硅信息技术有限公司 Live broadcast room loading method and device and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946173A (en) * 2006-10-10 2007-04-11 华为技术有限公司 IPTV direct broadcast service control method, system and device
US20140006486A1 (en) * 2012-06-28 2014-01-02 Google Inc. System and method for determining appropriate content for an event content stream
CN103530156A (en) * 2013-10-17 2014-01-22 北京奇虎科技有限公司 Method and device for dynamically loading and calling program
CN105898438A (en) * 2016-04-07 2016-08-24 广州华多网络科技有限公司 Live broadcasting room dynamic configuration method, device, system and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946173A (en) * 2006-10-10 2007-04-11 华为技术有限公司 IPTV direct broadcast service control method, system and device
US20140006486A1 (en) * 2012-06-28 2014-01-02 Google Inc. System and method for determining appropriate content for an event content stream
CN103530156A (en) * 2013-10-17 2014-01-22 北京奇虎科技有限公司 Method and device for dynamically loading and calling program
CN105898438A (en) * 2016-04-07 2016-08-24 广州华多网络科技有限公司 Live broadcasting room dynamic configuration method, device, system and server

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151601A (en) * 2017-06-28 2019-01-04 武汉斗鱼网络科技有限公司 Quick start and method, storage medium, equipment and the system for obtaining game picture
CN109151601B (en) * 2017-06-28 2020-08-04 武汉斗鱼网络科技有限公司 Method, storage medium, device and system for quickly starting and acquiring game picture
CN109213534A (en) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 A kind of method and device of extension live streaming software function
CN107273142B (en) * 2017-07-12 2021-04-23 北京龙之心科技有限公司 Program updating method, program running method and device
CN107273142A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Method for updating program, program operating method and device
CN107678801A (en) * 2017-10-09 2018-02-09 武汉斗鱼网络科技有限公司 A kind of method and apparatus of plug-in unit loading
CN107678801B (en) * 2017-10-09 2018-09-04 武汉斗鱼网络科技有限公司 A kind of method and apparatus of plug-in unit load
CN111190609B (en) * 2018-11-14 2024-01-12 广东万丈金数信息技术股份有限公司 Service processing method, device, equipment and storage medium
CN111190609A (en) * 2018-11-14 2020-05-22 广东万丈金数信息技术股份有限公司 Service processing method, device, equipment and storage medium
CN111475171B (en) * 2019-01-23 2024-04-12 阿里巴巴集团控股有限公司 Application program component downloading method and device and electronic equipment
CN111475171A (en) * 2019-01-23 2020-07-31 阿里巴巴集团控股有限公司 Application program component downloading method and device and electronic equipment
CN110007980B (en) * 2019-01-29 2022-05-24 创新先进技术有限公司 Method and device for realizing multi-service server
CN110007980A (en) * 2019-01-29 2019-07-12 阿里巴巴集团控股有限公司 The implementation method and device at multi-services end
CN111722857A (en) * 2019-03-20 2020-09-29 北京柏林互动科技有限公司 Updating method and device of software development kit, electronic equipment and storage medium
CN110381332A (en) * 2019-08-01 2019-10-25 广州虎牙科技有限公司 Direct broadcasting room component processing method, device, electronic equipment and readable storage medium storing program for executing
CN113573081A (en) * 2021-07-16 2021-10-29 杭州时趣信息技术有限公司 Play function management method and system for live broadcast room, electronic equipment and storage medium
CN113573081B (en) * 2021-07-16 2024-01-26 杭州时趣信息技术有限公司 Method, system, electronic equipment and storage medium for managing play function of live broadcasting room
CN113778558A (en) * 2021-09-15 2021-12-10 北京快来文化传播集团有限公司 Live broadcast software extension method and device based on plug-in and storage medium
CN113891162A (en) * 2021-11-23 2022-01-04 广州方硅信息技术有限公司 Live broadcast room loading method and device and computer equipment
CN113891162B (en) * 2021-11-23 2024-03-12 广州方硅信息技术有限公司 Live broadcast room loading method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106686420A (en) Live streaming application program management method and apparatus
US7886285B2 (en) Combining software executable libraries
CA2939379C (en) Systems and methods for partitioning computing applications to optimize deployment resources
US8549490B2 (en) Static code analysis for packaged application customization
US9916137B2 (en) Rest service source code generation
CA2939400C (en) Systems and methods for controlling branch latency within computing applications
US20070088707A1 (en) Method for providing extensible software components within a distributed synchronization system
US11340893B2 (en) Mobile application update preserving changes to the application made by a client
US11182206B2 (en) Event proxies for functions-as-a-service (FAAS) infrastructures
CN105159788B (en) Method and system for dynamically sharing resources between Android applications
CN110187910B (en) Thermal updating method, device, equipment and computer readable storage medium
US10929124B2 (en) Application release using integration into unified code system
CN109144533A (en) A kind of method, system and the computer installation of update and the load of application program
GB2589658A (en) Method and apparatus for running an applet
US8607191B2 (en) Automated discovery of programmatic resources
CN110865889A (en) Method and apparatus for transferring events between components
CN107133055A (en) A kind of method that customized development is realized based on ClassLoader
US20200110597A1 (en) System and method for authoring a software application
CN105701406A (en) Method of Android platform for running traditional payment application
US9135001B2 (en) Dynamically configuring an integrated development environment
CN108228266B (en) Method and device for starting Fragment component between different plug-ins under Android plug-in framework
CN109857374B (en) Development method and device of mobile application
US20150052514A1 (en) Method and computer system of distributing a computer program product
CN113032004A (en) Method, apparatus and program product for managing development jobs in a development environment
WO2007021775A2 (en) A method for providing extensible software components within a distributed synchronization system

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: 20170517