WO2021023055A1 - Video call method - Google Patents

Video call method Download PDF

Info

Publication number
WO2021023055A1
WO2021023055A1 PCT/CN2020/105097 CN2020105097W WO2021023055A1 WO 2021023055 A1 WO2021023055 A1 WO 2021023055A1 CN 2020105097 W CN2020105097 W CN 2020105097W WO 2021023055 A1 WO2021023055 A1 WO 2021023055A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
identification information
video data
data collected
video
Prior art date
Application number
PCT/CN2020/105097
Other languages
French (fr)
Chinese (zh)
Inventor
陈勇
张创
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021023055A1 publication Critical patent/WO2021023055A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/142Constructional details of the terminal equipment, e.g. arrangements of the camera and the display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of wireless communication, and in particular to a method of video call.
  • the mobile device can only Use the image data or video data acquired by the camera of the mobile device. If the camera performance parameters of the mobile device are poor or the viewing angle is blocked due to obstructions, the mobile device can distinguish the video images during the video call. The rate is low and the visual range is small.
  • This application provides a video call method, which uses other mobile devices that maintain a communication connection with the mobile device to make a video call, which can greatly improve user experience.
  • This application provides a video call method.
  • the application program can obtain images acquired by the cameras of other devices, but the application program thinks that at least one camera of the first device is still being used, and the cameras of other devices are equivalent to the local With the virtual camera, the data can be switched from one camera to the camera of another device, and the application has no perception. A better viewing angle can be obtained through the camera of other devices, which improves the user experience.
  • the first aspect provides a video call method, which is applied to a first device with at least one camera.
  • the first device uses at least one camera and an application to establish a video call with a second device.
  • the first device and the The second device is installed with the application, the application has a video call function, and the method includes: after the first device establishes a video call with the second device using the at least one camera and the application, connecting The identification information of at least one third device that maintains a wireless connection with the first device and has a camera is displayed on the interactive interface for making a video call; the first device detects that the user acts on the interactive interface.
  • the first identification information is one of the identification information of the at least one third device with the camera;
  • the first device obtains the video data collected by the at least one camera of the device corresponding to the first identification information, and uses the video data collected by the at least one camera of the device corresponding to the first identification information for a video call.
  • at least one third device refers to one or more devices, and the one or more devices do not include the first device and the second device.
  • the identification information may include an icon, icon and text, control, control or text, and this application does not limit its specific form.
  • the user can select any one of the multiple devices to obtain video data through the camera of the selected device.
  • the application can obtain the video data obtained by the camera of the device, but
  • the application program considers that at least one camera of the first device is still being used, and the device’s camera is equivalent to the local virtual camera of the first device.
  • Data is switched from the at least one camera of the first device to the device’s camera, but the application does not Perception, a better viewing angle can be obtained through the camera of an external device, which improves the user experience.
  • the method further includes: when the first device detects that a user has acted on a preset operation of the second identification information on the interactive interface, triggering the At least one camera of the device corresponding to the second identification information collects video data, where the second identification information is one of the identification information of the at least one third device with the camera; the first device acquires the second identification The video data collected by at least one camera of the device corresponding to the information is used, and the video data collected by the at least one camera of the device corresponding to the second identification information is used for a video call.
  • the user can select the device corresponding to the first identification information among the multiple devices as the device for acquiring video data
  • the user can also select the device corresponding to the second identification information as the device for acquiring video data, so as to pass the status of the device corresponding to the second identification information.
  • the camera obtains the video data.
  • the camera of the device is equivalent to the local virtual camera of the first device, so that the data is switched from at least one camera of the first device to the camera of the device, and the application has no perception, and the camera of the external device can obtain more information. A good perspective improves the user experience.
  • the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and corresponds to the first identification information
  • the video data collected by at least one camera of the device is used for the video call, including: the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and no longer obtains the video data of the first device.
  • Video data collected by at least one camera, and the video data collected by at least one camera of the device corresponding to the first identification information is used for a video call; or, the first device obtains the information of the device corresponding to the first identification information Video data collected by at least one camera, and the video data collected by the at least one camera of the first device is acquired, and the video data collected by the at least one camera of the device corresponding to the first identification information is used for a video call; or, The first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and obtains the video data collected by the at least one camera of the first device, and assigns the first identification information to the The video data collected by the at least one camera of the device and the video data collected by the at least one camera of the first device are used for a video call.
  • At least one camera of the first device can be reconfigured according to actual needs.
  • the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and corresponds to the second identification information
  • the video data collected by at least one camera of the device is used for the video call, including: the first device obtains the video data collected by the at least one camera of the device corresponding to the second identification information, and no longer obtains the video data of the first device At least one camera and the video data collected by at least one camera of the device corresponding to the first identification information, and use the video data collected by the at least one camera of the device corresponding to the second identification information for a video call; or The first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and obtains the at least one camera of the first device and the video data collected by the first identification information, and combines the first 2.
  • the video data collected by at least one camera of the device corresponding to the identification information is used for video calls; or, the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and obtains the first
  • the video data collected by at least one camera of a device is not obtained by the video data collected by at least one camera of the device corresponding to the first identification information, and the at least one camera of the device corresponding to the second identification information and the first Video data collected by at least one camera of a device is used for video calls; or, the first device obtains video data collected by at least one camera of the device corresponding to the second identification information, and obtains the first identification information corresponding to the video data
  • the video data collected by at least one camera of the device of the first device is not acquired, and the video data collected by the at least one camera of the first device is not obtained, and at least one camera of the device corresponding to the second identification information corresponds to the first identification information
  • the video data collected by at least one camera of the device of the device is used for
  • the remaining cameras and devices can be configured according to actual needs.
  • the first device before using the at least one camera of the device corresponding to the first identification information, the first device is configured according to the configuration parameter of the at least one camera of the first device. Configure at least one camera of the device corresponding to the identification information; and/or, before using the at least one camera of the device corresponding to the second identification information, perform configuration parameters on the at least one camera of the first device At least one camera of the device corresponding to the second identification information is configured.
  • the first device can configure the camera of the device according to at least one camera of the first device, so that the image obtained by the camera of the device can meet the requirements.
  • the interactive interface for performing a video call further includes third identification information of a fourth device that maintains a wireless connection with the first device and has at least one microphone;
  • the first device detects that the user acts on the preset operation of the third identification information on the interactive interface, it triggers the device corresponding to the third identification information to use at least one microphone to collect audio data; the first device acquires all The audio data collected by the at least one microphone of the device corresponding to the third identification information is used, and the audio data collected by the at least one microphone of the device corresponding to the third identification information is used for a video call.
  • the interactive interface for conducting a video call further includes a fourth identifier of a fifth device that maintains a wireless connection with the first device and has at least one speaker;
  • the first device detects that the user acts on the preset operation of the fourth identifier on the interactive interface, it sends the audio data received in the video call to the device corresponding to the fourth identifier, and triggers the fourth identifier The corresponding device plays the received audio data.
  • the interactive interface for conducting a video call further includes a sixth device that maintains a wireless connection with the first device and has at least one microphone and at least one speaker.
  • Five identification when the first device detects that the user acts on the preset operation of the fifth identification on the interactive interface, it triggers the device corresponding to the fifth identification to use at least one microphone to collect audio data and receive the video call
  • the audio data is sent to the device corresponding to the fifth identifier, and the device corresponding to the fifth identifier is triggered to play the received audio data; the first device acquires at least one microphone of the device corresponding to the fifth identifier. And use the audio data collected by the at least one microphone for the video call.
  • the device maintaining the wireless connection with the first device is implemented through any one of the Bluetooth protocol, the Wi-Fi protocol, the NFC protocol, or the mobile communication protocol.
  • the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol, 5G standard protocol, 6G standard protocol or, 6G follow-up standard protocol, etc.
  • the first device obtains video data collected by at least one camera of the target device corresponding to the first identification information, and corresponds to the first identification information
  • the video data collected by at least one camera of the target device is used for video calls, including: after the data transmission channel module of the first device receives the video data, it determines the resolution and resolution of the received video data according to the requirements of the application.
  • the color space performs format conversion; the data switching module receives an acquisition request from at least one camera of the first device, and forwards the acquisition request to the data transmission channel module; the data transmission channel module will receive the first identification information from the The corresponding device receives video data and transmits it to the data switching module; the data switching module transmits the received video data collected by at least one camera of the device corresponding to the first identification information to the data return of the camera device session management module In the interface, the acquired video data collected by at least one camera of the device corresponding to the first identification information is returned to the application according to the original data return procedure.
  • a second aspect provides a method of shooting, which is applied to a first device, the first device having at least one camera, and the method includes: presenting identification information of each of a plurality of devices, and the plurality of devices
  • the device includes a first device and at least one third device, the at least one third device is in communication connection with the first device, and each of the at least one third device has a camera; Identify the device; acquire and present the image taken by the device.
  • “at least one third device” refers to one or more devices, and the one or more devices do not include the first device.
  • the user can select the camera of any one of the multiple devices (for example, the third device) to obtain images.
  • the third device is one of at least one third device, and the application inside the first device can obtain the image.
  • the acquiring and presenting the image captured by the device includes: sending a shooting instruction to the device; and receiving the image captured by the device according to the shooting instruction.
  • the first device may send a shooting instruction to the device according to the shooting demand of the application program being used, so that the device can shoot according to the demand.
  • the at least one third device is installed with a corresponding application, and the first device and the at least one third device respectively perform signaling interaction through the application And data transmission.
  • At least one third device is installed with the application, so that the first device and the at least one third device respectively use the application for signaling interaction and data transmission, and the transmission efficiency of the application is higher.
  • the presenting the identification information of each of the multiple devices includes: presenting the multiple devices on an interactive interface corresponding to the at least one camera The identification information of each device in.
  • the identification information of each of the multiple devices can be displayed in the interactive interface for the user to select, and the camera can be switched to improve user experience.
  • the method when the device is a third device among the at least one third device, the method further includes: according to the configuration of the at least one camera , Generate first configuration information; send the first configuration information to the device.
  • the first device can configure the camera of the device according to the at least one camera, so that the image obtained by the camera of the device can meet the requirements.
  • the method further includes: acquiring second configuration information, where the second configuration information is used to indicate the configuration of the camera of the device;
  • the configuration of the at least one camera to generate the first configuration information includes: generating the first configuration information according to the configuration of the at least one camera and the second configuration information.
  • the second configuration information can be sent to the first device according to the capabilities of the device's camera, which can be used to indicate the configuration of the device's camera, and the first device can determine the device according to the second configuration information Therefore, the first device can generate the first configuration information for configuring the camera of the device according to the configuration of at least one camera and the second configuration information.
  • the method further includes: presenting the image taken by the device When, turn off the at least one camera.
  • the device is a third device among the at least one third device, when the image taken by the device is presented, at least one camera of the first device is turned off, which can reduce the power consumption of the first device.
  • the wireless connection is implemented through any one of a Bluetooth protocol, a wireless local area network Wi-Fi protocol, an NFC protocol, or a mobile communication protocol.
  • the present application provides a mobile device, including: a touch screen, wherein the touch screen includes a touch-sensitive surface and a display; at least one camera; at least one processor; a memory; multiple application programs; and at least one program,
  • the at least one program is stored in the memory, and the at least one program includes instructions, and when the instructions run on the first device, the first device executes the first aspect or the first aspect.
  • a computer storage medium stores computer-executable instructions. When called by the computer, the computer-executable instructions are used to make the computer execute the first aspect or The method of any one of the above second aspects.
  • a graphical user interface system on an electronic device has a display screen, a camera, a memory, and one or more processors, and the one or more processors are configured to execute The one or more computer programs in the memory, wherein the graphical user interface includes a graphical user interface displayed when the electronic device executes the method according to any one of the foregoing first aspect or the foregoing second aspect .
  • FIG. 1 is a schematic diagram of the architecture of a communication system applicable to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a shooting method provided by an embodiment of the present application.
  • Fig. 3 is an interactive interface of a mobile device provided by an embodiment of the present application.
  • Fig. 4 is an interactive interface of a mobile device provided by an embodiment of the present application.
  • Fig. 5 is an interactive interface of a mobile device provided by an embodiment of the present application.
  • Fig. 6 is a schematic diagram of a software architecture of a first device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of interaction between modules of a first device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a switching principle provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of the software architecture of another first device provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the interaction of various modules of another first device according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another switching principle provided by an embodiment of the present application.
  • the mobile device in the embodiment of the present application may be a mobile device with a camera such as a mobile phone, a tablet computer, a notebook computer, a smart bracelet, a smart watch, a smart helmet, a smart glasses, and a drone.
  • Mobile devices can also be cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), and wireless communications Functional handheld devices, computing devices, or other processing devices connected to wireless modems, in-vehicle devices, mobile devices in 5G networks, or mobile devices in the public land mobile network (PLMN) that will evolve in the future.
  • SIP session initiation protocol
  • WLL wireless local loop
  • PDAs personal digital assistants
  • PLMN public land mobile network
  • Figure 1 is a schematic diagram of the architecture of a system suitable for an embodiment of the present application.
  • the system 100 can include at least one mobile device 101, which can be wirelessly connected to other mobile devices, and the other mobile devices can be mobile phones, drones, external cameras, computers, and wireless smart devices. Speakers, wireless players, wireless TVs, wireless large-screen devices or smart wearable devices, etc., among which wireless connection technologies include but are not limited to: including global system for mobile communications (GSM), general packet wireless services ( general packet radio service, GPRS, code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (time-division code division multiple access) access, TD-SCDMA), long term evolution (LTE), the fifth generation of mobile communication technology (English: 5th generation mobile networks or 5th generation wireless systems, referred to as 5G) global navigation satellite system (global navigation satellite system, GNSS) ), wireless local area networks (wireless local area networks, WLAN), wireless fidelity (Wi-Fi) networks, Bluetooth (Bluetooth, BT), frequency modulation (FM), near field communication technology
  • GSM
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • mobile devices may also communicate with each other in a wired manner.
  • the mobile device 101 may include a housing and a display screen, and the display screen is installed on the housing.
  • the mobile device 101 also includes electronic components (not shown in the figure) arranged inside the casing.
  • the electronic components include a processor, a camera, a flash, a microphone, a battery, etc., but are not limited thereto.
  • the communication connection between the mobile device 101 and other mobile devices in a wireless communication mode may be achieved through any one of a Bluetooth protocol, a wireless local area network (Wireless Fidelity, Wi-Fi) protocol, and a mobile communication protocol.
  • a Bluetooth protocol a wireless local area network (Wireless Fidelity, Wi-Fi) protocol
  • Wi-Fi wireless local area network
  • the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol or 5G standard protocol, 6G standard protocol or 6G follow-up standard protocol, etc.
  • the mobile device can only use the image data or video data acquired by the camera of the mobile device. If the camera performance parameters of the mobile device are poor or the viewing angle is blocked due to obstacles, the mobile device will cause The lower resolution of the acquired image or the lower resolution of the video image during the video call and the smaller visual range will reduce the user experience.
  • This application provides a video call method, which uses video data obtained by cameras of other mobile devices that maintain a wireless connection with the mobile device to conduct a video call, which can greatly improve user experience.
  • This application provides a video call method.
  • a mobile device obtains image data through a camera
  • the mobile device uses other mobile devices with cameras that are wirelessly connected to the mobile device to obtain image data, and obtain The data is applied to the application on the phone.
  • a video is a continuous image sequence, which is a multi-frame interconnected image, and is dynamic, also called a video stream.
  • the video data described in the embodiments of this application may be pictures or videos taken in a mobile device. This application is not restricted.
  • the user is using the mobile phone to make a video call before getting into the car, enters the car cockpit, and starts driving, the user can place the mobile phone in the central control, the mobile phone camera cannot capture the face image, only voice calls, the user You can also fix the mobile phone near the steering wheel of the car, facing the front of the human face, but this may cause driving risks, and these operating experiences are not good enough.
  • some smart car driving dashboards have their own cameras. If the user’s mobile phone can be connected to the camera on the dashboard of the car wirelessly after entering the car, the mobile phone can directly use the camera on the dashboard of the car to obtain video data. While driving the car, there is no need to place or pick up the phone.
  • the mobile phone uses the camera on the dashboard of the car for video calls. You can use the following methods. For example, when the mobile phone is in a video call, after the mobile phone establishes a connection with a camera in the car, the mobile phone automatically switches the front camera to the camera in the car.
  • the camera that is, the mobile phone uses the data collected by the camera in the car to make a video call; the mobile phone can also switch the camera after receiving the user's voice command, or after the mobile phone is connected with a camera in the car, the mobile phone displays on the video call interface The logo of the camera in the car. After the mobile phone detects that the user clicks on the logo of the camera in the car, the mobile phone will switch the front camera to the camera in the car, that is, the mobile phone uses the data collected by the camera in the car to make a video call. It should be understood that when the mobile phone and multiple cameras in the car (for example, the dashboard camera, and the camera of the driving recorder, etc.), the aforementioned three methods can also be used to select the camera for the video call.
  • the mobile phone can determine which camera in the car to automatically switch according to the default setting, or the commonly used selection, or the last selection.
  • the mobile phone can automatically switch the camera, or switch the camera through the user's voice command, or manually switch on the interactive interface of the video call.
  • the mobile phone application directly uses the camera of the dashboard to obtain images, so that the opposite end of the video call can also see the front view of the driver, which can provide users with a more friendly experience.
  • the mobile phone can use the screen of the driving recorder when making a video call, and share the journey scenery for the peer user of the video call.
  • the viewing angle of the TV camera is relatively wide, the TV screen is large, the display is clear, and the sound playback and pickup effects of smart speakers are good.
  • the viewing angle of the mobile phone camera is narrow, and multiple people may not be able to access the mobile phone video screen at the same time. If the mobile phone is placed far away, the mobile phone screen is smaller.
  • the popularity of drones is becoming more and more common, but the videos taken by general drones can only cooperate with the applications of drone manufacturers.
  • the user watches through the corresponding application on the mobile phone.
  • the camera of the drone can be used when the application on the mobile phone is used for shooting, for example, the camera of the drone can be used to take a picture, it can provide a brand-new shooting embodiment, or when the application on the mobile phone makes a video call ,
  • the video screen shot by the drone camera is used instead of the video screen shot by the front camera of the mobile phone, so that the opposite end of the video call can see the video screen shot by the drone camera, which provides a brand new
  • the flight video viewing experience provides a more real-time drone perspective.
  • the mobile phone side is required to provide a universal external camera video stream acquisition solution, and at the same time, it is necessary to ensure that the video streams of other devices can be used without adapting and modifying the existing applications of the mobile phone, so as to facilitate the
  • the use and promotion of the method requires that the application used for video calls does not need to be adapted when using external camera data.
  • Fig. 2 is a schematic flowchart of a video call method provided by an embodiment of the present application.
  • S101 The first device establishes a video call with the second device.
  • the technical solution of this application can be applied to a first device having at least one camera.
  • the first device uses at least one camera and an application to establish a video call with a second device.
  • the first device and the second device are both installed with the same application. With video call function.
  • the application is a video call application, or the application is an application with a video call function, such as WeChat.
  • S102 The first device displays identification information.
  • the identification information may include an icon, icon and text, control, control or text, and this application does not limit its specific form.
  • the identification information of the at least one third device that maintains a wireless connection with the first device and has a camera is displayed on the interactive interface for the video call.
  • the first identification information can correspond to an external camera
  • the second identification information can correspond to a drone
  • the third identification information can correspond to a wireless TV.
  • Figure 3 is provided by an embodiment of the application.
  • the external camera is used to obtain the image displayed on the interactive interface of the video call established by the first device and the second device.
  • the drone is used to obtain the image displayed on the interactive interface of the video call established by the first device and the second device.
  • Figure 5 shows the user's choice of mobile device interaction provided by this embodiment of the application.
  • the wireless TV image is displayed on the interactive interface of the video call established by the first device and the second device.
  • the third identification information can be hidden in the total identification information. Specific identification information is displayed after the information.
  • first identification information, the second identification information, and the third identification information can be specific texts or special marks or menu buttons.
  • the menu buttons require the user to click to display detailed options or display on other interactive interfaces, such as Shown in Figure 3 to Figure 5.
  • the selected identification information is highlighted relative to other identification information to remind the user of the device currently acquiring video data.
  • the multiple identification information displayed on the video call interface of the first device in addition to the identification information of at least one third device that maintains a wireless connection with the first device, it also includes at least one camera of the first device (for example, displaying all front and back The identification information of the camera, or the identification information of some cameras).
  • the way for the user to select the first identification information can be to click on the first identification information, or to select through a voice command, or it is detected that a device wirelessly connected to the first device has selected the identification information in the history, and it is automatically selected
  • this application does not limit the way for the user to select the first identification information.
  • S103 The first device determines first identification information.
  • the first device When the first device detects that the user acts on the preset operation of the first identification information on the interactive interface, it triggers at least one camera of the device corresponding to the first identification information to collect video data, and the first identification information is at least one third device with a camera One of the identification information.
  • the preset operation may be that the user clicks on the identification information, or the user voice instruction selects the identification information, or automatically selects the identification information according to the user's history.
  • S104 The first device obtains video data.
  • the first device obtains the video data collected by the at least one camera of the device corresponding to the first identification information, and uses the video data collected by the at least one camera of the device corresponding to the first identification information for a video call.
  • the user can select the camera of any one of the multiple devices (for example, a third device) to obtain video data.
  • the third device is one of at least one third device, and the application program inside the first device
  • the video data obtained by the camera of the third device can be obtained, but the application program thinks that at least one camera of the first device is still being used.
  • the camera of the third device is equivalent to the local virtual camera of the first device. Switching from the video data obtained by using the at least one camera of the first device to the video data obtained by using the camera of the third device device, and the application is unaware, a better viewing angle can be obtained through the camera of the external device, which improves the user experience.
  • the first device obtains the video data collected by the at least one camera of the device corresponding to the first identification information, it will no longer obtain the video data collected by the at least one camera of the first device, and the device corresponding to the first identification information
  • the video data collected by at least one camera is used for the video call, that is, the video data collected by the first device directly through the external device, and the video data collected by the external camera is used for the video call.
  • the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and obtains the video data collected by at least one camera of the first device, and compares at least one of the devices corresponding to the first identification information
  • the video data collected by the camera is used for the video call, that is, the first device simultaneously obtains the video data collected by the local camera and the external device head, and uses the video data collected by the external camera for the video call.
  • the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and obtains the video data collected by at least one camera of the first device, and compares at least one of the devices corresponding to the first identification information
  • the video data collected by the camera and the video data collected by at least one camera of the first device are used for the video call, that is, the first device simultaneously obtains the video data collected by the local camera and the external device head, and combines the video data collected by the local camera and the external camera Used for video calls.
  • the video call method may further include: when the first device detects that the user performs a preset operation on the second identification information on the interactive interface, triggering at least one camera of the device corresponding to the second identification information to collect video data, and
  • the second identification information is one of the identification information of at least one third device with a camera.
  • the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and compares the Video data collected by a camera is used for video calls.
  • the user can select at least one camera of the device corresponding to other identification information to obtain the video data required for the video call, and can switch freely.
  • the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and no longer obtains the video data collected by the at least one camera of the first device and the first identification information, and sets the second identification
  • the video data collected by at least one camera of the device corresponding to the information is used for the video call. After the user switches the external camera, the video data of the previously applied camera can no longer be obtained.
  • the first device obtains video data collected by at least one camera of the device corresponding to the second identification information, and obtains the video data collected by at least one camera of the first device and the first identification information, and corresponds to the second identification information
  • the video data collected by at least one camera of the device is used for video calls.
  • the user can also obtain the video data of the previously applied camera, which can be stored in the memory or the cloud for later viewing.
  • the first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and acquires video data collected by at least one camera of the first device, but does not acquire at least one of the devices corresponding to the first identification information
  • the video data collected by the camera, and the video data collected by the at least one camera of the device corresponding to the second identification information and the at least one camera of the first device are used for the video call.
  • the user may not obtain the video data of the previously applied external camera, but only obtain the video data of the local camera, which can be stored in the memory or the cloud for later viewing.
  • the first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and acquires video data collected by at least one camera of the device corresponding to the first identification information, without acquiring at least one of the first device
  • the video data collected by the camera, and the video data collected by at least one camera of the device corresponding to the second identification information and at least one camera of the device corresponding to the first identification information are used for the video call.
  • After the user switches the external camera it is not necessary to obtain the video data of the local camera, but only obtain the video data of the previously applied external camera, which can be stored in the memory or the cloud for later viewing.
  • the first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and acquires video data collected by at least one camera of the first device and at least one camera of the device corresponding to the first identification information,
  • the video data collected by the at least one camera of the device corresponding to the first identification information and the at least one camera of the device corresponding to the second identification information and the video data collected by the at least one camera of the first device are used for the video call.
  • the first device may configure the at least one camera of the device corresponding to the first identification information according to the configuration parameters of the at least one camera of the first device .
  • the first device may configure the at least one camera of the device corresponding to the second identification information according to the configuration parameters of the at least one camera of the first device .
  • configuration parameters of the at least one camera of the first device to configure the at least one external camera can make the video data obtained by the external camera and the video data obtained by the local camera have the same format, for example, to facilitate related processing.
  • the first device may further include third identification information of a fourth device that maintains a wireless connection with the first device and has at least one microphone on the interactive interface for the video call; the first device detects that the user acts on the interactive interface During the preset operation of the third identification information, the device corresponding to the third identification information is triggered to use at least one microphone to collect audio data; the first device acquires the audio data collected by the at least one microphone of the device corresponding to the third identification information, and then The audio data collected by at least one microphone of the device corresponding to the three identification information is used for the video call.
  • third identification information of a fourth device that maintains a wireless connection with the first device and has at least one microphone on the interactive interface for the video call
  • the first device detects that the user acts on the interactive interface
  • the device corresponding to the third identification information is triggered to use at least one microphone to collect audio data
  • the first device acquires the audio data collected by the at least one microphone of the device corresponding to the third identification information, and then The audio data collected by at least one
  • the first device may further include a fourth identifier of the fifth device that maintains a wireless connection with the first device and has at least one speaker on the interactive interface for the video call; the first device detects that the user acts on the interactive interface During the preset operation of the fourth identifier, the audio data received in the video call is sent to the device corresponding to the fourth identifier, and the device corresponding to the fourth identifier is triggered to play the received audio data.
  • a fourth identifier of the fifth device that maintains a wireless connection with the first device and has at least one speaker on the interactive interface for the video call; the first device detects that the user acts on the interactive interface During the preset operation of the fourth identifier, the audio data received in the video call is sent to the device corresponding to the fourth identifier, and the device corresponding to the fourth identifier is triggered to play the received audio data.
  • Users can also use an external microphone to collect audio data, or use an external speaker to play audio data in a video call.
  • the first device may further include a fifth identifier of a sixth device that maintains a wireless connection with the first device and has at least one microphone and at least one speaker on the interactive interface for making a video call; the first device detects the user action During the preset operation of the fifth identifier on the interactive interface, the device corresponding to the fifth identifier is triggered to collect audio data using at least one microphone, and the audio data received in the video call is sent to the device corresponding to the fifth identifier, and the fifth identifier is triggered.
  • the device corresponding to the identifier plays the received audio data; the first device acquires audio data collected by at least one microphone of the device corresponding to the fifth identifier, and uses the audio data collected by the at least one microphone for a video call.
  • the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and uses the video data collected by the at least one camera of the device corresponding to the first identification information for the video call, including: The device acquires video data collected by at least one camera of the device corresponding to the first identification information, acquires video data collected by at least one camera of the first device, and stores the video data collected by at least one camera of the first device in the first device And use the video data collected by at least one camera of the device corresponding to the first identification information in the video call.
  • the video data collected by the at least one camera of the first device can also be uploaded to the cloud server for storage for the user to query.
  • this application also provides a method for taking pictures.
  • S201 The first device presents identification information of each of the multiple devices.
  • the first device has at least one camera
  • the multiple devices include the first device and at least one third device
  • at least one third device is wirelessly connected to the first device
  • at least one third device has a camera
  • multiple pieces of identification information may be displayed on the interactive interface of the first device to indicate selectable devices.
  • At least one third device is installed with a corresponding application.
  • the application can be used for data transmission between the first device and the at least one third device.
  • the first device can send a shooting instruction or configuration to the third device.
  • Information, etc., the third device may send the captured image or camera capability information to the first device.
  • the first device may present the identification information of each of the multiple devices on the interactive interface corresponding to the at least one camera, that is, when the application of the first device calls at least one camera to obtain image data, The identification information is displayed on the interactive interface of the application program.
  • the wireless connection is realized through any one of Bluetooth protocol, Wi-Fi protocol, NFC protocol or mobile communication protocol.
  • the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol or 5G standard protocol, 6G standard protocol or 6G follow-up standard protocol, etc.
  • the first device responds to a user operation to determine a target device from multiple devices.
  • the user when the user performs an operation on the identification information displayed on the interactive interface of the first device, the user may perform a preset operation.
  • the preset operation may be that the user clicks on the identification information displayed on the interactive interface of the first device, or The user slides the identification information displayed on the interactive interface of the first device from left to right.
  • the first device may store preset operations in advance, and when the user completes the preset operations, the target device is determined according to the user operations.
  • the preset operation may be that the user clicks on the identification information, or the user voice instruction selects the identification information, or automatically selects the identification information according to the user's history.
  • the first device may send a shooting instruction to the target device, and the first device may receive an image captured by the target device according to the shooting instruction, and the shooting instruction may instruct the target device to shoot time and other information.
  • the first device may generate first configuration information according to the configuration of the at least one camera, and send the first configuration information to the target device information.
  • the first device may obtain second configuration information, the second configuration information is used to indicate the configuration of at least one camera of the target device, and the first device is generated according to the configuration of the at least one camera of the first device and the second configuration information. Configuration information.
  • S203 The first device acquires and presents an image taken by the target device.
  • the first device turns off at least one camera of the first device when presenting an image taken by the target device.
  • the multiple devices may further include at least one fourth device, at least one fourth device is wirelessly connected to the first device, and at least one fourth device has a microphone.
  • the microphone of the corresponding fourth device can be triggered to acquire audio data, and the acquired audio data can be transmitted to the first device.
  • the multiple devices may further include at least one fifth device, the at least one fifth device is wirelessly connected to the first device, and each of the at least one fifth device has a speaker.
  • the audio data for the currently running application is sent to the corresponding fifth device, and the speaker of the corresponding fifth device is triggered to play Audio data.
  • the multiple devices may also include at least one sixth device, at least one sixth device is wirelessly connected to the first device, and has at least one microphone and at least one speaker, and the first device detects that the user acts on the interactive interface.
  • the sixth device is triggered to collect audio data by using at least one microphone, send the received audio data to the speaker, and play the received audio data.
  • the data information obtained by the fourth device, the fifth device, and the sixth device can all be applied to the video call of the first device, and the fourth device, the fifth device, and the sixth device can respectively correspond to the third identification information,
  • the fourth identification information and fifth identification information are not limited in this application.
  • Fig. 6 is a schematic diagram of a software architecture of a first device provided by an embodiment of the present application.
  • an Android system is taken as an example.
  • the layered architecture divides the software into several layers, and the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer (FWK), the hardware abstraction layer (HAL), and the kernel layer (kernel).
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications at the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, resource managers, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the content controller can acquire the image acquired in the preview interface in real time, and display the processed image in the corresponding interactive interface of the application program.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of at least one view.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • content such as "first identification information" displayed on the interactive interface may be displayed by the view system receiving an instruction from the processor, and used for reminding information such as available external cameras.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the hardware abstraction layer is the interface layer between the kernel layer and the hardware circuit, and its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform, provides a virtual hardware platform for the operating system, makes it hardware-independent, and can be transplanted on multiple platforms.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the camera system is located at the application framework layer, hardware abstraction layer, and kernel layer.
  • Mobile device applications such as shooting, video, etc., use the standard camera API of the application framework layer to operate the local camera to obtain images.
  • a standard interface is defined for business communication between the application framework layer and the hardware abstraction layer.
  • the kernel layer is the driver layer of the camera of the mobile device, which is called by the hardware abstraction layer camera module to operate the hardware device of the camera.
  • a data switching module is added to the hardware abstraction layer. After one of the at least one third device corresponding to the identification information selected by the user is the target device, the first device adopts the camera of the third device After acquiring the image, the first device can complete the data switching according to the following process, so as to display the image taken by the target device.
  • the first device and at least one third device maintain a wireless connection as an example for description, and it does not limit other devices of different types to implement the technical solutions of the present application.
  • the left side of Figure 6 is the internal software framework of the first device. It should be noted that: the application scenario of the first device includes the first device and the second device respectively using the second application and their respective cameras to make video calls, and the first device Maintain a wireless connection with the third device.
  • the data switching module of the first device obtains image format information of at least one camera of the first device, and sends the image format information to the data transmission channel module.
  • the image format information may include information such as the number of data streams that provide the format information data for the first device to provide the image, the resolution, frame rate, and color space of each data stream.
  • the data transmission channel module of the first device receives the image format information sent by the data switching module, determines the first configuration information of at least one camera of the target device according to the image format information, and sends the first configuration information to the target device.
  • the target device is installed with a corresponding application, where the application can be used for signaling interaction and data transmission between the first device and the target device, and the application includes a communication protocol adapted to the first device. Parameters etc.
  • the application can be installed in an adaptation module of the target device.
  • the adaptation module may be an adaptation software development kit (SDK) module, and the application may communicate through the SDK module.
  • SDK adaptation software development kit
  • the first device may send the first configuration information to the target device through the data transmission channel module, and the target device-side adaptation module may perform related configuration on at least one camera of the target device according to the first configuration information, for example, the first configuration
  • the information can instruct the camera to obtain the resolution, frame rate, color space, etc. of the image format.
  • the adaptation module of the target device can configure the camera according to the first configuration information.
  • the target device obtains video data through the camera and sends the acquired video data to the data transmission channel module of the first device through the adaptation module.
  • the data transmission channel module when the data transmission channel module determines the first configuration information for the target device according to the image format information sent by the data switching module, it may obtain the second configuration information of at least one camera of the target device in advance, and according to the at least The configuration of a camera and the second configuration information generate the first configuration information.
  • the first device may shield capabilities that are not supported by at least one camera of the target device according to the second configuration information.
  • the resolution information of at least one camera of the target device can be obtained in advance. If the image format information requires that the video resolution is 1080p, and at least one camera of the target device can only obtain data with a resolution of 480p, then the data transmission channel The module shields the resolution in the image format information, and does not send the configuration along with the first configuration information to the target device.
  • the application at the application layer has multiple data acquisition requests, there can be only one data stream between the data transmission channel module and the adaptation module of the target device.
  • the data transmission channel module receives the data transmitted by the adaptation module. After the data stream, the data stream can be transmitted to multiple demand ends. For example, if the application of the first device needs to store the video shot by the target device in the local and the cloud at the same time, the data transmission module can transmit the data transmitted by the adaptation module. Stream to local and cloud servers. Since this will not occupy too much wireless resources, bandwidth requirements and delays can be reduced.
  • the first device may send a shooting instruction to the target device, and the shooting instruction may instruct the target device to perform shooting time and other information.
  • the shooting instruction may be included in the first configuration information.
  • the data transmission channel module After the data transmission channel module receives the video data, it may need to convert the resolution and color space and other related formats of the video data according to the business requirements of the application to meet the format requirements of each data stream of the application, and the data transmission channel After the module obtains the valid video data, it considers that the data source of the target device is ready, and at this time the data transmission channel module sends a switching preparation completion instruction to the data switching module.
  • the data switch module After the data switch module receives the instruction to complete the switch preparation, it notifies the camera device session management module, which can suspend the image acquisition process of the local camera hardware, take over the camera acquisition request, forward the camera acquisition request to the data transmission channel module, and the data transmission channel module will The data received from the target device is transmitted to the data switching module, and the data switching module fills the video data into the data return interface of the camera device session management module.
  • the application program can obtain the image acquired by at least one camera of the target device, but the application program thinks that at least one camera of the first device is still being used, and the at least one camera of the target device is equivalent to the local virtual camera of the first device ,
  • the data is switched from at least one camera to at least one camera of the target device, and the application is unaware, and a better viewing angle can be obtained through the camera of the external device, which improves the user experience.
  • FIG. 7 is a schematic diagram of interaction between modules of a first device according to an embodiment of the present application.
  • the first device detects a user's preset operation on the identification information on the interactive interface, triggers at least one camera switching operation of the device corresponding to the identification, and collects video data.
  • the preset operation may be that the user clicks on the identification information, or the user voice instruction selects the identification information, or automatically selects the identification information according to the user's history.
  • the first device presents identification information of each of the multiple devices.
  • the first device has at least one camera
  • the multiple devices include the first device and at least one third device
  • at least one third device is wirelessly connected to the first device
  • at least one third device has a camera.
  • the user when the user performs an operation on the identification information displayed on the interactive interface, the user may perform a preset operation.
  • the preset operation may be that the user clicks on the identification information displayed on the interactive interface of the first device, or the user moves from the left to the left Swipe right to the identification information displayed on the interactive interface of the first device.
  • the first device may store preset operations in advance, and when the user completes the preset operations, the target device is determined according to the user operations.
  • the interactive interface may be an interactive interface of an application program
  • the application program may be an application that requires a camera, such as a camera application, a camera application, or a video call application.
  • the identification information of each of the multiple devices is presented on the interactive interface corresponding to the at least one camera, that is, when the application of the first device calls the at least one camera to obtain video data, the The identification information is displayed on the interactive interface of the program.
  • the data switching module judges whether the camera switching parameter is legal, and records whether there is at least one camera of the first device being used.
  • the camera switching parameter may be the operating state of at least one camera of the first device, the camera information of the first device of the target device, or whether other switching tasks currently conflict with this task.
  • the switching can only be performed when at least one camera of the first device is running.
  • the data switching module records the configuration of at least one camera of the first device currently running.
  • the data switching module instructs the data transmission channel module to interact with the adaptation module of the target device, and initiates a connection to at least one camera of the target device.
  • the data transmission module is connected to the adaptation module of the target device.
  • the adaptation module may send second configuration information to the data transmission module, where the second configuration information is used to indicate the configuration of at least one camera of the target device.
  • the data switching module obtains second configuration information.
  • the data switching module may determine the configuration of at least one camera of the target device according to the second configuration information, and configure the at least one camera interface of the first device, and the data switching module may determine the configuration of at least one camera of the first device and the second configuration Information to generate the first configuration information.
  • the data switching module may shield capabilities that are not supported by at least one camera of the target device according to the second configuration information.
  • the data transmission channel module sends the first configuration information to the adaptation module of the target device, and the target device can configure the camera according to the first configuration information.
  • the data transmission channel module may send a shooting instruction to the adaptation module of the target device, and the shooting instruction may instruct the target device to perform shooting time and other information.
  • the shooting instruction may be included in the first configuration information.
  • the data switching module triggers a switch for switching the data stream and the control stream to switch the camera, where the switch may be located in the camera unit of the application architecture layer.
  • the data switching module instructs the data transmission channel module to obtain a data stream obtained by at least one camera of the target device.
  • the user's related operations on the camera are also transferred to at least one camera of the target device for implementation, for example, selecting any one of the at least one camera to obtain video data.
  • S411a At least one camera of the target device acquires video data and transmits the video data to the data transmission channel module through the adaptation module.
  • the data transmission channel module can transmit the video data to the data switching module.
  • the video data transmission method may be realized by a wireless communication method or a wired communication method or a server communication method.
  • the wireless communication method is implemented by any one of Bluetooth protocol, Wi-Fi protocol, NFC protocol or mobile communication protocol.
  • the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol, 5G standard protocol, 6G standard protocol or, 6G follow-up standard protocol, etc.
  • the data switching module fills the image buffer with video data obtained by at least one camera of the target device.
  • the image buffer may be located in the memory of the first device.
  • the data switching module may perform a stop/close operation on at least one camera of the first device, so as to reduce power consumption of the first device.
  • the data switching module may return a switching success response to the interactive interface of the application program.
  • the handover success response may be displaying completion identification information on the interactive interface, for example, displaying "switching completed” or “switching successful” on the interactive interface.
  • the application program can obtain images acquired by at least one camera of the target device, but the application program thinks that at least one camera of the first device is still being used, and at least one camera of the target device is equivalent to
  • the local virtual camera of the first device enables data to be switched from at least one camera to at least one camera of the target device, and the application is unaware.
  • a better viewing angle can be obtained through the camera of the external device, which improves the user experience.
  • FIG. 8 is a schematic diagram of a switching principle provided by an embodiment of the present application.
  • the technical solution of the present application adds a data switching module and a data transmission channel module on the first device side, and adds an adaptation module on the target device side.
  • the technical solution of this application can modify the code corresponding to the camera of the hardware abstraction layer, and can add an image acquisition request tag.
  • the image acquisition request tag can be used to mark that the image acquisition request issued by the application framework layer is issued by at least one of the first device. Whether the camera processing is sent to the data stream switching module is processed by at least one camera of the target device.
  • the image acquisition request issued by the application framework layer will be sent to at least one camera driver of the first device for processing.
  • the camera driver calls the kernel layer camera hardware driver to operate at least one of the first device.
  • a camera acquires video data.
  • the data stream switching module triggers the data stream and control stream switching switch, sets the label, and then applies the image acquisition request issued by the framework layer It will be forwarded to the data stream switching module for processing.
  • at least one camera of the first device can be paused/closed to reduce power consumption. If the user no longer uses the at least one camera of the target device thereafter, the data stream and control stream switching switch can be turned off, and subsequent image acquisition requests issued by the application framework layer continue to be processed by the at least one camera of the first device.
  • FIG. 9 is a schematic diagram of the software architecture of another first device provided in an embodiment of the present application.
  • the first device and at least one third device maintain a wireless connection as an example for description, and it does not limit other devices of different types to implement the technical solutions of the present application.
  • the left side of Figure 9 is the internal software framework of the first device. It should be noted that the application scenario of the first device includes the first device using the second application and its own camera to take photos or videos, and the first device and the third device maintain Wireless connections.
  • a data switching module is added to the application framework layer for the user to select one of the at least one third device as the target device, and the first device uses the camera of the third device to obtain an image.
  • the device can complete the data switching according to the following process, so as to display the image taken by the target device.
  • the data switching module of the first device obtains image format information of at least one camera of the first device, and sends the image format information to the data transmission channel module.
  • the image format information may include information such as the number of data streams provided to provide the first device with the format information data of the image, the resolution, frame rate, and color space of each data stream.
  • the data transmission channel module of the first device receives the image format information sent by the data switching module, determines the first configuration information of at least one camera of the target device according to the image format information, and sends the first configuration information to the target device.
  • the target device installs a corresponding application, where the application can be used for signaling interaction and data transmission between the first device and the target device, and the application can include a communication protocol adapted to the first device. Parameters etc.
  • the application can be installed in an adaptation module of the target device.
  • the adaptation module may be an adaptation SDK module, and the application may communicate through the SDK module.
  • the first device may send the first configuration information to the target device through the data transmission channel module, and the target device-side adaptation module may perform related configuration on at least one camera of the target device according to the first configuration information, for example, the first configuration
  • the information can instruct the camera to obtain the resolution, frame rate, color space, etc. of the image format.
  • the adaptation module of the target device can configure the camera according to the first configuration information.
  • the target device obtains video data through the camera and sends the acquired video data to the data transmission channel module of the first device through the adaptation module.
  • the data transmission channel module when the data transmission channel module determines the first configuration information for the target device according to the image format information sent by the data switching module, it may obtain the second configuration information of at least one camera of the target device in advance, and according to the at least The configuration of a camera and the second configuration information generate the first configuration information.
  • the first device may shield capabilities that are not supported by at least one camera of the target device according to the second configuration information.
  • the resolution information of at least one camera of the target device can be obtained in advance. If the image format information requires that the video resolution is 1080p, and at least one camera of the target device can only obtain data with a resolution of 480p, then the data transmission channel The module shields the resolution in the image format information, and does not send the configuration along with the first configuration information to the target device.
  • the application at the application layer has multiple data acquisition requests, there can be only one data stream between the data transmission channel module and the adaptation module of the target device.
  • the data transmission channel module receives the data transmitted by the adaptation module. After the data stream, the data stream can be transmitted to multiple demand ends. For example, if the application of the first device needs to store the video shot by the target device in the local and the cloud at the same time, the data transmission module can transmit the data transmitted by the adaptation module. Stream to local and cloud servers. Since this will not occupy too much wireless resources, bandwidth requirements and delays can be reduced.
  • the first device may send a shooting instruction to the target device, and the shooting instruction may instruct the target device to perform shooting time and other information.
  • the shooting instruction may be included in the first configuration information.
  • the data transmission channel module After the data transmission channel module receives the video data, it may need to convert the resolution and color space and other related formats of the video data according to the business requirements of the application to meet the format requirements of each data stream of the application, and the data transmission channel After the module obtains the valid video data, it considers that the data source of the target device is ready, and at this time the data transmission channel module sends a switching preparation completion instruction to the data switching module.
  • the data switch module After the data switch module receives the switch preparation completion instruction, the data switch module continuously obtains video data from the data transmission channel module and fills it into the temporary buffer returned by the camera application framework layer, because the application at the application layer does not know that the target has been adopted At least one camera of the device obtains data, so the image processing request is still sent from the application layer to the application framework layer and then to the hardware abstraction layer, but after using at least one camera of the target device to obtain the video data, the hardware abstraction layer does not obtain the video data Therefore, the hardware abstraction layer can return the image processing request, and the data switching module performs the operation. After receiving the image processing request returned by the hardware abstraction layer, the video data in the temporary buffer can be filled into the image buffer.
  • the application can obtain the image obtained by at least one camera of the target device, but the application It is considered that at least one camera of the first device is still in use, and at least one camera of the target device is equivalent to the local virtual camera of the first device, which enables the user to obtain different perspectives after selecting different target devices and apply it to Video calls greatly improve flexibility. .
  • FIG. 10 is a schematic diagram of the interaction of various modules of another first device according to an embodiment of the present application.
  • the first device detects that the user acts on the preset operation of the identification information on the interactive interface, triggers at least one camera switching operation of the device corresponding to the identification, and collects video data.
  • the preset operation may be that the user clicks on the identification information, or the user voice instruction selects the identification information, or automatically selects the identification information according to the user's history.
  • the first device presents identification information of each of the multiple devices.
  • the first device has at least one camera
  • the multiple devices include the first device and at least one third device
  • at least one third device is wirelessly connected to the first device
  • at least one third device has a camera.
  • the user when the user performs an operation on the identification information displayed on the interactive interface, the user may perform a preset operation.
  • the preset operation may be that the user clicks on the identification information displayed on the interactive interface of the first device, or the user moves from the left to the left Swipe right to the identification information displayed on the interactive interface of the first device.
  • the first device may store preset operations in advance, and when the user completes the preset operations, the target device is determined according to the user operations.
  • the interactive interface may be an interactive interface of an application program
  • the application program may be an application that requires a camera, such as a camera application, a camera application, or a video call application.
  • the identification information of each of the multiple devices is presented on the interactive interface corresponding to the at least one camera of the first device, that is, when the application of the first device calls at least one camera to obtain video data,
  • the identification information is displayed on the interactive interface of the application program.
  • the data switching module judges whether the camera switching parameter is legal, and records whether there is at least one camera of the first device in use.
  • the camera switching parameter may be the operating state of at least one camera of the first device, at least one camera information of the target device, or whether there is currently another switching task that conflicts with this task.
  • the switching can only be performed when at least one camera of the first device is running.
  • the data switching module records the configuration of at least one camera of the first device currently running.
  • the data switching module instructs the data transmission channel module to interact with the adaptation module of the target device, and initiates a connection to at least one camera of the target device.
  • the data transmission module is connected to the adaptation module of the target device.
  • the adaptation module may send second configuration information to the data transmission module, where the second configuration information is used to indicate the configuration of at least one camera of the target device.
  • the data switching module obtains second configuration information.
  • the data switching module may determine the configuration of at least one camera of the target device according to the second configuration information, and configure at least one camera interface of the first device, and the data switching module may determine the configuration of at least one camera of the first device and the second configuration Information to generate the first configuration information.
  • the data switching module may shield capabilities that are not supported by at least one camera of the target device according to the second configuration information.
  • the data transmission channel module sends the first configuration information to the adaptation module of the target device, and the target device can configure the camera according to the first configuration information.
  • the data transmission channel module may send a shooting instruction to the adaptation module of the target device, and the shooting instruction may instruct the target device to perform shooting time and other information.
  • the shooting instruction may be included in the first configuration information.
  • the data switching module triggers a switch for switching the data stream and the control stream to switch the camera, where the switch may be located in the camera unit of the application architecture layer.
  • the data switching module instructs the data transmission channel module to obtain a data stream obtained by at least one camera of the target device.
  • the user's related operations on the camera are also transferred to at least one camera of the target device for implementation, for example, selecting any one of the at least one camera to obtain video data.
  • At least one camera of the target device acquires video data and transmits the video data to the data transmission channel module through the adaptation module.
  • the data transmission channel module can transmit video data to the data switching module.
  • the video data transmission method may be realized by a wireless communication method or a wired communication method or a server communication method.
  • the wireless communication method is implemented by any one of Bluetooth protocol, Wi-Fi protocol or mobile communication protocol.
  • the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol or 5G standard protocol, 6G standard protocol or 6G follow-up standard protocol, etc.
  • the data switching module buffers the video data acquired by the target device in the temporary buffer of the first device.
  • the data switching module After receiving the image processing request returned by the hardware abstraction layer, the data switching module fills the video data in the temporary buffer into the image buffer.
  • both the temporary buffer and the image buffer may be located in the memory of the first device.
  • the data switching module may perform a stop/close operation on at least one camera of the first device, so as to reduce power consumption of the first device.
  • the data switching module may return a switching success response to the interactive interface of the application program.
  • the handover success response may be displaying completion identification information on the interactive interface, for example, displaying "switching completed” or “switching successful” on the interactive interface.
  • the application program can obtain images acquired by at least one camera of the target device, but the application program thinks that at least one camera of the first device is still being used, and at least one camera of the target device is equivalent to The local virtual camera of the first device. Users can select different target devices according to their actual needs, and obtain video images through at least one camera of the target device, and apply them to video calls, which enhances the user's selection range and provides a better user experience.
  • FIG. 11 is a schematic diagram of another switching principle provided by an embodiment of the present application.
  • the technical solution of the present application adds a data switching module and a data transmission channel module on the first device side, and adds an adaptation module on the target device side.
  • the technical solution of this application can modify the code corresponding to the camera of the application framework layer.
  • the camera service module (CameraService) in the camera unit of the application framework layer can add the label of whether to use the video data obtained by the external camera to cover the local video data, because the data switching module obtains the video data obtained by at least one camera of the target device through the data transmission channel module And perform a temporary caching.
  • the camera service module When the camera service module processes the video data returned by the hardware abstraction layer, it uses the temporarily cached video data to cover the image buffer of the video data returned by the hardware abstraction layer, and then the video data is uploaded back to the application framework layer.
  • the image API of the camera At this time, the video data obtained by the application program is already an image obtained by at least one camera of the target device, and the application program does not perceive changes in the underlying data.
  • the embodiment of the present application also provides a mobile device, which may include at least one camera, a display module, a data switching module, and a data transmission channel module.
  • At least one camera is used to obtain images;
  • the display module is used to present the identification information of each of the multiple devices, the multiple devices including a first device and at least one third device, and at least one third device and the first device Wireless connection, and at least one third device has a camera;
  • the data switching module is used to respond to user operations to determine the target device from multiple devices;
  • the data transmission channel module is used to obtain images taken by the target device;
  • the display module is also used to Present the image taken by the target device.
  • the data transmission channel module may also be used to send a shooting instruction to the target device, and the data transmission channel module may also be used to receive an image captured by the target device according to the shooting instruction.
  • each of the at least one third device includes an adaptation module, and the adaptation module is used for data transmission between the first device and the at least one third device.
  • the display module presenting the identification information of each of the multiple devices includes: the display module presents the identification information of each of the multiple devices on an interactive interface corresponding to at least one camera.
  • the data switching module when the target device is one of the at least one third device, the data switching module generates first configuration information according to the configuration of the at least one camera; the data transmission channel module may also send the first configuration to the target device information.
  • the data transmission channel module is also used to obtain second configuration information, the second configuration information is used to indicate the configuration of at least one camera of the target device; and the processing module generates the first configuration according to the configuration of the at least one camera of the first device.
  • the configuration information includes: the data switching module generates the first configuration information according to the configuration of the at least one camera and the second configuration information.
  • the target device is a third device among the at least one third device
  • the display module presents an image taken by the target device, at least one camera of the first device is turned off.
  • the wireless connection is achieved through any one of Bluetooth protocol, wireless local area network Wi-Fi protocol, NFC protocol or mobile communication protocol.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or wireless connection may be indirect coupling or wireless connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the computer may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes at least one computer instruction.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with at least one available medium.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk, SSD), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The present application provides a video call method, applied to a first device having at least one camera. The first device establishes a video call with a second device by means of a camera and an application. Said method comprises: after a first device establishes a video call with a second device by means of a camera and an application, displaying, on an interaction interface for performing the video call, identification information of at least one third device that is in wireless connection with the first device and has a camera; when the first device detects a preset operation of a user acting on first identification information on the interaction interface, triggering at least one camera of a device corresponding to the first identification information to collect video data, the first identification information being one piece of identification information of the at least one third device having a camera; and the first device acquiring the video data collected by at least one camera of the device corresponding to the first identification information, and using the video data, collected by the at least one camera of a target device corresponding to the first identification information, for the video call.

Description

一种视频通话的方法A method of video call
本申请要求于2019年11月13日提交中国专利局、申请号为201911108857.4、申请名称为“一种视频通话的方法”的中国专利申请和2019年8月6日提交中国专利局、申请号为201910723119.4、申请名称为“一种视频通话的方法及移动设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires a Chinese patent application filed with the Chinese Patent Office on November 13, 2019, the application number is 201911108857.4, and the application name is "a method of video call", and on August 6, 2019, the Chinese patent application with the application number is 201910723119.4. The priority of the Chinese patent application titled "A method and mobile device for video calling", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及无线通信领域,尤其涉及一种视频通话的方法。This application relates to the field of wireless communication, and in particular to a method of video call.
背景技术Background technique
随着各种移动设备的普及,目前利用移动设备(例如手机)上的应用程序进行与另一个移动设备进行视频通话的场景越来越多,在移动设备进行视频通话过程中,移动设备只能使用所述移动设备自带的摄像头来获取的图像数据或视频数据,如果移动设备的摄像头性能参数较差或由于障碍物遮挡造成的视角受阻,则移动设备进行视频通话过程中的视频画面的分辨率较低且可视范围较小。本申请提供了一种视频通话的方法,利用与移动设备保持通信连接的其他移动设备进行视频通话,可以大大提高用户体验。With the popularization of various mobile devices, there are more and more scenarios in which applications on mobile devices (such as mobile phones) are used to make video calls with another mobile device. During a video call on a mobile device, the mobile device can only Use the image data or video data acquired by the camera of the mobile device. If the camera performance parameters of the mobile device are poor or the viewing angle is blocked due to obstructions, the mobile device can distinguish the video images during the video call. The rate is low and the visual range is small. This application provides a video call method, which uses other mobile devices that maintain a communication connection with the mobile device to make a video call, which can greatly improve user experience.
发明内容Summary of the invention
本申请提供一种视频通话的方法,应用程序可以获取到其他设备的摄像头获取的图像,但是所述应用程序认为仍然在使用第一设备的至少一个摄像头,其他设备的摄像头相当于第一设备本地的虚拟摄像头,做到了数据从一个摄像头切换到其他设备的摄像头,而应用程序无感知,通过其他设备的摄像头可以获得更好的视角,提升了用户体验。This application provides a video call method. The application program can obtain images acquired by the cameras of other devices, but the application program thinks that at least one camera of the first device is still being used, and the cameras of other devices are equivalent to the local With the virtual camera, the data can be switched from one camera to the camera of another device, and the application has no perception. A better viewing angle can be obtained through the camera of other devices, which improves the user experience.
第一方面提供了一种视频通话的方法,应用于具有至少一个摄像头的第一设备所述第一设备利用至少一个摄像头和一个应用与第二设备建立视频通话,所述第一设备和所述第二设备均安装有所述应用,所述应用具有视频通话功能,所述方法包括:所述第一设备利用所述至少一个摄像头和所述应用与所述第二设备建立视频通话之后,将与所述第一设备保持无线连接且具有摄像头的至少一个第三设备的标识信息显示在进行视频通话的交互界面上;所述第一设备检测到用户作用于所述交互界面上第一标识信息的预设操作时,触发所述第一标识信息对应的设备的至少一个摄像头采集视频数据,所述第一标识信息是所述具有摄像头的至少一个第三设备的标识信息中的一个;所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。应理解:“至少一个第三设备”是指一个或多个设备,该一个或多个设备设备中不包括第一设备和第二设备。The first aspect provides a video call method, which is applied to a first device with at least one camera. The first device uses at least one camera and an application to establish a video call with a second device. The first device and the The second device is installed with the application, the application has a video call function, and the method includes: after the first device establishes a video call with the second device using the at least one camera and the application, connecting The identification information of at least one third device that maintains a wireless connection with the first device and has a camera is displayed on the interactive interface for making a video call; the first device detects that the user acts on the interactive interface. During the preset operation of triggering at least one camera of the device corresponding to the first identification information to collect video data, the first identification information is one of the identification information of the at least one third device with the camera; The first device obtains the video data collected by the at least one camera of the device corresponding to the first identification information, and uses the video data collected by the at least one camera of the device corresponding to the first identification information for a video call. It should be understood that: "at least one third device" refers to one or more devices, and the one or more devices do not include the first device and the second device.
其中,标识信息可以包括一个图标,图标和文字,控件,控件或文字,本申请并不限制其具体形式。Wherein, the identification information may include an icon, icon and text, control, control or text, and this application does not limit its specific form.
用户可以选择多个设备中的任意一个设备,通过被选择设备的摄像头获取视频数据,例如,设备为至少一个第三设备中的一个时,应用程序可以获取到设备的摄像头获取的视频数据,但是所述应用程序认为仍然在使用第一设备的至少一个摄像头,设备的摄像头相当于第一设备本地的虚拟摄像头,做到了数据从第一设备的至少一个摄像头切换到设备的摄像头,而应用程序无感知,通过外部设备的摄像头可以获得更好的视角,提升了用户体验。The user can select any one of the multiple devices to obtain video data through the camera of the selected device. For example, when the device is one of at least one third device, the application can obtain the video data obtained by the camera of the device, but The application program considers that at least one camera of the first device is still being used, and the device’s camera is equivalent to the local virtual camera of the first device. Data is switched from the at least one camera of the first device to the device’s camera, but the application does not Perception, a better viewing angle can be obtained through the camera of an external device, which improves the user experience.
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:所述第一设备检测到用户作用于所述交互界面上第二标识信息的预设操作时,触发所述第二标识信息对应的设备的至少一个摄像头采集视频数据,所述第二标识信息是所述具有摄像头的至少一个第三设备的标识信息中的一个;所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。With reference to the first aspect, in some implementations of the first aspect, the method further includes: when the first device detects that a user has acted on a preset operation of the second identification information on the interactive interface, triggering the At least one camera of the device corresponding to the second identification information collects video data, where the second identification information is one of the identification information of the at least one third device with the camera; the first device acquires the second identification The video data collected by at least one camera of the device corresponding to the information is used, and the video data collected by the at least one camera of the device corresponding to the second identification information is used for a video call.
用户可以选择多个设备中的第一标识信息对应的设备作为获取视频数据的设备后,还可以选择第二标识信息对应的设备作为获取视频数据的设备,从而通过第二标识信息对应的设备的摄像头获取视频数据,该设备的摄像头相当于第一设备本地的虚拟摄像头,做到了数据从第一设备的至少一个摄像头切换到设备的摄像头,而应用程序无感知,通过外部设备的摄像头可以获得更好的视角,提升了用户体验。After the user can select the device corresponding to the first identification information among the multiple devices as the device for acquiring video data, the user can also select the device corresponding to the second identification information as the device for acquiring video data, so as to pass the status of the device corresponding to the second identification information. The camera obtains the video data. The camera of the device is equivalent to the local virtual camera of the first device, so that the data is switched from at least one camera of the first device to the camera of the device, and the application has no perception, and the camera of the external device can obtain more information. A good perspective improves the user experience.
结合第一方面,在第一方面的某些实现方式中,所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话,包括:所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,且不再获取所述第一设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据和所述第一设备的至少一个摄像头采集的视频数据用于视频通话。With reference to the first aspect, in some implementations of the first aspect, the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and corresponds to the first identification information The video data collected by at least one camera of the device is used for the video call, including: the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and no longer obtains the video data of the first device. Video data collected by at least one camera, and the video data collected by at least one camera of the device corresponding to the first identification information is used for a video call; or, the first device obtains the information of the device corresponding to the first identification information Video data collected by at least one camera, and the video data collected by the at least one camera of the first device is acquired, and the video data collected by the at least one camera of the device corresponding to the first identification information is used for a video call; or, The first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and obtains the video data collected by the at least one camera of the first device, and assigns the first identification information to the The video data collected by the at least one camera of the device and the video data collected by the at least one camera of the first device are used for a video call.
根据本申请实施例,当用户选择多个设备中的第一标识信息对应的设备作为获取视频数据的设备后,可以根据实际需要对第一设备的至少一个摄像头进行重新配置。According to the embodiment of the present application, after the user selects the device corresponding to the first identification information among the multiple devices as the device for acquiring video data, at least one camera of the first device can be reconfigured according to actual needs.
结合第一方面,在第一方面的某些实现方式中,所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话,包括:所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且不再获取所述第一设备的至少一个摄像头和所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一设备的至少一个摄像头和所述第一标识信息采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一设备的至少一个摄像 头采集的视频数据,不获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头和所述第一设备的至少一个摄像头采集的视频数据用于视频通话;或者,所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,不获取所述第一设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头和所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述所述第一设备的至少一个摄像头和所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头以及所述第二标识信息对应的设备的至少一个摄像头采集的视频数据和所述第一设备的至少一个摄像头采集的视频数据用于视频通话。With reference to the first aspect, in some implementations of the first aspect, the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and corresponds to the second identification information The video data collected by at least one camera of the device is used for the video call, including: the first device obtains the video data collected by the at least one camera of the device corresponding to the second identification information, and no longer obtains the video data of the first device At least one camera and the video data collected by at least one camera of the device corresponding to the first identification information, and use the video data collected by the at least one camera of the device corresponding to the second identification information for a video call; or The first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and obtains the at least one camera of the first device and the video data collected by the first identification information, and combines the first 2. The video data collected by at least one camera of the device corresponding to the identification information is used for video calls; or, the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and obtains the first The video data collected by at least one camera of a device is not obtained by the video data collected by at least one camera of the device corresponding to the first identification information, and the at least one camera of the device corresponding to the second identification information and the first Video data collected by at least one camera of a device is used for video calls; or, the first device obtains video data collected by at least one camera of the device corresponding to the second identification information, and obtains the first identification information corresponding to the video data The video data collected by at least one camera of the device of the first device is not acquired, and the video data collected by the at least one camera of the first device is not obtained, and at least one camera of the device corresponding to the second identification information corresponds to the first identification information The video data collected by at least one camera of the device of the device is used for a video call; or, the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and obtains the first device Video data collected by at least one camera of the device corresponding to the first identification information and at least one camera of the device corresponding to the first identification information, and at least one camera of the device corresponding to the first identification information and at least one of the device corresponding to the second identification information The video data collected by one camera and the video data collected by at least one camera of the first device are used for a video call.
根据本申请实施例,当用户选择多个设备中的第二标识信息对应的设备代替第一标识信息对应的设备作为获取视频数据的设备后,可以根据实际需要对其余摄像头和设备进行配置。According to the embodiment of the present application, after the user selects the device corresponding to the second identification information among the multiple devices to replace the device corresponding to the first identification information as the device for acquiring video data, the remaining cameras and devices can be configured according to actual needs.
结合第一方面,在第一方面的某些实现方式中,在使用所述第一标识信息对应的设备的至少一个摄像头之前,根据所述第一设备的至少一个摄像头的配置参数对所述第一标识信息对应的设备的至少一个摄像头进行配置;和/或,在使用所述第二标识信息对应的设备的至少一个摄像头之前,根据所述第一设备的至少一个摄像头的配置参数对所述第二标识信息对应的设备的至少一个摄像头进行配置。With reference to the first aspect, in some implementations of the first aspect, before using the at least one camera of the device corresponding to the first identification information, the first device is configured according to the configuration parameter of the at least one camera of the first device. Configure at least one camera of the device corresponding to the identification information; and/or, before using the at least one camera of the device corresponding to the second identification information, perform configuration parameters on the at least one camera of the first device At least one camera of the device corresponding to the second identification information is configured.
根据本申请实施例,第一设备根据第一设备的至少一个摄像头可以对设备的摄像头进行相关配置,使设备的摄像头获取的图像可以满足要求。According to the embodiment of the present application, the first device can configure the camera of the device according to at least one camera of the first device, so that the image obtained by the camera of the device can meet the requirements.
结合第一方面,在第一方面的某些实现方式中,在进行视频通话的交互界面上还包括与所述第一设备保持无线连接且具有至少一个麦克风的第四设备的第三标识信息;所述第一设备检测到用户作用于所述交互界面上第三标识信息的预设操作时,触发所述第三标识信息对应的设备利用至少一个麦克风采集音频数据;所述第一设备获取所述第三标识信息对应的设备的至少一个麦克风采集的音频数据,并将所述第三标识信息对应的设备至少一个麦克风采集的音频数据用于视频通话。With reference to the first aspect, in some implementations of the first aspect, the interactive interface for performing a video call further includes third identification information of a fourth device that maintains a wireless connection with the first device and has at least one microphone; When the first device detects that the user acts on the preset operation of the third identification information on the interactive interface, it triggers the device corresponding to the third identification information to use at least one microphone to collect audio data; the first device acquires all The audio data collected by the at least one microphone of the device corresponding to the third identification information is used, and the audio data collected by the at least one microphone of the device corresponding to the third identification information is used for a video call.
结合第一方面,在第一方面的某些实现方式中,在进行视频通话的交互界面上还包括与所述第一设备保持无线连接且具有至少一个扬声器的第五设备的第四标识;所述第一设备检测到用户作用于所述交互界面上第四标识的预设操作时,将视频通话中接收到的音频数据发送给所述第四标识对应的设备,并触发所述第四标识对应的设备播放接收到的音频数据。With reference to the first aspect, in some implementations of the first aspect, the interactive interface for conducting a video call further includes a fourth identifier of a fifth device that maintains a wireless connection with the first device and has at least one speaker; When the first device detects that the user acts on the preset operation of the fourth identifier on the interactive interface, it sends the audio data received in the video call to the device corresponding to the fourth identifier, and triggers the fourth identifier The corresponding device plays the received audio data.
结合第一方面,在第一方面的某些实现方式中,在进行视频通话的交互界面上还包括与所述第一设备保持无线连接且具有至少一个麦克风和至少一个扬声器的第六设备的第五标识;所述第一设备检测到用户作用于所述交互界面上第五标识的预设操作时,触发所述第五标识对应的设备利用至少一个麦克风采集音频数据,将视频通话中接收到的音频数据发送给所述第五标识对应的设备,并触发所述第五标识对应的设备播放接收到的音频数据;所述第一设备获取所述第五标识对应的设备的至少一个麦克风采集的音频数据,并将所述至少一个麦克风采集的音频数据用于视频通话。With reference to the first aspect, in some implementations of the first aspect, the interactive interface for conducting a video call further includes a sixth device that maintains a wireless connection with the first device and has at least one microphone and at least one speaker. Five identification; when the first device detects that the user acts on the preset operation of the fifth identification on the interactive interface, it triggers the device corresponding to the fifth identification to use at least one microphone to collect audio data and receive the video call The audio data is sent to the device corresponding to the fifth identifier, and the device corresponding to the fifth identifier is triggered to play the received audio data; the first device acquires at least one microphone of the device corresponding to the fifth identifier. And use the audio data collected by the at least one microphone for the video call.
结合第一方面,在第一方面的某些实现方式中,与所述第一设备保持无线连接的设备 是通过蓝牙协议、Wi-Fi协议,NFC协议或移动通信协议中任意一种实现的。With reference to the first aspect, in some implementations of the first aspect, the device maintaining the wireless connection with the first device is implemented through any one of the Bluetooth protocol, the Wi-Fi protocol, the NFC protocol, or the mobile communication protocol.
其中,移动通信协议可以包括2G标准协议,3G标准协议,4G标准协议,5G标准协议,6G标准协议或者,6G后续标准协议等。Among them, the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol, 5G standard protocol, 6G standard protocol or, 6G follow-up standard protocol, etc.
结合第一方面,在第一方面的某些实现方式中,所述第一设备获取所述第一标识信息对应的目标设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的目标设备的至少一个摄像头采集的视频数据用于视频通话,包括:所述第一设备的数据传输通道模块接收到视频数据后,根据所述应用的需求,对接收的视频数据的分辨率和色彩空间进行格式转换;数据切换模块接收所述第一设备的至少一个摄像头的获取请求,转发所述获取请求到所述数据传输通道模块;所述数据传输通道模块将从所述第一标识信息对应的设备接收视频数据并传输给所述数据切换模块;所述数据切换模块将接收的所述第一标识信息对应的设备的至少一个摄像头采集的视频数据传输到摄像头设备会话管理模块的数据返回接口中,获取的所述第一标识信息对应的设备的至少一个摄像头采集的视频数据按照原有数据返回流程返回给所述应用。With reference to the first aspect, in some implementations of the first aspect, the first device obtains video data collected by at least one camera of the target device corresponding to the first identification information, and corresponds to the first identification information The video data collected by at least one camera of the target device is used for video calls, including: after the data transmission channel module of the first device receives the video data, it determines the resolution and resolution of the received video data according to the requirements of the application. The color space performs format conversion; the data switching module receives an acquisition request from at least one camera of the first device, and forwards the acquisition request to the data transmission channel module; the data transmission channel module will receive the first identification information from the The corresponding device receives video data and transmits it to the data switching module; the data switching module transmits the received video data collected by at least one camera of the device corresponding to the first identification information to the data return of the camera device session management module In the interface, the acquired video data collected by at least one camera of the device corresponding to the first identification information is returned to the application according to the original data return procedure.
第二方面提供了一种拍摄的方法,应用于第一设备,所述第一设备具有至少一个摄像头,所述方法包括:呈现多个设备中的每个设备的标识信息,所述多个设备包括第一设备和至少一个第三设备,所述至少一个第三设备与所述第一设备通信连接,且所述至少一个第三设备均具有摄像头;响应用户操作,以从所述多个设备中确定设备;获取并呈现所述设备拍摄的图像。应理解:“至少一个第三设备”是指一个或多个设备,该一个或多个设备设备中不包括第一设备。A second aspect provides a method of shooting, which is applied to a first device, the first device having at least one camera, and the method includes: presenting identification information of each of a plurality of devices, and the plurality of devices The device includes a first device and at least one third device, the at least one third device is in communication connection with the first device, and each of the at least one third device has a camera; Identify the device; acquire and present the image taken by the device. It should be understood that: "at least one third device" refers to one or more devices, and the one or more devices do not include the first device.
用户可以选择多个设备中的任意一个设备(例如第三设备)的摄像头获取图像,应理解,该第三设备为至少一个第三设备中的一个,第一设备内部的应用程序可以获取到该第三设备的摄像头获取的图像,但是所述应用程序认为仍然在使用第一设备的至少一个摄像头,通过外部设备的摄像头可以获得更好的视角,提升了用户体验。The user can select the camera of any one of the multiple devices (for example, the third device) to obtain images. It should be understood that the third device is one of at least one third device, and the application inside the first device can obtain the image. The image obtained by the camera of the third device, but the application program thinks that at least one camera of the first device is still being used, and a better viewing angle can be obtained through the camera of the external device, which improves the user experience.
结合第二方面,在第二方面的某些实现方式中,所述获取呈现所述设备拍摄的图像,包括:向所述设备发送拍摄指令;接收所述设备根据所述拍摄指令拍摄的图像。With reference to the second aspect, in some implementations of the second aspect, the acquiring and presenting the image captured by the device includes: sending a shooting instruction to the device; and receiving the image captured by the device according to the shooting instruction.
根据本申请实施例,第一设备可以根据正在使用的应用程序的拍摄需求向设备发送拍摄指令,使设备按照需求进行拍摄。According to the embodiment of the present application, the first device may send a shooting instruction to the device according to the shooting demand of the application program being used, so that the device can shoot according to the demand.
结合第二方面,在第二方面的某些实现方式中,所述至少一个第三设备均安装相应的应用,所述第一设备与所述至少一个第三设备分别通过该应用进行信令交互以及数据传输。With reference to the second aspect, in some implementations of the second aspect, the at least one third device is installed with a corresponding application, and the first device and the at least one third device respectively perform signaling interaction through the application And data transmission.
应理解:至少一个第三设备均安装有该应用,从而第一设备与至少一个第三设备分别利用该应用进行信令交互以及数据传输,利用该应用传输效率更高。It should be understood that at least one third device is installed with the application, so that the first device and the at least one third device respectively use the application for signaling interaction and data transmission, and the transmission efficiency of the application is higher.
结合第二方面,在第二方面的某些实现方式中,所述呈现多个设备中的每个设备的标识信息,包括:在所述至少一个摄像头对应的交互界面上呈现所述多个设备中的每个设备的标识信息。With reference to the second aspect, in some implementations of the second aspect, the presenting the identification information of each of the multiple devices includes: presenting the multiple devices on an interactive interface corresponding to the at least one camera The identification information of each device in.
可以在应用程序正在使用至少一个摄像头的场景下,例如,视频通话或拍摄,在交互界面中显示多个设备中每个设备的标识信息供用户选择,进行摄像头切换,可以提升用户体验。In a scenario where the application is using at least one camera, such as a video call or shooting, the identification information of each of the multiple devices can be displayed in the interactive interface for the user to select, and the camera can be switched to improve user experience.
结合第二方面,在第二方面的某些实现方式中,当所述设备为所述至少一个第三设备中的一个第三设备时,所述方法还包括:根据所述至少一个摄像头的配置,生成第一配置 信息;向所述设备发送第一配置信息。With reference to the second aspect, in some implementations of the second aspect, when the device is a third device among the at least one third device, the method further includes: according to the configuration of the at least one camera , Generate first configuration information; send the first configuration information to the device.
第一设备根据至少一个摄像头可以对设备的摄像头进行相关配置,使设备的摄像头获取的图像可以满足要求。The first device can configure the camera of the device according to the at least one camera, so that the image obtained by the camera of the device can meet the requirements.
结合第二方面,在第二方面的某些实现方式中,所述方法还包括:获取第二配置信息,所述第二配置信息用于指示所述设备的摄像头的配置;以及所述根据所述至少一个摄像头的配置,生成第一配置信息,包括:根据所述至少一个摄像头的配置和所述第二配置信息,生成所述第一配置信息。With reference to the second aspect, in some implementations of the second aspect, the method further includes: acquiring second configuration information, where the second configuration information is used to indicate the configuration of the camera of the device; The configuration of the at least one camera to generate the first configuration information includes: generating the first configuration information according to the configuration of the at least one camera and the second configuration information.
设备为至少一个第三设备中的一个时,可以根据设备的摄像头的能力向第一设备发送第二配置信息,可以用于指示设备的摄像头的配置,第一设备可以根据第二配置信息确定设备的摄像头的能力,因此,第一设备可以根据至少一个摄像头的配置和第二配置信息生成所述第一配置信息用于配置设备的摄像头。When the device is one of at least one third device, the second configuration information can be sent to the first device according to the capabilities of the device's camera, which can be used to indicate the configuration of the device's camera, and the first device can determine the device according to the second configuration information Therefore, the first device can generate the first configuration information for configuring the camera of the device according to the configuration of at least one camera and the second configuration information.
结合第二方面,在第二方面的某些实现方式中,当所述设备为所述至少一个第三设备中的一个第三设备时,所述方法还包括:在呈现所述设备拍摄的图像时,关闭所述至少一个摄像头。With reference to the second aspect, in some implementations of the second aspect, when the device is a third device among the at least one third device, the method further includes: presenting the image taken by the device When, turn off the at least one camera.
当设备为至少一个第三设备中的一个第三设备时,在呈现设备拍摄的图像时,关闭所述第一设备的至少一个摄像头,可以减少第一设备的功耗。When the device is a third device among the at least one third device, when the image taken by the device is presented, at least one camera of the first device is turned off, which can reduce the power consumption of the first device.
结合第二方面,在第二方面的某些实现方式中,所述无线连接是通过蓝牙协议、无线局域网Wi-Fi协议,NFC协议或移动通信协议中任意一种实现的。With reference to the second aspect, in some implementations of the second aspect, the wireless connection is implemented through any one of a Bluetooth protocol, a wireless local area network Wi-Fi protocol, an NFC protocol, or a mobile communication protocol.
第三方面,本申请提供了一种移动设备,包括:触摸屏,其中,所述触摸屏包括触敏表面和显示器;至少一个摄像头;至少一个处理器;存储器;多个应用程序;以及至少一个程序,其中所述至少一个程序被存储在所述存储器中,所述至少一个程序包括指令,当所述指令在所述第一设备上运行时,使得所述第一设备执行上述第一方面或上述第二方面中任一项所述的方法。In a third aspect, the present application provides a mobile device, including: a touch screen, wherein the touch screen includes a touch-sensitive surface and a display; at least one camera; at least one processor; a memory; multiple application programs; and at least one program, The at least one program is stored in the memory, and the at least one program includes instructions, and when the instructions run on the first device, the first device executes the first aspect or the first aspect. The method of any one of the two aspects.
第四方面,提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令在被所述计算机调用时用于使所述计算机执行上述第一方面或上述第二方面中任一项所述的方法。In a fourth aspect, a computer storage medium is provided. The computer storage medium stores computer-executable instructions. When called by the computer, the computer-executable instructions are used to make the computer execute the first aspect or The method of any one of the above second aspects.
第五方面,提供了一种电子设备上的图形用户界面系统,所述电子设备具有显示屏、摄像头、存储器、以及一个或多个处理器,所述一个或多个处理器用于执行存储在所述存储器中的一个或多个计算机程序,其特征在于,所述图形用户界面包括所述电子设备执行如上述第一方面或上述第二方面中任一项所述的方法时显示的图形用户界面。In a fifth aspect, a graphical user interface system on an electronic device is provided. The electronic device has a display screen, a camera, a memory, and one or more processors, and the one or more processors are configured to execute The one or more computer programs in the memory, wherein the graphical user interface includes a graphical user interface displayed when the electronic device executes the method according to any one of the foregoing first aspect or the foregoing second aspect .
附图说明Description of the drawings
图1是适用于本申请实施例的通信系统的架构示意图。FIG. 1 is a schematic diagram of the architecture of a communication system applicable to an embodiment of the present application.
图2是本申请实施例提供的一种拍摄的方法的流程性示意图。FIG. 2 is a schematic flowchart of a shooting method provided by an embodiment of the present application.
图3是本申请实施例提供的一种移动设备的交互界面。Fig. 3 is an interactive interface of a mobile device provided by an embodiment of the present application.
图4是本申请实施例提供的一种移动设备的交互界面。Fig. 4 is an interactive interface of a mobile device provided by an embodiment of the present application.
图5是本申请实施例提供的一种移动设备的交互界面。Fig. 5 is an interactive interface of a mobile device provided by an embodiment of the present application.
图6是本申请实施例提供的一种第一设备的软件架构的示意图。Fig. 6 is a schematic diagram of a software architecture of a first device provided by an embodiment of the present application.
图7是本申请实施例提供的一种第一设备各模块交互的示意图。FIG. 7 is a schematic diagram of interaction between modules of a first device according to an embodiment of the present application.
图8是本申请实施例提供的一种切换原理的示意图。FIG. 8 is a schematic diagram of a switching principle provided by an embodiment of the present application.
图9是本申请实施例提供的另一种第一设备的软件架构的示意图。FIG. 9 is a schematic diagram of the software architecture of another first device provided in an embodiment of the present application.
图10是本申请实施例提供的另一种第一设备各模块交互的示意图。FIG. 10 is a schematic diagram of the interaction of various modules of another first device according to an embodiment of the present application.
图11是本申请实施例提供的另一种切换原理的示意图。FIG. 11 is a schematic diagram of another switching principle provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the drawings.
本申请实施例中的移动设备可以是手机、平板电脑、笔记本电脑、智能手环、智能手表、智能头盔、智能眼镜、无人机等具有摄像头的移动设备。移动设备还可以是蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字助手(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备,5G网络中的移动设备或者未来演进的公用陆地移动通信网络(public land Mobile network,PLMN)中的移动设备等,本申请实施例对此并不限定。The mobile device in the embodiment of the present application may be a mobile device with a camera such as a mobile phone, a tablet computer, a notebook computer, a smart bracelet, a smart watch, a smart helmet, a smart glasses, and a drone. Mobile devices can also be cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), and wireless communications Functional handheld devices, computing devices, or other processing devices connected to wireless modems, in-vehicle devices, mobile devices in 5G networks, or mobile devices in the public land mobile network (PLMN) that will evolve in the future. The application embodiment does not limit this.
图1是适用于本申请实施例的系统的架构示意图。Figure 1 is a schematic diagram of the architecture of a system suitable for an embodiment of the present application.
如图1所示,所述系统100可以包括至少一个移动设备101,所述移动设备101可以与其它移动设备无线连接,其它移动设备可以是手机、无人机、外置摄像头、电脑,无线智能音箱,无线播放器,无线电视,无线大屏设备或是智能穿戴设备等,其中,无线连接技术包括但不限于:包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),第五代移动通信技术(英语:5th generation mobile networks或5th generation wireless systems,简称5G)全球导航卫星系统(global navigation satellite system,GNSS),无线局域网(wireless local area networks,WLAN),无线保真(wireless fidelity,Wi-Fi)网络,蓝牙(Bluetooth,BT),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。As shown in Figure 1, the system 100 can include at least one mobile device 101, which can be wirelessly connected to other mobile devices, and the other mobile devices can be mobile phones, drones, external cameras, computers, and wireless smart devices. Speakers, wireless players, wireless TVs, wireless large-screen devices or smart wearable devices, etc., among which wireless connection technologies include but are not limited to: including global system for mobile communications (GSM), general packet wireless services ( general packet radio service, GPRS, code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (time-division code division multiple access) access, TD-SCDMA), long term evolution (LTE), the fifth generation of mobile communication technology (English: 5th generation mobile networks or 5th generation wireless systems, referred to as 5G) global navigation satellite system (global navigation satellite system, GNSS) ), wireless local area networks (wireless local area networks, WLAN), wireless fidelity (Wi-Fi) networks, Bluetooth (Bluetooth, BT), frequency modulation (FM), near field communication technology (near field communication) , NFC), infrared technology (infrared, IR), etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
应理解,在一些特定情况下,移动设备之间也可以通过有线的方式进行通信连接。It should be understood that, in some specific cases, mobile devices may also communicate with each other in a wired manner.
其中,移动设备101可以包括壳体和显示屏,显示屏安装在壳体上。移动设备101还包括设置于壳体内部的电子元件(图中未示出),电子元件包括处理器、摄像头、闪光灯、麦克风、电池等,但不限于此。The mobile device 101 may include a housing and a display screen, and the display screen is installed on the housing. The mobile device 101 also includes electronic components (not shown in the figure) arranged inside the casing. The electronic components include a processor, a camera, a flash, a microphone, a battery, etc., but are not limited thereto.
可选地,移动设备101与其它移动设备保持无线通信方式通信连接可以是通过蓝牙协议、无线局域网(Wireless Fidelity,Wi-Fi)协议,移动通信协议中任意一种实现的。Optionally, the communication connection between the mobile device 101 and other mobile devices in a wireless communication mode may be achieved through any one of a Bluetooth protocol, a wireless local area network (Wireless Fidelity, Wi-Fi) protocol, and a mobile communication protocol.
其中,移动通信协议可以包括2G标准协议,3G标准协议,4G标准协议或者是,5G标准协议,6G标准协议或者,6G后续标准协议等。Among them, the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol or 5G standard protocol, 6G standard protocol or 6G follow-up standard protocol, etc.
随着各种移动设备的普及,目前利用移动设备(例如手机)上的应用程序进行拍摄或与另一个移动设备进行视频通话的场景越来越多,在移动设备进行拍摄或视频通话过程 中,移动设备只能使用所述移动设备自带的摄像头来获取的图像数据或视频数据,如果移动设备的摄像头性能参数较差或由于障碍物遮挡造成的视角受阻,则移动设备进行拍摄时,将造成获取的图像的分辨率较低或视频通话过程中的视频画面的分辨率较低且可视范围较小,将降低用户的体验。本申请提供了一种视频通话的方法,利用与移动设备保持无线连接的其他移动设备的摄像头获取的视频数据进行视频通话,可以大大提高用户体验。With the popularity of various mobile devices, there are more and more scenes of using applications on mobile devices (such as mobile phones) to shoot or make video calls with another mobile device. During the shooting or video calls on the mobile device, The mobile device can only use the image data or video data acquired by the camera of the mobile device. If the camera performance parameters of the mobile device are poor or the viewing angle is blocked due to obstacles, the mobile device will cause The lower resolution of the acquired image or the lower resolution of the video image during the video call and the smaller visual range will reduce the user experience. This application provides a video call method, which uses video data obtained by cameras of other mobile devices that maintain a wireless connection with the mobile device to conduct a video call, which can greatly improve user experience.
本申请提供了一种一种视频通话的方法,可以在移动设备通过摄像头获取图像数据时,所述移动设备使用与所述移动设备无线连接的其他具有摄像头的移动设备获取图像数据,并将获取的数据应用于手机上的应用。This application provides a video call method. When a mobile device obtains image data through a camera, the mobile device uses other mobile devices with cameras that are wirelessly connected to the mobile device to obtain image data, and obtain The data is applied to the application on the phone.
应理解,视频是连续的图像序列,是多帧相互关联的图像,是动态的,也称为视频流,本申请实施例中所述的视频数据,可以是移动设备中拍摄的图片或者视频,本申请并不做限制。It should be understood that a video is a continuous image sequence, which is a multi-frame interconnected image, and is dynamic, also called a video stream. The video data described in the embodiments of this application may be pictures or videos taken in a mobile device. This application is not restricted.
在此,列举几个本申请技术方案的使用场景,仅作为示例,并不限制本申请技术方案的使用场景。Here, several usage scenarios of the technical solutions of the present application are listed, which are only examples and do not limit the use scenarios of the technical solutions of the present application.
场景一:驾驶场景Scene 1: Driving scene
在驾驶场景下,用户上车之前正在使用手机进行视频通话,进入汽车驾驶舱,开始驾车后,用户可以将手机放置在中控处,手机摄像头无法拍摄到人脸画面,只能语音通话,用户也可以将手机固定在汽车方向盘附近,朝向人脸正面,但这样有可能会造成驾驶风险,这些操作体验都不够良好。In the driving scenario, the user is using the mobile phone to make a video call before getting into the car, enters the car cockpit, and starts driving, the user can place the mobile phone in the central control, the mobile phone camera cannot capture the face image, only voice calls, the user You can also fix the mobile phone near the steering wheel of the car, facing the front of the human face, but this may cause driving risks, and these operating experiences are not good enough.
未来部分智能汽车驾驶仪表盘有汽车自带的摄像头,如果进入车内后,用户的手机可以与汽车仪表盘上的摄像头无线连接,手机可以直接使用汽车仪表盘的摄像头获取视频数据,则可以在驾驶汽车的同时,无需专门放置或拿起手机。手机使用汽车仪表盘上的摄像头用于视频通话,可以通过以下几种方式,例如手机在视频通话过程中,手机与汽车内的一个摄像头建立连接后,手机自动将前置摄像头切换到汽车内的摄像头,也就是手机利用汽车内的摄像头采集的数据进行视频通话;还可以手机接收到用户的语音指令后切换摄像头,或者,手机与汽车内的一个摄像头建立连接后,手机在视频通话界面上显示汽车内摄像头的标识,手机检测到用户点击汽车内摄像头的标识后,手机将将前置摄像头切换到汽车内的摄像头,也就是手机利用汽车内的摄像头采集的数据进行视频通话。应理解,当手机与汽车内多个摄像头(例如,仪表盘摄像头,还有行车记录仪的摄像头等),也可以采用前述的三种方式选择进行视频通话的摄像头,如果是手机自动选择摄像头,手机可以根据默认设置,或者常用的选择,或者,上一次选择来确定自动切换汽车内的哪个摄像头。可选的,手机检测到进入车内,手机可以自动切换摄像头,或者通过用户的语音指令进行摄像头的切换,或者在视频通话的交互界面进行手动切换。手机应用直接使用仪表盘的摄像头获取图像,从而使视频通话的对端也可以看到驾驶人的正面画面,则可以为用户提供更加友好的使用体验。手机可以在进行视频通话时使用行车记录仪的画面,为视频通话的对端用户进行旅途景色分享等。In the future, some smart car driving dashboards have their own cameras. If the user’s mobile phone can be connected to the camera on the dashboard of the car wirelessly after entering the car, the mobile phone can directly use the camera on the dashboard of the car to obtain video data. While driving the car, there is no need to place or pick up the phone. The mobile phone uses the camera on the dashboard of the car for video calls. You can use the following methods. For example, when the mobile phone is in a video call, after the mobile phone establishes a connection with a camera in the car, the mobile phone automatically switches the front camera to the camera in the car. The camera, that is, the mobile phone uses the data collected by the camera in the car to make a video call; the mobile phone can also switch the camera after receiving the user's voice command, or after the mobile phone is connected with a camera in the car, the mobile phone displays on the video call interface The logo of the camera in the car. After the mobile phone detects that the user clicks on the logo of the camera in the car, the mobile phone will switch the front camera to the camera in the car, that is, the mobile phone uses the data collected by the camera in the car to make a video call. It should be understood that when the mobile phone and multiple cameras in the car (for example, the dashboard camera, and the camera of the driving recorder, etc.), the aforementioned three methods can also be used to select the camera for the video call. If the mobile phone automatically selects the camera, The mobile phone can determine which camera in the car to automatically switch according to the default setting, or the commonly used selection, or the last selection. Optionally, when the mobile phone detects that it enters the car, the mobile phone can automatically switch the camera, or switch the camera through the user's voice command, or manually switch on the interactive interface of the video call. The mobile phone application directly uses the camera of the dashboard to obtain images, so that the opposite end of the video call can also see the front view of the driver, which can provide users with a more friendly experience. The mobile phone can use the screen of the driving recorder when making a video call, and share the journey scenery for the peer user of the video call.
场景二:家居场景Scene 2: Home scene
现在家庭中的电子设备比较丰富,不同设备有自己的优势能力,例如电视摄像头视角比较宽,电视屏幕大,显示清晰,智能音响放音和拾音效果好。在手机视频时,如果家庭有多人希望参与视频,此时手持手机的话,手机摄像头视角较窄,多人可能无法同时进入手机视频画面,如果将手机放在远处,手机屏幕较小,看不清对面视频画面,此时如果可 以使用客厅电视的摄像头获取视频作为手机应用的视频通话时的视频数据的输入,则多人可以坐在电视对面的沙发上,即可使用电视摄像头进行视频通话,将手机视频画面显示在电视屏幕上,将手机麦克风/扬声器的数据投射到家居智能音箱上,则可以提供体验良好的家居音视频体验。Nowadays, there are a lot of electronic devices in the home, and different devices have their own advantages. For example, the viewing angle of the TV camera is relatively wide, the TV screen is large, the display is clear, and the sound playback and pickup effects of smart speakers are good. In mobile phone video, if there are many people in the family who want to participate in the video, if the mobile phone is held at this time, the viewing angle of the mobile phone camera is narrow, and multiple people may not be able to access the mobile phone video screen at the same time. If the mobile phone is placed far away, the mobile phone screen is smaller. If the video on the opposite side is unclear, if you can use the camera of the TV in the living room to get the video as the input of video data during the video call of the mobile phone application, then multiple people can sit on the sofa opposite to the TV and use the TV camera to make a video call , Display the mobile phone video screen on the TV screen, and project the mobile phone microphone/speaker data to the home smart speaker, which can provide a good home audio and video experience.
场景三:无人机场景Scene 3: UAV scene
当前无人机的普及越来越普遍,但是一般无人机拍摄的视频仅能和无人机厂商的应用配合。用户放飞无人机时,用户在手机上通过相应的应用观看。如果能够让手机上的应用进行拍摄时可以使用使用无人机的摄像头,例如,可以利用无人机的摄像头拍摄图片,则可以提供一种全新的拍摄体现,或者手机上的应用进行视频通话时,利用无人机摄像头拍摄的视频画面代替手机前置摄像头拍摄的视频画面,这样进行视频通话的对端可以看到无人机摄像头拍摄的视频画面,这样给视频通话的对端提供一种全新的飞行视频观看体验,提供一种更加实时的无人机视角。At present, the popularity of drones is becoming more and more common, but the videos taken by general drones can only cooperate with the applications of drone manufacturers. When the user releases the drone, the user watches through the corresponding application on the mobile phone. If the camera of the drone can be used when the application on the mobile phone is used for shooting, for example, the camera of the drone can be used to take a picture, it can provide a brand-new shooting embodiment, or when the application on the mobile phone makes a video call , The video screen shot by the drone camera is used instead of the video screen shot by the front camera of the mobile phone, so that the opposite end of the video call can see the video screen shot by the drone camera, which provides a brand new The flight video viewing experience provides a more real-time drone perspective.
这些场景下,都需要手机侧能够提供一种通用的外部摄像头的视频流获取方案,同时要保证不需要手机已有的应用进行适配修改即可使用所述其他设备视频流,以利于所述方法的使用和推广,因此需要做到使用外部摄像头数据时,用于视频通话的应用无需进行适配。In these scenarios, the mobile phone side is required to provide a universal external camera video stream acquisition solution, and at the same time, it is necessary to ensure that the video streams of other devices can be used without adapting and modifying the existing applications of the mobile phone, so as to facilitate the The use and promotion of the method requires that the application used for video calls does not need to be adapted when using external camera data.
图2是本申请实施例提供的一种视频通话的方法的流程性示意图。Fig. 2 is a schematic flowchart of a video call method provided by an embodiment of the present application.
S101,第一设备与第二设备建立视频通话。S101: The first device establishes a video call with the second device.
本申请的技术方案可以应用于具有至少一个摄像头的第一设备,第一设备利用至少一个摄像头和一个应用与第二设备建立视频通话,第一设备和第二设备均安装有相同应用,该应用具有视频通话功能。The technical solution of this application can be applied to a first device having at least one camera. The first device uses at least one camera and an application to establish a video call with a second device. The first device and the second device are both installed with the same application. With video call function.
应理解,该应用为视频通话应用,或者该应用为具有视频通话功能的应用,例如微信(WeChat)。It should be understood that the application is a video call application, or the application is an application with a video call function, such as WeChat.
S102,第一设备显示标识信息。S102: The first device displays identification information.
其中,标识信息可以包括一个图标,图标和文字,控件,控件或文字,本申请并不限制其具体形式。Wherein, the identification information may include an icon, icon and text, control, control or text, and this application does not limit its specific form.
第一设备利用至少一个摄像头和应用与第二设备建立视频通话之后,将与第一设备保持无线连接且具有摄像头的至少一个第三设备的标识信息显示在进行视频通话的交互界面上。After the first device uses the at least one camera and the application to establish a video call with the second device, the identification information of the at least one third device that maintains a wireless connection with the first device and has a camera is displayed on the interactive interface for the video call.
如图3至图5所示,第一标识信息可以对应的是外部摄像头,第二标识信息对应的是无人机,第三标识信息对应的是无线电视,图3是本申请实施例提供的用户选择移动设备交互界面上的第一标识信息后,使用外部摄像头获取图像在第一设备和第二设备建立的视频通话的交互界面上的显示,图4是本申请实施例提供的用户选择移动设备交互界面上的第二标识信息后,使用无人机获取图像在第一设备和第二设备建立的视频通话的交互界面上的显示,图5是本申请实施例提供的用户选择移动设备交互界面上的第三标识信息后,使用无线电视图像在第一设备和第二设备建立的视频通话的交互界面上的显示,其中,第三标识信息可以隐藏在总的标识信息中,用户点击标识信息后显示具体地标识信息。As shown in Figures 3 to 5, the first identification information can correspond to an external camera, the second identification information can correspond to a drone, and the third identification information can correspond to a wireless TV. Figure 3 is provided by an embodiment of the application. After the user selects the first identification information on the interactive interface of the mobile device, the external camera is used to obtain the image displayed on the interactive interface of the video call established by the first device and the second device. After the second identification information on the device interactive interface, the drone is used to obtain the image displayed on the interactive interface of the video call established by the first device and the second device. Figure 5 shows the user's choice of mobile device interaction provided by this embodiment of the application. After the third identification information on the interface, the wireless TV image is displayed on the interactive interface of the video call established by the first device and the second device. The third identification information can be hidden in the total identification information. Specific identification information is displayed after the information.
应理解,第一标识信息,第二标识信息和第三标识信息可以是具体地文字或者特殊标记或者是菜单按钮,对于菜单按钮需要用户点击才会显示详细选项或在其他交互界面进行显示,如图3至图5所示。It should be understood that the first identification information, the second identification information, and the third identification information can be specific texts or special marks or menu buttons. The menu buttons require the user to click to display detailed options or display on other interactive interfaces, such as Shown in Figure 3 to Figure 5.
可选的,在如图3或图4的第一设备的视频通话界面上,被选择的标识信息相对于其他标识信息突出显示,以提示用户当前获取视频数据的设备。此外,第一设备的视频通话界面上显示的多个标识信息中,除了与第一设备保持无线连接的至少一个第三设备的标识信息,还包括第一设备的至少一个摄像头(例如显示全部前后摄像头的标识信息,或者部分摄像头的标识信息)。Optionally, on the video call interface of the first device as shown in FIG. 3 or FIG. 4, the selected identification information is highlighted relative to other identification information to remind the user of the device currently acquiring video data. In addition, among the multiple identification information displayed on the video call interface of the first device, in addition to the identification information of at least one third device that maintains a wireless connection with the first device, it also includes at least one camera of the first device (for example, displaying all front and back The identification information of the camera, or the identification information of some cameras).
可选地,用户选择第一标识信息的方式可以是点击第一标识信息,也可以是通过语音指令进行选择,或者检测到与第一设备无线连接的设备在历史中选择过标识信息,自动选择该标识信息,本申请并不限制用户选择第一标识信息的方式。Optionally, the way for the user to select the first identification information can be to click on the first identification information, or to select through a voice command, or it is detected that a device wirelessly connected to the first device has selected the identification information in the history, and it is automatically selected With regard to the identification information, this application does not limit the way for the user to select the first identification information.
S103,第一设备确定第一标识信息。S103: The first device determines first identification information.
第一设备检测到用户作用于交互界面上第一标识信息的预设操作时,触发第一标识信息对应的设备的至少一个摄像头采集视频数据,第一标识信息是具有摄像头的至少一个第三设备的标识信息中的一个。When the first device detects that the user acts on the preset operation of the first identification information on the interactive interface, it triggers at least one camera of the device corresponding to the first identification information to collect video data, and the first identification information is at least one third device with a camera One of the identification information.
可选地,预设操作可以是用户点击标识信息,或用户语音指示选择标识信息,或根据用户的历史记录进行自动选择。Optionally, the preset operation may be that the user clicks on the identification information, or the user voice instruction selects the identification information, or automatically selects the identification information according to the user's history.
S104,第一设备获取视频数据。S104: The first device obtains video data.
第一设备获取第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。The first device obtains the video data collected by the at least one camera of the device corresponding to the first identification information, and uses the video data collected by the at least one camera of the device corresponding to the first identification information for a video call.
应理解,用户可以选择多个设备中的任意一个设备(例如第三设备)的摄像头获取视频数据,应理解,该第三设备为至少一个第三设备中的一个,第一设备内部的应用程序可以获取到该第三设备的摄像头获取的视频数据,但是所述应用程序认为仍然在使用第一设备的至少一个摄像头,该第三设备的摄像头相当于第一设备本地的虚拟摄像头,该应用程序从使用第一设备的至少一个摄像头获取的视频数据切换到使用第三设备设备的摄像头获取的视频数据,而应用程序无感知,通过外部设备的摄像头可以获得更好的视角,提升了用户体验。It should be understood that the user can select the camera of any one of the multiple devices (for example, a third device) to obtain video data. It should be understood that the third device is one of at least one third device, and the application program inside the first device The video data obtained by the camera of the third device can be obtained, but the application program thinks that at least one camera of the first device is still being used. The camera of the third device is equivalent to the local virtual camera of the first device. Switching from the video data obtained by using the at least one camera of the first device to the video data obtained by using the camera of the third device device, and the application is unaware, a better viewing angle can be obtained through the camera of the external device, which improves the user experience.
可选地,第一设备获取第一标识信息对应的设备的至少一个摄像头采集的视频数据后,将不再获取第一设备的至少一个摄像头采集的视频数据,并将第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话,即第一设备直接通过外部设备采集的视频数据,并将外部摄像头采集的视频数据用于视频通话。Optionally, after the first device obtains the video data collected by the at least one camera of the device corresponding to the first identification information, it will no longer obtain the video data collected by the at least one camera of the first device, and the device corresponding to the first identification information The video data collected by at least one camera is used for the video call, that is, the video data collected by the first device directly through the external device, and the video data collected by the external camera is used for the video call.
可选地,第一设备获取第一标识信息对应的设备的至少一个摄像头采集的视频数据,且获取第一设备的至少一个摄像头采集的视频数据,并将第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话,即第一设备同时获取本地摄像头和外部设备头采集的视频数据,并将外部摄像头采集的视频数据用于视频通话。Optionally, the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and obtains the video data collected by at least one camera of the first device, and compares at least one of the devices corresponding to the first identification information The video data collected by the camera is used for the video call, that is, the first device simultaneously obtains the video data collected by the local camera and the external device head, and uses the video data collected by the external camera for the video call.
可选地,第一设备获取第一标识信息对应的设备的至少一个摄像头采集的视频数据,且获取第一设备的至少一个摄像头采集的视频数据,并将第一标识信息对应的设备的至少一个摄像头采集的视频数据和第一设备的至少一个摄像头采集的视频数据用于视频通话,即第一设备同时获取本地摄像头和外部设备头采集的视频数据,并将本地摄像头和外部摄像头采集的视频数据用于视频通话。Optionally, the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and obtains the video data collected by at least one camera of the first device, and compares at least one of the devices corresponding to the first identification information The video data collected by the camera and the video data collected by at least one camera of the first device are used for the video call, that is, the first device simultaneously obtains the video data collected by the local camera and the external device head, and combines the video data collected by the local camera and the external camera Used for video calls.
可选地,视频通话的方法还可以包括:第一设备检测到用户作用于交互界面上第二标识信息的预设操作时,触发第二标识信息对应的设备的至少一个摄像头采集视频数据,第二标识信息是具有摄像头的至少一个第三设备的标识信息中的一个,第一设备获取第二标 识信息对应的设备的至少一个摄像头采集的视频数据,并将第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。用户可以选取其他标识信息对应的设备的至少一个摄像头用于获取视频通话需要的视频数据,可以自如的进行切换。Optionally, the video call method may further include: when the first device detects that the user performs a preset operation on the second identification information on the interactive interface, triggering at least one camera of the device corresponding to the second identification information to collect video data, and The second identification information is one of the identification information of at least one third device with a camera. The first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and compares the Video data collected by a camera is used for video calls. The user can select at least one camera of the device corresponding to other identification information to obtain the video data required for the video call, and can switch freely.
可选地,第一设备获取第二标识信息对应的设备的至少一个摄像头采集的视频数据,且不再获取第一设备的至少一个摄像头和第一标识信息采集的视频数据,并将第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。用户切换外部摄像头后,可以不再获取之前应用过的摄像头的视频数据。Optionally, the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and no longer obtains the video data collected by the at least one camera of the first device and the first identification information, and sets the second identification The video data collected by at least one camera of the device corresponding to the information is used for the video call. After the user switches the external camera, the video data of the previously applied camera can no longer be obtained.
可选地,第一设备获取第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取第一设备的至少一个摄像头和第一标识信息采集的视频数据,并将第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。用户切换外部摄像头后,还可以获取之前应用过的摄像头的视频数据,可以存储在存储器或云端,用于稍后观看。Optionally, the first device obtains video data collected by at least one camera of the device corresponding to the second identification information, and obtains the video data collected by at least one camera of the first device and the first identification information, and corresponds to the second identification information The video data collected by at least one camera of the device is used for video calls. After switching the external camera, the user can also obtain the video data of the previously applied camera, which can be stored in the memory or the cloud for later viewing.
可选地,第一设备获取第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取第一设备的至少一个摄像头采集的视频数据,不获取第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将第二标识信息对应的设备的至少一个摄像头和第一设备的至少一个摄像头采集的视频数据用于视频通话。用户切换外部摄像头后,还可以不获取之前应用过的外部摄像头的视频数据,只获取本地摄像头的视频数据,可以存储在存储器或云端,用于稍后观看。Optionally, the first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and acquires video data collected by at least one camera of the first device, but does not acquire at least one of the devices corresponding to the first identification information The video data collected by the camera, and the video data collected by the at least one camera of the device corresponding to the second identification information and the at least one camera of the first device are used for the video call. After the user switches the external camera, the user may not obtain the video data of the previously applied external camera, but only obtain the video data of the local camera, which can be stored in the memory or the cloud for later viewing.
可选地,第一设备获取第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取第一标识信息对应的设备的至少一个摄像头采集的视频数据,不获取第一设备的至少一个摄像头采集的视频数据,并将第二标识信息对应的设备的至少一个摄像头和第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。用户切换外部摄像头后,还可以不获取本地摄像头的视频数据,只获取之前应用过的外部摄像头的视频数据,可以存储在存储器或云端,用于稍后观看。Optionally, the first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and acquires video data collected by at least one camera of the device corresponding to the first identification information, without acquiring at least one of the first device The video data collected by the camera, and the video data collected by at least one camera of the device corresponding to the second identification information and at least one camera of the device corresponding to the first identification information are used for the video call. After the user switches the external camera, it is not necessary to obtain the video data of the local camera, but only obtain the video data of the previously applied external camera, which can be stored in the memory or the cloud for later viewing.
可选地,第一设备获取第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取第一设备的至少一个摄像头和第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将第一标识信息对应的设备的至少一个摄像头以及第二标识信息对应的设备的至少一个摄像头采集的视频数据和第一设备的至少一个摄像头采集的视频数据用于视频通话。Optionally, the first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and acquires video data collected by at least one camera of the first device and at least one camera of the device corresponding to the first identification information, The video data collected by the at least one camera of the device corresponding to the first identification information and the at least one camera of the device corresponding to the second identification information and the video data collected by the at least one camera of the first device are used for the video call.
可选地,应用程序在使用第一标识信息对应的设备的至少一个摄像头之前,第一设备可以根据第一设备的至少一个摄像头的配置参数对第一标识信息对应的设备的至少一个摄像头进行配置。Optionally, before the application uses the at least one camera of the device corresponding to the first identification information, the first device may configure the at least one camera of the device corresponding to the first identification information according to the configuration parameters of the at least one camera of the first device .
可选地,应用程序在使用第二标识信息对应的设备的至少一个摄像头之前,第一设备可以根据第一设备的至少一个摄像头的配置参数对第二标识信息对应的设备的至少一个摄像头进行配置。Optionally, before the application uses the at least one camera of the device corresponding to the second identification information, the first device may configure the at least one camera of the device corresponding to the second identification information according to the configuration parameters of the at least one camera of the first device .
应理解,使用第一设备的至少一个摄像头的配置参数对外部的至少一个摄像头进行配置,可以使外部摄像头获取的视频数据与本地摄像头获取的视频数据的清晰度等格式相同,方便进行相关处理。It should be understood that using the configuration parameters of the at least one camera of the first device to configure the at least one external camera can make the video data obtained by the external camera and the video data obtained by the local camera have the same format, for example, to facilitate related processing.
可选地,第一设备可以在进行视频通话的交互界面上还包括与第一设备保持无线连接且具有至少一个麦克风的第四设备的第三标识信息;第一设备检测到用户作用于交互界面上第三标识信息的预设操作时,触发第三标识信息对应的设备利用至少一个麦克风采集音 频数据;第一设备获取第三标识信息对应的设备的至少一个麦克风采集的音频数据,并将第三标识信息对应的设备至少一个麦克风采集的音频数据用于视频通话。Optionally, the first device may further include third identification information of a fourth device that maintains a wireless connection with the first device and has at least one microphone on the interactive interface for the video call; the first device detects that the user acts on the interactive interface During the preset operation of the third identification information, the device corresponding to the third identification information is triggered to use at least one microphone to collect audio data; the first device acquires the audio data collected by the at least one microphone of the device corresponding to the third identification information, and then The audio data collected by at least one microphone of the device corresponding to the three identification information is used for the video call.
可选地,第一设备可以在进行视频通话的交互界面上还包括与第一设备保持无线连接且具有至少一个扬声器的第五设备的第四标识;第一设备检测到用户作用于交互界面上第四标识的预设操作时,将视频通话中接收到的音频数据发送给第四标识对应的设备,并触发第四标识对应的设备播放接收到的音频数据。Optionally, the first device may further include a fourth identifier of the fifth device that maintains a wireless connection with the first device and has at least one speaker on the interactive interface for the video call; the first device detects that the user acts on the interactive interface During the preset operation of the fourth identifier, the audio data received in the video call is sent to the device corresponding to the fourth identifier, and the device corresponding to the fourth identifier is triggered to play the received audio data.
用户还可以应用外部的麦克风进行音频的数据采集,也可以应用外部的扬声器对视频通话中的音频数据进行播放。Users can also use an external microphone to collect audio data, or use an external speaker to play audio data in a video call.
可选地,第一设备可以在进行视频通话的交互界面上还包括与第一设备保持无线连接且具有至少一个麦克风和至少一个扬声器的第六设备的第五标识;第一设备检测到用户作用于交互界面上第五标识的预设操作时,触发第五标识对应的设备利用至少一个麦克风采集音频数据,将视频通话中接收到的音频数据发送给第五标识对应的设备,并触发第五标识对应的设备播放接收到的音频数据;第一设备获取第五标识对应的设备的至少一个麦克风采集的音频数据,并将至少一个麦克风采集的音频数据用于视频通话。Optionally, the first device may further include a fifth identifier of a sixth device that maintains a wireless connection with the first device and has at least one microphone and at least one speaker on the interactive interface for making a video call; the first device detects the user action During the preset operation of the fifth identifier on the interactive interface, the device corresponding to the fifth identifier is triggered to collect audio data using at least one microphone, and the audio data received in the video call is sent to the device corresponding to the fifth identifier, and the fifth identifier is triggered. The device corresponding to the identifier plays the received audio data; the first device acquires audio data collected by at least one microphone of the device corresponding to the fifth identifier, and uses the audio data collected by the at least one microphone for a video call.
可选地,第一设备获取第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话,包括:第一设备获取第一标识信息对应的设备的至少一个摄像头采集的视频数据,且获取第一设备的至少一个摄像头采集的视频数据,并将第一设备的至少一个摄像头采集的视频数据存储在第一设备的存储器中,并将第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。Optionally, the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and uses the video data collected by the at least one camera of the device corresponding to the first identification information for the video call, including: The device acquires video data collected by at least one camera of the device corresponding to the first identification information, acquires video data collected by at least one camera of the first device, and stores the video data collected by at least one camera of the first device in the first device And use the video data collected by at least one camera of the device corresponding to the first identification information in the video call.
可选地,第一设备的至少一个摄像头采集的视频数据也可以上传到云端服务器进行保存,以供用户查询。Optionally, the video data collected by the at least one camera of the first device can also be uploaded to the cloud server for storage for the user to query.
可选地,本申请还提供了一种拍照的方法。Optionally, this application also provides a method for taking pictures.
S201,第一设备呈现多个设备中的每个设备的标识信息。S201: The first device presents identification information of each of the multiple devices.
其中,第一设备具有至少一个摄像头,多个设备包括第一设备和至少一个第三设备,至少一个第三设备与第一设备无线连接,且至少一个第三设备均具有摄像头。The first device has at least one camera, the multiple devices include the first device and at least one third device, at least one third device is wirelessly connected to the first device, and at least one third device has a camera.
可选地,可以在第一设备的交互界面上显示多个标识信息,用于指示可选择的设备。Optionally, multiple pieces of identification information may be displayed on the interactive interface of the first device to indicate selectable devices.
可选地,至少一个第三设备均安装相应的应用,该应用可以用于第一设备与至少一个第三设备之间进行数据传输,例如,第一设备可以向第三设备发送拍摄指令或配置信息等,第三设备可以向第一设备发送拍摄的图像或摄像头的能力信息。Optionally, at least one third device is installed with a corresponding application. The application can be used for data transmission between the first device and the at least one third device. For example, the first device can send a shooting instruction or configuration to the third device. Information, etc., the third device may send the captured image or camera capability information to the first device.
可选地,第一设备可以在至少一个摄像头对应的交互界面上呈现所述多个设备中的每个设备的标识信息,即当第一设备的应用程序调用至少一个摄像头获取图像数据时,可以在所述应用程序的交互界面上显示标识信息。Optionally, the first device may present the identification information of each of the multiple devices on the interactive interface corresponding to the at least one camera, that is, when the application of the first device calls at least one camera to obtain image data, The identification information is displayed on the interactive interface of the application program.
可选地,无线连接是通过蓝牙协议、Wi-Fi协议、NFC协议或移动通信协议中任意一种实现的。Optionally, the wireless connection is realized through any one of Bluetooth protocol, Wi-Fi protocol, NFC protocol or mobile communication protocol.
其中,移动通信协议可以包括2G标准协议,3G标准协议,4G标准协议或者是,5G标准协议,6G标准协议或者,6G后续标准协议等。Among them, the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol or 5G standard protocol, 6G standard protocol or 6G follow-up standard protocol, etc.
S202,第一设备响应用户操作,以从多个设备中确定目标设备。S202: The first device responds to a user operation to determine a target device from multiple devices.
可选地,当用户对第一设备的交互界面上显示的标识信息进行操作时,用户可以执行预设操作,预设操作可以是用户点击第一设备的交互界面上显示的标识信息,也可以用户 从左向右滑动第一设备的交互界面上显示的标识信息等。第一设备可以预先存储预设操作,当用户完成预设操作后,根据用户操作确定目标设备。Optionally, when the user performs an operation on the identification information displayed on the interactive interface of the first device, the user may perform a preset operation. The preset operation may be that the user clicks on the identification information displayed on the interactive interface of the first device, or The user slides the identification information displayed on the interactive interface of the first device from left to right. The first device may store preset operations in advance, and when the user completes the preset operations, the target device is determined according to the user operations.
可选地,预设操作可以是用户点击标识信息,或用户语音指示选择标识信息,或根据用户的历史记录进行自动选择。Optionally, the preset operation may be that the user clicks on the identification information, or the user voice instruction selects the identification information, or automatically selects the identification information according to the user's history.
可选地,第一设备可以向目标设备发送拍摄指令,第一设备可以接收目标设备根据拍摄指令拍摄的图像,拍摄指令可以指示目标设备进行拍摄的时间等信息。Optionally, the first device may send a shooting instruction to the target device, and the first device may receive an image captured by the target device according to the shooting instruction, and the shooting instruction may instruct the target device to shoot time and other information.
可选地,当目标设备为至少一个第三设备中的一个第三设备时,第一设备可以根据所述至少一个摄像头的配置,生成第一配置信息,并向所述目标设备发送第一配置信息。Optionally, when the target device is a third device among at least one third device, the first device may generate first configuration information according to the configuration of the at least one camera, and send the first configuration information to the target device information.
可选地,第一设备可以获取第二配置信息,第二配置信息用于指示目标设备的至少一个摄像头的配置,并根据第一设备的至少一个摄像头的配置和第二配置信息,生成第一配置信息。Optionally, the first device may obtain second configuration information, the second configuration information is used to indicate the configuration of at least one camera of the target device, and the first device is generated according to the configuration of the at least one camera of the first device and the second configuration information. Configuration information.
S203,第一设备获取并呈现目标设备拍摄的图像。S203: The first device acquires and presents an image taken by the target device.
可选地,当目标设备为至少一个第三设备中的一个第三设备时,第一设备在呈现目标设备拍摄的图像时,关闭第一设备的至少一个摄像头。Optionally, when the target device is a third device among the at least one third device, the first device turns off at least one camera of the first device when presenting an image taken by the target device.
可选地,多个设备还可以包括至少一个第四设备,至少一个第四设备与第一设备无线连接,且至少一个第四设备均具有麦克风。当用户对交互界面上显示的对应于第四设备的标识信息进行操作时,可以触发对应的第四设备的麦克风获取音频数据,并将获取的音频数据传输至第一设备。Optionally, the multiple devices may further include at least one fourth device, at least one fourth device is wirelessly connected to the first device, and at least one fourth device has a microphone. When the user operates the identification information corresponding to the fourth device displayed on the interactive interface, the microphone of the corresponding fourth device can be triggered to acquire audio data, and the acquired audio data can be transmitted to the first device.
可选地,多个设备还可以包括至少一个第五设备,至少一个第五设备与第一设备无线连接,且至少一个第五设备均具有扬声器。当用户对交互界面上显示的对应于第五设备的标识信息进行操作时,将用于当前运行的应用程序的音频数据发送至对应的第五设备,并触发所对应的第五设备的扬声器播放音频数据。Optionally, the multiple devices may further include at least one fifth device, the at least one fifth device is wirelessly connected to the first device, and each of the at least one fifth device has a speaker. When the user performs an operation on the identification information corresponding to the fifth device displayed on the interactive interface, the audio data for the currently running application is sent to the corresponding fifth device, and the speaker of the corresponding fifth device is triggered to play Audio data.
可选地,多个设备还可以包括至少一个第六设备,至少一个第六设备与第一设备无线连接,且具有至少一个麦克风和至少一个扬声器,第一设备检测到用户作用于交互界面上对应于第六设备的标识信息进行操作时,触发第六设备利用至少一个麦克风采集音频数据,将接收到的音频数据发送给扬声器,并播放接收到的音频数据。Optionally, the multiple devices may also include at least one sixth device, at least one sixth device is wirelessly connected to the first device, and has at least one microphone and at least one speaker, and the first device detects that the user acts on the interactive interface. When the identification information of the sixth device is operated, the sixth device is triggered to collect audio data by using at least one microphone, send the received audio data to the speaker, and play the received audio data.
应理解,第四设备,第五设备,第六设备获取的数据信息均可以应用于第一设备的视频通话中,第四设备,第五设备,第六设备可以分别对应于第三标识信息,第四标识信息和第五标识信息,本申请并不做限制。It should be understood that the data information obtained by the fourth device, the fifth device, and the sixth device can all be applied to the video call of the first device, and the fourth device, the fifth device, and the sixth device can respectively correspond to the third identification information, The fourth identification information and fifth identification information are not limited in this application.
图6是本申请实施例提供的一种第一设备的软件架构的示意图。Fig. 6 is a schematic diagram of a software architecture of a first device provided by an embodiment of the present application.
本实施例以安卓(android)系统为例,分层架构将软件分成若干个层,层与层之间通过软件接口通信。在一些实施例中,将安卓系统分为四层,从上至下分别为应用层,应用框架层(application framework,FWK),硬件抽象层(hardware abstraction layer,HAL)以及内核层(kernel)。In this embodiment, an Android system is taken as an example. The layered architecture divides the software into several layers, and the layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer (FWK), the hardware abstraction layer (HAL), and the kernel layer (kernel).
应用框架层为应用层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications at the application layer. The application framework layer includes some predefined functions.
应用框架层可以包括窗口管理器,内容提供器,视图系统,资源管理器等。The application framework layer can include window managers, content providers, view systems, resource managers, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以 包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
例如,在本申请中,内容控制器可以实时获取预览界面中获取到的图像,并将处理之后的图像显示在应用程序的相应交互界面中。For example, in this application, the content controller can acquire the image acquired in the preview interface in real time, and display the processed image in the corresponding interactive interface of the application program.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由至少一个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text and controls that display pictures. The view system can be used to build applications. The display interface can be composed of at least one view. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
例如,在本申请中,交互界面上显示的“第一标识信息”等内容,可以由视图系统接收处理器的指示进行显示,用于提醒可供选择的外部摄像头等信息。For example, in this application, content such as "first identification information" displayed on the interactive interface may be displayed by the view system receiving an instruction from the processor, and used for reminding information such as available external cameras.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
硬件抽象层是位于内核层与硬件电路之间的接口层,其目的在于将硬件抽象化。它隐藏了特定平台的硬件接口细节,为操作系统提供虚拟硬件平台,使其具有硬件无关性,可在多种平台上进行移植。The hardware abstraction layer is the interface layer between the kernel layer and the hardware circuit, and its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform, provides a virtual hardware platform for the operating system, makes it hardware-independent, and can be transplanted on multiple platforms.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
在安卓系统中,摄像系统分别位于为应用框架层,硬件抽象层以及内核层。移动设备的应用,例如拍摄,视频等,使用应用框架层的标准摄像头API操作本地摄像头获取图像。硬件抽象层和应用框架层之间,定义了标准接口,用于应用框架层和硬件抽象层业务通信。内核层是移动设备的摄像头的驱动层,被硬件抽象层摄像头模块调用,操作摄像头的硬件器件。In the Android system, the camera system is located at the application framework layer, hardware abstraction layer, and kernel layer. Mobile device applications, such as shooting, video, etc., use the standard camera API of the application framework layer to operate the local camera to obtain images. Between the hardware abstraction layer and the application framework layer, a standard interface is defined for business communication between the application framework layer and the hardware abstraction layer. The kernel layer is the driver layer of the camera of the mobile device, which is called by the hardware abstraction layer camera module to operate the hardware device of the camera.
本申请实施例中,在硬件抽象层增加了数据切换模块,用于用户选择的标识信息对应的至少一个第三设备中的一个第三设备为目标设备后,第一设备采用第三设备的摄像头获取图像,第一设备可以按照执行如下流程完成数据切换,以实现呈现目标设备拍摄的图像。In the embodiment of the present application, a data switching module is added to the hardware abstraction layer. After one of the at least one third device corresponding to the identification information selected by the user is the target device, the first device adopts the camera of the third device After acquiring the image, the first device can complete the data switching according to the following process, so as to display the image taken by the target device.
应理解,本申请实施例以第一设备与至少一个第三设备保持无线连接作为例子进行说明,并不限制其余不同种类的设备实现本申请的技术方案。图6的左侧为第一设备的内部软件框架,需要说明的是:第一设备的应用场景包括第一设备与第二设备分别利用第二应用和各自的摄像头进行视频通话,且第一设备与第三设备保持无线连接。It should be understood that, in this embodiment of the present application, the first device and at least one third device maintain a wireless connection as an example for description, and it does not limit other devices of different types to implement the technical solutions of the present application. The left side of Figure 6 is the internal software framework of the first device. It should be noted that: the application scenario of the first device includes the first device and the second device respectively using the second application and their respective cameras to make video calls, and the first device Maintain a wireless connection with the third device.
1)第一设备的数据切换模块获取第一设备的至少一个摄像头的图像格式信息,并将图像格式信息发送到数据传输通道模块。1) The data switching module of the first device obtains image format information of at least one camera of the first device, and sends the image format information to the data transmission channel module.
可选地,图像格式信息可以包括提供为第一设备提供图像所述格式信息数据的数据流的数量,每一路数据流的分辨率,帧率,色彩空间等信息。Optionally, the image format information may include information such as the number of data streams that provide the format information data for the first device to provide the image, the resolution, frame rate, and color space of each data stream.
2)第一设备的数据传输通道模块接收数据切换模块发送的图像格式信息,根据图像格式信息确定目标设备的至少一个摄像头的第一配置信息,并向目标设备发送第一配置信息。2) The data transmission channel module of the first device receives the image format information sent by the data switching module, determines the first configuration information of at least one camera of the target device according to the image format information, and sends the first configuration information to the target device.
可选地,目标设备安装有相应的应用,其中,该应用可以用于第一设备与目标设备之间进行信令交互以及数据传输,该应用中包括与第一设备适配的通信协议,传输参数等。Optionally, the target device is installed with a corresponding application, where the application can be used for signaling interaction and data transmission between the first device and the target device, and the application includes a communication protocol adapted to the first device. Parameters etc.
可选地,该应用可以安装在目标设备的适配模块中。Optionally, the application can be installed in an adaptation module of the target device.
可选地,适配模块可以是适配软件开发工具包(software development kit,SDK)模块,该应用可以通过SDK模块进行通信。Optionally, the adaptation module may be an adaptation software development kit (SDK) module, and the application may communicate through the SDK module.
可选地,第一设备可以通过数据传输通道模块向目标设备发送第一配置信息,目标设 备侧适配模块可以根据第一配置信息对目标设备的至少一个摄像头进行相关配置,例如,第一配置信息可以指示摄像头获取图像格式的分辨率,帧率,色彩空间等。同时,目标设备的适配模块可以根据第一配置信息为摄像头进行相关配置,目标设备通过摄像头获取视频数据后通过适配模块将获取的视频数据发送至第一设备的数据传输通道模块。Optionally, the first device may send the first configuration information to the target device through the data transmission channel module, and the target device-side adaptation module may perform related configuration on at least one camera of the target device according to the first configuration information, for example, the first configuration The information can instruct the camera to obtain the resolution, frame rate, color space, etc. of the image format. At the same time, the adaptation module of the target device can configure the camera according to the first configuration information. The target device obtains video data through the camera and sends the acquired video data to the data transmission channel module of the first device through the adaptation module.
可选地,数据传输通道模块根据数据切换模块发送的图像格式信息确定对目标设备的第一配置信息时,可以提前获取目标设备的至少一个摄像头的第二配置信息,并根据第一设备的至少一个摄像头的配置和第二配置信息,生成第一配置信息。Optionally, when the data transmission channel module determines the first configuration information for the target device according to the image format information sent by the data switching module, it may obtain the second configuration information of at least one camera of the target device in advance, and according to the at least The configuration of a camera and the second configuration information generate the first configuration information.
可选地,第一设备可以根据第二配置信息屏蔽目标设备的至少一个摄像头不支持的能力。例如,可以提前获取目标设备的至少一个摄像头的分辨率信息,若图像格式信息中要求获取视频分辨率为1080p,而目标设备的至少一个摄像头只能获取分辨率为480p的数据,则数据传输通道模块屏蔽所述图像格式信息中的分辨率,不将该配置随第一配置信息发送至目标设备。Optionally, the first device may shield capabilities that are not supported by at least one camera of the target device according to the second configuration information. For example, the resolution information of at least one camera of the target device can be obtained in advance. If the image format information requires that the video resolution is 1080p, and at least one camera of the target device can only obtain data with a resolution of 480p, then the data transmission channel The module shields the resolution in the image format information, and does not send the configuration along with the first configuration information to the target device.
可选地,如果应用层的应用程序有多路数据获取的请求,则数据传输通道模块与目标设备的适配模块之间可以只有一条数据流,数据传输通道模块在接收到适配模块传输的数据流后,可以将所述数据流传输至多个需求端,例如,第一设备的应用需要将目标设备拍摄的视频同时存储到本地及云端,则数据传输模块可以将适配模块传输的一路数据流传输至本地及云端服务器。由于这样不会占用过多的无线资源,从而可以降低带宽需求和延迟。Optionally, if the application at the application layer has multiple data acquisition requests, there can be only one data stream between the data transmission channel module and the adaptation module of the target device. The data transmission channel module receives the data transmitted by the adaptation module. After the data stream, the data stream can be transmitted to multiple demand ends. For example, if the application of the first device needs to store the video shot by the target device in the local and the cloud at the same time, the data transmission module can transmit the data transmitted by the adaptation module. Stream to local and cloud servers. Since this will not occupy too much wireless resources, bandwidth requirements and delays can be reduced.
可选地,第一设备可以向目标设备发送拍摄指令,拍摄指令可以指示目标设备进行拍摄的时间等信息。Optionally, the first device may send a shooting instruction to the target device, and the shooting instruction may instruct the target device to perform shooting time and other information.
可选地,拍摄指令可以包含于第一配置信息中。Optionally, the shooting instruction may be included in the first configuration information.
3)数据传输通道模块接收到视频数据后,可以根据应用程序业务需求,可能需要对视频数据进行分辨率和色彩空间等相关格式的转换,满足应用程序各路数据流的格式需求,数据传输通道模块获取到有效视频数据后,则认为目标设备的数据源已经准备好,此时数据传输通道模块向数据切换模块发送切换准备完成指令。3) After the data transmission channel module receives the video data, it may need to convert the resolution and color space and other related formats of the video data according to the business requirements of the application to meet the format requirements of each data stream of the application, and the data transmission channel After the module obtains the valid video data, it considers that the data source of the target device is ready, and at this time the data transmission channel module sends a switching preparation completion instruction to the data switching module.
4)数据切换模块收到切换准备完成指令后,通知摄像头设备会话管理模块,可以暂停本地摄像头硬件的图像获取流程,接管摄像头获取请求,转发摄像头获取请求到数据传输通道模块,数据传输通道模块将从目标设备处接收的数据传输给数据切换模块,数据切换模块将所述视频数据填充到摄像头设备会话管理模块的数据返回接口中,此后,获取的视频数据按照原有数据返回流程返回给上层业务,最终,应用程序可以获取到目标设备的至少一个摄像头获取的图像,但是所述应用程序认为仍然在使用第一设备的至少一个摄像头,目标设备的至少一个摄像头相当于第一设备本地的虚拟摄像头,做到了数据从至少一个摄像头切换到目标设备的至少一个摄像头,而应用程序无感知,通过外部设备的摄像头可以获得更好的视角,提升了用户体验。4) After the data switch module receives the instruction to complete the switch preparation, it notifies the camera device session management module, which can suspend the image acquisition process of the local camera hardware, take over the camera acquisition request, forward the camera acquisition request to the data transmission channel module, and the data transmission channel module will The data received from the target device is transmitted to the data switching module, and the data switching module fills the video data into the data return interface of the camera device session management module. After that, the acquired video data is returned to the upper service according to the original data return process Finally, the application program can obtain the image acquired by at least one camera of the target device, but the application program thinks that at least one camera of the first device is still being used, and the at least one camera of the target device is equivalent to the local virtual camera of the first device , The data is switched from at least one camera to at least one camera of the target device, and the application is unaware, and a better viewing angle can be obtained through the camera of the external device, which improves the user experience.
图7是本申请实施例提供的一种第一设备各模块交互的示意图。FIG. 7 is a schematic diagram of interaction between modules of a first device according to an embodiment of the present application.
S401,第一设备检测到用户作用于交互界面上标识信息的预设操作,触发标识对应的设备的至少一个摄像头切换操作,并采集视频数据。S401: The first device detects a user's preset operation on the identification information on the interactive interface, triggers at least one camera switching operation of the device corresponding to the identification, and collects video data.
可选地,预设操作可以是用户点击标识信息,或用户语音指示选择标识信息,或根据用户的历史记录进行自动选择。Optionally, the preset operation may be that the user clicks on the identification information, or the user voice instruction selects the identification information, or automatically selects the identification information according to the user's history.
可选地,第一设备呈现多个设备中的每个设备的标识信息。其中,第一设备具有至少一个摄像头,多个设备包括第一设备和至少一个第三设备,至少一个第三设备与第一设备 无线连接,且至少一个第三设备均具有摄像头。Optionally, the first device presents identification information of each of the multiple devices. Wherein, the first device has at least one camera, the multiple devices include the first device and at least one third device, at least one third device is wirelessly connected to the first device, and at least one third device has a camera.
可选地,当用户对交互界面上显示的标识信息进行操作时,用户可以执行预设操作,预设操作可以是用户点击第一设备的交互界面上显示的标识信息,也可以用户从左向右滑动第一设备的交互界面上显示的标识信息等。第一设备可以预先存储预设操作,当用户完成预设操作后,根据用户操作确定目标设备。Optionally, when the user performs an operation on the identification information displayed on the interactive interface, the user may perform a preset operation. The preset operation may be that the user clicks on the identification information displayed on the interactive interface of the first device, or the user moves from the left to the left Swipe right to the identification information displayed on the interactive interface of the first device. The first device may store preset operations in advance, and when the user completes the preset operations, the target device is determined according to the user operations.
可选地,交互界面可以是应用程序的交互界面,应用程序可以是拍照应用,摄像应用或视频通话应用等需要使用摄像头的应用。Optionally, the interactive interface may be an interactive interface of an application program, and the application program may be an application that requires a camera, such as a camera application, a camera application, or a video call application.
可选地,在至少一个摄像头对应的交互界面上呈现所述多个设备中的每个设备的标识信息,即当第一设备的应用程序调用至少一个摄像头获取视频数据时,可以在所述应用程序的交互界面上显示标识信息。Optionally, the identification information of each of the multiple devices is presented on the interactive interface corresponding to the at least one camera, that is, when the application of the first device calls the at least one camera to obtain video data, the The identification information is displayed on the interactive interface of the program.
S402,数据切换模块判断摄像头切换参数是否合法,并记录是否有正在使用的第一设备的至少一个摄像头。S402: The data switching module judges whether the camera switching parameter is legal, and records whether there is at least one camera of the first device being used.
可选地,摄像头切换参数可以是第一设备的至少一个摄像头的运行状态,目标设备的第一设备的摄像头信息或者当前是否有其他切换任务与本次任务冲突。Optionally, the camera switching parameter may be the operating state of at least one camera of the first device, the camera information of the first device of the target device, or whether other switching tasks currently conflict with this task.
可选地,当第一设备的至少一个摄像头运行时才能进行切换。Optionally, the switching can only be performed when at least one camera of the first device is running.
S403,数据切换模块记录当前正在运行的第一设备的至少一个摄像头的配置。S403: The data switching module records the configuration of at least one camera of the first device currently running.
S404,数据切换模块指示数据传输通道模块与目标设备的适配模块交互,启动对目标设备的至少一个摄像头的连接。S404: The data switching module instructs the data transmission channel module to interact with the adaptation module of the target device, and initiates a connection to at least one camera of the target device.
S405,数据传输模块连接目标设备的适配模块。S405: The data transmission module is connected to the adaptation module of the target device.
可选地,适配模块可以向数据传输模块发送第二配置信息,第二配置信息用于指示目标设备的至少一个摄像头的配置。Optionally, the adaptation module may send second configuration information to the data transmission module, where the second configuration information is used to indicate the configuration of at least one camera of the target device.
S406,数据切换模块获取第二配置信息。S406: The data switching module obtains second configuration information.
S407,数据切换模块可以根据第二配置信息确定目标设备的至少一个摄像头配置,对第一设备的至少一个摄像头接口进行配置,数据切换模块可以根据第一设备的至少一个摄像头的配置和第二配置信息,生成第一配置信息。S407: The data switching module may determine the configuration of at least one camera of the target device according to the second configuration information, and configure the at least one camera interface of the first device, and the data switching module may determine the configuration of at least one camera of the first device and the second configuration Information to generate the first configuration information.
可选地,数据切换模块可以根据第二配置信息屏蔽目标设备的至少一个摄像头不支持的能力。Optionally, the data switching module may shield capabilities that are not supported by at least one camera of the target device according to the second configuration information.
S408,数据传输通道模块向目标设备的适配模块发送第一配置信息,目标设备可以根据第一配置信息对摄像头进行配置。S408: The data transmission channel module sends the first configuration information to the adaptation module of the target device, and the target device can configure the camera according to the first configuration information.
可选地,数据传输通道模块可以向目标设备的适配模块发送拍摄指令,拍摄指令可以指示目标设备进行拍摄的时间等信息。Optionally, the data transmission channel module may send a shooting instruction to the adaptation module of the target device, and the shooting instruction may instruct the target device to perform shooting time and other information.
可选地,拍摄指令可以包含于第一配置信息中。Optionally, the shooting instruction may be included in the first configuration information.
S409,数据切换模块触发数据流和控制流切换的开关,进行摄像头的切换,其中,开关可以位于应用构架层的摄像头单元中。S409: The data switching module triggers a switch for switching the data stream and the control stream to switch the camera, where the switch may be located in the camera unit of the application architecture layer.
S410,数据切换模块指示数据传输通道模块获取目标设备的至少一个摄像头获取的数据流。S410: The data switching module instructs the data transmission channel module to obtain a data stream obtained by at least one camera of the target device.
可选地,用户对摄像头的相关操作也转移到目标设备的至少一个摄像头实现,例如,选择至少一个摄像头中的任意一个获取视频数据。Optionally, the user's related operations on the camera are also transferred to at least one camera of the target device for implementation, for example, selecting any one of the at least one camera to obtain video data.
S411a,目标设备的至少一个摄像头获取视频数据并通过适配模块将视频数据传输至数据传输通道模块。S411a: At least one camera of the target device acquires video data and transmits the video data to the data transmission channel module through the adaptation module.
S411b,数据传输通道模块可以将视频数据传输给数据切换模块。S411b: The data transmission channel module can transmit the video data to the data switching module.
可选地,其视频数据传输的方式可以是通过无线通信方式或者有线通信方式或者服务器通信方式实现。Optionally, the video data transmission method may be realized by a wireless communication method or a wired communication method or a server communication method.
可选地,无线通信方式是通过蓝牙协议、Wi-Fi协议,NFC协议或移动通信协议中任意一种实现的。Optionally, the wireless communication method is implemented by any one of Bluetooth protocol, Wi-Fi protocol, NFC protocol or mobile communication protocol.
其中,移动通信协议可以包括2G标准协议,3G标准协议,4G标准协议,5G标准协议,6G标准协议或者,6G后续标准协议等。Among them, the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol, 5G standard protocol, 6G standard protocol or, 6G follow-up standard protocol, etc.
S412,数据切换模块使用目标设备的至少一个摄像头获取的视频数据填充图像缓冲区。S412: The data switching module fills the image buffer with video data obtained by at least one camera of the target device.
可选地,图像缓冲区可以位于第一设备的存储器中。Optionally, the image buffer may be located in the memory of the first device.
S413,数据切换模块可以对第一设备的至少一个摄像头进行停流/关闭操作,用于降低第一设备的功耗。S413: The data switching module may perform a stop/close operation on at least one camera of the first device, so as to reduce power consumption of the first device.
S414,数据流和控制流切换完毕,数据切换模块可以向应用程序的交互界面返回切换成功响应。S414: After the data flow and control flow are switched, the data switching module may return a switching success response to the interactive interface of the application program.
可选地,切换成功响应可以是在交互界面显示完成标识信息,例如,在交互界面显示“切换完成”或“切换成功”等。Optionally, the handover success response may be displaying completion identification information on the interactive interface, for example, displaying "switching completed" or "switching successful" on the interactive interface.
根据本申请实施例提供的技术方案,应用程序可以获取到目标设备的至少一个摄像头获取的图像,但是所述应用程序认为仍然在使用第一设备的至少一个摄像头,目标设备的至少一个摄像头相当于第一设备本地的虚拟摄像头,做到了数据从至少一个摄像头切换到目标设备的至少一个摄像头,而应用程序无感知,通过外部设备的摄像头可以获得更好的视角,提升了用户体验。According to the technical solution provided by the embodiments of the present application, the application program can obtain images acquired by at least one camera of the target device, but the application program thinks that at least one camera of the first device is still being used, and at least one camera of the target device is equivalent to The local virtual camera of the first device enables data to be switched from at least one camera to at least one camera of the target device, and the application is unaware. A better viewing angle can be obtained through the camera of the external device, which improves the user experience.
图8是本申请实施例提供的一种切换原理的示意图。FIG. 8 is a schematic diagram of a switching principle provided by an embodiment of the present application.
如图8所示,本申请的技术方案在第一设备侧增加了数据切换模块和数据传输通道模块,在目标设备侧增加了适配模块。本申请的技术方案可以对硬件抽象层的摄像头对应的代码进行修改,可以增加图像获取请求标签,图像获取请求标签可以用于标记应用框架层下发的图像获取请求是由第一设备的至少一个摄像头处理还是发送至数据流切换模块由目标设备的至少一个摄像头进行处理。As shown in FIG. 8, the technical solution of the present application adds a data switching module and a data transmission channel module on the first device side, and adds an adaptation module on the target device side. The technical solution of this application can modify the code corresponding to the camera of the hardware abstraction layer, and can add an image acquisition request tag. The image acquisition request tag can be used to mark that the image acquisition request issued by the application framework layer is issued by at least one of the first device. Whether the camera processing is sent to the data stream switching module is processed by at least one camera of the target device.
在使用第一设备的至少一个摄像头的流程下,应用框架层下发的图像获取请求会发送第一设备的至少一个摄像头驱动进行处理,摄像头驱动调用内核层摄像头硬件驱动,操作第一设备的至少一个摄像头获取视频数据。In the process of using at least one camera of the first device, the image acquisition request issued by the application framework layer will be sent to at least one camera driver of the first device for processing. The camera driver calls the kernel layer camera hardware driver to operate at least one of the first device. A camera acquires video data.
在使用目标设备的至少一个摄像头的流程下,在用户触发使用目标设备的至少一个摄像头后,数据流切换模块触发数据流和控制流切换开关,设置标签,此后应用框架层下发的图像获取请求会转发到数据流切换模块进行处理,此时可以暂停/关闭第一设备的至少一个摄像头以降低功耗。如果此后用户不再使用所述目标设备的至少一个摄像头,可以关闭数据流和控制流切换开关,后续应用框架层下发的图像获取请求继续第一设备的至少一个摄像头进行处理。In the process of using at least one camera of the target device, after the user triggers the use of at least one camera of the target device, the data stream switching module triggers the data stream and control stream switching switch, sets the label, and then applies the image acquisition request issued by the framework layer It will be forwarded to the data stream switching module for processing. At this time, at least one camera of the first device can be paused/closed to reduce power consumption. If the user no longer uses the at least one camera of the target device thereafter, the data stream and control stream switching switch can be turned off, and subsequent image acquisition requests issued by the application framework layer continue to be processed by the at least one camera of the first device.
图9是本申请实施例提供的另一种第一设备的软件架构的示意图。FIG. 9 is a schematic diagram of the software architecture of another first device provided in an embodiment of the present application.
应理解,本申请实施例以第一设备与至少一个第三设备保持无线连接作为例子进行说明,并不限制其余不同种类的设备实现本申请的技术方案。图9的左侧为第一设备的内部软件框架,需要说明的是:第一设备的应用场景包括第一设备利用第二应用和自身的摄像 头进行拍照或录像,第一设备与第三设备保持无线连接。It should be understood that, in this embodiment of the present application, the first device and at least one third device maintain a wireless connection as an example for description, and it does not limit other devices of different types to implement the technical solutions of the present application. The left side of Figure 9 is the internal software framework of the first device. It should be noted that the application scenario of the first device includes the first device using the second application and its own camera to take photos or videos, and the first device and the third device maintain Wireless connections.
本申请实施例中,在应用框架层增加了数据切换模块,用于用户选择至少一个第三设备中的一个第三设备为目标设备后,第一设备采用第三设备的摄像头获取图像,第一设备可以按照执行如下流程完成数据切换,以实现呈现目标设备拍摄的图像。In this embodiment of the application, a data switching module is added to the application framework layer for the user to select one of the at least one third device as the target device, and the first device uses the camera of the third device to obtain an image. The device can complete the data switching according to the following process, so as to display the image taken by the target device.
1)第一设备的数据切换模块获取第一设备的至少一个摄像头的图像格式信息,并将图像格式信息发送到数据传输通道模块。1) The data switching module of the first device obtains image format information of at least one camera of the first device, and sends the image format information to the data transmission channel module.
可选地,图像格式信息可以包括提供为第一设备提供图像该格式信息数据的数据流的数量,每一路数据流的分辨率,帧率,色彩空间等信息。Optionally, the image format information may include information such as the number of data streams provided to provide the first device with the format information data of the image, the resolution, frame rate, and color space of each data stream.
2)第一设备的数据传输通道模块接收数据切换模块发送的图像格式信息,根据图像格式信息确定目标设备的至少一个摄像头的第一配置信息,并向目标设备发送第一配置信息。2) The data transmission channel module of the first device receives the image format information sent by the data switching module, determines the first configuration information of at least one camera of the target device according to the image format information, and sends the first configuration information to the target device.
可选地,目标设备安装相应的应用,其中,该应用可以用于第一设备与目标设备之间进行信令交互以及数据传输,该应用中可以包括与第一设备适配的通信协议,传输参数等。Optionally, the target device installs a corresponding application, where the application can be used for signaling interaction and data transmission between the first device and the target device, and the application can include a communication protocol adapted to the first device. Parameters etc.
可选地,该应用可以安装在目标设备的适配模块中。Optionally, the application can be installed in an adaptation module of the target device.
可选地,适配模块可以是适配SDK模块,该应用可以通过SDK模块进行通信。Optionally, the adaptation module may be an adaptation SDK module, and the application may communicate through the SDK module.
可选地,第一设备可以通过数据传输通道模块向目标设备发送第一配置信息,目标设备侧适配模块可以根据第一配置信息对目标设备的至少一个摄像头进行相关配置,例如,第一配置信息可以指示摄像头获取图像格式的分辨率,帧率,色彩空间等。同时,目标设备的适配模块可以根据第一配置信息为摄像头进行相关配置,目标设备通过摄像头获取视频数据后通过适配模块将获取的视频数据发送至第一设备的数据传输通道模块。Optionally, the first device may send the first configuration information to the target device through the data transmission channel module, and the target device-side adaptation module may perform related configuration on at least one camera of the target device according to the first configuration information, for example, the first configuration The information can instruct the camera to obtain the resolution, frame rate, color space, etc. of the image format. At the same time, the adaptation module of the target device can configure the camera according to the first configuration information. The target device obtains video data through the camera and sends the acquired video data to the data transmission channel module of the first device through the adaptation module.
可选地,数据传输通道模块根据数据切换模块发送的图像格式信息确定对目标设备的第一配置信息时,可以提前获取目标设备的至少一个摄像头的第二配置信息,并根据第一设备的至少一个摄像头的配置和第二配置信息,生成第一配置信息。Optionally, when the data transmission channel module determines the first configuration information for the target device according to the image format information sent by the data switching module, it may obtain the second configuration information of at least one camera of the target device in advance, and according to the at least The configuration of a camera and the second configuration information generate the first configuration information.
可选地,第一设备可以根据第二配置信息屏蔽目标设备的至少一个摄像头不支持的能力。例如,可以提前获取目标设备的至少一个摄像头的分辨率信息,若图像格式信息中要求获取视频分辨率为1080p,而目标设备的至少一个摄像头只能获取分辨率为480p的数据,则数据传输通道模块屏蔽所述图像格式信息中的分辨率,不将所述配置随第一配置信息发送至目标设备。Optionally, the first device may shield capabilities that are not supported by at least one camera of the target device according to the second configuration information. For example, the resolution information of at least one camera of the target device can be obtained in advance. If the image format information requires that the video resolution is 1080p, and at least one camera of the target device can only obtain data with a resolution of 480p, then the data transmission channel The module shields the resolution in the image format information, and does not send the configuration along with the first configuration information to the target device.
可选地,如果应用层的应用程序有多路数据获取的请求,则数据传输通道模块与目标设备的适配模块之间可以只有一条数据流,数据传输通道模块在接收到适配模块传输的数据流后,可以将所述数据流传输至多个需求端,例如,第一设备的应用需要将目标设备拍摄的视频同时存储到本地及云端,则数据传输模块可以将适配模块传输的一路数据流传输至本地及云端服务器。由于这样不会占用过多的无线资源,从而可以降低带宽需求和延迟。Optionally, if the application at the application layer has multiple data acquisition requests, there can be only one data stream between the data transmission channel module and the adaptation module of the target device. The data transmission channel module receives the data transmitted by the adaptation module. After the data stream, the data stream can be transmitted to multiple demand ends. For example, if the application of the first device needs to store the video shot by the target device in the local and the cloud at the same time, the data transmission module can transmit the data transmitted by the adaptation module. Stream to local and cloud servers. Since this will not occupy too much wireless resources, bandwidth requirements and delays can be reduced.
可选地,第一设备可以向目标设备发送拍摄指令,拍摄指令可以指示目标设备进行拍摄的时间等信息。Optionally, the first device may send a shooting instruction to the target device, and the shooting instruction may instruct the target device to perform shooting time and other information.
可选地,拍摄指令可以包含于第一配置信息中。Optionally, the shooting instruction may be included in the first configuration information.
3)数据传输通道模块接收到视频数据后,可以根据应用程序业务需求,可能需要对视频数据进行分辨率和色彩空间等相关格式的转换,满足应用程序各路数据流的格式需求,数据传输通道模块获取到有效视频数据后,则认为目标设备的数据源已经准备好,此时数据传输通道模块向数据切换模块发送切换准备完成指令。3) After the data transmission channel module receives the video data, it may need to convert the resolution and color space and other related formats of the video data according to the business requirements of the application to meet the format requirements of each data stream of the application, and the data transmission channel After the module obtains the valid video data, it considers that the data source of the target device is ready, and at this time the data transmission channel module sends a switching preparation completion instruction to the data switching module.
4)数据切换模块收到切换准备完成指令后,数据切换模块从数据传输通道模块持续获取视频数据,填充到摄像头应用框架层返回的临时缓存中,由于应用层的应用程序并不知道已经采用目标设备的至少一个摄像头获取数据,因此图像处理请求还是由应用层下发到应用框架层在下发到硬件抽象层,但采用目标设备的至少一个摄像头获取视频数据后,硬件抽象层并不获取视频数据,因此硬件抽象层可以将图像处理请求回传,由数据切换模块执行操作。在接收到硬件抽象层回传的图像处理请求后,可以将临时缓存中的视频数据填充到图像缓冲区,最终,应用程序可以获取到目标设备的至少一个摄像头获取的图像,但是所述应用程序认为仍然在使用第一设备的至少一个摄像头,目标设备的至少一个摄像头相当于第一设备本地的虚拟摄像头,可以使用户在选择的不同的目标设备后,获取不同的视角,并将其应用于视频通话,大大的提升了灵活性。。4) After the data switch module receives the switch preparation completion instruction, the data switch module continuously obtains video data from the data transmission channel module and fills it into the temporary buffer returned by the camera application framework layer, because the application at the application layer does not know that the target has been adopted At least one camera of the device obtains data, so the image processing request is still sent from the application layer to the application framework layer and then to the hardware abstraction layer, but after using at least one camera of the target device to obtain the video data, the hardware abstraction layer does not obtain the video data Therefore, the hardware abstraction layer can return the image processing request, and the data switching module performs the operation. After receiving the image processing request returned by the hardware abstraction layer, the video data in the temporary buffer can be filled into the image buffer. Finally, the application can obtain the image obtained by at least one camera of the target device, but the application It is considered that at least one camera of the first device is still in use, and at least one camera of the target device is equivalent to the local virtual camera of the first device, which enables the user to obtain different perspectives after selecting different target devices and apply it to Video calls greatly improve flexibility. .
图10是本申请实施例提供的另一种第一设备各模块交互的示意图。FIG. 10 is a schematic diagram of the interaction of various modules of another first device according to an embodiment of the present application.
S801,第一设备检测到用户作用于交互界面上标识信息的预设操作用,触发标识对应的设备的至少一个摄像头切换操作,并采集视频数据。S801: The first device detects that the user acts on the preset operation of the identification information on the interactive interface, triggers at least one camera switching operation of the device corresponding to the identification, and collects video data.
可选地,预设操作可以是用户点击标识信息,或用户语音指示选择标识信息,或根据用户的历史记录进行自动选择。Optionally, the preset operation may be that the user clicks on the identification information, or the user voice instruction selects the identification information, or automatically selects the identification information according to the user's history.
可选地,第一设备呈现多个设备中的每个设备的标识信息。其中,第一设备具有至少一个摄像头,多个设备包括第一设备和至少一个第三设备,至少一个第三设备与第一设备无线连接,且至少一个第三设备均具有摄像头。Optionally, the first device presents identification information of each of the multiple devices. The first device has at least one camera, the multiple devices include the first device and at least one third device, at least one third device is wirelessly connected to the first device, and at least one third device has a camera.
可选地,当用户对交互界面上显示的标识信息进行操作时,用户可以执行预设操作,预设操作可以是用户点击第一设备的交互界面上显示的标识信息,也可以用户从左向右滑动第一设备的交互界面上显示的标识信息等。第一设备可以预先存储预设操作,当用户完成预设操作后,根据用户操作确定目标设备。Optionally, when the user performs an operation on the identification information displayed on the interactive interface, the user may perform a preset operation. The preset operation may be that the user clicks on the identification information displayed on the interactive interface of the first device, or the user moves from the left to the left Swipe right to the identification information displayed on the interactive interface of the first device. The first device may store preset operations in advance, and when the user completes the preset operations, the target device is determined according to the user operations.
可选地,交互界面可以是应用程序的交互界面,应用程序可以是拍照应用,摄像应用或视频通话应用等需要使用摄像头的应用。Optionally, the interactive interface may be an interactive interface of an application program, and the application program may be an application that requires a camera, such as a camera application, a camera application, or a video call application.
可选地,在第一设备的至少一个摄像头对应的交互界面上呈现所述多个设备中的每个设备的标识信息,即当第一设备的应用程序调用至少一个摄像头获取视频数据时,可以在所述应用程序的交互界面上显示标识信息。Optionally, the identification information of each of the multiple devices is presented on the interactive interface corresponding to the at least one camera of the first device, that is, when the application of the first device calls at least one camera to obtain video data, The identification information is displayed on the interactive interface of the application program.
S802,数据切换模块判断摄像头切换参数是否合法,并记录是否有正在使用的第一设备的至少一个摄像头。S802: The data switching module judges whether the camera switching parameter is legal, and records whether there is at least one camera of the first device in use.
可选地,摄像头切换参数可以是第一设备的至少一个摄像头的运行状态,目标设备的至少一个摄像头信息或者当前是否有其他切换任务与本次任务冲突。Optionally, the camera switching parameter may be the operating state of at least one camera of the first device, at least one camera information of the target device, or whether there is currently another switching task that conflicts with this task.
可选地,当第一设备的至少一个摄像头运行时才能进行切换。Optionally, the switching can only be performed when at least one camera of the first device is running.
S803,数据切换模块记录当前正在运行的第一设备的至少一个摄像头的配置。S803: The data switching module records the configuration of at least one camera of the first device currently running.
S804,数据切换模块指示数据传输通道模块与目标设备的适配模块交互,启动对目标设备的至少一个摄像头的连接。S804: The data switching module instructs the data transmission channel module to interact with the adaptation module of the target device, and initiates a connection to at least one camera of the target device.
S805,数据传输模块连接目标设备的适配模块。S805: The data transmission module is connected to the adaptation module of the target device.
可选地,适配模块可以向数据传输模块发送第二配置信息,第二配置信息用于指示目标设备的至少一个摄像头的配置。Optionally, the adaptation module may send second configuration information to the data transmission module, where the second configuration information is used to indicate the configuration of at least one camera of the target device.
S806,数据切换模块获取第二配置信息。S806: The data switching module obtains second configuration information.
S807,数据切换模块可以根据第二配置信息确定目标设备的至少一个摄像头配置,对 第一设备的至少一个摄像头接口进行配置,数据切换模块可以根据第一设备的至少一个摄像头的配置和第二配置信息,生成第一配置信息。S807. The data switching module may determine the configuration of at least one camera of the target device according to the second configuration information, and configure at least one camera interface of the first device, and the data switching module may determine the configuration of at least one camera of the first device and the second configuration Information to generate the first configuration information.
可选地,数据切换模块可以根据第二配置信息屏蔽目标设备的至少一个摄像头不支持的能力。Optionally, the data switching module may shield capabilities that are not supported by at least one camera of the target device according to the second configuration information.
S808,数据传输通道模块向目标设备的适配模块发送第一配置信息,目标设备可以根据第一配置信息对摄像头进行配置。S808: The data transmission channel module sends the first configuration information to the adaptation module of the target device, and the target device can configure the camera according to the first configuration information.
可选地,数据传输通道模块可以向目标设备的适配模块发送拍摄指令,拍摄指令可以指示目标设备进行拍摄的时间等信息。Optionally, the data transmission channel module may send a shooting instruction to the adaptation module of the target device, and the shooting instruction may instruct the target device to perform shooting time and other information.
可选地,拍摄指令可以包含于第一配置信息中。Optionally, the shooting instruction may be included in the first configuration information.
S809,数据切换模块触发数据流和控制流切换的开关,进行摄像头的切换,其中,开关可以位于应用构架层的摄像头单元中。S809: The data switching module triggers a switch for switching the data stream and the control stream to switch the camera, where the switch may be located in the camera unit of the application architecture layer.
S810,数据切换模块指示数据传输通道模块获取目标设备的至少一个摄像头获取的数据流。S810: The data switching module instructs the data transmission channel module to obtain a data stream obtained by at least one camera of the target device.
可选地,用户对摄像头的相关操作也转移到目标设备的至少一个摄像头实现,例如,选择至少一个摄像头中的任意一个获取视频数据。Optionally, the user's related operations on the camera are also transferred to at least one camera of the target device for implementation, for example, selecting any one of the at least one camera to obtain video data.
S811a,目标设备的至少一个摄像头获取视频数据并通过适配模块将视频数据传输至数据传输通道模块。S811a: At least one camera of the target device acquires video data and transmits the video data to the data transmission channel module through the adaptation module.
S811b,数据传输通道模块可以将视频数据传输给数据切换模块。S811b: The data transmission channel module can transmit video data to the data switching module.
可选地,其视频数据传输的方式可以是通过无线通信方式或者有线通信方式或者服务器通信方式实现。Optionally, the video data transmission method may be realized by a wireless communication method or a wired communication method or a server communication method.
可选地,无线通信方式是通过蓝牙协议、Wi-Fi协议或移动通信协议中任意一种实现的。Optionally, the wireless communication method is implemented by any one of Bluetooth protocol, Wi-Fi protocol or mobile communication protocol.
其中,移动通信协议可以包括2G标准协议,3G标准协议,4G标准协议或者是,5G标准协议,6G标准协议或者,6G后续标准协议等。Among them, the mobile communication protocol may include 2G standard protocol, 3G standard protocol, 4G standard protocol or 5G standard protocol, 6G standard protocol or 6G follow-up standard protocol, etc.
S812,数据切换模块将目标设备获取的视频数据缓存至第一设备的临时缓存。S812: The data switching module buffers the video data acquired by the target device in the temporary buffer of the first device.
S813,数据切换模块接收到硬件抽象层回传的图像处理请求后,将临时缓存中的视频数据填充到图像缓冲区。S813: After receiving the image processing request returned by the hardware abstraction layer, the data switching module fills the video data in the temporary buffer into the image buffer.
可选地,临时缓存和图像缓冲区均可以位于第一设备的存储器中。Optionally, both the temporary buffer and the image buffer may be located in the memory of the first device.
S813,数据切换模块可以对第一设备的至少一个摄像头进行停流/关闭操作,用于降低第一设备的功耗。S813: The data switching module may perform a stop/close operation on at least one camera of the first device, so as to reduce power consumption of the first device.
S814,数据流和控制流切换完毕,数据切换模块可以向应用程序的交互界面返回切换成功响应。S814: After the data flow and the control flow are switched, the data switching module may return a switching success response to the interactive interface of the application program.
可选地,切换成功响应可以是在交互界面显示完成标识信息,例如,在交互界面显示“切换完成”或“切换成功”等。Optionally, the handover success response may be displaying completion identification information on the interactive interface, for example, displaying "switching completed" or "switching successful" on the interactive interface.
根据本申请实施例提供的技术方案,应用程序可以获取到目标设备的至少一个摄像头获取的图像,但是所述应用程序认为仍然在使用第一设备的至少一个摄像头,目标设备的至少一个摄像头相当于第一设备本地的虚拟摄像头。用户可以根据其实际需要,选择不同的目标设备,并通过目标设备的至少一个摄像头获取视频图像,并应用于视频通话,提升了用户的选择范围,用户的体验更好。According to the technical solution provided by the embodiments of the present application, the application program can obtain images acquired by at least one camera of the target device, but the application program thinks that at least one camera of the first device is still being used, and at least one camera of the target device is equivalent to The local virtual camera of the first device. Users can select different target devices according to their actual needs, and obtain video images through at least one camera of the target device, and apply them to video calls, which enhances the user's selection range and provides a better user experience.
图11是本申请实施例提供的另一种切换原理的示意图。FIG. 11 is a schematic diagram of another switching principle provided by an embodiment of the present application.
如图11所示,本申请的技术方案在第一设备侧增加了数据切换模块和数据传输通道模块,在目标设备侧增加了适配模块。本申请的技术方案可以对应用框架层的摄像头对应的代码进行修改。应用框架层摄像头单元中的摄像头服务模块(CameraService)可以增加是否使用外部摄像头获取的视频数据覆盖本地视频数据的标签,由于数据切换模块通过数据传输通道模块获取目标设备的至少一个摄像头获取的视频数据并进行临时缓存缓存,待摄像头服务模块处理硬件抽象层回传的视频数据时,使用临时缓存的的视频数据覆盖硬件抽象层返回视频数据的图像缓冲区,此后视频数据向上回传到应用框架层摄像头的图像API,此时,应用程序获取到的视频数据已经是目标设备的至少一个摄像头获取的图像,同时应用程序不感知底层数据的变化。As shown in FIG. 11, the technical solution of the present application adds a data switching module and a data transmission channel module on the first device side, and adds an adaptation module on the target device side. The technical solution of this application can modify the code corresponding to the camera of the application framework layer. The camera service module (CameraService) in the camera unit of the application framework layer can add the label of whether to use the video data obtained by the external camera to cover the local video data, because the data switching module obtains the video data obtained by at least one camera of the target device through the data transmission channel module And perform a temporary caching. When the camera service module processes the video data returned by the hardware abstraction layer, it uses the temporarily cached video data to cover the image buffer of the video data returned by the hardware abstraction layer, and then the video data is uploaded back to the application framework layer. The image API of the camera. At this time, the video data obtained by the application program is already an image obtained by at least one camera of the target device, and the application program does not perceive changes in the underlying data.
本申请实施例还提供了一种移动设备,可以包括至少一个摄像头,显示模块,数据切换模块和数据传输通道模块。The embodiment of the present application also provides a mobile device, which may include at least one camera, a display module, a data switching module, and a data transmission channel module.
其中,至少一个摄像头用于获取图像;显示模块用于呈现多个设备中的每个设备的标识信息,多个设备包括第一设备和至少一个第三设备,至少一个第三设备与第一设备无线连接,且至少一个第三设备均具有摄像头;数据切换模块用于响应用户操作,以从多个设备中确定目标设备;数据传输通道模块用于获取目标设备拍摄的图像;显示模块还用于呈现目标设备拍摄的图像。Among them, at least one camera is used to obtain images; the display module is used to present the identification information of each of the multiple devices, the multiple devices including a first device and at least one third device, and at least one third device and the first device Wireless connection, and at least one third device has a camera; the data switching module is used to respond to user operations to determine the target device from multiple devices; the data transmission channel module is used to obtain images taken by the target device; the display module is also used to Present the image taken by the target device.
可选地,数据传输通道模块还可以用于向目标设备发送拍摄指令,数据传输通道模块还用于接收目标设备根据拍摄指令拍摄的图像。Optionally, the data transmission channel module may also be used to send a shooting instruction to the target device, and the data transmission channel module may also be used to receive an image captured by the target device according to the shooting instruction.
可选地,至少一个第三设备均包括适配模块,适配模块用于第一设备与至少一个第三设备之间进行数据传输。Optionally, each of the at least one third device includes an adaptation module, and the adaptation module is used for data transmission between the first device and the at least one third device.
可选地,显示模块呈现多个设备中的每个设备的标识信息,包括:显示模块在至少一个摄像头对应的交互界面上呈现多个设备中的每个设备的标识信息。Optionally, the display module presenting the identification information of each of the multiple devices includes: the display module presents the identification information of each of the multiple devices on an interactive interface corresponding to at least one camera.
可选地,当目标设备为至少一个第三设备中的一个第三设备时,数据切换模块根据至少一个摄像头的配置,生成第一配置信息;数据传输通道模块还可以向目标设备发送第一配置信息。Optionally, when the target device is one of the at least one third device, the data switching module generates first configuration information according to the configuration of the at least one camera; the data transmission channel module may also send the first configuration to the target device information.
可选地,数据传输通道模块还用于获取第二配置信息,第二配置信息用于指示目标设备的至少一个摄像头的配置;以及处理模块根据第一设备的至少一个摄像头的配置,生成第一配置信息,包括:数据切换模块根据至少一个摄像头的配置和第二配置信息,生成第一配置信息。Optionally, the data transmission channel module is also used to obtain second configuration information, the second configuration information is used to indicate the configuration of at least one camera of the target device; and the processing module generates the first configuration according to the configuration of the at least one camera of the first device. The configuration information includes: the data switching module generates the first configuration information according to the configuration of the at least one camera and the second configuration information.
可选地,当目标设备为至少一个第三设备中的一个第三设备时,在显示模块呈现目标设备拍摄的图像时,关闭第一设备的至少一个摄像头。Optionally, when the target device is a third device among the at least one third device, when the display module presents an image taken by the target device, at least one camera of the first device is turned off.
可选地,无线连接是通过蓝牙协议、无线局域网Wi-Fi协议,NFC协议或移动通信协议中任意一种实现的。Optionally, the wireless connection is achieved through any one of Bluetooth protocol, wireless local area network Wi-Fi protocol, NFC protocol or mobile communication protocol.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应所述理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或无线连接可以是通过一些接口,装置或单元的间接耦合或无线连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or wireless connection may be indirect coupling or wireless connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括至少一个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地生成按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括至少一个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘solid state disk,SSD)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes at least one computer instruction. When the computer program instructions are loaded and executed on the computer, the procedures or functions described in the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with at least one available medium. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk, SSD), etc.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (13)

  1. 一种视频通话的方法,应用于具有至少一个摄像头的第一设备,其特征在于,所述第一设备利用所述至少一个摄像头和一个应用与第二设备建立视频通话,所述第一设备和所述第二设备均安装有所述应用,所述应用具有视频通话功能,所述第二设备具有至少一个摄像头,所述方法包括:A video call method applied to a first device with at least one camera, wherein the first device uses the at least one camera and an application to establish a video call with a second device, and the first device and The second device is installed with the application, the application has a video call function, the second device has at least one camera, and the method includes:
    所述第一设备利用所述至少一个摄像头和所述应用与所述第二设备建立视频通话之后,将与所述第一设备保持无线连接且具有摄像头的至少一个第三设备的标识信息显示在进行视频通话的交互界面上;After the first device uses the at least one camera and the application to establish a video call with the second device, the identification information of the at least one third device that maintains a wireless connection with the first device and has a camera is displayed on On the interactive interface for video calls;
    所述第一设备检测到用户作用于所述交互界面上第一标识信息的预设操作时,触发所述第一标识信息对应的设备的至少一个摄像头采集视频数据,所述第一标识信息是所述至少一个第三设备的标识信息中的一个;When the first device detects that the user acts on a preset operation of the first identification information on the interactive interface, it triggers at least one camera of the device corresponding to the first identification information to collect video data, and the first identification information is One of the identification information of the at least one third device;
    所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。The first device obtains video data collected by at least one camera of the device corresponding to the first identification information, and uses the video data collected by the at least one camera of the device corresponding to the first identification information for a video call.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    所述第一设备检测到用户作用于所述交互界面上第二标识信息的预设操作时,触发所述第二标识信息对应的设备的至少一个摄像头采集视频数据,所述第二标识信息是所述至少一个第三设备的标识信息中的一个;When the first device detects that the user acts on the preset operation of the second identification information on the interactive interface, it triggers at least one camera of the device corresponding to the second identification information to collect video data, and the second identification information is One of the identification information of the at least one third device;
    所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话。The first device obtains the video data collected by the at least one camera of the device corresponding to the second identification information, and uses the video data collected by the at least one camera of the device corresponding to the second identification information for a video call.
  3. 根据权利要求1所述的方法,其特征在于,所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话,包括:The method according to claim 1, wherein the first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and compares the video data collected by at least one camera of the device corresponding to the first identification information. The video data collected by a camera is used for video calls, including:
    所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,且不再获取所述第一设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,The first device acquires the video data collected by at least one camera of the device corresponding to the first identification information, and no longer acquires the video data collected by the at least one camera of the first device, and combines the first identification information The video data collected by at least one camera of the corresponding device is used for video calls; or,
    所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,The first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and obtains the video data collected by the at least one camera of the first device, and assigns the first identification information to the The video data collected by at least one camera of the device is used for video calls; or,
    所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据和所述第一设备的至少一个摄像头采集的视频数据用于视频通话。The first device obtains the video data collected by at least one camera of the device corresponding to the first identification information, and obtains the video data collected by the at least one camera of the first device, and assigns the first identification information to the The video data collected by the at least one camera of the device and the video data collected by the at least one camera of the first device are used for a video call.
  4. 根据权利要求2所述的方法,其特征在于,所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话,包括:The method according to claim 2, wherein the first device obtains the video data collected by at least one camera of the device corresponding to the second identification information, and combines at least one of the device corresponding to the second identification information The video data collected by a camera is used for video calls, including:
    所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且不再获取所述第一设备的至少一个摄像头和所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头采集的视频 数据用于视频通话;或者,The first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and no longer acquires at least one camera of the first device and at least one of the device corresponding to the first identification information The video data collected by a camera, and the video data collected by at least one camera of the device corresponding to the second identification information is used for a video call; or,
    所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一设备的至少一个摄像头和所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,The first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and acquires at least one camera of the first device and at least one camera of the device corresponding to the first identification information. Using the video data collected by at least one camera of the device corresponding to the second identification information for the video call; or,
    所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一设备的至少一个摄像头采集的视频数据,不获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头和所述第一设备的至少一个摄像头采集的视频数据用于视频通话;或者,The first device acquires video data collected by at least one camera of the device corresponding to the second identification information, and acquires video data collected by at least one camera of the first device, and does not acquire the video data corresponding to the first identification information. Video data collected by at least one camera of the device, and using the video data collected by at least one camera of the device and at least one camera of the first device corresponding to the second identification information for a video call; or,
    所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,不获取所述第一设备的至少一个摄像头采集的视频数据,并将所述第二标识信息对应的设备的至少一个摄像头和所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话;或者,The first device acquires the video data collected by at least one camera of the device corresponding to the second identification information, and acquires the video data collected by at least one camera of the device corresponding to the first identification information, without acquiring the first The video data collected by at least one camera of the device, and the video data collected by the at least one camera of the device corresponding to the second identification information and the at least one camera of the device corresponding to the first identification information are used for a video call; or,
    所述第一设备获取所述第二标识信息对应的设备的至少一个摄像头采集的视频数据,且获取所述所述第一设备的至少一个摄像头和所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头以及所述第二标识信息对应的设备的至少一个摄像头采集的视频数据和所述第一设备的至少一个摄像头采集的视频数据用于视频通话。The first device obtains video data collected by at least one camera of the device corresponding to the second identification information, and obtains at least one camera of the first device and at least one of the device corresponding to the first identification information The video data collected by the camera, and the video data collected by at least one camera of the device corresponding to the first identification information and at least one camera of the device corresponding to the second identification information and at least one camera of the first device are collected The video data of is used for video calls.
  5. 根据权利要求1至4任意一项所述的方法,其特征在于,The method according to any one of claims 1 to 4, characterized in that:
    在使用所述第一标识信息对应的设备的至少一个摄像头之前,根据所述第一设备的至少一个摄像头的配置参数对所述第一标识对应的设备的至少一个摄像头进行配置;和/或,Before using the at least one camera of the device corresponding to the first identification information, configure at least one camera of the device corresponding to the first identification according to the configuration parameters of the at least one camera of the first device; and/or,
    在使用所述第二标识信息对应的设备的至少一个摄像头之前,根据所述第一设备的至少一个摄像头的配置参数对所述第二标识信息对应的设备的至少一个摄像头进行配置。Before using the at least one camera of the device corresponding to the second identification information, configure the at least one camera of the device corresponding to the second identification information according to the configuration parameters of the at least one camera of the first device.
  6. 根据权利要求1至5任意一项所述的方法,其特征在于,The method according to any one of claims 1 to 5, characterized in that:
    在进行视频通话的交互界面上还包括与所述第一设备保持无线连接且具有至少一个麦克风的第四设备的第三标识信息;The interactive interface for performing a video call further includes third identification information of a fourth device that maintains a wireless connection with the first device and has at least one microphone;
    所述第一设备检测到用户作用于所述交互界面上第三标识信息的预设操作时,触发所述第三标识信息对应的设备利用至少一个麦克风采集音频数据;When the first device detects that the user acts on the preset operation of the third identification information on the interactive interface, triggering the device corresponding to the third identification information to collect audio data using at least one microphone;
    所述第一设备获取所述第三标识信息对应的设备的至少一个麦克风采集的音频数据,并将所述第三标识信息对应的设备至少一个麦克风采集的音频数据用于视频通话。The first device obtains audio data collected by at least one microphone of the device corresponding to the third identification information, and uses the audio data collected by at least one microphone of the device corresponding to the third identification information for a video call.
  7. 根据权利要求1至6任意一项所述的方法,其特征在于,The method according to any one of claims 1 to 6, characterized in that,
    在进行视频通话的交互界面上还包括与所述第一设备保持无线连接且具有至少一个扬声器的第五设备的第四标识信息;The interactive interface for making a video call further includes fourth identification information of a fifth device that maintains a wireless connection with the first device and has at least one speaker;
    所述第一设备检测到用户作用于所述交互界面上第四标识信息的预设操作时,将视频通话中接收到的音频数据发送给所述第四标识对应的设备,并触发所述第四标识信息对应的设备播放接收到的音频数据。When the first device detects that the user acts on the preset operation of the fourth identification information on the interactive interface, it sends the audio data received in the video call to the device corresponding to the fourth identification, and triggers the first Fourth, the device corresponding to the identification information plays the received audio data.
  8. 根据权利要求1至5任意一项所述的方法,其特征在于,The method according to any one of claims 1 to 5, characterized in that:
    在进行视频通话的交互界面上还包括与所述第一设备保持无线连接且具有至少一个麦克风和至少一个扬声器的第六设备的第五标识信息;The interactive interface for performing a video call further includes fifth identification information of a sixth device that maintains a wireless connection with the first device and has at least one microphone and at least one speaker;
    所述第一设备检测到用户作用于所述交互界面上第五标识信息的预设操作时,触发所述第五标识信息对应的设备利用至少一个麦克风采集音频数据,将视频通话中接收到的音频数据发送给所述第五标识信息对应的设备,并触发所述第五标识信息对应的设备播放接收到的音频数据;When the first device detects that the user has acted on the preset operation of the fifth identification information on the interactive interface, it triggers the device corresponding to the fifth identification information to collect audio data using at least one microphone, and transfer the data received in the video call Sending the audio data to the device corresponding to the fifth identification information, and triggering the device corresponding to the fifth identification information to play the received audio data;
    所述第一设备获取所述第五标识信息对应的设备的至少一个麦克风采集的音频数据,并将所述第五标识信息对应的设备的至少一个麦克风采集的音频数据用于视频通话。The first device obtains the audio data collected by the at least one microphone of the device corresponding to the fifth identification information, and uses the audio data collected by the at least one microphone of the device corresponding to the fifth identification information for a video call.
  9. 根据权利要求1至8任意一项所述的方法,其特征在于,与所述第一设备保持无线连接的设备是通过蓝牙协议、Wi-Fi协议,NFC协议或移动通信协议中任意一种实现的。The method according to any one of claims 1 to 8, wherein the device that maintains a wireless connection with the first device is implemented through any one of Bluetooth protocol, Wi-Fi protocol, NFC protocol or mobile communication protocol of.
  10. 根据权利要求1至9任意一项所述的方法,其特征在于,所述第一设备获取所述第一标识信息对应的设备的至少一个摄像头采集的视频数据,并将所述第一标识信息对应的设备的至少一个摄像头采集的视频数据用于视频通话,包括:The method according to any one of claims 1 to 9, wherein the first device obtains video data collected by at least one camera of the device corresponding to the first identification information, and combines the first identification information The video data collected by at least one camera of the corresponding device is used for video calls, including:
    所述第一设备的数据传输通道模块接收到视频数据后,根据所述应用的需求,对接收的视频数据的分辨率和色彩空间进行格式转换;After receiving the video data, the data transmission channel module of the first device performs format conversion on the resolution and color space of the received video data according to the requirements of the application;
    所述第一设备的数据切换模块接收所述第一设备的至少一个摄像头的获取请求,转发所述获取请求到所述数据传输通道模块;The data switching module of the first device receives an acquisition request of at least one camera of the first device, and forwards the acquisition request to the data transmission channel module;
    所述数据传输通道模块将从所述第一标识信息对应的设备接收视频数据并传输给所述数据切换模块;The data transmission channel module will receive video data from the device corresponding to the first identification information and transmit it to the data switching module;
    所述数据切换模块将接收的所述第一标识信息对应的设备的至少一个摄像头采集的视频数据传输到摄像头设备会话管理模块的数据返回接口中,获取的所述第一标识信息对应的设备的至少一个摄像头采集的视频数据按照原有数据返回流程返回给所述应用。The data switching module transmits the received video data collected by at least one camera of the device corresponding to the first identification information to the data return interface of the camera device session management module, and the acquired first identification information corresponds to the device The video data collected by at least one camera is returned to the application according to the original data return procedure.
  11. 一种移动设备,其特征在于,包括:A mobile device, characterized in that it comprises:
    触摸屏,其中,所述触摸屏包括触敏表面和显示器;A touch screen, wherein the touch screen includes a touch-sensitive surface and a display;
    一个或多个摄像头;One or more cameras;
    一个或多个处理器;One or more processors;
    存储器;Memory
    多个应用程序;Multiple applications;
    以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令在所述移动设备上运行时,使得所述移动设备执行如权利要求1至10中任意一项所述的方法。And one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs include instructions that, when the instructions run on the mobile device, cause the mobile The device executes the method according to any one of claims 1 to 10.
  12. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在设备上运行时,使得所述设备执行如权利要求1至10中任意一项所述的方法。A computer-readable storage medium, comprising instructions, wherein when the instructions run on a device, the device executes the method according to any one of claims 1 to 10.
  13. 一种电子设备上的图形用户界面系统,其特征在于,所述电子设备具有显示屏、摄像头、存储器、以及一个或多个处理器,所述一个或多个处理器用于执行存储在所述存储器中的一个或多个计算机程序,其特征在于,所述图形用户界面包括所述电子设备执行如权利要求1至10中任意一项所述的方法时显示的图形用户界面。A graphical user interface system on an electronic device, characterized in that the electronic device has a display screen, a camera, a memory, and one or more processors, and the one or more processors are used to execute One or more computer programs in, wherein the graphical user interface comprises a graphical user interface displayed when the electronic device executes the method according to any one of claims 1 to 10.
