CN111970468B - Camera sharing method and device and computer readable storage medium - Google Patents
Camera sharing method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN111970468B CN111970468B CN201910419547.8A CN201910419547A CN111970468B CN 111970468 B CN111970468 B CN 111970468B CN 201910419547 A CN201910419547 A CN 201910419547A CN 111970468 B CN111970468 B CN 111970468B
- Authority
- CN
- China
- Prior art keywords
- camera
- mobile terminal
- terminal
- request
- user
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
- H04N7/142—Constructional details of the terminal equipment, e.g. arrangements of the camera and the display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Telephone Function (AREA)
Abstract
The disclosure relates to a camera sharing method and device and a computer readable storage medium, and belongs to the field of terminal equipment. The camera sharing method comprises the following steps: responding to a camera use instruction, and outputting the currently connected mobile terminal for a user to select; acquiring a terminal selection instruction, wherein the terminal selection instruction is used for indicating a mobile terminal selected by a user; sending a camera sharing request to the mobile terminal indicated by the terminal selection instruction; and receiving a real-time video stream sent by the mobile terminal, wherein the real-time video stream is sent by the mobile terminal in response to the camera sharing request. By the camera sharing method, the terminal equipment can share the camera of the mobile terminal to realize the use of the camera under the condition that the built-in camera or the external camera is not configured; under the condition that the pixels of the camera configured by the terminal equipment are low, the camera of the mobile terminal is shared, and the high-definition camera can be used.
Description
Technical Field
The present disclosure relates to the field of terminal devices, and in particular, to a method and an apparatus for sharing a camera, and a computer-readable storage medium.
Background
With the development of mobile network technology, video call has become a common communication mode in people's daily life.
However, the premise of performing video call is that a camera is built in the terminal device or an external camera is connected to the terminal device, and the video call cannot be realized for the terminal device without the camera.
Disclosure of Invention
The disclosure provides a camera sharing method, a camera sharing device and a computer readable storage medium, which can enable a terminal device not configured with a camera to use the camera.
According to a first aspect of the embodiments of the present disclosure, there is provided a camera sharing method, including: responding to a camera use instruction, and outputting the currently connected mobile terminal for a user to select; acquiring a terminal selection instruction, wherein the terminal selection instruction is used for indicating a mobile terminal selected by a user; sending a camera sharing request to the mobile terminal indicated by the terminal selection instruction; and receiving a real-time video stream sent by the mobile terminal, wherein the real-time video stream is sent by the mobile terminal in response to the camera sharing request.
In the embodiment of the disclosure, when a terminal device needs to use a camera, a camera use instruction is generated, after the camera use instruction is generated, the terminal device outputs a mobile terminal connected to the current terminal device for a user to select, when the user selects, a terminal selection instruction is generated, according to the terminal selection instruction, the terminal device can send a camera sharing request to the mobile terminal selected by the terminal selection instruction so as to request camera sharing, and by the camera sharing method, the terminal device can use the camera by sharing the camera of the mobile terminal under the condition that a built-in camera or an external camera is not configured, for example, video call is performed; under the condition that the pixels of the camera configured by the terminal equipment are low, the camera of the mobile terminal is shared, and the high-definition camera can be used.
In an implementation manner of the embodiment of the present disclosure, the outputting the currently connected mobile terminal for selection by a user includes: sequencing the currently connected mobile terminals according to the definition of the camera of the currently connected mobile terminal; and outputting the currently connected mobile terminals according to the sequence.
In the implementation mode, when the terminal device outputs the mobile terminal connected with the current terminal device for the user to select, the mobile terminal connected with the current terminal device is sequenced according to the definition of the camera, so that the user can select the mobile terminal with good definition according to the output sequencing of the mobile terminal to share and use the camera, the definition of the subsequently acquired video stream is ensured, and the user experience is enhanced.
In an implementation manner of the embodiment of the present disclosure, the sorting the currently connected mobile terminals according to the definition of the camera of the currently connected mobile terminal includes: acquiring definition information of a camera of the currently connected mobile terminal, wherein the definition information comprises at least one of the following definition parameters: pixel value and camera number; when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value; and sorting the cameras with the same pixel value according to the number of the cameras.
In the implementation mode, when the mobile terminals are sorted according to the definition information, the pixel values of the cameras are preferentially used, and further sorting is performed according to the number of the cameras under the condition that the pixel values of the cameras are the same, so that the sorted order of the mobile terminals meets the sorting requirement of the definition, and a user can select the camera with the best definition in the currently connected mobile terminals.
In an implementation manner of the embodiment of the present disclosure, the acquiring the definition information of the camera of the currently connected mobile terminal includes: sending a definition information acquisition request to the currently connected mobile terminal; and receiving the definition information returned by the currently connected mobile terminal.
In the implementation mode, in order to implement sequencing of the mobile terminal according to the definition, the definition information of the camera of the mobile terminal needs to be acquired from the mobile terminal, and the information acquisition mode can be implemented by sending a request and receiving a response, so that the process is simple and convenient.
In an implementation manner of the embodiment of the present disclosure, the method further includes: and after sending a camera sharing request to the mobile terminal, outputting prompt information, wherein the prompt information is used for prompting a user to operate the mobile terminal so as to allow the mobile terminal to share the camera.
In this implementation manner, after the terminal device sends the camera sharing request to the mobile terminal, the user needs to execute the sharing agreement operation on the mobile terminal, and in order to enable the user to execute the sharing agreement operation in time, this information may be output on the screen of the terminal device to remind the user.
In an implementation manner of the embodiment of the present disclosure, the method further includes: in the process of sharing and using the camera of the mobile terminal, sending a camera selection request to the mobile terminal indicated by the terminal selection instruction, wherein the camera selection request is used for requesting to use a front camera or a rear camera; and receiving a real-time video stream sent by the mobile terminal in response to the camera selection request, wherein the video stream is obtained by shooting by a front camera or a rear camera requested by the camera selection request.
In the implementation mode, the terminal equipment can select to use the front camera or the rear camera of the mobile terminal by sending the camera selection request to the mobile terminal in the process of using the camera of the mobile terminal, so that the use flexibility of a user is improved.
In an implementation manner of the embodiment of the present disclosure, the method further includes: transmitting pairing information through broadcasting; receiving response information sent by the mobile terminal, wherein the response information comprises identity information, and the identity information comprises at least one of a user account and an equipment manufacturer identifier; when the identity information carried by the response information is preset identity information, sending a connection establishment request to the mobile terminal; and receiving a connection establishment response sent by the mobile terminal.
The predetermined user account may be a user account logged in the terminal device.
In the implementation mode, the connection relationship between the terminal equipment and the mobile terminal is established through pairing and responding, in the process of establishing the connection relationship, the terminal equipment and the mobile terminal adopting the unified user account and/or equipment manufacturer identification can automatically establish connection by taking the user account and/or the equipment manufacturer identification as an authentication standard, manual operation is not needed, and the camera sharing process is simplified; meanwhile, due to the existence of the authentication process, the problem of subsequent use caused by connection to a strange mobile device is avoided.
According to a second aspect of the present disclosure, there is provided a camera sharing method, the method including: receiving a camera sharing request sent by terminal equipment; outputting a selection button, wherein the selection button is used for a user to select whether to agree to share the camera; acquiring a user selection instruction generated by a user based on the selection button; and if the user selection instruction indicates that the camera is agreed to be shared, calling the camera to acquire a real-time video stream and sending the real-time video stream to the terminal equipment.
In one implementation of the present disclosure, the method further comprises: receiving a definition information acquisition request sent by the terminal equipment; sending definition information to the terminal device, wherein the definition information comprises at least one of the following definition parameters: pixel value, number of cameras.
According to a third aspect of the present disclosure, there is provided a camera sharing apparatus, the apparatus including: the output module is configured to respond to the camera use instruction and output the currently connected mobile terminal for the user to select; the terminal selection module is configured to obtain a terminal selection instruction, wherein the terminal selection instruction is used for indicating a mobile terminal selected by a user; the sending module is configured to send a camera sharing request to the mobile terminal indicated by the terminal selection instruction; a receiving module configured to receive a real-time video stream sent by the mobile terminal, where the real-time video stream is sent by the mobile terminal in response to the camera sharing request.
In one implementation manner of the present disclosure, the output module includes: the sorting submodule is configured to sort the currently connected mobile terminal according to the definition of the camera of the currently connected mobile terminal; an output sub-module configured to output the currently connected mobile terminals in an order.
In an implementation manner of the present disclosure, the sorting submodule is configured to acquire definition information of a camera of the currently connected mobile terminal, where the definition information includes at least one of the following definition parameters: pixel value and camera number; when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value; and sorting the cameras with the same pixel value according to the number of the cameras.
In an implementation manner of the present disclosure, the sending module is further configured to send a sharpness information obtaining request to the currently connected mobile terminal; the receiving module is further configured to receive the definition information returned by the currently connected mobile terminal.
In one implementation manner of the present disclosure, the output module is further configured to output prompt information after sending the camera sharing request to the mobile terminal, where the prompt information is used to prompt a user to operate the mobile terminal to allow the mobile terminal to share the camera.
In an implementation manner of the present disclosure, the sending module is further configured to send a camera selection request to the mobile terminal indicated by the terminal selection instruction in a process of sharing a camera of the mobile terminal, where the camera selection request is used to request to use a front camera or a rear camera; the receiving module is further configured to receive a real-time video stream sent by the mobile terminal in response to the camera selection request, wherein the video stream is obtained by shooting with a front camera or a rear camera requested by the camera selection request.
In one implementation of the present disclosure, the sending module is further configured to send the pairing information by broadcasting; the receiving module is further configured to receive response information sent by the mobile terminal, where the response information includes identity information, and the identity information includes at least one of a user account and an equipment manufacturer identifier; the sending module is further configured to send a connection establishment request to the mobile terminal when the identity information carried by the response information is predetermined identity information; the receiving module is further configured to receive a connection establishment response sent by the mobile terminal.
According to a fourth aspect of the present disclosure, there is provided a camera sharing apparatus, the apparatus including: the terminal equipment comprises a receiving module, a sending module and a receiving module, wherein the receiving module is configured to receive a camera sharing request sent by the terminal equipment; an output module configured to output a selection button for a user to select whether to agree to share the camera; the acquisition module is configured to acquire a user selection instruction generated by a user based on the selection button; and the sending module is configured to call the camera to collect a real-time video stream and send the real-time video stream to the terminal equipment if the user selection instruction indicates that the camera is agreed to be shared.
In an implementation manner of the present disclosure, the receiving module is further configured to receive a sharpness information acquisition request sent by the terminal device; the sending module is further configured to send definition information to the terminal device, where the definition information includes at least one of the following definition parameters: pixel value, number of cameras.
According to a fifth aspect of the present disclosure, there is provided a camera sharing device, the device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the camera sharing method according to the first aspect.
According to a sixth aspect of the present disclosure, there is provided a camera sharing device, the device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the camera sharing method according to the second aspect.
According to a seventh aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the method according to the first aspect.
According to an eighth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the method according to the second aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a diagram illustrating an application scenario in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of sharing cameras in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method of sharing cameras in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a method of sharing cameras in accordance with an exemplary embodiment;
fig. 5 is an interface diagram of a terminal device provided by the embodiment of the present disclosure;
fig. 6 is a schematic structural diagram illustrating a camera sharing apparatus according to an exemplary embodiment;
fig. 7 is a schematic structural diagram illustrating a camera sharing apparatus according to an exemplary embodiment;
fig. 8 is a block diagram illustrating a camera sharing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
FIG. 1 is a diagram illustrating an application scenario in accordance with an exemplary embodiment. Referring to fig. 1, the scenario includes a mobile terminal 1 and a terminal device 2, where the mobile terminal 1 and the terminal device 2 may be two devices within a certain distance range and belong to the same user, the two devices may be automatically connected, and a subsequent user may operate the two devices at the same time. The terminal device 2 may be a terminal device without a built-in camera and an external camera, such as a desktop computer without a camera, or a terminal device with a camera but with a lower camera pixel, such as a desktop computer with a low-profile camera or a notebook computer with a low-profile camera. When the user uses the terminal device 2, if a video call needs to be performed, the camera of the mobile terminal 1 can be shared and used at the moment because the user does not have a camera or the pixels of the camera are low.
Fig. 2 is a flowchart illustrating a camera sharing method according to an exemplary embodiment. Referring to fig. 2, the method may be performed by the terminal device 2 in the scenario shown in fig. 1, and the camera sharing method may include:
in step S11, in response to the camera use instruction, the currently connected mobile terminal is output for selection by the user.
For example, when the user uses a video call application, the user clicks a camera button to perform a video call, and at this time, the terminal device generates a camera use instruction.
In step S12, a terminal selection instruction is acquired.
Wherein the terminal selection instruction is used for indicating the mobile terminal selected by the user.
In step S13, a camera sharing request is transmitted to the mobile terminal indicated by the terminal selection instruction.
The camera sharing request is used for requesting to share the camera of the mobile terminal.
In step S14, a real-time video stream transmitted by the mobile terminal is received, the real-time video stream being transmitted by the mobile terminal in response to the camera sharing request.
In the disclosed embodiments, the real-time video streaming may be based on, but is not limited to: local area network transmission protocol, Wireless Fidelity (WIFI) direct connection, hot spot, bluetooth and other technologies.
If the terminal equipment is carrying out services such as video call and the like, the real-time video stream sent by the mobile terminal can be sent to the opposite terminal equipment of the video call.
In the embodiment of the disclosure, when a terminal device needs to use a camera, a camera use instruction is generated, after the camera use instruction is generated, the terminal device outputs a mobile terminal connected to the current terminal device for a user to select, when the user selects, a terminal selection instruction is generated, according to the terminal selection instruction, the terminal device can send a camera sharing request to the mobile terminal selected by the terminal selection instruction so as to request camera sharing, and by the camera sharing method, the terminal device can use the camera by sharing the camera of the mobile terminal under the condition that a built-in camera or an external camera is not configured, for example, video call is performed; under the condition that the pixels of the camera configured by the terminal equipment are low, the camera of the mobile terminal is shared, and the high-definition camera can be used.
In addition, according to the scheme, a camera does not need to be externally connected to the terminal equipment in a wired mode, a camera driver does not need to be installed, and the use is convenient.
Optionally, receiving a real-time video stream sent by a mobile terminal includes: and receiving the real-time video stream sent by the mobile terminal through the WIFI direct connection technology.
In the implementation mode, when the mobile terminal sends a camera sharing request through the terminal equipment, the mobile terminal sends the shot video stream to the terminal equipment, the video stream can be sent by adopting a WIFI direct connection technology, on one hand, the WIFI direct connection does not need intermediate data points, on the other hand, the WIFI transmission speed is high, and the transmission speed of the video stream can be ensured.
Optionally, outputting the currently connected mobile terminal for selection by the user, including: sequencing the currently connected mobile terminals according to the definition of a camera of the currently connected mobile terminal; and outputting the currently connected mobile terminals according to the sequence.
In the implementation mode, when the terminal device outputs the mobile terminal connected with the current terminal device for the user to select, the mobile terminal connected with the current terminal device is sequenced according to the definition of the camera, so that the user can select the mobile terminal with good definition according to the output sequencing of the mobile terminal to share and use the camera, the definition of the subsequently acquired video stream is ensured, and the user experience is enhanced.
Optionally, the sorting the currently connected mobile terminals according to the definition of the camera of the currently connected mobile terminal includes: acquiring definition information of a camera of a currently connected mobile terminal, wherein the definition information comprises at least one of the following definition parameters: pixel value and camera number; when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value; and sorting the cameras with the same pixel value according to the number of the cameras.
In the implementation mode, when the mobile terminals are sorted according to the definition information, the pixel values of the cameras are preferentially used, and further sorting is performed according to the number of the cameras under the condition that the pixel values of the cameras are the same, so that the sorted order of the mobile terminals meets the sorting requirement of the definition, and a user can select the camera with the best definition in the currently connected mobile terminals.
Optionally, acquiring the definition information of the camera of the currently connected mobile terminal includes: sending a definition information acquisition request to a currently connected mobile terminal; and receiving definition information returned by the currently connected mobile terminal.
In the implementation mode, in order to implement sequencing of the mobile terminal according to the definition, the definition information of the camera of the mobile terminal needs to be acquired from the mobile terminal, and the information acquisition mode can be implemented by sending a request and receiving a response, so that the process is simple and convenient.
Optionally, the method further comprises: after sending the camera sharing request to the mobile terminal, outputting prompt information, wherein the prompt information is used for prompting a user to operate the mobile terminal to allow the mobile terminal to share the camera.
In this implementation manner, after the terminal device sends the camera sharing request to the mobile terminal, the user needs to execute the sharing agreement operation on the mobile terminal, and in order to enable the user to execute the sharing agreement operation in time, this information may be output on the screen of the terminal device to remind the user.
Optionally, the method further comprises: in the process of sharing the camera of the mobile terminal, sending a camera selection request to the mobile terminal indicated by the terminal selection instruction, wherein the camera selection request is used for requesting to use a front camera or a rear camera; and receiving the real-time video stream sent by the mobile terminal in response to the camera selection request.
In the implementation mode, the terminal equipment can select to use the front camera or the rear camera of the mobile terminal by sending the camera selection request to the mobile terminal in the process of using the camera of the mobile terminal, so that the use flexibility of a user is improved.
Optionally, the method further comprises: transmitting pairing information through broadcasting; receiving response information sent by the mobile terminal, wherein the response information comprises identity information, and the identity information comprises at least one of a user account and an equipment manufacturer identifier; when the identity information carried by the response information is preset identity information, sending a connection establishment request to the mobile terminal; and receiving a connection establishment response sent by the mobile terminal.
The predetermined identity information may be identity information of the terminal device. The user account refers to a user account logged in the terminal device or the mobile terminal, and the device manufacturer identifier refers to a manufacturer of the terminal device or the mobile terminal.
In the implementation mode, the connection relationship between the terminal equipment and the mobile terminal is established through pairing and responding, in the process of establishing the connection relationship, the terminal equipment and the mobile terminal adopting the unified user account and/or equipment manufacturer identification can automatically establish connection by taking the user account and/or the equipment manufacturer identification as an authentication standard, manual operation is not needed, and the camera sharing process is simplified; meanwhile, due to the existence of the authentication process, the problem of subsequent use caused by connection to a strange mobile device is avoided.
The pairing information can be Bluetooth pairing information, and the terminal device and the mobile terminal are automatically connected through a Bluetooth technology.
Alternatively, the terminal device and the mobile terminal may be connected in a manual manner for the first time and in an automatic connection manner as described above for the second and subsequent connections.
It should be noted that the foregoing steps S11 to S14 and the foregoing optional steps may be combined arbitrarily.
Fig. 3 is a flow chart illustrating a camera sharing method according to an exemplary embodiment. Referring to fig. 3, the method may be performed by the mobile terminal 1 in the scenario shown in fig. 1, and the camera sharing method may include:
in step S21, the camera sharing request transmitted by the terminal device is received.
The camera sharing request is used for requesting to share the camera of the mobile terminal.
In step S22, a selection button is output.
The selection button is used for allowing a user to select whether to agree to share the camera.
In step S23, a user selection instruction generated by the user based on the selection button is acquired.
The user selection instruction is used for indicating whether the shared camera is approved to be used by the terminal equipment.
In step S24, if the user selection instruction indicates agreement to share the camera, the camera is invoked to capture a real-time video stream and send the real-time video stream to the terminal device.
In the disclosed embodiments, the real-time video streaming may be based on, but is not limited to: the local area network transmission protocol, WIFI direct connection, hot spots, Bluetooth and other technologies.
In the embodiment of the present disclosure, by the above camera sharing method, the terminal device can share the camera of the mobile terminal to use the camera, for example, to perform a video call, without configuring a built-in camera or an external camera; under the condition that the pixels of the camera configured by the terminal equipment are low, the camera of the mobile terminal is shared, and the high-definition camera can be used. In addition, when the camera sharing request is received, the mobile terminal outputs a selection button for the user to select whether to agree to share the camera, so that the camera sharing request of the mobile terminal by illegal terminal equipment is avoided, and the safety is improved.
Optionally, the method further comprises: receiving a definition information acquisition request sent by terminal equipment; sending definition information to the terminal device, the definition information including at least one of the following definition parameters: pixel value, number of cameras.
In this implementation manner, in order to implement sorting of the mobile terminals according to the definition, the terminal device needs to acquire the definition information of the camera thereof from the mobile terminal, and this information acquisition manner can be implemented in a manner of sending a request and receiving a response, and the process is simple and convenient.
It should be noted that the foregoing steps S21 to S24 and the foregoing optional steps may be combined arbitrarily.
Fig. 4 is a flowchart illustrating a camera sharing method according to an exemplary embodiment. Referring to fig. 4, the method may be performed by the mobile terminal 1 and the terminal device 2 in the scenario shown in fig. 1, and the camera sharing method may include:
in step S31, the terminal device establishes a connection with the mobile terminal.
Optionally, the establishing, by the terminal device, a connection with the mobile terminal may include: the terminal equipment sends pairing information through broadcasting, and the mobile terminal receives the pairing information sent by the terminal equipment; the mobile terminal sends response information to the terminal equipment, the terminal equipment receives the response information sent by the mobile terminal, the response information comprises identity information, and the identity information comprises at least one of a user account and an equipment manufacturer identifier; when the identity information carried by the response information is preset identity information, the terminal equipment sends a connection establishment request to the mobile terminal, and the mobile terminal receives the connection establishment request sent by the terminal equipment; the mobile terminal sends a connection establishment response to the terminal equipment, and the terminal equipment receives the connection establishment response sent by the mobile terminal.
The predetermined identity information may be identity information of the terminal device. The user account refers to a user account logged in the terminal device or the mobile terminal, and the device manufacturer identifier refers to a manufacturer of the terminal device or the mobile terminal.
In the implementation mode, the connection relationship between the terminal equipment and the mobile terminal is established through pairing and responding, in the process of establishing the connection relationship, the terminal equipment and the mobile terminal adopting the unified user account and/or equipment manufacturer identification can automatically establish connection by taking the user account and/or the equipment manufacturer identification as an authentication standard, manual operation is not needed, and the camera sharing process is simplified; meanwhile, due to the existence of the authentication process, the problem of subsequent use caused by connection to a strange mobile device is avoided.
The pairing information can be Bluetooth pairing information, and the terminal device and the mobile terminal are automatically connected through a Bluetooth technology.
For example, the terminal device sends bluetooth pairing information through broadcasting, wherein the bluetooth pairing information comprises a user account; when the mobile terminal receives the Bluetooth pairing information, verifying whether a user account carried by the Bluetooth pairing information is the same as a user account logged in the mobile terminal, if so, returning response information, wherein the response information comprises the user account, otherwise, not returning the response information; the terminal equipment receives response information sent by the mobile terminal; the terminal equipment verifies whether the user account carried by the response information is the same as the user account logged in the terminal equipment; when the user account carried by the response information is the same as the user account logged in the terminal equipment, the terminal equipment sends a connection establishment request to the mobile terminal, and the mobile terminal receives the connection establishment request sent by the terminal equipment; the mobile terminal sends a connection establishment response to the terminal equipment, and the terminal equipment receives the connection establishment response sent by the mobile terminal. And when the user account carried by the response message is different from the user account logged in the terminal equipment, the terminal equipment finishes the connection establishing process.
The process of verifying the user account by the mobile terminal is an optional step, and the mobile terminal can send response information after receiving the Bluetooth pairing information.
Alternatively, the above connection establishment procedure may be initiated by the mobile terminal and responded by the terminal device.
As mentioned above, the bluetooth pairing information and the response information may include, in addition to the user account, the manufacturer, and whether the manufacturer is the same as the mobile terminal and the terminal device need to be verified during the connection process. For example, when the mobile terminal receives the bluetooth pairing information, it is verified whether the user account and the device manufacturer identifier carried in the bluetooth pairing information are the same as the local user account and the local device manufacturer identifier of the mobile terminal, if so, response information is returned, otherwise, no response information is returned. For another example, the terminal device verifies whether the user account and the device manufacturer identifier carried in the response message are the same as the local user account and the local device manufacturer identifier of the terminal device; if the connection request is the same as the connection request, the terminal equipment sends a connection establishment request to the mobile terminal, and the mobile terminal receives the connection establishment request sent by the terminal equipment. Otherwise, the terminal device does not send a request for establishing a connection.
The pairing information and the response information carry the equipment manufacturer identification, and the automatic connection mode is guaranteed to be adopted only by products of the same manufacturer, so that the terminal equipment and the mobile terminal are guaranteed to have the camera sharing function.
It should be noted that step S31 may be repeatedly executed, that is, one terminal device may be connected to multiple mobile terminals, and one mobile terminal may also be connected to multiple terminal devices.
The mobile terminal can be a mobile phone provided with a camera, and can also be a device such as a bracelet and the like which is not provided with a camera. Accordingly, the method may further comprise: the mobile terminal sends equipment information to the terminal equipment, wherein the equipment information comprises whether a camera is configured or not; the terminal equipment receives and stores the equipment information of the mobile terminal.
In step S32, the terminal device transmits a sharpness information acquisition request to the currently connected mobile terminal. And the mobile terminal receives the definition information acquisition request sent by the terminal equipment.
In this implementation manner, in order to implement sorting of the mobile terminals according to the definition, the terminal device needs to acquire the definition information of the camera thereof from the mobile terminal, and this information acquisition manner can be implemented in a manner of sending a request and receiving a response, and the process is simple and convenient.
In step S33, the mobile terminal sends the definition information to the terminal device, where the definition information includes at least one of the following definition parameters: pixel value, number of cameras. And the terminal equipment receives definition information returned by the currently connected mobile terminal.
Before sending the definition information to the terminal device, the mobile terminal needs to acquire the definition information, and the definition information can be acquired from the configuration information of the mobile terminal.
In the embodiment of the present disclosure, the number of the cameras refers to the number of lenses included in a front camera or a rear camera of the mobile terminal, for example, the number of the cameras of the rear camera is 3, and the number of the cameras of the front camera is 1. The pixel value refers to the maximum number of pixels of the camera, for example, 1200 ten thousand pixels are used for the front camera, and 4800 ten thousand pixels are used for the rear camera.
In the embodiment of the present disclosure, the definition parameter may include at least one of a definition parameter of a front camera and a definition parameter of a rear camera of the mobile terminal, which are independent.
And if the mobile terminal connected with the terminal equipment does not return definition information to the terminal equipment, the terminal equipment considers that the mobile terminal is not provided with a camera, and the mobile terminal does not participate in the subsequent steps.
In step S34, the terminal device sorts the currently connected mobile terminals in accordance with the sharpness of the camera of the currently connected mobile terminal in response to the camera use instruction.
When the terminal equipment needs to use the camera, a camera use instruction is generated, and after the camera use instruction is generated, the terminal equipment outputs the mobile terminal connected with the current terminal equipment for the user to select.
The camera use instruction can be triggered by a set event or manually triggered by a user. For example, when a user wants to perform a video call, the terminal device generates a camera usage command, which is triggered by a setting event. For another example, the user selects to use the camera function, and the terminal device generates a camera use instruction, which is manually triggered by the user.
In the implementation mode, when the terminal device outputs the mobile terminal connected with the current terminal device for the user to select, the mobile terminal connected with the current terminal device is sequenced according to the definition of the camera, so that the user can select the mobile terminal with good definition according to the output sequencing of the mobile terminal to share and use the camera, the definition of the subsequently acquired video stream is ensured, and the user experience is enhanced.
In an implementation manner of the embodiment of the present disclosure, sorting the currently connected mobile terminals according to the definition of the camera of the currently connected mobile terminal includes: acquiring definition information of a camera of a currently connected mobile terminal, wherein the definition information comprises at least one of the following definition parameters: pixel value and camera number; when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value; and sorting the cameras with the same pixel value according to the number of the cameras.
In the implementation mode, when the mobile terminals are sorted according to the definition information, the pixel values of the cameras are preferentially used, and further sorting is performed according to the number of the cameras under the condition that the pixel values of the cameras are the same, so that the sorted order of the mobile terminals meets the sorting requirement of the definition, and a user can select the camera with the best definition in the currently connected mobile terminals.
Further, when the definition information of the camera of the mobile terminal includes the front camera and the rear camera at the same time, in the sorting process, the front camera and the rear camera of the same mobile terminal may be sorted respectively, and output separately in the subsequent output, and distinguished by remarks, for example, distinguished by remarking the front camera and the rear camera respectively after the identifier of the same mobile terminal.
Alternatively, the sharpness information may further include other parameters than the pixel value and the number of cameras, such as a maximum shooting angle of view and the like. When other parameters are included, the mobile terminals with the same pixel value and the same number of cameras can be further sorted.
In the embodiment of the disclosure, by acquiring the definition information first, when the terminal device needs to share the camera of the mobile terminal device, only the ordering and the output are performed according to the definition information acquired in advance, and the response speed is high. In other implementations, the terminal device may further perform steps S32 and S33 in response to the camera use instruction.
In step S35, the terminal device outputs the currently connected mobile terminal for selection by the user.
Fig. 5 is an interface diagram of a terminal device provided in an embodiment of the present disclosure, and referring to fig. 5, the interface of the currently connected mobile terminal output by the terminal device may include: an icon of the mobile terminal (column 1 in fig. 5), an identification of the mobile terminal (column 2 in fig. 5) and a selection button (column 3 in fig. 5).
Referring to fig. 5, an icon of the mobile terminal may be used to indicate a type of the mobile terminal, for example, icons corresponding to X0001 to X0003 indicate that the mobile terminal is a mobile phone, an icon corresponding to X0005 indicates that the mobile terminal is a tablet device, and an icon corresponding to X0006 indicates that the mobile terminal is a notebook computer. The identifier of the mobile terminal is used to distinguish the mobile terminal, and the identifier can also distinguish the front camera and the rear camera of the mobile terminal, such as X0002 (front) and X0002 (rear) respectively identify the front camera and the rear camera of the mobile terminal X0002. The selection button is used to indicate the mobile terminal selected by the user, for example, a hook after X0001 in fig. 5 indicates that the mobile terminal is selected.
When the terminal device itself includes a camera, the interface may further include a camera of the device itself for the user to select, and when the user selects the camera of the terminal device itself, the subsequent process is ended. For example, X0004 in fig. 5, is a terminal device, and represents a camera of the terminal device itself.
The interface may be a popup, the popup includes a close button, and when the user clicks the close button, the terminal device receives a close instruction, and closes the popup at this time, and then the subsequent process is ended.
In step S36, the terminal device acquires a terminal selection instruction.
The terminal selection instruction is used for indicating the mobile terminal selected by the user.
In step S37, the terminal apparatus transmits a camera sharing request to the mobile terminal. And the mobile terminal receives a camera sharing request sent by the terminal equipment.
The camera sharing request is used for requesting to share the camera of the mobile terminal. Optionally, the camera sharing request may carry camera indication information requesting for sharing, where the camera indication information is used to indicate a front camera or a rear camera.
In step S38, the terminal apparatus outputs the prompt information after transmitting the camera sharing request to the mobile terminal.
The prompt information is used for prompting a user to operate the mobile terminal so as to allow the mobile terminal to share the camera. Since the terminal device needs the user to approve the sharing request on the mobile terminal after sending the camera sharing request to the mobile terminal, the prompt information needs to be output in order to ensure that the user can timely perform sharing approval operation on the mobile terminal.
The prompt message may be a pop-up window, where the pop-up window includes a close button, and when the user clicks the close button, the terminal device receives a close command. The content of the prompt message may be "please agree to share the camera on the mobile terminal" or the like. The prompt message can also be voice message, and the contents of 'please agree to share the camera on the mobile terminal' and the like are broadcasted through voice.
In step S39, when the mobile terminal receives the camera sharing request transmitted by the terminal device, the mobile terminal outputs a selection button.
The selection button is used for allowing a user to select whether to agree to share the camera.
The selection button may include two options of approval and rejection, and the user clicks one of the two options, and accordingly, the mobile terminal obtains the corresponding instruction.
The selection interface may be a popup, where the popup includes a close button, and when a user clicks the close button, the terminal device receives a close instruction, and at this time, closes the popup, and ends the subsequent process.
In step S310, the mobile terminal acquires a user selection instruction generated by the user based on the selection button.
The user selection instruction is used for indicating whether sharing of the camera is agreed, namely whether the camera sharing request passes.
When the user selection instruction indicates agreement to share the camera, continuing to step S311; and when the user selects the instruction to indicate that the shared camera is not approved, ending the subsequent flow.
In addition, when the mobile terminal is in a screen locking state and outputs the selection button, the user needs to unlock the mobile terminal first, and after unlocking is completed, the user can select whether to agree with sharing the camera.
In step S311, if the user selection instruction indicates that the camera is agreed to be shared, the mobile terminal invokes the camera to capture a real-time video stream and sends the real-time video stream to the terminal device. And the terminal equipment receives the real-time video stream sent by the mobile terminal.
The mobile terminal opens the camera sharing request to request the sharing after the user agrees to share the camera, and if the camera sharing request does not specify which camera to share, the mobile terminal defaults to share the rear camera. And after the camera is opened, acquiring the video stream collected by the camera, and then sending the video stream to the terminal equipment through the transmission module.
In the disclosed embodiments, the real-time video streaming may be based on, but is not limited to: the local area network transmission protocol, WIFI direct connection, hot spots, Bluetooth and other technologies.
For example, the video stream can be sent by adopting a WIFI direct connection technology, on one hand, the WIFI direct connection does not need intermediate data points, on the other hand, the WIFI transmission speed is high, and the transmission speed of the video stream can be ensured.
Optionally, the method may further include: in the process of sharing the camera of the mobile terminal, sending a camera selection request to the mobile terminal indicated by the terminal selection instruction, wherein the camera selection request is used for requesting to use a front camera or a rear camera; and receiving the real-time video stream sent by the mobile terminal in response to the camera selection request.
In the implementation mode, the terminal equipment can select to use the front camera or the rear camera of the mobile terminal by sending the camera selection request to the mobile terminal in the process of using the camera of the mobile terminal, so that the use flexibility of a user is improved. For example, the terminal device starts to select the front camera for use, but needs a camera with a higher pixel value to take a picture during use, and at this time, a camera selection request can be sent to request the use of the rear camera.
Further, after the terminal device acquires the real-time video stream, functions such as video call, taking a picture (for example, capturing a picture from the video stream, or controlling the video stream to pause and acquire the picture through an instruction on the terminal device) and the like can be realized.
Since the terminal device and the mobile terminal have already established a connection in step S31, the terminal device need only select one protocol for the transmission of the video stream in step S311.
Fig. 6 is a schematic structural diagram illustrating a camera sharing device according to an exemplary embodiment, and referring to fig. 6, the camera sharing device includes: an output module 401, an acquisition module 402, a sending module 403 and a receiving module 404.
Wherein, the output module 401 is configured to respond to the camera usage instruction and output the currently connected mobile terminal for the user to select; the obtaining module 402 is configured to obtain a terminal selection instruction, where the terminal selection instruction is used to indicate a mobile terminal selected by a user; the sending module 403 is configured to send a camera sharing request to the mobile terminal indicated by the terminal selection instruction; the receiving module 404 is configured to receive a real-time video stream transmitted by the mobile terminal, where the real-time video stream is transmitted by the mobile terminal in response to the camera sharing request.
In one implementation manner of the present disclosure, the output module 401 includes: the sorting submodule 411 is configured to sort the currently connected mobile terminals according to the definition of the cameras of the currently connected mobile terminals; an output sub-module 412 configured to output the currently connected mobile terminals in an order.
In one implementation manner of the present disclosure, the sorting submodule 411 is configured to obtain definition information of a camera of a currently connected mobile terminal, where the definition information includes at least one of the following definition parameters: pixel value and camera number; when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value; and sorting the cameras with the same pixel value according to the number of the cameras.
In one implementation manner of the present disclosure, the sending module 403 is further configured to send a clarity information obtaining request to the currently connected mobile terminal; and the receiving module is also configured to receive the definition information returned by the currently connected mobile terminal.
In one implementation manner of the present disclosure, the output module 401 is further configured to output prompt information after sending the camera sharing request to the mobile terminal, where the prompt information is used to prompt the user to operate the mobile terminal to allow the mobile terminal to share the camera.
In one implementation manner of the present disclosure, the sending module 403 is further configured to send a camera selection request to the mobile terminal indicated by the terminal selection instruction in the process of sharing the camera of the mobile terminal, where the camera selection request is used to request to use the front camera or the rear camera; the receiving module 404 is further configured to receive a real-time video stream transmitted by the mobile terminal in response to the camera selection request.
In one implementation of the present disclosure, the sending module 403 is further configured to send the pairing information by broadcasting; a receiving module 404, further configured to receive response information sent by the mobile terminal, where the response information includes identity information, and the identity information includes at least one of a user account and an equipment manufacturer identifier; the sending module 403 is further configured to send a connection establishment request to the mobile terminal when the identity information carried by the response information is predetermined identity information; the receiving module 404 is further configured to receive a connection establishment response sent by the mobile terminal.
The manner in which the output module 401 outputs the currently connected mobile terminal may be referred to in steps S34 to S35, the manner in which the acquisition module 402 acquires the terminal selection instruction may be referred to in step S36, the manner in which the transmission module 403 transmits the camera sharing request may be referred to in step S37, and the manner in which the reception module 404 receives the real-time video stream may be referred to in step S311, and a detailed description thereof is omitted.
Fig. 7 is a schematic structural diagram illustrating a camera sharing device according to an exemplary embodiment, and referring to fig. 7, the camera sharing device includes: a receiving module 501, an output module 502, an obtaining module 503 and a sending module 504.
The receiving module 501 is configured to receive a camera sharing request sent by a terminal device; the output module 502 is configured to output a selection button for the user to select whether to agree to share the camera; the obtaining module 503 is configured to obtain a user selection instruction generated by a user based on the selection button; the sending module 504 is configured to invoke the camera to capture the real-time video stream and send to the terminal device if the user selection instruction indicates agreement to share the camera.
In one implementation manner of the present disclosure, the receiving module 501 is further configured to receive a definition information obtaining request sent by a terminal device; a sending module 504, further configured to send the sharpness information to the terminal device, the sharpness information including at least one of the following sharpness parameters: pixel value, number of cameras.
The manner in which the receiving module 501 receives the camera sharing request may be referred to in step S37, the manner in which the output module 502 outputs the selection button may be referred to in step S39, the manner in which the obtaining module 503 obtains the user selection instruction may be referred to in step S310, and the manner in which the sending module 504 sends the real-time video stream may be referred to in step S311, and a detailed description thereof is omitted.
Fig. 8 is a block diagram illustrating a camera sharing apparatus 600 according to an exemplary embodiment, where the apparatus 600 may be the foregoing terminal device or mobile terminal. Referring to fig. 8, the camera sharing device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the camera sharing device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the camera sharing device 600. Examples of such data include instructions for any software program or method operating on camera sharing device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 608 includes a screen between the camera sharing device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. When the camera sharing device 600 is a mobile terminal, the multimedia component includes at least one camera; when the camera sharing device 600 is a terminal device, the multimedia component does not include a camera.
The audio component 610 is configured to output and/or input audio signals. In some embodiments, audio component 610 includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the camera sharing device 600. For example, when the smart device is a smart air conditioner, the sensor component 614 may include a humidity sensor, a temperature sensor, and the like.
The communication component 616 is configured to facilitate wireless communication between the camera sharing arrangement 600 and other devices. In the disclosed embodiment, the communication component 616 may access a wireless network based on a communication standard, such as 2G, 3G, 4G, or 5G, or a combination thereof, so as to implement the physical downlink control signaling detection. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. Optionally, the communication component 616 further includes an NFC module.
In an exemplary embodiment, the camera sharing device 600 may be implemented by one or more software Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described camera sharing method.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, that may be executed by the processor 620 of the camera sharing device 600 to perform the camera sharing method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (14)
1. A camera sharing method, the method comprising:
responding to a camera use instruction, and acquiring definition information of a camera of a currently connected mobile terminal, wherein the definition information comprises at least one of the following definition parameters: pixel value and camera number;
when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value;
the method comprises the steps that cameras with the same pixel value are sorted according to the number of the cameras, when the same mobile terminal comprises a front camera and a rear camera, the front camera and the rear camera of the same mobile terminal are respectively sorted and distinguished through remarks;
outputting the currently connected mobile terminals according to the sequence for selection by a user;
acquiring a terminal selection instruction, wherein the terminal selection instruction is used for indicating a mobile terminal selected by a user;
sending a camera sharing request to the mobile terminal indicated by the terminal selection instruction;
and receiving a real-time video stream sent by the mobile terminal, wherein the real-time video stream is sent by the mobile terminal in response to the camera sharing request.
2. The method according to claim 1, wherein the obtaining of the sharpness information of the camera of the currently connected mobile terminal comprises:
sending a definition information acquisition request to the currently connected mobile terminal;
and receiving the definition information returned by the currently connected mobile terminal.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and after sending a camera sharing request to the mobile terminal, outputting prompt information, wherein the prompt information is used for prompting a user to operate the mobile terminal so as to allow the mobile terminal to share the camera.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
in the process of sharing and using the camera of the mobile terminal, sending a camera selection request to the mobile terminal indicated by the terminal selection instruction, wherein the camera selection request is used for requesting to use a front camera or a rear camera;
and receiving a real-time video stream sent by the mobile terminal in response to the camera selection request, wherein the video stream is obtained by shooting by a front camera or a rear camera requested by the camera selection request.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
transmitting pairing information through broadcasting;
receiving response information sent by the mobile terminal, wherein the response information comprises identity information, and the identity information comprises at least one of a user account and an equipment manufacturer identifier;
when the identity information carried by the response information is preset identity information, sending a connection establishment request to the mobile terminal;
and receiving a connection establishment response sent by the mobile terminal.
6. A camera sharing method, the method comprising:
receiving a definition information acquisition request sent by terminal equipment;
sending definition information to the terminal device, wherein the definition information comprises at least one of the following definition parameters: pixel value and camera number; the definition information is used for the terminal device to sort according to the following mode: when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value; the method comprises the steps that cameras with the same pixel value are sorted according to the number of the cameras, when the same mobile terminal comprises a front camera and a rear camera, the front camera and the rear camera of the same mobile terminal are respectively sorted and distinguished through remarks;
receiving a camera sharing request sent by the terminal equipment;
outputting a selection button, wherein the selection button is used for a user to select whether to agree to share the camera;
acquiring a user selection instruction generated by a user based on the selection button;
and if the user selection instruction indicates that the camera is agreed to be shared, calling the camera to acquire a real-time video stream and sending the real-time video stream to the terminal equipment.
7. A camera sharing apparatus, the apparatus comprising:
an output module configured to respond to a camera use instruction and acquire definition information of a camera of a currently connected mobile terminal, wherein the definition information comprises at least one of the following definition parameters: pixel value and camera number; when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value; the method comprises the steps that cameras with the same pixel value are sorted according to the number of the cameras, when the same mobile terminal comprises a front camera and a rear camera, the front camera and the rear camera of the same mobile terminal are respectively sorted and distinguished through remarks; outputting the currently connected mobile terminals according to the sequence for selection by a user;
the terminal selection module is configured to obtain a terminal selection instruction, wherein the terminal selection instruction is used for indicating a mobile terminal selected by a user;
the sending module is configured to send a camera sharing request to the mobile terminal indicated by the terminal selection instruction;
a receiving module configured to receive a real-time video stream sent by the mobile terminal, where the real-time video stream is sent by the mobile terminal in response to the camera sharing request.
8. The apparatus according to claim 7, wherein the sending module is further configured to send a request for obtaining sharpness information to the currently connected mobile terminal;
the receiving module is further configured to receive the definition information returned by the currently connected mobile terminal.
9. The apparatus according to claim 7 or 8, wherein the output module is further configured to output a prompt message after sending the camera sharing request to the mobile terminal, the prompt message being used for prompting a user to operate the mobile terminal to allow the mobile terminal to share a camera.
10. The apparatus according to claim 7 or 8, wherein the sending module is further configured to send a camera selection request to the mobile terminal indicated by the terminal selection instruction in the process of sharing the camera of the mobile terminal, where the camera selection request is used to request to use a front camera or a rear camera;
the receiving module is further configured to receive a real-time video stream sent by the mobile terminal in response to the camera selection request, wherein the video stream is obtained by shooting with a front camera or a rear camera requested by the camera selection request.
11. The apparatus of claim 7 or 8, wherein the transmitting module is further configured to transmit the pairing information by broadcasting;
the receiving module is further configured to receive response information sent by the mobile terminal, where the response information includes identity information, and the identity information includes at least one of a user account and an equipment manufacturer identifier;
the sending module is further configured to send a connection establishment request to the mobile terminal when the identity information carried by the response information is predetermined identity information;
the receiving module is further configured to receive a connection establishment response sent by the mobile terminal.
12. A camera sharing apparatus, the apparatus comprising:
the receiving module is configured to receive a definition information acquisition request sent by the terminal equipment;
a sending module configured to send intelligibility information to the terminal device, the intelligibility information comprising at least one of the following intelligibility parameters: pixel value and camera number; the definition information is used for the terminal device to sort according to the following mode: when the definition information comprises a pixel value and the number of cameras, firstly, sequencing the currently connected mobile terminals according to the pixel value; the method comprises the steps that cameras with the same pixel value are sorted according to the number of the cameras, when the same mobile terminal comprises a front camera and a rear camera, the front camera and the rear camera of the same mobile terminal are respectively sorted and distinguished through remarks;
the receiving module is further configured to receive a camera sharing request sent by the terminal device;
an output module configured to output a selection button for a user to select whether to agree to share the camera;
the acquisition module is configured to acquire a user selection instruction generated by a user based on the selection button;
the sending module is further configured to invoke a camera to collect a real-time video stream and send the real-time video stream to the terminal device if the user selection instruction indicates that sharing of the camera is agreed.
13. A camera sharing apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the camera sharing method of any one of claims 1 to 5 or to perform the camera sharing method of claim 6.
14. A computer readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method of any one of claims 1 to 5 or the method of claim 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910419547.8A CN111970468B (en) | 2019-05-20 | 2019-05-20 | Camera sharing method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910419547.8A CN111970468B (en) | 2019-05-20 | 2019-05-20 | Camera sharing method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111970468A CN111970468A (en) | 2020-11-20 |
CN111970468B true CN111970468B (en) | 2022-04-08 |
Family
ID=73358215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910419547.8A Active CN111970468B (en) | 2019-05-20 | 2019-05-20 | Camera sharing method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111970468B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114245012B (en) * | 2021-12-14 | 2024-03-22 | 深圳唐恩科技有限公司 | Multi-machine live broadcast switching method, system and equipment |
CN114697572B (en) * | 2022-04-15 | 2023-09-22 | 北京国基科技股份有限公司 | Video scheduling method and device |
CN115209191A (en) * | 2022-06-14 | 2022-10-18 | 海信视像科技股份有限公司 | Display device, terminal device and method for sharing camera among devices |
CN115209192A (en) * | 2022-06-14 | 2022-10-18 | 海信视像科技股份有限公司 | Display device, intelligent device and camera sharing method |
CN117714585B (en) * | 2023-07-31 | 2024-09-27 | 荣耀终端有限公司 | Cross-equipment collaborative shooting method, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104796610A (en) * | 2015-04-20 | 2015-07-22 | 广东欧珀移动通信有限公司 | Mobile terminal and camera sharing method, device and system thereof |
CN105120099A (en) * | 2015-08-31 | 2015-12-02 | 小米科技有限责任公司 | Shooting control method and device |
CN105357498A (en) * | 2015-12-10 | 2016-02-24 | 广东欧珀移动通信有限公司 | Method and device for sharing mobile terminal camera |
CN106412483A (en) * | 2016-10-28 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Camera sharing method and apparatus |
CN107948592A (en) * | 2017-11-22 | 2018-04-20 | 珠海格力电器股份有限公司 | Method and device for sharing camera and intelligent terminal |
US10027926B1 (en) * | 2017-04-28 | 2018-07-17 | Cisco Technology, Inc. | Dynamically adding cameras of mobile devices for collaborative sharing based on proximity |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107222679B (en) * | 2017-06-30 | 2019-01-22 | 维沃移动通信有限公司 | A kind of processing method and mobile terminal of image data |
US20190066730A1 (en) * | 2017-08-25 | 2019-02-28 | Vid Inc. | System and method for creating group videos |
CN107783710A (en) * | 2017-10-25 | 2018-03-09 | 珠海市魅族科技有限公司 | Camera control method and device, terminal and readable storage medium storing program for executing |
-
2019
- 2019-05-20 CN CN201910419547.8A patent/CN111970468B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104796610A (en) * | 2015-04-20 | 2015-07-22 | 广东欧珀移动通信有限公司 | Mobile terminal and camera sharing method, device and system thereof |
CN105120099A (en) * | 2015-08-31 | 2015-12-02 | 小米科技有限责任公司 | Shooting control method and device |
CN105357498A (en) * | 2015-12-10 | 2016-02-24 | 广东欧珀移动通信有限公司 | Method and device for sharing mobile terminal camera |
CN106412483A (en) * | 2016-10-28 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Camera sharing method and apparatus |
US10027926B1 (en) * | 2017-04-28 | 2018-07-17 | Cisco Technology, Inc. | Dynamically adding cameras of mobile devices for collaborative sharing based on proximity |
CN107948592A (en) * | 2017-11-22 | 2018-04-20 | 珠海格力电器股份有限公司 | Method and device for sharing camera and intelligent terminal |
Non-Patent Citations (1)
Title |
---|
一种基于智能手机的新移动医疗系统模式;孟濬;《计算机应用研究》;20130331;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111970468A (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111970468B (en) | Camera sharing method and device and computer readable storage medium | |
US10237901B2 (en) | Method and apparatus for connecting with controlled smart device, and storage medium | |
US20170185757A1 (en) | Methods and apparatuses for controlling smart device | |
KR102377724B1 (en) | Device network configuration method and apparatus, and medium | |
CN106210797B (en) | Network live broadcast method and device | |
CN109565451B (en) | Method and device for using network slice | |
CN105281994B (en) | Working mode switching method and device | |
CN107846730B (en) | Call forwarding method and device | |
CN109451838B (en) | Method, device and storage medium for obtaining access control parameters | |
CN107911831B (en) | Method, device, equipment and storage medium for reminding user to replace router | |
CN105049219A (en) | Network traffic ordering method and system, mobile terminal and server | |
CN111277984A (en) | Wireless local area network access method and device | |
CN106412481B (en) | Reminding method, device and terminal based on VoLTE video calling | |
CN109040651B (en) | Video communication method and device | |
CN106292316B (en) | Working mode switching method and device | |
CN111010721A (en) | Wireless network distribution method, wireless network distribution device and computer readable storage medium | |
CN113407427A (en) | Verification information processing method and device, terminal equipment and storage medium | |
CN105472006A (en) | File transfer method, device and system | |
CN104780256A (en) | Address book management method and device and intelligent terminal | |
CN105610608A (en) | Method and device for working state prompt of intelligent socket | |
CN108401518B (en) | Channel coordination method and device | |
CN108021319B (en) | Method and device for trying intelligent equipment | |
CN107105005B (en) | Method and device for synchronizing data | |
CN114095616A (en) | Call implementation method and device, electronic equipment and readable storage medium | |
CN108696914B (en) | Method and device for scanning intelligent equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |