[go: up one dir, main page]

CN105357498A - Mobile terminal camera sharing method and device - Google Patents

Mobile terminal camera sharing method and device Download PDF

Info

Publication number
CN105357498A
CN105357498A CN201510909529.XA CN201510909529A CN105357498A CN 105357498 A CN105357498 A CN 105357498A CN 201510909529 A CN201510909529 A CN 201510909529A CN 105357498 A CN105357498 A CN 105357498A
Authority
CN
China
Prior art keywords
mobile terminal
camera
real
module
time picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510909529.XA
Other languages
Chinese (zh)
Inventor
张星龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510909529.XA priority Critical patent/CN105357498A/en
Publication of CN105357498A publication Critical patent/CN105357498A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/183Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source
    • H04N7/185Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source from a mobile camera, e.g. for remote control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a sharing method of a mobile terminal camera, which comprises the following steps: a first mobile terminal initiates a wireless connection request message to a second mobile terminal selected by a user; the first mobile terminal receives a connection success message returned by the second mobile terminal, wherein the message carries the number of the second mobile terminal cameras; the first mobile terminal receives and displays a real-time picture shot by the camera and transmitted by the second mobile terminal; and the first mobile terminal receives a shooting instruction, shoots and stores the currently displayed real-time picture according to the shooting instruction. The invention can share the camera among a plurality of mobile terminals, and not only can use the old mobile terminal which is not used as the monitoring camera, but also can meet certain requirements and reduce the cost of users; meanwhile, the user can better experience the photographing fun when going out to photograph.

Description

一种移动终端摄像头的共享方法及装置A mobile terminal camera sharing method and device

技术领域technical field

本发明涉及拍摄共享技术领域,尤其涉及一种移动终端摄像头的共享方法及装置。The present invention relates to the technical field of shooting and sharing, in particular to a method and device for sharing a camera of a mobile terminal.

背景技术Background technique

随着人们对个人安全越来越看重,个人家庭安装监控摄像头的用户越来越多,但市面上这种摄像头普遍存在分辨率低、价格昂贵等特点。As people pay more and more attention to personal safety, more and more users install surveillance cameras in their homes, but such cameras generally have the characteristics of low resolution and high price on the market.

随着智能终端越来越便宜,许多用户已不止有一部智能终端,当我们外出游玩的时候需要拍一些文艺照片,如侧面照等,经常需要麻烦他人帮忙,如果一个人外出的话,就有诸多不便。As smart terminals become cheaper and cheaper, many users have more than one smart terminal. When we go out to play, we need to take some artistic photos, such as side photos, and often need to ask others for help. If we go out alone, there are many inconvenient.

故,有必要提出一种新的技术方案,以解决上述技术问题。Therefore, it is necessary to propose a new technical solution to solve the above technical problems.

发明内容Contents of the invention

有鉴于此,本发明的目的在于提供一种移动终端摄像头的共享方法及装置,其能够在多部移动终端之间共享摄像头,既可以将旧的不用的移动终端当作监控摄像头,既满足一定的要求又降低用户成本;同时也可以让用户在外出拍照时通过本方案更好的体验到拍照的乐趣。In view of this, the purpose of the present invention is to provide a method and device for sharing cameras of mobile terminals, which can share cameras among multiple mobile terminals, and can use old and unused mobile terminals as surveillance cameras. requirements and reduce user costs; at the same time, users can better experience the fun of taking pictures through this solution when they go out to take pictures.

为解决上述技术问题,本发明实施例提供了以下技术方案:In order to solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

一种移动终端摄像头的共享方法,所述移动终端摄像头的共享方法包括以下步骤:A method for sharing a camera of a mobile terminal, the method for sharing a camera of a mobile terminal comprises the following steps:

第一移动终端向用户选择的第二移动终端发起无线连接请求消息;The first mobile terminal initiates a wireless connection request message to the second mobile terminal selected by the user;

第一移动终端接收所述第二移动终端返回的连接成功消息,其中,所述消息中携带有第二移动终端摄像头数量;The first mobile terminal receives the connection success message returned by the second mobile terminal, wherein the message carries the number of cameras of the second mobile terminal;

第一移动终端接收并显示所述第二移动终端传输的摄像头拍摄的实时画面;The first mobile terminal receives and displays the real-time picture taken by the camera transmitted by the second mobile terminal;

第一移动终端接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面。The first mobile terminal receives the photographing instruction, and photographs and saves the currently displayed real-time picture according to the photographing instruction.

为解决上述技术问题,本发明实施例还提供了以下技术方案:In order to solve the above technical problems, the embodiment of the present invention also provides the following technical solutions:

一种移动终端摄像头的共享方法,所述移动终端摄像头的共享方法包括以下步骤:A method for sharing a camera of a mobile terminal, the method for sharing a camera of a mobile terminal comprises the following steps:

第二移动终端接收第一移动终端发送的无线连接请求消息;The second mobile terminal receives the wireless connection request message sent by the first mobile terminal;

第二移动终端判断是否授权所述第一移动终端共享第二移动终端的摄像头;The second mobile terminal determines whether to authorize the first mobile terminal to share the camera of the second mobile terminal;

如果判断出已授权,则第二移动终端向所述第一移动终端发送连接成功消息;If it is determined that it has been authorized, the second mobile terminal sends a connection success message to the first mobile terminal;

第二移动终端开启本端摄像头,并将所述摄像头拍摄的实时画面传输给所述第一移动终端。The second mobile terminal turns on its own camera, and transmits the real-time picture captured by the camera to the first mobile terminal.

为解决上述技术问题,本发明实施例还提供了以下技术方案:In order to solve the above technical problems, the embodiment of the present invention also provides the following technical solutions:

一种移动终端摄像头的共享装置,所述移动终端摄像头的共享装置包括:A kind of sharing device of mobile terminal camera, the sharing device of described mobile terminal camera comprises:

消息发起模块,用于向用户选择的第二移动终端发起无线连接请求消息;A message initiating module, configured to initiate a wireless connection request message to a second mobile terminal selected by the user;

消息接收模块,用于接收所述第二移动终端返回的连接成功消息,其中,所述消息中携带有第二移动终端摄像头数量;A message receiving module, configured to receive a connection success message returned by the second mobile terminal, wherein the message carries the number of cameras of the second mobile terminal;

显示模块,用于接收并显示所述第二移动终端传输的摄像头拍摄的实时画面;A display module, configured to receive and display the real-time images captured by the camera transmitted by the second mobile terminal;

拍摄保存模块,用于接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面。The shooting and saving module is configured to receive a shooting instruction, and shoot and save the currently displayed real-time picture according to the shooting instruction.

为解决上述技术问题,本发明实施例还提供了以下技术方案:In order to solve the above technical problems, the embodiment of the present invention also provides the following technical solutions:

一种移动终端摄像头的共享装置,所述移动终端摄像头的共享装置包括:A kind of sharing device of mobile terminal camera, the sharing device of described mobile terminal camera comprises:

消息接收模块,用于接收第一移动终端发送的无线连接请求消息;A message receiving module, configured to receive a wireless connection request message sent by the first mobile terminal;

授权判断模块,用于判断是否授权所述第一移动终端共享第二移动终端的摄像头;An authorization judging module, configured to judge whether to authorize the first mobile terminal to share the camera of the second mobile terminal;

消息发送模块,用于如果判断出已授权,则向所述第一移动终端发送连接成功消息;A message sending module, configured to send a connection success message to the first mobile terminal if it is determined that it has been authorized;

传输模块,用于开启本端摄像头,并将所述摄像头拍摄的实时画面传输给所述第一移动终端。The transmission module is configured to turn on the camera at the local end, and transmit the real-time picture captured by the camera to the first mobile terminal.

相对于现有技术,本发明的移动终端摄像头的共享方法及装置,通过在第一移动终端上打开客户端,点击第二移动终端(即目标移动终端),目标移动终端自动接受请求,然后目标移动终端将摄像头捕获的实时画面传输到第一移动终端,然后用户便可以和操作第一移动终端摄像头一样,操作目标移动终端摄像头,达到远程监控,或用户使用目标移动终端摄像头拍照时使用第一移动终端预览画面,并通过第一移动终端来拍摄并保存目标移动终端当前的实时画面。本发明能够在多部移动终端之间共享摄像头,既可以将旧的不用的移动终端当作监控摄像头,既满足一定的要求又降低用户成本;同时也可以让用户在外出拍照时通过本方案更好的体验到拍照的乐趣。Compared with the prior art, the mobile terminal camera sharing method and device of the present invention, by opening the client on the first mobile terminal, clicking on the second mobile terminal (i.e. the target mobile terminal), the target mobile terminal automatically accepts the request, and then the target The mobile terminal transmits the real-time picture captured by the camera to the first mobile terminal, and then the user can operate the camera of the target mobile terminal in the same way as operating the camera of the first mobile terminal to achieve remote monitoring, or the user uses the first mobile terminal camera to take pictures. The mobile terminal previews the picture, and shoots and saves the current real-time picture of the target mobile terminal through the first mobile terminal. The present invention can share the camera among multiple mobile terminals, and can use old and unused mobile terminals as surveillance cameras, which not only meets certain requirements but also reduces user costs; at the same time, it can also allow users to use this solution to change the camera when they go out to take pictures. A good experience to take pictures.

附图说明Description of drawings

图1是本发明实施例一提供的移动终端摄像头的共享方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation flow of a method for sharing a camera of a mobile terminal provided by Embodiment 1 of the present invention;

图2是本发明实施例二提供的移动终端摄像头的共享方法的实现流程示意图;FIG. 2 is a schematic diagram of the implementation flow of the sharing method of the mobile terminal camera provided by Embodiment 2 of the present invention;

图3是本发明实施例提供的第一移动终端显示目标移动终端的界面示意图;FIG. 3 is a schematic diagram of an interface of a first mobile terminal displaying a target mobile terminal provided by an embodiment of the present invention;

图4是本发明实施例提供的第一移动终端显示目标移动终端实时画面的界面示意图;FIG. 4 is a schematic diagram of an interface of a first mobile terminal displaying a real-time screen of a target mobile terminal provided by an embodiment of the present invention;

图5是本发明实施例三提供的移动终端摄像头的共享装置的模块示意图;5 is a block diagram of a sharing device for a mobile terminal camera provided in Embodiment 3 of the present invention;

图6是本发明实施例四提供的移动终端摄像头的共享装置的模块示意图。FIG. 6 is a block diagram of a device for sharing a camera of a mobile terminal according to Embodiment 4 of the present invention.

具体实施方式detailed description

请参照附图中的图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所示例的本发明的具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings in the accompanying drawings, where like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention and should not be construed as limiting the invention to other specific embodiments not described in detail herein.

本发明原理以上述文字来说明,其并不代表为一种限制,本领域技术人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。本发明的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。The principles of the present invention are described in the above words, which are not meant to be a limitation. Those skilled in the art will understand that the various steps and operations described below can also be implemented in hardware. The principles of the invention operate with numerous other general purpose or special purpose computing, communication environments or configurations.

本发明提供的移动终端摄像头的共享方法及装置,主要应用于终端设备,如:手机、电脑、个人数字助理(PersonalDigitalAssistant,PDA)等。The method and device for sharing a camera of a mobile terminal provided by the present invention are mainly applied to terminal equipment, such as mobile phones, computers, personal digital assistants (Personal Digital Assistant, PDA), and the like.

以下将分别进行详细说明。The details will be described respectively below.

实施例一Embodiment one

请参阅图1,所示为本发明实施例提供的移动终端摄像头的共享方法。Please refer to FIG. 1 , which shows a method for sharing a camera of a mobile terminal provided by an embodiment of the present invention.

所述移动终端摄像头的共享方法,应用于终端设备中,具体包括如下步骤:The sharing method of described mobile terminal camera is applied in terminal equipment, specifically comprises the following steps:

在步骤S101中,第一移动终端向用户选择的第二移动终端发起无线连接请求消息;In step S101, the first mobile terminal initiates a wireless connection request message to a second mobile terminal selected by the user;

在本发明实施例中,第一移动终端和第二移动终端均需要安装本系统,如果需要远程使用,则需要在远程服务器上注册该第一移动终端和第二移动终端,如需使用远距离监控模式,需要第一移动终端和第二移动终端连接到互联网且使用相同账号在服务器上注册;如需近距离使用,则可以将第一移动终端和第二移动终端置于同一个Wi-Fi网络下即可。In the embodiment of the present invention, both the first mobile terminal and the second mobile terminal need to install the system. If remote use is required, the first mobile terminal and the second mobile terminal need to be registered on the remote server. In monitoring mode, the first mobile terminal and the second mobile terminal need to be connected to the Internet and register on the server with the same account; if short-distance use is required, the first mobile terminal and the second mobile terminal can be placed on the same Wi-Fi Just under the network.

在本发明实施例中,在第一移动终端和第二移动终端上开启服务;打开第一移动终端上的客户端,系统会自动将同一个Wi-Fi下的第二移动终端显示在第一移动终端上(如果是远程模式,系统会自动刷新网络服务器上的远程第二移动终端并显示),用户选择点击一个第二移动终端(即目标移动终端)连接,此时,第一移动终端向用户选择的第二移动终端发起无线连接请求消息。In the embodiment of the present invention, start the service on the first mobile terminal and the second mobile terminal; open the client on the first mobile terminal, the system will automatically display the second mobile terminal under the same Wi-Fi on the first On the mobile terminal (if it is a remote mode, the system will automatically refresh and display the remote second mobile terminal on the network server), the user chooses to click on a second mobile terminal (i.e. the target mobile terminal) to connect. The second mobile terminal selected by the user initiates a wireless connection request message.

在步骤S102中,第一移动终端接收所述第二移动终端返回的连接成功消息,其中,所述消息中携带有第二移动终端摄像头数量;In step S102, the first mobile terminal receives the connection success message returned by the second mobile terminal, wherein the message carries the number of cameras of the second mobile terminal;

在本发明实施例中,在所述第一移动终端接收所述第二移动终端返回的连接成功消息的步骤之后,还包括以下步骤:第一移动终端判断所述第二移动终端摄像头的数量;如果判断出摄像头的数量大于1,则第一移动终端向所述第二移动终端发送摄像头切换指令。In the embodiment of the present invention, after the first mobile terminal receives the connection success message returned by the second mobile terminal, the following steps are further included: the first mobile terminal judges the number of cameras of the second mobile terminal; If it is determined that the number of cameras is greater than 1, the first mobile terminal sends a camera switching instruction to the second mobile terminal.

具体的,如果第一移动终端判断出第二移动终端摄像头的数量大于1,则在客户端界面的指定位置(如右上角)显示摄像头切换按钮,用户点击该摄像头切换按钮,此时第一移动终端向所述第二移动终端发送摄像头切换指令。Specifically, if the first mobile terminal determines that the number of cameras of the second mobile terminal is greater than 1, a camera switching button is displayed at a designated position (such as the upper right corner) on the client interface, and the user clicks the camera switching button, and the first mobile terminal now The terminal sends a camera switching instruction to the second mobile terminal.

第二移动终端接收第一移动终端发送的摄像头切换指令;第二移动终端根据所述切换指令以及根据摄像头的顺序,关闭当前摄像头,开启并获取下一个摄像头的实时画面数据;第二移动终端将所述实时画面数据传输给所述第一移动终端。The second mobile terminal receives the camera switching instruction sent by the first mobile terminal; the second mobile terminal closes the current camera according to the switching instruction and according to the order of the cameras, opens and obtains the real-time picture data of the next camera; the second mobile terminal will The real-time picture data is transmitted to the first mobile terminal.

然而,可以理解的是,如果第一移动终端判断出第二移动终端摄像头的数量为1,则不做操作,直接开始接收并显示所述第二移动终端传输的摄像头拍摄的实时画面。However, it can be understood that if the first mobile terminal determines that the number of cameras of the second mobile terminal is 1, no operation is performed, and the real-time images captured by the cameras transmitted by the second mobile terminal are directly received and displayed.

在本发明实施例中,如果第二移动终端判断出没有授权所述第一移动终端共享第二移动终端的摄像头的话;那么,第二移动终端会向第一移动终端发送请求拒绝的指令,如果第一移动终端接收到请求拒绝的指令,则向用户显示该第一移动终端尚未授权的提示,并结束本次操作。In the embodiment of the present invention, if the second mobile terminal determines that the first mobile terminal is not authorized to share the camera of the second mobile terminal; then, the second mobile terminal will send a request rejection instruction to the first mobile terminal, if When the first mobile terminal receives the request rejection instruction, it will display to the user a prompt that the first mobile terminal has not been authorized, and end this operation.

在步骤S103中,第一移动终端接收并显示所述第二移动终端传输的摄像头拍摄的实时画面;In step S103, the first mobile terminal receives and displays the real-time picture taken by the camera transmitted by the second mobile terminal;

在步骤S104中,第一移动终端接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面。In step S104, the first mobile terminal receives a photographing instruction, and photographs and saves the currently displayed real-time picture according to the photographing instruction.

作为本发明一实施例,所述第一移动终端接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面的步骤,具体包括:As an embodiment of the present invention, the first mobile terminal receives a shooting instruction, and the step of shooting and saving the currently displayed real-time picture according to the shooting instruction specifically includes:

第一移动终端接收拍照指令,并根据所述拍照指令,截取当前显示的实时画面;The first mobile terminal receives the photographing instruction, and intercepts the currently displayed real-time picture according to the photographing instruction;

第一移动终端将截取的实时画面保存为图片。The first mobile terminal saves the intercepted real-time picture as a picture.

具体的,在第一移动终端显示第二移动终端传输的摄像头拍摄的实时画面的界面上,还显示有拍照按钮,当用户点击该拍照按钮时,第一移动终端截取当前显示的实时画面;第一移动终端将截取的实时画面保存为图片。Specifically, on the interface where the first mobile terminal displays the real-time picture captured by the camera transmitted by the second mobile terminal, a camera button is also displayed, and when the user clicks the camera button, the first mobile terminal intercepts the currently displayed real-time picture; A mobile terminal saves the intercepted real-time picture as a picture.

作为本发明另一实施例,所述第一移动终端接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面的步骤,具体包括:As another embodiment of the present invention, the first mobile terminal receives a shooting instruction, and the step of shooting and saving the currently displayed real-time picture according to the shooting instruction specifically includes:

第一移动终端接收录像指令,并根据所述录像指令,录像当前显示的实时画面;The first mobile terminal receives the recording instruction, and according to the recording instruction, records the currently displayed real-time picture;

第一移动终端将录像的实时画面数据流保存为视频。The first mobile terminal saves the recorded real-time picture data stream as a video.

具体的,在第一移动终端显示第二移动终端传输的摄像头拍摄的实时画面的界面上,还显示有录像按钮,当用户点击该录像按钮时,第一移动终端录像当前显示的实时画面;当再次点击该录像按钮时,则结合本次录像操作,此时,第一移动终端将录像的实时画面数据流保存为视频。Specifically, on the interface where the first mobile terminal displays the real-time picture captured by the camera transmitted by the second mobile terminal, a video recording button is also displayed, and when the user clicks the video recording button, the first mobile terminal records the currently displayed real-time picture; When the video recording button is clicked again, combined with this video recording operation, at this time, the first mobile terminal saves the recorded real-time picture data stream as a video.

由上可知,本实施例一提供的移动终端摄像头的共享方法,通过在第一移动终端上打开客户端,点击第二移动终端(即目标移动终端),目标移动终端自动接受请求,然后目标移动终端将摄像头捕获的实时画面传输到第一移动终端,然后用户便可以和操作第一移动终端摄像头一样,操作目标移动终端摄像头,达到远程监控,或用户使用目标移动终端摄像头拍照时使用第一移动终端预览画面,并通过第一移动终端来拍摄并保存目标移动终端当前的实时画面。本发明能够在多部移动终端之间共享摄像头,既可以将旧的不用的移动终端当作监控摄像头,既满足一定的要求又降低用户成本;同时也可以让用户在外出拍照时通过本方案更好的体验到拍照的乐趣。As can be seen from the above, the sharing method of the mobile terminal camera provided by the first embodiment, by opening the client on the first mobile terminal, clicking on the second mobile terminal (i.e. the target mobile terminal), the target mobile terminal automatically accepts the request, and then the target moves The terminal transmits the real-time picture captured by the camera to the first mobile terminal, and then the user can operate the camera of the target mobile terminal in the same way as operating the camera of the first mobile terminal to achieve remote monitoring, or use the first mobile terminal when the user takes pictures with the camera of the target mobile terminal The terminal previews the picture, and shoots and saves the current real-time picture of the target mobile terminal through the first mobile terminal. The present invention can share the camera among multiple mobile terminals, and can use old and unused mobile terminals as surveillance cameras, which not only meets certain requirements but also reduces user costs; at the same time, it can also allow users to use this solution to change the camera when they go out to take pictures. A good experience to take pictures.

实施例二Embodiment two

请参阅图2,所示为本发明实施例提供的移动终端摄像头的共享方法。Please refer to FIG. 2 , which shows a method for sharing a camera of a mobile terminal provided by an embodiment of the present invention.

所述移动终端摄像头的共享方法,应用于终端设备中,具体包括如下步骤:The sharing method of described mobile terminal camera is applied in terminal equipment, specifically comprises the following steps:

在步骤S201中,第二移动终端接收第一移动终端发送的无线连接请求消息;In step S201, the second mobile terminal receives a wireless connection request message sent by the first mobile terminal;

在本发明实施例中,第一移动终端和第二移动终端均需要安装本系统,如果需要远程使用,则需要在远程服务器上注册该第一移动终端和第二移动终端,如需使用远距离监控模式,需要第一移动终端和第二移动终端连接到互联网且使用相同账号在服务器上注册;如需近距离使用,则可以将第一移动终端和第二移动终端置于同一个Wi-Fi网络下即可。In the embodiment of the present invention, both the first mobile terminal and the second mobile terminal need to install the system. If remote use is required, the first mobile terminal and the second mobile terminal need to be registered on the remote server. In monitoring mode, the first mobile terminal and the second mobile terminal need to be connected to the Internet and register on the server with the same account; if short-distance use is required, the first mobile terminal and the second mobile terminal can be placed on the same Wi-Fi Just under the network.

在本发明实施例中,在第一移动终端和第二移动终端上开启服务;打开第一移动终端上的客户端,系统会自动将同一个Wi-Fi下的第二移动终端显示在第一移动终端上(如果是远程模式,系统会自动刷新网络服务器上的远程第二移动终端并显示),用户选择点击一个第二移动终端(即目标移动终端)连接,此时,第一移动终端向用户选择的第二移动终端发起无线连接请求消息。第二移动终端接收第一移动终端发送的无线连接请求消息。In the embodiment of the present invention, start the service on the first mobile terminal and the second mobile terminal; open the client on the first mobile terminal, the system will automatically display the second mobile terminal under the same Wi-Fi on the first On the mobile terminal (if it is a remote mode, the system will automatically refresh and display the remote second mobile terminal on the network server), the user chooses to click on a second mobile terminal (i.e. the target mobile terminal) to connect. The second mobile terminal selected by the user initiates a wireless connection request message. The second mobile terminal receives the wireless connection request message sent by the first mobile terminal.