PCT/CN2020/105097 2019-08-06 2020-07-28 Video call method WO2021023055A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201910723119.4 2019-08-06
CN201910723119 2019-08-06
CN201911108857.4A CN112351235B (en) 2019-08-06 2019-11-13 Video call method
CN201911108857.4 2019-11-13

Publications (1)

Publication Number Publication Date
WO2021023055A1 true WO2021023055A1 (en) 2021-02-11

Family

ID=74367881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/105097 WO2021023055A1 (en) 2019-08-06 2020-07-28 Video call method

Country Status (2)

Country Link
CN (1) CN112351235B (en)
WO (1) WO2021023055A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220446A (en) * 2021-03-26 2021-08-06 西安神鸟软件科技有限公司 Image or video data processing method and terminal equipment
CN113271425A (en) * 2021-04-19 2021-08-17 瑞芯微电子股份有限公司 Interaction system and method based on virtual equipment
CN114173158A (en) * 2021-11-29 2022-03-11 北京百度网讯科技有限公司 Face recognition method, cloud device, client device, electronic device and medium
WO2024051636A1 (en) * 2022-09-06 2024-03-14 华为技术有限公司 Video call interaction method, and vehicle and electronic device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995631A (en) * 2021-03-19 2021-06-18 恒大新能源汽车投资控股集团有限公司 Vehicle information processing system and information processing method
CN113473011B (en) * 2021-06-29 2023-04-25 广东湾区智能终端工业设计研究院有限公司 Shooting method, shooting system and storage medium
CN115022570B (en) * 2021-12-24 2023-04-14 荣耀终端有限公司 Method for acquiring video frame, electronic equipment and readable storage medium
CN114363654B (en) * 2022-01-12 2023-12-19 北京字节跳动网络技术有限公司 Video push method, device, terminal equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010026191A1 (en) * 2008-09-05 2010-03-11 Skype Limited Communication system and method
CN104184982A (en) * 2013-05-28 2014-12-03 华为技术有限公司 Audio and video communication method and system, terminal device, and audio and video communication service center
US9007465B1 (en) * 2012-08-31 2015-04-14 Vce Company, Llc Obtaining customer support for electronic system using first and second cameras
CN105163059A (en) * 2015-08-21 2015-12-16 深圳创维-Rgb电子有限公司 Smart home device based video call method and video call system
CN105847913A (en) * 2016-05-20 2016-08-10 腾讯科技(深圳)有限公司 Live video broadcast control method, mobile terminal and system
CN106412483A (en) * 2016-10-28 2017-02-15 腾讯科技(深圳)有限公司 Camera sharing method and apparatus

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5760824A (en) * 1995-12-29 1998-06-02 Lucent Technologies Inc. Multimedia telephone having wireless camera and television module and method of operation thereof
US9622275B2 (en) * 2013-03-15 2017-04-11 Qualcomm Incorporated System and method for allowing multiple devices to communicate in a network
US9282286B2 (en) * 2014-03-06 2016-03-08 Citrix Systems, Inc. Participating in an online meeting while driving
CN104735259B (en) * 2015-03-31 2016-09-28 努比亚技术有限公司 Mobile terminal acquisition parameters method to set up, device and mobile terminal
CN104853135A (en) * 2015-05-13 2015-08-19 广州物联家信息科技股份有限公司 Method and system for video switching during voice communication process
CN108696673A (en) * 2017-04-11 2018-10-23 中兴通讯股份有限公司 A kind of camera arrangement, method and apparatus
CN107295419A (en) * 2017-07-25 2017-10-24 湖南克拉视通科技有限公司 Set-top box video call implementing method
CN109040651B (en) * 2018-09-25 2021-03-09 北京小米移动软件有限公司 Video communication method and device
CN109936717A (en) * 2019-04-28 2019-06-25 上海掌门科技有限公司 Video communication method and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010026191A1 (en) * 2008-09-05 2010-03-11 Skype Limited Communication system and method
US9007465B1 (en) * 2012-08-31 2015-04-14 Vce Company, Llc Obtaining customer support for electronic system using first and second cameras
CN104184982A (en) * 2013-05-28 2014-12-03 华为技术有限公司 Audio and video communication method and system, terminal device, and audio and video communication service center
CN105163059A (en) * 2015-08-21 2015-12-16 深圳创维-Rgb电子有限公司 Smart home device based video call method and video call system
CN105847913A (en) * 2016-05-20 2016-08-10 腾讯科技(深圳)有限公司 Live video broadcast control method, mobile terminal and system
CN106412483A (en) * 2016-10-28 2017-02-15 腾讯科技(深圳)有限公司 Camera sharing method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220446A (en) * 2021-03-26 2021-08-06 西安神鸟软件科技有限公司 Image or video data processing method and terminal equipment
CN113271425A (en) * 2021-04-19 2021-08-17 瑞芯微电子股份有限公司 Interaction system and method based on virtual equipment
CN114173158A (en) * 2021-11-29 2022-03-11 北京百度网讯科技有限公司 Face recognition method, cloud device, client device, electronic device and medium
WO2024051636A1 (en) * 2022-09-06 2024-03-14 华为技术有限公司 Video call interaction method, and vehicle and electronic device

