CN109213534A - A kind of method and device of extension live streaming software function - Google Patents

A kind of method and device of extension live streaming software function Download PDF

Info

Publication number
CN109213534A
CN109213534A CN201710523231.4A CN201710523231A CN109213534A CN 109213534 A CN109213534 A CN 109213534A CN 201710523231 A CN201710523231 A CN 201710523231A CN 109213534 A CN109213534 A CN 109213534A
Authority
CN
China
Prior art keywords
live streaming
streaming software
software package
main program
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710523231.4A
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710523231.4A priority Critical patent/CN109213534A/en
Publication of CN109213534A publication Critical patent/CN109213534A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a kind of method and devices of extension live streaming software function, which comprises obtains live streaming software package 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 the function of the live streaming software package, and realizes the extension for the main program being broadcast live accordingly software function by the function of the live streaming software package.The present invention solves the extended method technical problem larger there are system resources consumption of live streaming software function.

Description

A kind of method and device of extension live streaming software function
Technical 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 oneself Business.The function that software is broadcast live is varied, such as obtains desktop, adds text, adds the functions such as camera, usually, directly The 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 soft The function of part.Existing way is that developer develops setting live streaming software again, is then updated or is re-downloaded by user The 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 again Live 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 function The 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 function The 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 soft The 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 accordingly Extension.
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 in Live 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 streaming Software 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 realize The 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 package 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.
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 straight Broadcast 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, packet It 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 reality The 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 package Broadcast 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 described Before 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 in Live 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 streaming Software 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 institute It 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 software The 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 straight Broadcast 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 thereon Computer 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 soft The 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 accordingly Extension.
Based on same inventive concept, fourth aspect present invention provides a kind of computer equipment, including memory, processing On a memory and the computer program that can run on a processor, when processor execution described program, is realized for device and storage Following 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 soft The 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 accordingly Extension.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
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 institute It 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 journey Sequence calls the live streaming software package, to realize the function of the live streaming software package, and passes through the live streaming software package Function realizes the extension for the main program being broadcast live accordingly software function, i.e., on the basis of original live streaming software, load The 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 through The 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 with Greatly 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 function The 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 can It 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 below There 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 hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other 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 function The 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 straight Software 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 tune With 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 package Realize 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 load Call 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 to The 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 software Plug-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 existing For needing to re-download live streaming software in technology, the consumption of FTP client FTP resource can be greatly reduced, and can use The plug-in unit of different function realizes the extension of different function, to meet the needs of different user, improve live streaming software can Scalability 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 invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A 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 art Every 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 realize State 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 soft The 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 service In 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. 1 Suddenly.
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 can It is saved in certain catalogue, then the saving contents as predetermined directory of software package can will be broadcast live, then from predetermined directory Software 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 example It 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 straight Broadcast 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 be The correlation function that system provides is judged.Wherein obtaining add-on file can be by calling Windows system FindFirstFile 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 calling FindNextFile 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 time Through 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 first LoadLibrary function loads the dll file of above-mentioned acquisition, and by judge the call result of LoadLibrary function come into Row 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 insert Part, 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 with Judge whether to there is dyLoadPlugin to export function in the DLL plug-in unit by the GetProcAddress function of calling system to sentence Whether 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 unit It is a legal plug-in unit, if it is not, calling system FreeLibrary function unloads the DLL plug-in unit, it should to delete DLL 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 described It is broadcast live in the corresponding main program of software, IPlugin interface is by calling the return value of dyLoadPlugin export function can be real The 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 function Information specifically can obtain the name information of the DLL plug-in unit by the GetName method of calling IPlugin interface;It is logical The 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, with Realize the function of the live streaming software package, and corresponding to the main program by the function realization of the live streaming software package The extension of software function is broadcast live.
In the specific implementation process, live streaming can be called soft by the CreateElement method of IPlugin interface Part plug-in unit, and realize the function of the live streaming software package.Specifically, live streaming software can be obtained by GetName method The CreateElement method of plug-in unit, and the live streaming software package is created by CreateElement method Then IPluginElement example can realize the function in live streaming software package by the correlation technique in examples detailed above Energy.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 institute State 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 first Open method open live streaming software package, and by call Open method after return value judge live streaming software package whether may be used With specifically, if return value is successfully, to show the function that the live streaming software package can be used, if return value is to lose It 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 insert It 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 structure Breath, such as the videoWidth in setting PluginElementParam structure can be led to, videoHeight two fields are set The width information and elevation information for setting image, the pixel format information of image is arranged by pf field, wherein pf field can be with For PF_ARGB32 format, the image that the plug-in unit is arranged by dstTop, dstLeft, dstWidth, dstHeight field exists The 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 field As 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 more Easily 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 realize The 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, from And 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 audioChannels Field is arranged the channel number information of audio, and sound size information when audio plays, af word is arranged in audioSound field Section 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.So The 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 data It 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 program The OnChatMessage method of plug-in unit IPluginElement example, to realize the expansion for broadcasting the display barrage function of software Exhibition.Further, it is also possible to which barrage information is informed that, to other developers, other developers can also pass through in this way IPlugin 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 really The 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 acquire Into 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 implemented Exhibition 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 software Part 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 skill For needing to re-download live streaming software in art, the consumption of FTP client FTP resource can be greatly reduced, and can use not The plug-in unit of congenerous realizes the extension of different function, to meet the needs of different user, improves expanding for live streaming software Malleability solves the extended method of the existing live streaming software function technical problem larger there are system resources consumption.The present invention mentions The 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 rich The 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, specifically Ground 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 directly Before 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 in Live 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 streaming Software 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 in Difference 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 program Stability, load be broadcast live software package before, need to judge be broadcast live software package version whether with current main program use Version it is consistent.In the specific implementation process, can be judged by the return value of the function of GetPluginVersion, by A GetPluginVersion function can be all exported in all live streaming software packages, then can call the function and obtained Its 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 unit To 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 insert Part.
In order to be further reduced the consumption of system resource, starting the main program, and institute is called by the main program Live 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 package It 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 system The time for setting closing is automatically closed, and then by calling the dyUnloadPlugin function of live streaming software package, removes above-mentioned straight Broadcast software package.
Based on the same inventive concept, present invention also provides dresses corresponding with the embodiment extension live streaming method of software function It 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 package Live 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 described Before 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 in Live 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 streaming Software 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 institute Main 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, and Be 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 unit Claim, 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 function Calculation 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 program 311, 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 soft The 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 accordingly Extension.
Optionally, the live streaming software package described is loaded onto institute executing by above-mentioned computer readable storage medium 300 Before 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 in Live 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 streaming Software 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 journey Sequence calls the live streaming software package, to realize the function of the live streaming software package, and passes through the live streaming software package Function 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 straight Broadcast 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 function Calculate 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 in On memory and the computer program 403 that can run on a processor, the processor 402 are realized following when executing described program Step:
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 soft The 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 accordingly Extension.
Further, in above-mentioned computer equipment, the live streaming software package is loaded onto the live streaming software described Before 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 in Live 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 streaming Software 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 calling Software 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 institute It states application program to be broadcast live accordingly after the extension of software function, also be realized when the processor 402 executes described program following Step:
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 directory When 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 straight Broadcast software package.
Further, it in above-mentioned computer equipment, is executed in the processor 402 and obtains one from the predetermined directory Or 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, asks Referring to present invention method part.Memory 401 can be used for storing computer program 403, and above-mentioned computer program includes Software program, module and data, processor 402 execute the computer program 403 for being stored in memory 401 by running, thus Execute 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 through Operation is stored in the software program and module of memory 401, thereby executing the various function application and data of electronic equipment Processing.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 equipment Deng.In addition, memory 401 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other volatile solid-state parts.Processor 402 is the control of electronic equipment Center is stored in memory by running or executing using the various pieces of various interfaces and the entire electronic equipment of connection Software program and/or module in 401, and the data being stored in memory 401 are called, execute the various function of electronic equipment Data can and be handled, to carry out integral monitoring to electronic equipment.Optionally, processor 402 may include one or more processing Unit;Preferably, processor 402 can integrate application processor, wherein the main processing operation system of application processor, Yong Hujie Face 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 effects Fruit:
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 institute It 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 journey Sequence calls the live streaming software package, to realize the function of the live streaming software package, and passes through the live streaming software package Function realizes the extension for the main program being broadcast live accordingly software function, i.e., on the basis of original live streaming software, load The 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 through The 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 with Greatly 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 function The 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 program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply 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.) produces The 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 product Figure 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 instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The 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 spy Determine 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 or The 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 counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The 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 basic Property 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 as It 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 invention The 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 invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of method of extension live streaming software function characterized by 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 software is inserted The function of part, and the expansion for the main program being broadcast live accordingly software function is realized by the function of the live streaming software package Exhibition.
2. the method as described in claim 1, which is characterized in that the live streaming software package is loaded onto the live streaming described Before 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 the version of the live streaming software package and the version of the live streaming software are inconsistent, do not execute described by the live 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 streaming software Plug-in unit is loaded onto the step in the corresponding main program of the live streaming software.
3. the method as described in claim 1, which is characterized in that starting the main program, and called by the main program The live streaming software package, to realize the function of the live streaming software package, and it is real by the function of the live streaming software package It is now 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.
4. the method as described in claim 1, which is characterized in that described to obtain live streaming software package 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;
It is if the type of the legal plug-in unit is live streaming software package type, the legal plug-in unit is soft as the live streaming Part plug-in unit.
5. method as claimed in claim 4, which is characterized in that the acquisition from the predetermined directory is one or more legal Plug-in unit, 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.
6. the method as described in any one of claim 1-5 claim, which is characterized in that the live streaming software package at least wraps It includes: the title of plug-in unit and the detailed description information of plug-in unit.
7. a kind of device of extension live streaming software function characterized by comprising
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, to realize State 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 soft The extension of part function.
8. device as claimed in claim 7, which is characterized in that described device further includes judgment module, is used for institute described State live streaming software package be loaded onto the corresponding main program of the live streaming software before,
Judge whether the version of the live streaming software package is consistent with the version of the live streaming software;
If the version of the live streaming software package and the version of the live streaming software are inconsistent, do not execute described by the live 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 streaming software Plug-in unit is loaded onto the step in the corresponding main program of the live streaming software.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor It is performed the steps of when row
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 software is inserted The function of part, and the expansion for the main program being broadcast live accordingly software function is realized by the function of the live streaming software package Exhibition.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor performs the steps of when executing described program
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 software is inserted The function of part, and the expansion for the main program being broadcast live accordingly software function is realized by the function of the live streaming software package Exhibition.
CN201710523231.4A 2017-06-30 2017-06-30 A kind of method and device of extension live streaming software function Pending CN109213534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710523231.4A CN109213534A (en) 2017-06-30 2017-06-30 A kind of method and device of extension live streaming software function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710523231.4A CN109213534A (en) 2017-06-30 2017-06-30 A kind of method and device of extension live streaming software function