在步骤S202中,第二移动终端判断是否授权所述第一移动终端共享第二移动终端的摄像头;In step S202, the second mobile terminal determines whether to authorize the first mobile terminal to share the camera of the second mobile terminal;

在步骤S203中,如果判断出已授权,则第二移动终端向所述第一移动终端发送连接成功消息;In step S203, if it is determined that it has been authorized, the second mobile terminal sends a connection success message to the first mobile terminal;

在本发明实施例中,如果判断出已授权,第二移动终端获取摄像头的数量;第二移动终端构建所述摄像头的顺序;第二移动终端将所述摄像头的数量以及摄像头的顺序,发送给第一移动终端。具体的,第二移动终端将所述摄像头的数量以及摄像头的顺序封装在连接成功消息中,并向所述第一移动终端发送连接成功消息。In the embodiment of the present invention, if it is determined that it has been authorized, the second mobile terminal obtains the number of cameras; the second mobile terminal constructs the order of the cameras; the second mobile terminal sends the number of cameras and the order of the cameras to A first mobile terminal. Specifically, the second mobile terminal encapsulates the number of cameras and the order of the cameras in a successful connection message, and sends the successful connection message to the first mobile terminal.

在本发明实施例中,如果第二移动终端判断出没有授权所述第一移动终端共享第二移动终端的摄像头的话;那么,第二移动终端会向第一移动终端发送请求拒绝的指令,如果第一移动终端接收到请求拒绝的指令,则向用户显示该第一移动终端尚未授权的提示,并结束本次操作。In the embodiment of the present invention, if the second mobile terminal determines that the first mobile terminal is not authorized to share the camera of the second mobile terminal; then, the second mobile terminal will send a request rejection instruction to the first mobile terminal, if When the first mobile terminal receives the request rejection instruction, it will display to the user a prompt that the first mobile terminal has not been authorized, and end this operation.

在步骤S204中,第二移动终端开启本端摄像头,并将所述摄像头拍摄的实时画面传输给所述第一移动终端。In step S204, the second mobile terminal turns on its own camera, and transmits the real-time images captured by the camera to the first mobile terminal.

作为本发明另一实施例,如果第一移动终端判断出第二移动终端摄像头的数量大于1,则在客户端界面的指定位置(如右上角)显示摄像头切换按钮,用户点击该摄像头切换按钮,此时第一移动终端向所述第二移动终端发送摄像头切换指令。As another embodiment of the present invention, if the first mobile terminal judges that the number of cameras of the second mobile terminal is greater than 1, a camera switch button is displayed at a designated position (such as the upper right corner) on the client interface, and the user clicks the camera switch button, At this time, the first mobile terminal sends a camera switching instruction to the second mobile terminal.

此时,第二移动终端接收第一移动终端发送的摄像头切换指令;第二移动终端根据所述切换指令以及根据摄像头的顺序,关闭当前摄像头,开启并获取下一个摄像头的实时画面数据;第二移动终端将所述实时画面数据传输给所述第一移动终端。Now, the second mobile terminal receives the camera switching instruction sent by the first mobile terminal; the second mobile terminal closes the current camera according to the switching instruction and according to the order of the cameras, opens and obtains the real-time picture data of the next camera; The mobile terminal transmits the real-time picture data to the first mobile terminal.

然而,可以理解的是,第二移动终端根据所述切换指令以及根据摄像头的顺序,关闭当前摄像头,如果是最后一个摄像头,则返回到第一个摄像头,开启并获取摄像头的实时画面数据;第二移动终端将所述实时画面数据传输给所述第一移动终端。However, it can be understood that the second mobile terminal closes the current camera according to the switching instruction and according to the order of the cameras, if it is the last camera, then returns to the first camera, opens and obtains the real-time picture data of the camera; The second mobile terminal transmits the real-time picture data to the first mobile terminal.

由上可知,本实施例二提供的移动终端摄像头的共享方法,通过在第一移动终端上打开客户端,点击第二移动终端(即目标移动终端),目标移动终端自动接受请求,然后目标移动终端将摄像头捕获的实时画面传输到第一移动终端,然后用户便可以和操作第一移动终端摄像头一样,操作目标移动终端摄像头,达到远程监控,或用户使用目标移动终端摄像头拍照时使用第一移动终端预览画面,并通过第一移动终端来拍摄并保存目标移动终端当前的实时画面。本发明能够在多部移动终端之间共享摄像头,既可以将旧的不用的移动终端当作监控摄像头,既满足一定的要求又降低用户成本;同时也可以让用户在外出拍照时通过本方案更好的体验到拍照的乐趣。As can be seen from the above, the sharing method of the mobile terminal camera provided by the second embodiment, by opening the client on the first mobile terminal, clicking on the second mobile terminal (i.e. the target mobile terminal), the target mobile terminal automatically accepts the request, and then the target moves The terminal transmits the real-time picture captured by the camera to the first mobile terminal, and then the user can operate the camera of the target mobile terminal in the same way as operating the camera of the first mobile terminal to achieve remote monitoring, or use the first mobile terminal when the user takes pictures with the camera of the target mobile terminal The terminal previews the picture, and shoots and saves the current real-time picture of the target mobile terminal through the first mobile terminal. The present invention can share the camera among multiple mobile terminals, and can use old and unused mobile terminals as surveillance cameras, which not only meets certain requirements but also reduces user costs; at the same time, it can also allow users to use this solution to change the camera when they go out to take pictures. A good experience to take pictures.

下面详细描述第一移动终端的操作过程。The operation process of the first mobile terminal is described in detail below.

1、开启第一移动终端和第二移动终端的服务;1. Start the services of the first mobile terminal and the second mobile terminal;

2、打开第一移动终端上的客户端;2. Open the client on the first mobile terminal;

3、第一移动终端判断是否有WI-FI;3. The first mobile terminal judges whether there is WI-FI;

4、当判断出有WI-FI,则第一移动终端扫描当前WI-FI里所有的第二移动终端(即目标移动终端),将扫描到的所有目标移动终端显示在第一移动终端的客户端上,如图3所示;当判断出没有WI-FI,进一步判断是否有网络,当判断出有网络,根据注册用户名从网络服务器中获取目标移动终端,并显示在第一移动终端的客户端上,4. When it is judged that there is WI-FI, the first mobile terminal scans all the second mobile terminals (i.e. target mobile terminals) in the current WI-FI, and displays all the scanned target mobile terminals on the client side of the first mobile terminal. terminal, as shown in Figure 3; when it is judged that there is no WI-FI, further judge whether there is a network, and when it is judged that there is a network, obtain the target mobile terminal from the network server according to the registered user name, and display it on the first mobile terminal on the client,

5、用户选择点击一个第二移动终端(即目标移动终端)连接,此时,第一移动终端向用户选择的第二移动终端发起无线连接请求消息。5. The user selects and clicks a second mobile terminal (ie, the target mobile terminal) to connect, and at this time, the first mobile terminal initiates a wireless connection request message to the second mobile terminal selected by the user.

6、如果第一移动终端接收到所述第二移动终端返回的连接成功消息,第一移动终端开始接收并显示所述第二移动终端传输的摄像头拍摄的实时画面;如果第一移动终端接收到请求拒绝的指令,则向用户显示该第一移动终端尚未授权的提示,并结束本次操作。6. If the first mobile terminal receives the connection success message returned by the second mobile terminal, the first mobile terminal starts to receive and display the real-time picture taken by the camera transmitted by the second mobile terminal; if the first mobile terminal receives If the instruction of requesting refusal is requested, a prompt indicating that the first mobile terminal has not been authorized is displayed to the user, and this operation ends.