Also Published As

Publication number Publication date
CN112351235B (en) 2022-06-07
CN112351235A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
WO2021023055A1 (en) Video call method
CN110109636B (en) Screen projection method, electronic device and system
US11032514B2 (en) Method and apparatus for providing image service
CN106165430B (en) Net cast method and device
WO2022121775A1 (en) Screen projection method, and device
EP3432588B1 (en) Method and system for processing image information
WO2021190466A1 (en) Inter-device multimedia content playback continuing method
CN107526591B (en) Method and device for switching types of live broadcast rooms
WO2020119464A1 (en) Video splitting method and electronic device
CN111966314A (en) Image projection method, image projection device, mobile terminal and projection equipment
CN115136570A (en) Integration of internet of things devices
WO2021083145A1 (en) Video processing method and device, terminal, and storage medium
WO2022143883A1 (en) Photographing method and system, and electronic device
WO2022105803A1 (en) Camera calling method and system, and electronic device
CN114697742A (en) Video recording method and electronic equipment
JP2023528384A (en) CONTENT SHARING METHOD, APPARATUS AND SYSTEM
WO2022160985A1 (en) Distributed photographing method, electronic device, and medium
WO2022127670A1 (en) Call method and system, and related device
CN114449090A (en) Data sharing method, device and system and electronic equipment
WO2023134509A1 (en) Video stream pushing method and apparatus, and terminal device and storage medium
WO2022088926A1 (en) Capturing method and terminal device
CN110213531B (en) Monitoring video processing method and device
JP2023544561A (en) Message display method and electronic device
CN113965768A (en) Live broadcast room information display method and device, electronic equipment and server
CN113238887A (en) Data processing method, device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20850973

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20850973

Country of ref document: EP

Kind code of ref document: A1