CN112118459A - Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium - Google Patents
Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium Download PDFInfo
- Publication number
- CN112118459A CN112118459A CN202010884068.6A CN202010884068A CN112118459A CN 112118459 A CN112118459 A CN 112118459A CN 202010884068 A CN202010884068 A CN 202010884068A CN 112118459 A CN112118459 A CN 112118459A
- Authority
- CN
- China
- Prior art keywords
- camera
- live broadcast
- sharing
- manager
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
Abstract
The invention relates to the technical field of live broadcast equipment, in particular to a method and a readable medium for realizing common live broadcast of a plurality of apps by sharing camera data, wherein the method comprises the following steps: s1, starting the device, automatically configuring the system environment in the background through multitask management or configuring the system environment by user self-definition; s2, carrying out configuration management on the cameras and generating a camera manager; s3, opening the live broadcast application, and judging whether the current camera is opened or not by using the multitask manager; s4, if the camera is opened, creating a virtual camera; s5 sharing the data of the opened camera to the virtual camera; s6 automatically adapts the size of the screen by the multitask manager when the number of applications is more than 1, and a plurality of applications are executed and displayed in the main screen. The invention solves the problem that a plurality of live broadcast applications can not be live broadcast on the same mobile phone at the same time. The method and the device are convenient for users to quickly conduct live broadcast and configuration, can be used in a plurality of environments, and greatly degrade the use cost of the users.
Description
Technical Field
The invention relates to the technical field of live broadcast equipment, in particular to a method and a readable medium for realizing common live broadcast of multiple apps by sharing camera data.
Background
At any time, the development of market and the development of the live broadcast industry are rapid, the current live broadcast needs a plurality of different APP (application) running mobile phones for live broadcast, and rapid popularization and cost of some products are inconvenient to achieve. How to rapidly launch products meeting clients aiming at live application scenes is very important for a research and development end of the products, and the success or failure of the products is directly related.
In order to solve the above two problems, the industry often uses multiple mobile phone versions to record at present, and each time a live broadcast application is targeted, a new mobile phone and corresponding configuration need to be added. This is the cost of operation and the configuration that is the primary reason for slowing the entire line of action. The patent ' a method for realizing common live broadcast of a plurality of apps through multitask sharing camera data ' (hereinafter referred to as the patent ') mainly solves the problem that a plurality of live broadcast applications can be live broadcast on the same mobile phone at the same time. The method and the device are convenient for users to quickly conduct live broadcast and configuration, can be used in a plurality of environments, and greatly degrade the use cost of the users.
At present, the industry often uses a plurality of mobile phone versions for recording, and each time a live broadcast application is required to be added with a new mobile phone and corresponding configuration. Multiple applications of one mobile phone cannot be live broadcast simultaneously.
Disclosure of Invention
Aiming at the defects of the prior art, the invention discloses a method and a readable medium for realizing common live broadcast of a plurality of apps by sharing camera data, which are used for solving the problem that a plurality of mobile phone versions are often used for recording in the prior art, and a new mobile phone and corresponding configuration are required to be added for each live broadcast application. The problem that a plurality of applications of one mobile phone can not be live broadcast simultaneously is solved.
The invention is realized by the following technical scheme:
in a first aspect, the present invention discloses a method for sharing camera data to implement common live broadcast of multiple apps, where the method includes the following steps:
s1, starting the device, automatically configuring the system environment in the background through multitask management or configuring the system environment by user self-definition;
s2, carrying out configuration management on the cameras and generating a camera manager;
s3, opening the live broadcast application, and judging whether the current camera is opened or not by using the multitask manager;
s4, if the camera is opened, creating a virtual camera for application calling;
s5 sharing the data of the opened camera to the virtual camera;
s6 automatically adapts the size of the screen by the multitask manager when the number of applications is more than 1, and a plurality of applications are executed and displayed in the main screen.
Further, the camera manager creates a virtual camera for multiple applications to open the camera at the same time.
Furthermore, the camera manager performs audio acquisition and image acquisition in real time, and shares and updates data of the camera.
Further, in S1, the user can configure the interface and style when customizing the configuration.
Further, in S6, the size of the screen is automatically adapted by the multitasking manager or configured by the custom interface.
In a second aspect, the present invention discloses a readable medium, which stores a software program, and when the software program is executed by a processor, the processor is enabled to execute the method for realizing common live broadcast of multiple apps by sharing camera data according to the first aspect.
The invention has the beneficial effects that:
the invention solves the problem that a plurality of live broadcast applications can not be live broadcast on the same mobile phone at the same time. The method and the device are convenient for users to quickly conduct live broadcast and configuration, can be used in a plurality of environments, and greatly degrade the use cost of the users.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of method steps for sharing camera data to implement common live broadcast of multiple apps;
FIG. 2 is an illustration of an embodiment of the present invention;
FIG. 3 is a flow chart of the execution of software according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
The embodiment discloses a method for realizing common live broadcast of multiple apps by sharing camera data as shown in fig. 1, which includes the following steps:
s1, starting the device, automatically configuring the system environment in the background through multitask management or configuring the system environment by user self-definition;
s2, carrying out configuration management on the cameras and generating a camera manager;
s3, opening the live broadcast application, and judging whether the current camera is opened or not by using the multitask manager;
s4, if the camera is opened, creating a virtual camera for application calling;
s5 sharing the data of the opened camera to the virtual camera;
s6 automatically adapts the size of the screen by the multitask manager when the number of applications is more than 1, and a plurality of applications are executed and displayed in the main screen.
The camera manager creates a virtual camera for multiple applications to open the camera at the same time. And audio acquisition and image acquisition are carried out in real time, and data of the camera is shared and updated.
When the user customizes the configuration, the interface and style can be configured. The size of the screen is automatically adapted through the multitasking manager or configured through a custom interface.
Example 2
The embodiment discloses software operations:
1. in the process of starting the system, the starting broadcast of the system is monitored, so that the multitask management service is started. The specific operation is as follows:
public classBootBroadcastReceiver extends BroadcastRe ceiver{
private static final String TAG="BootBroadcastRe ceiver";
private static final String ACTION_BOOT="android.intent.action.BOOT_COMPLETED";@Override
public void onReceive(Context context,Intent inten t){
if(intent.getAction().equals(ACTION_BOOT)){
i/after boot-up is complete, what is to do
// initiating multitask management
startMmultiManager();
Log.i(TAG,"BootBroadcastReceiver onReceive(),Do th ing!"
2. After the multitask management is configured, an attribute Munimanger is configured to configure the camera manager for the true.
if(munimanger){
// initiating camera configuration
startCameraSet();
}
startCameraSet(){
if (camera has been opened) front page
Creation of virtual cameras for data sharing and data transfer
CrateVirtualCamera();
}
}
3. The interface is configured dynamically, the size of the screen is automatically adapted (the interface configuration can be customized), and a plurality of live broadcast applications are operated and displayed in the main screen.
Example 3
The flow described in this embodiment involves 2 flows:
1. starting and self-starting
2. Multitask management configuration
The use case diagram is shown in FIG. 2: 1. in the process of starting the system, the starting broadcast of the system is monitored, so that the multitask management service is started.
2. And configuring a camera manager and corresponding interface settings.
The execution flow chart of the software is shown in fig. 3, and compared with the prior art, the embodiment mainly solves the problem that a plurality of live broadcast applications cannot be live broadcast on the same mobile phone at the same time. The method and the device are convenient for users to quickly conduct live broadcast and configuration, can be used in a plurality of environments, and greatly degrade the use cost of the users.
Example 4
The embodiment discloses a readable medium, which stores a software program, and when the software program is executed by a processor, the processor is enabled to execute a method for sharing camera data to realize common live broadcast of a plurality of apps.
In conclusion, the invention solves the problem that a plurality of live broadcast applications can not be live broadcast on the same mobile phone at the same time. The method and the device are convenient for users to quickly conduct live broadcast and configuration, can be used in a plurality of environments, and greatly degrade the use cost of the users.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (6)
1. A method for sharing camera data to realize common live broadcast of a plurality of apps is characterized by comprising the following steps:
s1, starting the device, automatically configuring the system environment in the background through multitask management or configuring the system environment by user self-definition;
s2, carrying out configuration management on the cameras and generating a camera manager;
s3, opening the live broadcast application, and judging whether the current camera is opened or not by using the multitask manager;
s4, if the camera is opened, creating a virtual camera for application calling;
s5 sharing the data of the opened camera to the virtual camera;
s6 automatically adapts the size of the screen by the multitask manager when the number of applications is more than 1, and a plurality of applications are executed and displayed in the main screen.
2. The method for sharing camera data to realize common live broadcast of multiple apps according to claim 1, wherein the camera manager creates a virtual camera for multiple applications to open the camera at the same time.
3. The method for sharing the camera data to realize the common live broadcast of the apps according to claim 2, wherein the camera manager performs audio acquisition and image acquisition in real time, and shares and updates the data of the camera.
4. The method for sharing camera data to implement common live broadcast of multiple apps according to claim 1, wherein in S1, when a user customizes configuration, an interface and a style can be configured.
5. The method for sharing camera data to implement common live broadcast of multiple apps according to claim 1, wherein in S6, the size of the screen is automatically adapted through a multitask manager or configured through a custom interface.
6. A readable medium storing a software program which, when executed by a processor, causes the processor to perform a method of sharing camera data to enable a common live broadcast of a plurality of apps as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010884068.6A CN112118459A (en) | 2020-08-28 | 2020-08-28 | Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010884068.6A CN112118459A (en) | 2020-08-28 | 2020-08-28 | Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112118459A true CN112118459A (en) | 2020-12-22 |
Family
ID=73803865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010884068.6A Pending CN112118459A (en) | 2020-08-28 | 2020-08-28 | Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112118459A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112579322A (en) * | 2020-12-25 | 2021-03-30 | 莜腾(上海)自动化设备科技有限公司 | Method and device for sharing camera by multiple applications and computer readable storage medium |
CN112804459A (en) * | 2021-01-12 | 2021-05-14 | 杭州星犀科技有限公司 | Image display method and device based on virtual camera, storage medium and electronic equipment |
CN113347453A (en) * | 2021-04-09 | 2021-09-03 | 北京润信恒达科技有限公司 | Multi-channel live broadcast system, method and equipment |
CN113347477A (en) * | 2021-04-09 | 2021-09-03 | 北京润信恒达科技有限公司 | Method, device and system for sharing camera by multiple applications |
CN113596588A (en) * | 2021-07-31 | 2021-11-02 | 郑州信大捷安信息技术股份有限公司 | Single-machine multi-platform live broadcast method and system |
CN114205529A (en) * | 2021-12-20 | 2022-03-18 | 北京鸿合爱学教育科技有限公司 | Single-camera calling method and device, terminal and readable storage medium |
CN114363654A (en) * | 2022-01-12 | 2022-04-15 | 北京字节跳动网络技术有限公司 | Video plug-flow method, device, terminal equipment and storage medium |
CN115242972A (en) * | 2022-06-23 | 2022-10-25 | 深圳康佳电子科技有限公司 | Method and device for calling camera by application, electronic equipment and storage medium |
CN115242970A (en) * | 2022-06-23 | 2022-10-25 | 重庆长安汽车股份有限公司 | Vehicle camera data sharing system, method, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060050155A1 (en) * | 2004-09-02 | 2006-03-09 | Ing Stephen S | Video camera sharing |
CN101833520A (en) * | 2009-03-11 | 2010-09-15 | 凹凸电子(武汉)有限公司 | Method for simultaneously utilizing one camera by computer system and a plurality of application programs |
CN105808353A (en) * | 2016-03-08 | 2016-07-27 | 珠海全志科技股份有限公司 | Camera resource sharing method and device |
CN107659768A (en) * | 2017-08-08 | 2018-02-02 | 珠海全志科技股份有限公司 | A kind of system and method based on the more Application share cameras of Android |
CN110753187A (en) * | 2019-10-31 | 2020-02-04 | 芋头科技(杭州)有限公司 | Camera control method and device |
CN111327758A (en) * | 2018-12-17 | 2020-06-23 | 中兴通讯股份有限公司 | Camera sharing method and device |
-
2020
- 2020-08-28 CN CN202010884068.6A patent/CN112118459A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060050155A1 (en) * | 2004-09-02 | 2006-03-09 | Ing Stephen S | Video camera sharing |
CN101833520A (en) * | 2009-03-11 | 2010-09-15 | 凹凸电子(武汉)有限公司 | Method for simultaneously utilizing one camera by computer system and a plurality of application programs |
CN105808353A (en) * | 2016-03-08 | 2016-07-27 | 珠海全志科技股份有限公司 | Camera resource sharing method and device |
WO2017152650A1 (en) * | 2016-03-08 | 2017-09-14 | 珠海全志科技股份有限公司 | Camera resource sharing method and device |
CN107659768A (en) * | 2017-08-08 | 2018-02-02 | 珠海全志科技股份有限公司 | A kind of system and method based on the more Application share cameras of Android |
CN111327758A (en) * | 2018-12-17 | 2020-06-23 | 中兴通讯股份有限公司 | Camera sharing method and device |
CN110753187A (en) * | 2019-10-31 | 2020-02-04 | 芋头科技(杭州)有限公司 | Camera control method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112579322A (en) * | 2020-12-25 | 2021-03-30 | 莜腾(上海)自动化设备科技有限公司 | Method and device for sharing camera by multiple applications and computer readable storage medium |
CN112804459A (en) * | 2021-01-12 | 2021-05-14 | 杭州星犀科技有限公司 | Image display method and device based on virtual camera, storage medium and electronic equipment |
CN113347453A (en) * | 2021-04-09 | 2021-09-03 | 北京润信恒达科技有限公司 | Multi-channel live broadcast system, method and equipment |
CN113347477A (en) * | 2021-04-09 | 2021-09-03 | 北京润信恒达科技有限公司 | Method, device and system for sharing camera by multiple applications |
CN113347477B (en) * | 2021-04-09 | 2022-09-27 | 北京润信恒达科技有限公司 | Method, device and system for sharing camera by multiple applications |
CN113596588A (en) * | 2021-07-31 | 2021-11-02 | 郑州信大捷安信息技术股份有限公司 | Single-machine multi-platform live broadcast method and system |
CN114205529A (en) * | 2021-12-20 | 2022-03-18 | 北京鸿合爱学教育科技有限公司 | Single-camera calling method and device, terminal and readable storage medium |
CN114363654A (en) * | 2022-01-12 | 2022-04-15 | 北京字节跳动网络技术有限公司 | Video plug-flow method, device, terminal equipment and storage medium |
WO2023134509A1 (en) * | 2022-01-12 | 2023-07-20 | 北京字节跳动网络技术有限公司 | Video stream pushing method and apparatus, and terminal device and storage medium |
CN114363654B (en) * | 2022-01-12 | 2023-12-19 | 北京字节跳动网络技术有限公司 | Video push method, device, terminal equipment and storage medium |
CN115242972A (en) * | 2022-06-23 | 2022-10-25 | 深圳康佳电子科技有限公司 | Method and device for calling camera by application, electronic equipment and storage medium |
CN115242970A (en) * | 2022-06-23 | 2022-10-25 | 重庆长安汽车股份有限公司 | Vehicle camera data sharing system, method, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112118459A (en) | Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium | |
CN108491275B (en) | Program optimization method, device, terminal and storage medium | |
US10911565B2 (en) | Method, device and system for associating a service account | |
WO2013060245A1 (en) | Method and device for image-capturing application screen for use in mobile terminal | |
US10581993B2 (en) | Method for forwarding traffic in application on mobile intelligent terminal | |
WO2021115038A1 (en) | Application data processing method and related apparatus | |
US20210019106A1 (en) | Desktop Sharing Method and Mobile Terminal | |
CN112114761A (en) | Wireless screen projection control method and device, terminal equipment and readable storage medium | |
CN104836906A (en) | Mobile terminal and method for acquiring images from short message operation interface in real time thereof | |
CN113419815B (en) | Method, system, equipment and medium for pre-starting operation environment installation | |
US10924590B1 (en) | Virtual workspace experience visualization and optimization | |
WO2023087897A1 (en) | Page display method and device | |
WO2016045082A1 (en) | Policy implementation method, device and system | |
EP3671627A1 (en) | Image processing method and device | |
CN112584187A (en) | Session creation method, device, server and storage medium | |
WO2019052115A1 (en) | Application control style customization method and apparatus, and computer-readable storage medium | |
CN113612702B (en) | Method, system, equipment and storage medium for realizing bare metal inspection process | |
CN106980481B (en) | Image display method and equipment | |
CN112558968A (en) | Resource tree view generation method, device, equipment and storage medium | |
CN106648598B (en) | Method and apparatus for displaying display information of application | |
WO2017096889A1 (en) | Method and device for upgrading and downgrading system | |
WO2020064000A1 (en) | Method and apparatus for displaying message box, terminal and storage medium | |
CN107181670B (en) | Picture processing method and device and storage medium | |
CN110166626B (en) | Application program distribution method, device and system in intelligent terminal | |
CN110879732A (en) | Method, device and storage medium for managing application icon desktop |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201222 |