Publications (1)

Publication Number Publication Date
CN109213534A true CN109213534A (en) 2019-01-15

Family

ID=64976805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710523231.4A Pending CN109213534A (en) 2017-06-30 2017-06-30 A kind of method and device of extension live streaming software function

Country Status (1)

Country Link
CN (1) CN109213534A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889875A (en) * 2019-01-23 2019-06-14 北京奇艺世纪科技有限公司 Communication means, device, terminal device and computer-readable 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
CN113778558A (en) * 2021-09-15 2021-12-10 北京快来文化传播集团有限公司 Live broadcast software extension method and device based on plug-in and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847100A (en) * 2010-06-08 2010-09-29 用友软件股份有限公司 Method for expanding software application and device
CN102890627A (en) * 2011-07-19 2013-01-23 昆明伯尔瑞科技开发有限公司 Plug-in computer program design architecture
CN103365644A (en) * 2012-04-10 2013-10-23 腾讯科技(深圳)有限公司 Method and device for expanding software functions
CN106131612A (en) * 2016-06-30 2016-11-16 武汉斗鱼网络科技有限公司 The method and system of Android app dynamic load resource function module
CN106686420A (en) * 2016-12-09 2017-05-17 广州华多网络科技有限公司 Live streaming application program management method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847100A (en) * 2010-06-08 2010-09-29 用友软件股份有限公司 Method for expanding software application and device
CN102890627A (en) * 2011-07-19 2013-01-23 昆明伯尔瑞科技开发有限公司 Plug-in computer program design architecture
CN103365644A (en) * 2012-04-10 2013-10-23 腾讯科技(深圳)有限公司 Method and device for expanding software functions
CN106131612A (en) * 2016-06-30 2016-11-16 武汉斗鱼网络科技有限公司 The method and system of Android app dynamic load resource function module
CN106686420A (en) * 2016-12-09 2017-05-17 广州华多网络科技有限公司 Live streaming application program management method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889875A (en) * 2019-01-23 2019-06-14 北京奇艺世纪科技有限公司 Communication means, device, terminal device and computer-readable medium
CN109889875B (en) * 2019-01-23 2021-07-16 北京奇艺世纪科技有限公司 Communication method, communication device, terminal equipment and computer readable 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
CN113778558A (en) * 2021-09-15 2021-12-10 北京快来文化传播集团有限公司 Live broadcast software extension method and device based on plug-in and storage medium