7、如果第一移动终端判断出第二移动终端摄像头的数量大于1,则在客户端界面的指定位置(如右上角)显示摄像头切换按钮,如图4所示,用户点击该摄像头切换按钮,此时第一移动终端向所述第二移动终端发送摄像头切换指令。7. If the first mobile terminal determines that the number of cameras of the second mobile terminal is greater than 1, a camera switching button is displayed at a designated position (such as the upper right corner) on the client interface, as shown in Figure 4, and the user clicks the camera switching button, At this time, the first mobile terminal sends a camera switching instruction to the second mobile terminal.

8、在第一移动终端显示第二移动终端传输的摄像头拍摄的实时画面的界面上,还显示有拍照按钮,当用户点击该拍照按钮时,第一移动终端截取当前显示的实时画面;第一移动终端将截取的实时画面保存为图片。8. On the interface where the first mobile terminal displays the real-time picture captured by the camera transmitted by the second mobile terminal, a camera button is also displayed, and when the user clicks the camera button, the first mobile terminal intercepts the currently displayed real-time picture; the first The mobile terminal saves the captured real-time picture as a picture.

9、在第一移动终端显示第二移动终端传输的摄像头拍摄的实时画面的界面上,还显示有录像按钮,当用户点击该录像按钮时,第一移动终端录像当前显示的实时画面;当再次点击该录像按钮时,则结合本次录像操作,此时,第一移动终端将录像的实时画面数据流保存为视频。9. On the interface where the first mobile terminal displays the real-time picture captured by the camera transmitted by the second mobile terminal, a video recording button is also displayed. When the user clicks on the video recording button, the first mobile terminal records the currently displayed real-time picture; When the video recording button is clicked, in conjunction with this recording operation, the first mobile terminal saves the recorded real-time picture data stream as a video.

下面详细描述第二移动终端的操作过程。The operation process of the second mobile terminal is described in detail below.

10、第二移动终端打开后台服务;10. The second mobile terminal opens the background service;

11、第二移动终端接收第一移动终端发送的无线连接请求消息;11. The second mobile terminal receives the wireless connection request message sent by the first mobile terminal;

12、第二移动终端判断是否授权所述第一移动终端共享第二移动终端的摄像头;12. The second mobile terminal determines whether to authorize the first mobile terminal to share the camera of the second mobile terminal;

13、如果第二移动终端判断出没有授权所述第一移动终端共享第二移动终端的摄像头的话;那么,第二移动终端会向第一移动终端发送请求拒绝的指令,如果第一移动终端接收到请求拒绝的指令,则向用户显示该第一移动终端尚未授权的提示,并结束本次操作。13. If the second mobile terminal determines that the first mobile terminal is not authorized to share the camera of the second mobile terminal; then, the second mobile terminal will send a request rejection instruction to the first mobile terminal, if the first mobile terminal receives When an instruction to request rejection is received, a prompt that the first mobile terminal has not been authorized is displayed to the user, and the operation ends.

14、如果判断出已授权,第二移动终端获取摄像头的数量;第二移动终端构建所述摄像头的顺序;第二移动终端将所述摄像头的数量以及摄像头的顺序封装在连接成功消息中,并向所述第一移动终端发送连接成功消息。14. If it is determined that it has been authorized, the second mobile terminal obtains the number of cameras; the second mobile terminal builds the order of the cameras; the second mobile terminal encapsulates the number of cameras and the order of the cameras in a connection success message, and Sending a connection success message to the first mobile terminal.

15、第二移动终端开启本端第一顺序摄像头,并将所述摄像头拍摄的实时画面传输给所述第一移动终端。15. The second mobile terminal turns on the first sequential camera of the terminal, and transmits the real-time images captured by the camera to the first mobile terminal.

16、当第二移动终端接收到第一移动终端发送的摄像头切换指令;第二移动终端根据所述切换指令以及根据摄像头的顺序,关闭当前摄像头,开启并获取下一个摄像头的实时画面数据;第二移动终端将所述实时画面数据传输给所述第一移动终端。16. When the second mobile terminal receives the camera switching instruction sent by the first mobile terminal; the second mobile terminal closes the current camera according to the switching instruction and according to the order of the cameras, and turns on and obtains the real-time picture data of the next camera; the second mobile terminal The second mobile terminal transmits the real-time picture data to the first mobile terminal.

17、当接收到第一移动终端发送的摄像头断开指令,则关闭摄像头。17. When receiving the camera disconnection instruction sent by the first mobile terminal, turn off the camera.

实施例三Embodiment Three

请参阅图5,为本发明实施例三提供的移动终端摄像头的共享装置的模块示意图;为了便于说明,仅示出了与本发明实施例相关的部分。所述移动终端摄像头的共享装置包括:消息发起模块101、消息接收模块102、显示模块103、以及拍摄保存模块104。所述移动终端摄像头的共享装置可以是内置于移动终端中的软件单元、硬件单元或者是软硬件结合的单元。Please refer to FIG. 5 , which is a schematic module diagram of a device for sharing a camera of a mobile terminal provided by Embodiment 3 of the present invention; for ease of description, only parts related to the embodiment of the present invention are shown. The device for sharing the mobile terminal camera includes: a message initiating module 101 , a message receiving module 102 , a display module 103 , and a shooting and saving module 104 . The device for sharing the camera of the mobile terminal may be a software unit, a hardware unit or a combination of software and hardware built in the mobile terminal.

消息发起模块101,用于向用户选择的第二移动终端发起无线连接请求消息;A message initiating module 101, configured to initiate a wireless connection request message to a second mobile terminal selected by the user;

消息接收模块102,用于接收所述第二移动终端返回的连接成功消息,其中,所述消息中携带有第二移动终端摄像头数量;A message receiving module 102, configured to receive a connection success message returned by the second mobile terminal, wherein the message carries the number of cameras of the second mobile terminal;

显示模块103,用于接收并显示所述第二移动终端传输的摄像头拍摄的实时画面;The display module 103 is configured to receive and display the real-time picture taken by the camera transmitted by the second mobile terminal;

拍摄保存模块104,用于接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面。The shooting and saving module 104 is configured to receive a shooting instruction, and shoot and save the currently displayed real-time picture according to the shooting instruction.

作为本发明一实施例,所述移动终端摄像头的共享装置,还包括:数量判断模块和切换指令发送模块。As an embodiment of the present invention, the device for sharing cameras of mobile terminals further includes: a quantity judgment module and a switching instruction sending module.

数量判断模块,用于判断所述第二移动终端摄像头的数量;Quantity judging module, for judging the quantity of the camera of the second mobile terminal;

切换指令发送模块,用于如果判断出摄像头的数量大于1,则向所述第二移动终端发送摄像头切换指令。A switching instruction sending module, configured to send a camera switching instruction to the second mobile terminal if it is determined that the number of cameras is greater than one.

在本发明实施例中,所述拍摄保存模块104包括:拍照模块、以及图片保存模块;In the embodiment of the present invention, the photographing and saving module 104 includes: a photographing module and a picture saving module;

所述拍照模块,用于接收拍照指令,并根据所述拍照指令,截取当前显示的实时画面;The photographing module is configured to receive a photographing instruction, and intercept the currently displayed real-time picture according to the photographing instruction;

所述图片保存模块,用于将截取的实时画面保存为图片。The picture saving module is used to save the intercepted real-time picture as a picture.

在本发明另一实施例中,所述拍摄保存模块包括:录像模块、以及视频保存模块;In another embodiment of the present invention, the shooting and saving module includes: a video recording module and a video saving module;

