A kind of method and device of extension live streaming software functionTechnical field
The present invention relates to field of computer technology more particularly to a kind of method and devices of extension live streaming software function.
Background technique
With the development of direct seeding technique, more and more platforms that are broadcast live all provide live streaming industry by the live streaming software of oneselfBusiness.The function that software is broadcast live is varied, such as obtains desktop, adds text, adds the functions such as camera, usually, directlyThe function of broadcasting software is arranged when software is broadcast live in exploitation by developer.
However, the variation of development and user demand due to direct seeding technique, it is often necessary to update or extension live streaming is softThe function of part.Existing way is that developer develops setting live streaming software again, is then updated or is re-downloaded by userThe live streaming software of new version will greatly increase the consumption of system resource in this way, and the demand of user is ever-changing, develops againLive streaming software may also be unable to satisfy the demand of various users, therefore, there is system in the extended method of existing live streaming software functionThe larger technical problem of system resource consumption.
Summary of the invention
It is soft to solve existing live streaming the embodiment of the invention provides a kind of method and device of extension live streaming software functionThe extended method of the part function technical problem larger there are system resources consumption.
In a first aspect, the present invention provides a kind of methods of extension live streaming software function, comprising:
Live streaming software package is obtained based on predetermined directory;
The live streaming software package is loaded onto the corresponding main program of the live streaming software;
Start the main program, and the live streaming software package is called by the main program, to realize that the live streaming is softThe function of part plug-in unit, and software function is broadcast live to the main program by the function realization of the live streaming software package accordinglyExtension.
Optionally, it is described the live streaming software package is loaded onto the corresponding main program of the live streaming software before,The method also includes:
Judge whether the version of the live streaming software package is consistent with the version of the live streaming software;
If it is described live streaming software package version and it is described live streaming software version it is inconsistent, do not execute it is described will described inLive streaming software package is loaded onto the step in the corresponding main program of the live streaming software;
If the version of the live streaming software package is consistent with the live streaming version of software, execute described by the live streamingSoftware package is loaded onto the step in the corresponding main program of the live streaming software.
Optionally, starting the main program, and the live streaming software package is called by the main program, to realizeThe function of live streaming software package is stated, and be broadcast live corresponding with the application program is realized by the function of the live streaming software packageAfter the extension of software function, the method also includes:
Close the main program;
Remove the live streaming software package being loaded onto the main program.
It is optionally, described that live streaming software package is obtained based on predetermined directory, comprising:
One or more legal plug-in units are obtained from the predetermined directory;
Whether the type for judging the legal plug-in unit is live streaming software package type;
If the type of the legal plug-in unit is live streaming software package type, using the legal plug-in unit as described straightBroadcast software package.
It is optionally, described that one or more legal plug-in units are obtained from the predetermined directory, comprising:
One or more dynamic link library (DLL) plug-in units are obtained from the predetermined directory;
One or more DLL plug-in units are called, call result is obtained;
The call result is indicated to call successful DLL plug-in unit, as the legal plug-in unit.
Optionally, the live streaming software package includes at least: the title of plug-in unit and the detailed description information of plug-in unit.
Based on same inventive concept, second aspect of the present invention provides a kind of device of extension live streaming software function, packetIt includes:
Module is obtained, for obtaining live streaming software package based on predetermined directory;
Loading module, for the live streaming software package to be loaded onto the corresponding main program of the live streaming software;
Calling module calls the live streaming software package for starting the main program, and by the main program, with realityThe function of the existing live streaming software package, and it is straight accordingly to the main program by the function realization of the live streaming software packageBroadcast the extension of software function.
Optionally, described device further includes judgment module, for it is described the live streaming software package is loaded onto it is describedBefore being broadcast live in the corresponding main program of software,
Judge whether the version of the live streaming software package is consistent with the version of the live streaming software;
If it is described live streaming software package version and it is described live streaming software version it is inconsistent, do not execute it is described will described inLive streaming software package is loaded onto the step in the corresponding main program of the live streaming software;
If the version of the live streaming software package is consistent with the live streaming version of software, execute described by the live streamingSoftware package is loaded onto the step in the corresponding main program of the live streaming software.
Optionally, described device further include further include first processing module, for starting the main program, and pass through instituteIt states main program and calls the live streaming software package, to realize the function of the live streaming software package, and pass through the live streaming softwareThe function of plug-in unit realizes be broadcast live the extension of software function after corresponding with the application program:
Close the main program;
Remove the live streaming software package being loaded onto the main program.
Optionally, the acquisition module is also used to:
One or more legal plug-in units are obtained from the predetermined directory;
Whether the type for judging the legal plug-in unit is live streaming software package type;
If the type of the legal plug-in unit is live streaming software package type, using the legal plug-in unit as described straightBroadcast software package.
Optionally, the acquisition module is also used to:
One or more dynamic link library (DLL) plug-in units are obtained from the predetermined directory;
One or more DLL plug-in units are called, call result is obtained;
The call result is indicated to call successful DLL plug-in unit, as the legal plug-in unit.
Optionally, the live streaming software package includes at least: the title of plug-in unit and the detailed description information of plug-in unit.
Based on same inventive concept, third aspect present invention provides a kind of computer readable storage medium, deposits thereonComputer program is contained, which performs the steps of when being executed by processor
Live streaming software package is obtained based on predetermined directory;
The live streaming software package is loaded onto the corresponding main program of the live streaming software;
Start the main program, and the live streaming software package is called by the main program, to realize that the live streaming is softThe function of part plug-in unit, and software function is broadcast live to the main program by the function realization of the live streaming software package accordinglyExtension.
Based on same inventive concept, fourth aspect present invention provides a kind of computer equipment, including memory, processingOn a memory and the computer program that can run on a processor, when processor execution described program, is realized for device and storageFollowing steps:
Live streaming software package is obtained based on predetermined directory;
The live streaming software package is loaded onto the corresponding main program of the live streaming software;
Start the main program, and the live streaming software package is called by the main program, to realize that the live streaming is softThe function of part plug-in unit, and software function is broadcast live to the main program by the function realization of the live streaming software package accordinglyExtension.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effectsFruit:
In the technical solution of the embodiment of the present invention, it is primarily based on predetermined directory and obtains live streaming software package, then by instituteIt states live streaming software package to be loaded onto the corresponding main program of the live streaming software, starts the main program, and pass through the main journeySequence calls the live streaming software package, to realize the function of the live streaming software package, and passes through the live streaming software packageFunction realizes the extension for the main program being broadcast live accordingly software function, i.e., on the basis of original live streaming software, loadThe plug-in unit of corresponding function, and call plug-in unit that can realize the function of plug-in unit by the main program of live streaming software, it is inserted to pass throughThe function of part realizes the extension of live streaming software function, compared with the existing technology in need to re-download live streaming software for, can be withGreatly reduce the consumption of FTP client FTP resource, and can use the plug-in unit of different function to realize the extension of different function,To meet the needs of different user, the scalability of live streaming software is improved, solves the extension of existing live streaming software functionThe method technical problem larger there are system resources consumption.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage canIt is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hairBright some embodiments for those of ordinary skill in the art without creative efforts, can be with rootOther attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of the method for extension live streaming software function in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the device of extension live streaming software function in the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of computer readable storage medium in the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of computer equipment in the embodiment of the present invention.
Specific embodiment
It is soft to solve existing live streaming the embodiment of the invention provides a kind of method and device of extension live streaming software functionThe extended method of the part function technical problem larger there are system resources consumption.
Technical solution in the embodiment of the present application, general thought are as follows:
A method of extension live streaming software function, comprising: live streaming software package is obtained based on predetermined directory;It will be described straightSoftware package is broadcast to be loaded onto the corresponding main program of the live streaming software;Start the main program, and passes through the main program tuneWith the live streaming software package, to realize the function of the live streaming software package, and pass through the function of the live streaming software packageRealize the extension for the main program being broadcast live accordingly software function.
Due to the above method provided by the invention, acquisition is live streaming software package, then will live streaming software package loadCall live streaming software package that the function of plug-in unit then may be implemented into the main program of live streaming software, and through main program, to lead toThe function of crossing plug-in unit realizes that the extension to live streaming software function loads corresponding function that is, on the basis of original live streaming softwarePlug-in unit, and call plug-in unit that can realize the extension of live streaming software function by the main program of main broadcaster's software, relative to existingFor needing to re-download live streaming software in technology, the consumption of FTP client FTP resource can be greatly reduced, and can useThe plug-in unit of different function realizes the extension of different function, to meet the needs of different user, improve live streaming software canScalability solves the extended method of the existing live streaming software function technical problem larger there are system resources consumption.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment isA part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the artEvery other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment one
The present embodiment provides a kind of methods of extension live streaming software function, as shown in Figure 1, this method comprises:
Step S101: live streaming software package is obtained based on predetermined directory;
Step S102: the live streaming software package is loaded onto the corresponding main program of the live streaming software;
Step S103: start the main program, and the live streaming software package is called by the main program, to realizeState live streaming software package function, and by it is described live streaming software package function realize the main program is broadcast live accordingly it is softThe extension of part function.
It should be noted that above-mentioned live streaming software is to be applied to Windows system for providing the application program of live broadcast serviceIn system.
In the following, the implementation step of the method for extension live streaming software function provided by the embodiments of the present application is discussed in detail in conjunction with Fig. 1Suddenly.
Firstly, executing step S101, live streaming software package is obtained based on predetermined directory.
Specifically, it is necessary first to which obtaining needs live streaming software package to be loaded.In general, live streaming software package all canIt is saved in certain catalogue, then the saving contents as predetermined directory of software package can will be broadcast live, then from predetermined directorySoftware package is broadcast live in middle lookup.For example, all plug-in units are all placed on directly so that the live streaming software for fish of struggling against struggles against fish live streaming companion as an exampleIt broadcasts in the plugins file under software main program catalogue, live streaming software package is then obtained from plugins file.
It is optionally, described that live streaming software package is obtained based on predetermined directory, comprising:
One or more legal plug-in units are obtained from the predetermined directory;
Whether the type for judging the legal plug-in unit is live streaming software package type;
If the type of the legal plug-in unit is live streaming software package type, using the legal plug-in unit as described straightBroadcast software package.
It is specifically, described that one or more legal plug-in units are obtained from the predetermined directory, comprising:
One or more dynamic link library (DLL) plug-in units are obtained from the predetermined directory;
One or more DLL plug-in units are called, call result is obtained;
The call result is indicated to call successful DLL plug-in unit, as the legal plug-in unit.
In the specific implementation process, to obtain live streaming software package, it is necessary first to ensure obtain plug-in unit be it is legal,And further judge whether the type of legal plug-in unit is live streaming software package type, to guarantee safety and can response rate.
In order to ensure plug-in unit is legal plug-in unit, it is necessary first to obtain add-on file from predetermined directory, then pass through and beThe correlation function that system provides is judged.Wherein obtaining add-on file can be by calling Windows systemFindFirstFile function and FindNextFile function are realized.First by calling FindFirstFile function lookup pre-If first DLL (dynamic link library, Dynamic Link Library) file under catalogue, then passes through callingFindNextFile function obtains next dll file, obtains the return value of FindNextFile function, if return value be it is true,Then continue to execute FindNextFile function, obtain next dll file, until the function return value be it is false, show at this timeThrough having obtained all dll files under the catalogue, i.e. DLL plug-in unit.
Judging whether the DLL plug-in unit obtained is legal can be realized by following methods, pass through calling system firstLoadLibrary function loads the dll file of above-mentioned acquisition, and by judge the call result of LoadLibrary function come intoRow judgement.Specifically, successfully show that the dll file is a legal dll file if called, if malloc failure malloc,So showing the dll file not is a legal dll file.
It is above-mentioned legal DLL plug-in unit has been determined after, also further judge legal plug-in unit whether be live streaming software insertPart, by taking the fish live streaming companion that struggles against as an example, all plug-in units can all export the export function of a dyLoadPlugin.It therefore, can be withJudge whether to there is dyLoadPlugin to export function in the DLL plug-in unit by the GetProcAddress function of calling system to sentenceWhether the DLL plug-in unit that breaks is legal plug-in unit, specifically, if there is then above-mentioned dyLoadPlugin exports function, then the DLL plug-in unitIt is a legal plug-in unit, if it is not, calling system FreeLibrary function unloads the DLL plug-in unit, it should to deleteDLL plug-in unit.
Then step S102 is executed, the live streaming software package is loaded onto the corresponding main program of the live streaming software.
In the specific implementation process, can will be broadcast live by the IPlugin interface of system software package be loaded onto it is describedIt is broadcast live in the corresponding main program of software, IPlugin interface is by calling the return value of dyLoadPlugin export function can be realThe load of software is now broadcast live.
Specifically, the live streaming software package includes at least: title, the detailed description information of plug-in unit of plug-in unit.
In the specific implementation process, the title and detailed description of live streaming software package can be obtained by correlation functionInformation specifically can obtain the name information of the DLL plug-in unit by the GetName method of calling IPlugin interface;It is logicalThe GetDescription method for calling IPlugin interface is crossed, the detailed description information of the DLL plug-in unit is got.
Step S103 is executed again, starts the main program, and the live streaming software package is called by the main program, withRealize the function of the live streaming software package, and corresponding to the main program by the function realization of the live streaming software packageThe extension of software function is broadcast live.
In the specific implementation process, live streaming can be called soft by the CreateElement method of IPlugin interfacePart plug-in unit, and realize the function of the live streaming software package.Specifically, live streaming software can be obtained by GetName methodThe CreateElement method of plug-in unit, and the live streaming software package is created by CreateElement methodThen IPluginElement example can realize the function in live streaming software package by the correlation technique in examples detailed aboveEnergy.For example, the function of above-mentioned live streaming software package includes drawing image, plays audio, display barrage etc..
Below by taking several functions as an example, it is discussed in detail and how realizes through the function realization of the live streaming software package to instituteState the extension that software function is broadcast live in main program accordingly.
Before the function of realizing live streaming software package, the IPluginElement example of above-mentioned creation can be called firstOpen method open live streaming software package, and by call Open method after return value judge live streaming software package whether may be usedWith specifically, if return value is successfully, to show the function that the live streaming software package can be used, if return value is to loseIt loses, then shows the function of not being available the live streaming software package.Below with return value be successfully in the case of, be broadcast live software insertIt is described in detail for three kinds of functions of part.
The first, the function of drawing image.
The GetParameters method with drawing image feature card can be called by the way that the main program of software is broadcast live,To obtain the image information in the plug-in unit, and image letter is set by setting PluginElementParam data structureBreath, such as the videoWidth in setting PluginElementParam structure can be led to, videoHeight two fields are setThe width information and elevation information for setting image, the pixel format information of image is arranged by pf field, wherein pf field can be withFor PF_ARGB32 format, the image that the plug-in unit is arranged by dstTop, dstLeft, dstWidth, dstHeight field existsThe size information of location information when drawing on companion's window and drafting is broadcast live, the plug-in unit figure is described by zorder fieldAs the order being superimposed upon on video in window, specifically, the value of zorder field the big, shows more shows on upper layer, i.e., does not allow moreEasily covered by other images.After obtaining image information, the ReadVideo function of the plug-in unit can be called by main program,The picture material drawn in plug-in unit is read, then which is plotted to the display window of live streaming software, to realizeThe extension of the drawing image function of software is broadcast live.
Second, play the function of audio.
The GetParameters method that the plug-in unit of AF playing function can be called by the main program of live streaming software, fromAnd the audio-frequency information in the plug-in unit is obtained, and image information is arranged by setting PluginElementParam data structure,Such as the use rate information that audio is arranged by audioSampleRate field for setting can be led to, pass through audioChannelsField is arranged the channel number information of audio, and sound size information when audio plays, af word is arranged in audioSound fieldSection is used to be arranged the format information of audio, wherein shows do not have audio in the plug-in unit if af field value is PAF_NONE.SoThe ReadAudio function for calling the plug-in unit by main program afterwards, reads the audio data in the plug-in unit, then by the audio dataIt plays out, to realize the extension of the AF playing function of live streaming software.
The third, shows the function of barrage.
Specifically, it when receiving the barrage information that barrage server is sent by TCP connection, can be called by main programThe OnChatMessage method of plug-in unit IPluginElement example, to realize the expansion for broadcasting the display barrage function of softwareExhibition.Further, it is also possible to which barrage information is informed that, to other developers, other developers can also pass through in this wayIPlugin interface realizes the utilities such as the function, such as barrage assistant of display barrage.
It should be noted that representing the plug-in unit has image, sound if the return value of GetParameters function is reallyThe information such as frequency;If return value is vacation, representing does not have above-mentioned relevant information in the plug-in unit.
The method of extension live streaming software function provided by the invention can be live streaming software package load by what be will acquireInto the main program of live streaming software, then live streaming software package is called then by main program, the expansion that software function is broadcast live may be implementedExhibition loads the plug-in unit of corresponding function, and call and insert by the main program of main broadcaster's software that is, on the basis of original live streaming softwarePart can realize the function of plug-in unit, so that the extension of live streaming software function is realized by the function of plug-in unit, relative to existing skillFor needing to re-download live streaming software in art, the consumption of FTP client FTP resource can be greatly reduced, and can use notThe plug-in unit of congenerous realizes the extension of different function, to meet the needs of different user, improves expanding for live streaming softwareMalleability solves the extended method of the existing live streaming software function technical problem larger there are system resources consumption.The present invention mentionsThe method of confession can allow third-party developer to can also be added in the functional development of live streaming software, so as to greatly richThe function of richness live streaming software.
For the demand of further satisfaction different clients, unwanted plug-in unit can be deleted according to different requirements, specificallyGround can call the Destroy method of plug-in unit IPluginElement example to delete plug-in unit by main program.
In order to improve live streaming software function extension stability, it is described by the live streaming software package be loaded onto it is described directlyBefore broadcasting in the corresponding main program of software, the method also includes:
Judge whether the version of the live streaming software package is consistent with the version of the live streaming software;
If it is described live streaming software package version and it is described live streaming software version it is inconsistent, do not execute it is described will described inLive streaming software package is loaded onto the step in the corresponding main program of the live streaming software;
If the version of the live streaming software package is consistent with the live streaming version of software, execute described by the live streamingSoftware package is loaded onto the step in the corresponding main program of the live streaming software.
Specifically, if main program is different with the live streaming version of software package, main program and live streaming be may result inDifference of the software package in certain data structures, so as to will lead to the collapse of main program.Therefore, in order to guarantee main programStability, load be broadcast live software package before, need to judge be broadcast live software package version whether with current main program useVersion it is consistent.In the specific implementation process, can be judged by the return value of the function of GetPluginVersion, byA GetPluginVersion function can be all exported in all live streaming software packages, then can call the function and obtainedIts return value, and judge whether return value is equal to PLUGIN_VERSION value to judge whether version is consistent, if return value etc.In PLUGIN_VERSION value, then shows that the live streaming software package is consistent with live streaming software version, then can load the plug-in unitTo in main journey, if it is not, then be not loaded with the plug-in unit, it may call upon system FreeLibrary function and unload the live streaming software and insertPart.
In order to be further reduced the consumption of system resource, starting the main program, and institute is called by the main programLive streaming software package is stated, to realize the function of the live streaming software package, and is realized by the function of the live streaming software packageIt is corresponding with the application program to be broadcast live after the extension of software function, the method also includes:
Close the main program;
Remove the live streaming software package being loaded onto the main program.
In the specific implementation process, main program can be closed by user's click, can also be set in advance according to systemThe time for setting closing is automatically closed, and then by calling the dyUnloadPlugin function of live streaming software package, removes above-mentioned straightBroadcast software package.
Based on the same inventive concept, present invention also provides dresses corresponding with the embodiment extension live streaming method of software functionIt sets, detailed in Example three.
Embodiment three
The present embodiment provides the devices of extension live streaming software function, as shown in Fig. 2, the device includes:
Module 201 is obtained, for obtaining live streaming software package based on predetermined directory;
Loading module 202, for the live streaming software package to be loaded onto the corresponding main program of the live streaming software;
Calling module 203 calls the live streaming software package for starting the main program, and by the main program,To realize the function of the live streaming software package, and it is corresponding to the main program by the function realization of the live streaming software packageLive streaming software function extension.
The device of extension live streaming software function provided in this embodiment, further includes judgment module, for it is described will be describedBefore live streaming software package is loaded onto the corresponding main program of the live streaming software,
Judge whether the version of the live streaming software package is consistent with the version of the live streaming software;
If it is described live streaming software package version and it is described live streaming software version it is inconsistent, do not execute it is described will described inLive streaming software package is loaded onto the step in the corresponding main program of the live streaming software;
If the version of the live streaming software package is consistent with the live streaming version of software, execute described by the live streamingSoftware package is loaded onto the step in the corresponding main program of the live streaming software.
The device of extension live streaming software function provided in this embodiment, further includes first processing module, in starting instituteMain program is stated, and the live streaming software package is called by the main program, to realize the function of the live streaming software package, andBe broadcast live the extension of software function after corresponding with the application program is realized by the function of the live streaming software package:
Close the main program;
Remove the live streaming software package being loaded onto the main program.
In the device of extension live streaming software function provided in this embodiment, the acquisition module 201 is also used to:
One or more legal plug-in units are obtained from the predetermined directory;
Judge whether the legal plug-in unit is live streaming software package;
If so, using the legal plug-in unit as the live streaming software package;
If it is not, then deleting the legal plug-in unit.
In the device of extension live streaming software function provided in this embodiment, the acquisition module 201 is also used to:
One or more dynamic link library (DLL) plug-in units are obtained from the predetermined directory;
One or more DLL plug-in units are called, call result is obtained;
The call result is indicated to call successful DLL plug-in unit, as the legal plug-in unit.
In the device of extension live streaming software function provided in this embodiment, the live streaming software package includes: the name of plug-in unitClaim, the detailed description information of plug-in unit.
Based on the same inventive concept, present invention also provides meters corresponding with the embodiment extension live streaming method of software functionCalculation machine readable storage medium storing program for executing, detailed in Example three.
Embodiment three
The present embodiment provides a kind of computer readable storage mediums 300, as shown in figure 3, being stored thereon with computer program311, which performs the steps of when being executed by processor
Live streaming software package is obtained based on predetermined directory;
The live streaming software package is loaded onto the corresponding main program of the live streaming software;
Start the main program, and the live streaming software package is called by the main program, to realize that the live streaming is softThe function of part plug-in unit, and software function is broadcast live to the main program by the function realization of the live streaming software package accordinglyExtension.
Optionally, the live streaming software package described is loaded onto institute executing by above-mentioned computer readable storage medium 300Before stating the step in the corresponding main program of live streaming software, following step is also executed:
Judge whether the version of the live streaming software package is consistent with the version of the live streaming software;
If it is described live streaming software package version and it is described live streaming software version it is inconsistent, do not execute it is described will described inLive streaming software package is loaded onto the step in the corresponding main program of the live streaming software;
If the version of the live streaming software package is consistent with the live streaming version of software, execute described by the live streamingSoftware package is loaded onto the step in the corresponding main program of the live streaming software.
Optionally, above-mentioned computer readable storage medium 300 is being executed in the starting main program, and passes through the main journeySequence calls the live streaming software package, to realize the function of the live streaming software package, and passes through the live streaming software packageFunction realization is corresponding with the application program to be broadcast live after the spread step of software function, also execution following step:
Close the main program;
Remove the live streaming software package being loaded onto the main program.
Optionally, above-mentioned computer readable storage medium 300, also execution following step:
One or more legal plug-in units are obtained from the predetermined directory;
Whether the type for judging the legal plug-in unit is live streaming software package type;
If the type of the legal plug-in unit is live streaming software package type, using the legal plug-in unit as described straightBroadcast software package.
Optionally, above-mentioned computer readable storage medium 300, also execution following step:
One or more dynamic link library (DLL) plug-in units are obtained from the predetermined directory;
One or more DLL plug-in units are called, call result is obtained;
The call result is indicated to call successful DLL plug-in unit, as the legal plug-in unit.
Based on the same inventive concept, present invention also provides meters corresponding with the embodiment extension live streaming method of software functionCalculate machine equipment, detailed in Example four.
Example IV
The present embodiment provides a kind of computer equipments, as shown in figure 4, including memory 401, processor 402 and being stored inOn memory and the computer program 403 that can run on a processor, the processor 402 are realized following when executing described programStep:
Live streaming software package is obtained based on predetermined directory;
The live streaming software package is loaded onto the corresponding main program of the live streaming software;
Start the main program, and the live streaming software package is called by the main program, to realize that the live streaming is softThe function of part plug-in unit, and software function is broadcast live to the main program by the function realization of the live streaming software package accordinglyExtension.
Further, in above-mentioned computer equipment, the live streaming software package is loaded onto the live streaming software describedBefore step in corresponding main program, the processor 402 also performs the steps of when executing described program
Judge whether the version of the live streaming software package is consistent with the version of the live streaming software;
If it is described live streaming software package version and it is described live streaming software version it is inconsistent, do not execute it is described will described inLive streaming software package is loaded onto the step in the corresponding main program of the live streaming software;
If the version of the live streaming software package is consistent with the live streaming version of software, execute described by the live streamingSoftware package is loaded onto the step in the corresponding main program of the live streaming software.
Further, in above-mentioned computer equipment, starting the main program, and described straight by main program callingSoftware package is broadcast, to realize the function of the live streaming software package, and passes through the function realization of the live streaming software package and instituteIt states application program to be broadcast live accordingly after the extension of software function, also be realized when the processor 402 executes described program followingStep:
Close the main program;
Remove the live streaming software package being loaded onto the main program.
Further, it in above-mentioned computer equipment, is executed in the processor 402 and live streaming software is obtained based on predetermined directoryWhen plug-in unit step, it can be realized by following step:
One or more legal plug-in units are obtained from the predetermined directory;
Whether the type for judging the legal plug-in unit is live streaming software package type;
If the type of the legal plug-in unit is live streaming software package type, using the legal plug-in unit as described straightBroadcast software package.
Further, it in above-mentioned computer equipment, is executed in the processor 402 and obtains one from the predetermined directoryOr it when multiple legal plug-in units, can be realized by following step:
One or more dynamic link library (DLL) plug-in units are obtained from the predetermined directory;
One or more DLL plug-in units are called, call result is obtained;
The call result is indicated to call successful DLL plug-in unit, as the legal plug-in unit.
For ease of description, only parts related to embodiments of the present invention are shown, disclosed by specific technical details, asksReferring to present invention method part.Memory 401 can be used for storing computer program 403, and above-mentioned computer program includesSoftware program, module and data, processor 402 execute the computer program 403 for being stored in memory 401 by running, thusExecute the various function application and data processing of electronic equipment.
In the specific implementation process, memory 401 can be used for storing software program and module, and processor 402 passes throughOperation is stored in the software program and module of memory 401, thereby executing the various function application and data of electronic equipmentProcessing.Memory 401 can mainly include storing program area and storage data area, wherein storing program area can storage program area,Application program needed at least one function etc.;Storage data area, which can be stored, uses created data according to electronic equipmentDeng.In addition, memory 401 may include high-speed random access memory, it can also include nonvolatile memory, for example, at leastOne disk memory, flush memory device or other volatile solid-state parts.Processor 402 is the control of electronic equipmentCenter is stored in memory by running or executing using the various pieces of various interfaces and the entire electronic equipment of connectionSoftware program and/or module in 401, and the data being stored in memory 401 are called, execute the various function of electronic equipmentData can and be handled, to carry out integral monitoring to electronic equipment.Optionally, processor 402 may include one or more processingUnit;Preferably, processor 402 can integrate application processor, wherein the main processing operation system of application processor, Yong HujieFace and application program etc..
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effectsFruit:
In the technical solution of the embodiment of the present invention, it is primarily based on predetermined directory and obtains live streaming software package, then by instituteIt states live streaming software package to be loaded onto the corresponding main program of the live streaming software, starts the main program, and pass through the main journeySequence calls the live streaming software package, to realize the function of the live streaming software package, and passes through the live streaming software packageFunction realizes the extension for the main program being broadcast live accordingly software function, i.e., on the basis of original live streaming software, loadThe plug-in unit of corresponding function, and call plug-in unit that can realize the function of plug-in unit by the main program of live streaming software, it is inserted to pass throughThe function of part realizes the extension of live streaming software function, compared with the existing technology in need to re-download live streaming software for, can be withGreatly reduce the consumption of FTP client FTP resource, and can use the plug-in unit of different function to realize the extension of different function,To meet the needs of different user, the scalability of live streaming software is improved, solves the extension of existing live streaming software functionThe method technical problem larger there are system resources consumption.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer programProduct.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present inventionApply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) producesThe form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program productFigure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructionsThe combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programsInstruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produceA raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for realThe device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram orThe function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that countingSeries of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer orThe instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram oneThe step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basicProperty concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted asIt selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present inventionThe spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present inventionAnd its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.