Similar Documents

Publication Publication Date Title
CN103425491B (en) A kind of game engine
CN108965397A (en) Cloud video editing method and device, editing equipment and storage medium
CN110297996A (en) Cartoon display method, device, equipment and storage medium based on the H5 page
CN109144652B (en) View display method and device, electronic equipment and storage medium
CN112988400B (en) Video memory optimization method and device, electronic equipment and readable storage medium
US11722555B2 (en) Application control method and apparatus, electronic device, and storage medium
CN109213534A (en) A kind of method and device of extension live streaming software function
CN109788212A (en) A kind of processing method of segmenting video, device, terminal and storage medium
CN105868420A (en) Network resource loading mode configuration method and device
CN109275012A (en) A kind of live streaming barrage display methods and device
US10579229B2 (en) Customizable media player framework
CN109254709A (en) Screenshotss processing method, device, equipment and machine readable media
CN115309516A (en) Application life cycle detection method and device and computer equipment
CN107864384B (en) Method and device for redirecting internet video playing on cloud desktop
CN111031376A (en) Bullet screen processing method and system based on WeChat applet
CN105578224A (en) Multimedia data acquisition method, device, smart television and set-top box
US20140215035A1 (en) Distribution of application components among devices
Zorrilla et al. HTML5-based system for interoperable 3D digital home applications
US20170105041A1 (en) Method and device of interactive function card of smart television
CN115170390B (en) File stylization method, device, equipment and storage medium
CN105898399A (en) Video resource loading method and device and smart television
CN102968244A (en) Method, and device and equipment for acquiring resource preview, and equipment
CN114640876B (en) Multimedia service video display method, device, computer equipment and storage medium
CN107402749B (en) Method and device for realizing picture loading library
CN108989703B (en) Memory video creating method and related device

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

Application publication date: 20190115

RJ01 Rejection of invention patent application after publication