所述录像模块,用于接收录像指令,并根据所述录像指令,录像当前显示的实时画面;The video recording module is configured to receive a video recording instruction, and record the currently displayed real-time picture according to the video recording instruction;

所述视频保存模块,用于将录像的实时画面数据流保存为视频。The video saving module is used to save the recorded real-time picture data stream as a video.

实施例四Embodiment four

请参阅图6,为本发明实施例四提供的移动终端摄像头的共享装置的模块示意图;为了便于说明,仅示出了与本发明实施例相关的部分。所述移动终端摄像头的共享装置包括:消息接收模块201、授权判断模块202、消息发送模块203、以及传输模块204。所述移动终端摄像头的共享装置可以是内置于移动终端中的软件单元、硬件单元或者是软硬件结合的单元。Please refer to FIG. 6 , which is a block diagram of a device for sharing a camera of a mobile terminal according to Embodiment 4 of the present invention; for convenience of description, only parts related to the embodiment of the present invention are shown. The device for sharing the camera of the mobile terminal includes: a message receiving module 201 , an authorization judgment module 202 , a message sending module 203 , and a transmission module 204 . The device for sharing the camera of the mobile terminal may be a software unit, a hardware unit or a combination of software and hardware built in the mobile terminal.

消息接收模块201,用于接收第一移动终端发送的无线连接请求消息;A message receiving module 201, configured to receive a wireless connection request message sent by the first mobile terminal;

授权判断模块202,用于判断是否授权所述第一移动终端共享第二移动终端的摄像头;An authorization judging module 202, configured to judge whether to authorize the first mobile terminal to share the camera of the second mobile terminal;

消息发送模块203,用于如果判断出已授权,则向所述第一移动终端发送连接成功消息;A message sending module 203, configured to send a connection success message to the first mobile terminal if it is determined that it has been authorized;

传输模块204,用于开启本端摄像头,并将所述摄像头拍摄的实时画面传输给所述第一移动终端。The transmission module 204 is configured to turn on the local camera, and transmit the real-time picture captured by the camera to the first mobile terminal.

在本发明实施例中,所述移动终端摄像头的共享装置,还包括:In an embodiment of the present invention, the device for sharing the camera of the mobile terminal further includes:

数量获取模块,用于如果判断出已授权,获取摄像头的数量;The quantity acquisition module is used to obtain the quantity of the camera if it is determined that it has been authorized;

顺序构建模块,用于构建所述摄像头的顺序;A sequential building block for building the sequence of the cameras;

发送模块,用于将所述摄像头的数量以及摄像头的顺序,发送给第一移动终端。A sending module, configured to send the number of cameras and the order of the cameras to the first mobile terminal.

在本发明另一实施例中,所述移动终端摄像头的共享装置,还包括:指令接收模块和摄像头控制模块;In another embodiment of the present invention, the device for sharing the camera of the mobile terminal further includes: an instruction receiving module and a camera control module;

指令接收模块,用于接收第一移动终端发送的摄像头切换指令;An instruction receiving module, configured to receive a camera switching instruction sent by the first mobile terminal;

摄像头控制模块,用于根据所述切换指令以及根据摄像头的顺序,关闭当前摄像头,开启并获取下一个摄像头的实时画面数据;The camera control module is used to close the current camera according to the switching instruction and according to the order of the cameras, open and obtain the real-time picture data of the next camera;

所述传输模块,还用于将所述实时画面数据传输给所述第一移动终端。The transmission module is further configured to transmit the real-time picture data to the first mobile terminal.

本发明的移动终端摄像头的共享方法及装置,通过在第一移动终端上打开客户端,点击第二移动终端(即目标移动终端),目标移动终端自动接受请求,然后目标移动终端将摄像头捕获的实时画面传输到第一移动终端,然后用户便可以和操作第一移动终端摄像头一样,操作目标移动终端摄像头,达到远程监控,或用户使用目标移动终端摄像头拍照时使用第一移动终端预览画面,并通过第一移动终端来拍摄并保存目标移动终端当前的实时画面。本发明能够在多部移动终端之间共享摄像头,既可以将旧的不用的移动终端当作监控摄像头,既满足一定的要求又降低用户成本;同时也可以让用户在外出拍照时通过本方案更好的体验到拍照的乐趣,极大的提高用户的使用体验。The mobile terminal camera sharing method and device of the present invention, by opening the client on the first mobile terminal, clicking on the second mobile terminal (i.e. the target mobile terminal), the target mobile terminal automatically accepts the request, and then the target mobile terminal captures the camera The real-time picture is transmitted to the first mobile terminal, and then the user can operate the target mobile terminal camera in the same way as operating the first mobile terminal camera to achieve remote monitoring, or use the first mobile terminal to preview the picture when the user uses the target mobile terminal camera to take pictures, and The current real-time picture of the target mobile terminal is captured and saved by the first mobile terminal. The present invention can share the camera among multiple mobile terminals, and can use the old unused mobile terminal as a monitoring camera, which not only meets certain requirements but also reduces user costs; at the same time, it can also allow users to use this solution to change the camera when they go out to take pictures. A good experience to the fun of taking pictures, greatly improving the user experience.

本发明实施例提供的移动终端摄像头的共享方法及装置属于同一构思,其具体实现过程详见说明书全文,此处不再赘述。The method and device for sharing the mobile terminal camera provided by the embodiments of the present invention belong to the same idea, and its specific implementation process can be found in the full text of the specification, and will not be repeated here.

综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。In summary, although the present invention has been disclosed above with preferred embodiments, the above preferred embodiments are not intended to limit the present invention, and those of ordinary skill in the art can make various modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the scope defined in the claims.

Claims (14)

1.一种移动终端摄像头的共享方法,其特征在于,所述移动终端摄像头的共享方法包括以下步骤:1. a sharing method of mobile terminal camera, it is characterized in that, the sharing method of described mobile terminal camera comprises the following steps: 第一移动终端向用户选择的第二移动终端发起无线连接请求消息;The first mobile terminal initiates a wireless connection request message to the second mobile terminal selected by the user; 第一移动终端接收所述第二移动终端返回的连接成功消息,其中,所述消息中携带有第二移动终端摄像头数量;The first mobile terminal receives the connection success message returned by the second mobile terminal, wherein the message carries the number of cameras of the second mobile terminal; 第一移动终端接收并显示所述第二移动终端传输的摄像头拍摄的实时画面;The first mobile terminal receives and displays the real-time picture taken by the camera transmitted by the second mobile terminal; 第一移动终端接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面。The first mobile terminal receives the photographing instruction, and photographs and saves the currently displayed real-time picture according to the photographing instruction. 2.如权利要求1所述的移动终端摄像头的共享方法,其特征在于,在所述第一移动终端接收所述第二移动终端返回的连接成功消息的步骤之后,还包括以下步骤:2. The sharing method of mobile terminal camera as claimed in claim 1, is characterized in that, after the step that described first mobile terminal receives the connection success message that described second mobile terminal returns, also comprises the following steps: 第一移动终端判断所述第二移动终端摄像头的数量;The first mobile terminal judges the number of cameras of the second mobile terminal; 如果判断出摄像头的数量大于1,则第一移动终端向所述第二移动终端发送摄像头切换指令。If it is determined that the number of cameras is greater than 1, the first mobile terminal sends a camera switching instruction to the second mobile terminal. 3.如权利要求1所述的移动终端摄像头的共享方法,其特征在于,所述第一移动终端接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面的步骤,具体包括:3. The method for sharing a mobile terminal camera as claimed in claim 1, wherein the first mobile terminal receives a shooting instruction, and the step of shooting and saving the currently displayed real-time picture according to the shooting instruction includes: 第一移动终端接收拍照指令,并根据所述拍照指令,截取当前显示的实时画面;The first mobile terminal receives the photographing instruction, and intercepts the currently displayed real-time picture according to the photographing instruction; 第一移动终端将截取的实时画面保存为图片。The first mobile terminal saves the intercepted real-time picture as a picture. 4.如权利要求1所述的移动终端摄像头的共享方法,其特征在于,所述第一移动终端接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面的步骤,具体包括:4. The method for sharing a camera of a mobile terminal according to claim 1, wherein the first mobile terminal receives a shooting instruction, and the step of shooting and saving the currently displayed real-time picture according to the shooting instruction includes: 第一移动终端接收录像指令,并根据所述录像指令,录像当前显示的实时画面;The first mobile terminal receives the recording instruction, and according to the recording instruction, records the currently displayed real-time picture; 第一移动终端将录像的实时画面数据流保存为视频。The first mobile terminal saves the recorded real-time picture data stream as a video. 5.一种移动终端摄像头的共享方法,其特征在于,所述移动终端摄像头的共享方法包括以下步骤:5. a kind of sharing method of mobile terminal camera, it is characterized in that, the sharing method of described mobile terminal camera comprises the following steps: 第二移动终端接收第一移动终端发送的无线连接请求消息;The second mobile terminal receives the wireless connection request message sent by the first mobile terminal; 第二移动终端判断是否授权所述第一移动终端共享第二移动终端的摄像头;The second mobile terminal determines whether to authorize the first mobile terminal to share the camera of the second mobile terminal; 如果判断出已授权,则第二移动终端向所述第一移动终端发送连接成功消息;If it is determined that it has been authorized, the second mobile terminal sends a connection success message to the first mobile terminal; 第二移动终端开启本端摄像头,并将所述摄像头拍摄的实时画面传输给所述第一移动终端。The second mobile terminal turns on its own camera, and transmits the real-time picture captured by the camera to the first mobile terminal. 6.如权利要求5所述的移动终端摄像头的共享方法,其特征在于,所述移动终端摄像头的共享方法还包括:6. the sharing method of mobile terminal camera as claimed in claim 5 is characterized in that, the sharing method of described mobile terminal camera also comprises: 如果判断出已授权,第二移动终端获取摄像头的数量;If it is determined that it has been authorized, the second mobile terminal acquires the number of cameras; 第二移动终端构建所述摄像头的顺序;The order in which the second mobile terminal constructs the camera; 第二移动终端将所述摄像头的数量以及摄像头的顺序,发送给第一移动终端。The second mobile terminal sends the number of cameras and the order of the cameras to the first mobile terminal. 7.如权利要求6所述的移动终端摄像头的共享方法,其特征在于,所述第二移动终端开启本端摄像头,并将所述摄像头拍摄的实时画面传输给所述第一移动终端的步骤,具体包括:7. The sharing method of mobile terminal camera as claimed in claim 6, is characterized in that, described second mobile terminal turns on local camera, and the step of transmitting the real-time picture that described camera shoots to described first mobile terminal , including: 第二移动终端接收第一移动终端发送的摄像头切换指令;The second mobile terminal receives the camera switching instruction sent by the first mobile terminal; 第二移动终端根据所述切换指令以及根据摄像头的顺序,关闭当前摄像头,开启并获取下一个摄像头的实时画面数据;The second mobile terminal closes the current camera according to the switching instruction and according to the order of the cameras, opens and obtains the real-time picture data of the next camera; 第二移动终端将所述实时画面数据传输给所述第一移动终端。The second mobile terminal transmits the real-time picture data to the first mobile terminal. 8.一种移动终端摄像头的共享装置,其特征在于,所述移动终端摄像头的共享装置包括:8. A sharing device of a mobile terminal camera, characterized in that, the sharing device of the mobile terminal camera comprises: 消息发起模块,用于向用户选择的第二移动终端发起无线连接请求消息;A message initiating module, configured to initiate a wireless connection request message to a second mobile terminal selected by the user; 消息接收模块,用于接收所述第二移动终端返回的连接成功消息,其中,所述消息中携带有第二移动终端摄像头数量;A message receiving module, configured to receive a connection success message returned by the second mobile terminal, wherein the message carries the number of cameras of the second mobile terminal; 显示模块,用于接收并显示所述第二移动终端传输的摄像头拍摄的实时画面;A display module, configured to receive and display the real-time images captured by the camera transmitted by the second mobile terminal; 拍摄保存模块,用于接收拍摄指令,并根据所述拍摄指令拍摄并保存当前显示的实时画面。The shooting and saving module is configured to receive a shooting instruction, and shoot and save the currently displayed real-time picture according to the shooting instruction. 9.如权利要求8所述的移动终端摄像头的共享装置,其特征在于,所述移动终端摄像头的共享装置,还包括:9. The sharing device of mobile terminal camera as claimed in claim 8, is characterized in that, the sharing device of described mobile terminal camera also comprises: 数量判断模块,用于判断所述第二移动终端摄像头的数量;Quantity judging module, for judging the quantity of the camera of the second mobile terminal; 切换指令发送模块,用于如果判断出摄像头的数量大于1,则向所述第二移动终端发送摄像头切换指令。A switching instruction sending module, configured to send a camera switching instruction to the second mobile terminal if it is determined that the number of cameras is greater than one. 10.如权利要求8所述的移动终端摄像头的共享装置,其特征在于,所述拍摄保存模块包括:拍照模块、以及图片保存模块;10. The sharing device of the mobile terminal camera as claimed in claim 8, wherein the shooting and saving module comprises: a camera module and a picture saving module; 所述拍照模块,用于接收拍照指令,并根据所述拍照指令,截取当前显示的实时画面;The photographing module is configured to receive a photographing instruction, and intercept the currently displayed real-time picture according to the photographing instruction; 所述图片保存模块,用于将截取的实时画面保存为图片。The picture saving module is used to save the intercepted real-time picture as a picture. 11.如权利要求8所述的移动终端摄像头的共享装置,其特征在于,所述拍摄保存模块包括:录像模块、以及视频保存模块;11. The sharing device of the mobile terminal camera as claimed in claim 8, wherein the shooting and saving module comprises: a video recording module and a video saving module; 所述录像模块,用于接收录像指令,并根据所述录像指令,录像当前显示的实时画面;The video recording module is configured to receive a video recording instruction, and record the currently displayed real-time picture according to the video recording instruction; 所述视频保存模块,用于将录像的实时画面数据流保存为视频。The video saving module is used to save the recorded real-time picture data stream as a video. 12.一种移动终端摄像头的共享装置,其特征在于,所述移动终端摄像头的共享装置包括:12. A sharing device of a mobile terminal camera, characterized in that, the sharing device of the mobile terminal camera comprises: 消息接收模块,用于接收第一移动终端发送的无线连接请求消息;A message receiving module, configured to receive a wireless connection request message sent by the first mobile terminal; 授权判断模块,用于判断是否授权所述第一移动终端共享第二移动终端的摄像头;An authorization judging module, configured to judge whether to authorize the first mobile terminal to share the camera of the second mobile terminal; 消息发送模块,用于如果判断出已授权,则向所述第一移动终端发送连接成功消息;A message sending module, configured to send a connection success message to the first mobile terminal if it is determined that it has been authorized; 传输模块,用于开启本端摄像头,并将所述摄像头拍摄的实时画面传输给所述第一移动终端。The transmission module is configured to turn on the camera at the local end, and transmit the real-time picture captured by the camera to the first mobile terminal. 13.如权利要求12所述的移动终端摄像头的共享装置,其特征在于,所述移动终端摄像头的共享装置,还包括:13. The sharing device of mobile terminal camera as claimed in claim 12, is characterized in that, the sharing device of described mobile terminal camera also comprises: 数量获取模块,用于如果判断出已授权,获取摄像头的数量;The quantity acquisition module is used to obtain the quantity of the camera if it is determined that it has been authorized; 顺序构建模块,用于构建所述摄像头的顺序;A sequential building block for building the sequence of the cameras; 发送模块,用于将所述摄像头的数量以及摄像头的顺序,发送给第一移动终端。A sending module, configured to send the number of cameras and the order of the cameras to the first mobile terminal. 14.如权利要求13所述的移动终端摄像头的共享装置,其特征在于,所述移动终端摄像头的共享装置,还包括:指令接收模块和摄像头控制模块;14. The sharing device of mobile terminal camera as claimed in claim 13, is characterized in that, the sharing device of described mobile terminal camera also comprises: instruction receiving module and camera control module; 指令接收模块,用于接收第一移动终端发送的摄像头切换指令;An instruction receiving module, configured to receive a camera switching instruction sent by the first mobile terminal; 摄像头控制模块,用于根据所述切换指令以及根据摄像头的顺序,关闭当前摄像头,开启并获取下一个摄像头的实时画面数据;The camera control module is used to close the current camera according to the switching instruction and according to the order of the cameras, open and obtain the real-time picture data of the next camera; 所述传输模块,还用于将所述实时画面数据传输给所述第一移动终端。The transmission module is further configured to transmit the real-time picture data to the first mobile terminal.
CN201510909529.XA 2015-12-10 2015-12-10 Mobile terminal camera sharing method and device Pending CN105357498A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510909529.XA CN105357498A (en) 2015-12-10 2015-12-10 Mobile terminal camera sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510909529.XA CN105357498A (en) 2015-12-10 2015-12-10 Mobile terminal camera sharing method and device

Publications (1)

Publication Number Publication Date
CN105357498A true CN105357498A (en) 2016-02-24

Family

ID=55333348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510909529.XA Pending CN105357498A (en) 2015-12-10 2015-12-10 Mobile terminal camera sharing method and device

Country Status (1)

Country Link
CN (1) CN105357498A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019033662A1 (en) * 2017-08-18 2019-02-21 广州视源电子科技股份有限公司 Teaching information feedback method and corresponding apparatus therefor, intelligent teaching device and mobile terminal
CN111107221A (en) * 2019-12-18 2020-05-05 联想(北京)有限公司 Processing method and device and electronic equipment
CN111327758A (en) * 2018-12-17 2020-06-23 中兴通讯股份有限公司 Camera sharing method and device
CN111970468A (en) * 2019-05-20 2020-11-20 北京小米移动软件有限公司 Camera sharing method and device and computer readable storage medium
CN114245012A (en) * 2021-12-14 2022-03-25 深圳唐恩科技有限公司 Multi-machine live broadcast switching method, system and equipment
WO2023093438A1 (en) * 2021-11-25 2023-06-01 Oppo广东移动通信有限公司 Image display method and apparatus, and electronic device and computer-readable storage medium
CN117714585A (en) * 2023-07-31 2024-03-15 荣耀终端有限公司 Cross-equipment collaborative shooting method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938636A (en) * 2010-08-18 2011-01-05 深圳益华鑫能科技开发有限公司 Method for monitoring picture continuous switching by multi-camera
CN103248685A (en) * 2013-04-28 2013-08-14 福建星网锐捷通讯股份有限公司 Smart phone-based P2P monitoring method and system
CN103927095A (en) * 2014-04-16 2014-07-16 广东欧珀移动通信有限公司 Method and device for realizing screen recording
WO2014161298A1 (en) * 2013-07-23 2014-10-09 中兴通讯股份有限公司 Photographing method and mobile terminal
CN104113640A (en) * 2014-07-30 2014-10-22 厦门美图移动科技有限公司 Method for controlling photographing in real time between mobile phones
CN104915107A (en) * 2013-11-27 2015-09-16 深圳市金立通信设备有限公司 Media shooting method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938636A (en) * 2010-08-18 2011-01-05 深圳益华鑫能科技开发有限公司 Method for monitoring picture continuous switching by multi-camera
CN103248685A (en) * 2013-04-28 2013-08-14 福建星网锐捷通讯股份有限公司 Smart phone-based P2P monitoring method and system
WO2014161298A1 (en) * 2013-07-23 2014-10-09 中兴通讯股份有限公司 Photographing method and mobile terminal
CN104915107A (en) * 2013-11-27 2015-09-16 深圳市金立通信设备有限公司 Media shooting method and terminal
CN103927095A (en) * 2014-04-16 2014-07-16 广东欧珀移动通信有限公司 Method and device for realizing screen recording
CN104113640A (en) * 2014-07-30 2014-10-22 厦门美图移动科技有限公司 Method for controlling photographing in real time between mobile phones

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019033662A1 (en) * 2017-08-18 2019-02-21 广州视源电子科技股份有限公司 Teaching information feedback method and corresponding apparatus therefor, intelligent teaching device and mobile terminal
CN111327758A (en) * 2018-12-17 2020-06-23 中兴通讯股份有限公司 Camera sharing method and device
CN111327758B (en) * 2018-12-17 2022-08-02 中兴通讯股份有限公司 Camera sharing method and device
CN111970468A (en) * 2019-05-20 2020-11-20 北京小米移动软件有限公司 Camera sharing method and device and computer readable storage medium
CN111970468B (en) * 2019-05-20 2022-04-08 北京小米移动软件有限公司 Camera sharing method, device and computer-readable storage medium
CN111107221A (en) * 2019-12-18 2020-05-05 联想(北京)有限公司 Processing method and device and electronic equipment
WO2023093438A1 (en) * 2021-11-25 2023-06-01 Oppo广东移动通信有限公司 Image display method and apparatus, and electronic device and computer-readable storage medium
CN114245012A (en) * 2021-12-14 2022-03-25 深圳唐恩科技有限公司 Multi-machine live broadcast switching method, system and equipment
CN114245012B (en) * 2021-12-14 2024-03-22 深圳唐恩科技有限公司 Multi-machine live broadcast switching method, system and equipment
CN117714585A (en) * 2023-07-31 2024-03-15 荣耀终端有限公司 Cross-equipment collaborative shooting method and device
CN117714585B (en) * 2023-07-31 2024-09-27 荣耀终端有限公司 Cross-device collaborative shooting method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN105357498A (en) Mobile terminal camera sharing method and device
CN105100829B (en) Video content interception method and device
CN103716709A (en) Method and device for same screen interaction
US20110088068A1 (en) Live media stream selection on a mobile device
TWI443641B (en) Transmitting device, receiving device, screen frame transmission system and method
CN104320586A (en) Photographing method, system and terminal
JP2006254411A5 (en)
JP2014175956A (en) Transmission terminal, transmission system, and program
US10164784B2 (en) Communication terminal, communication system, and data transmission method
CN102308558B (en) Method, apparatus and system for image display
CN106713127A (en) Instant chatting record acquisition and processing methods and devices
CN113179208B (en) Interaction method, interaction device and storage medium
CN108965634B (en) Offline cross-device image printing method and system and shooting device
CN103581607B (en) The method that video flowing is transmitted to local endpoint host using remote shooting machine equipment
CN106101600A (en) The method of attachment of video calling and device
US10298878B2 (en) Terminal, communication method, and recording medium storing program
US9602768B2 (en) Apparatus, system, and method of managing terminals, and recording medium
CN115297356B (en) Equipment interaction method, system and device
JP2010124425A (en) Information processor, method of data transfer, and communication system
JP6441481B2 (en) Information inquiry method, apparatus, program, and recording medium
US10326843B2 (en) System, apparatus, and method of managing communication, and recording medium
CN116347132A (en) Screen projection processing method, device, and electronic equipment
TWI521969B (en) Matching method and data sharing method for network access apparatus
JP2013145955A (en) Content sharing method, content sharing device and program
CN113282429A (en) Cloud space configuration method, information transceiving method and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160224