WO2023184825A1 - Video recording control method of electronic device, electronic device, and readable medium - Google Patents

Video recording control method of electronic device, electronic device, and readable medium Download PDF

Info

Publication number
WO2023184825A1
WO2023184825A1 PCT/CN2022/112926 CN2022112926W WO2023184825A1 WO 2023184825 A1 WO2023184825 A1 WO 2023184825A1 CN 2022112926 W CN2022112926 W CN 2022112926W WO 2023184825 A1 WO2023184825 A1 WO 2023184825A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
video recording
bluetooth headset
electronic equipment
control method
Prior art date
Application number
PCT/CN2022/112926
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 WO2023184825A1 publication Critical patent/WO2023184825A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • 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

  • the present application relates to the field of communication technology, and in particular to a video recording control method of electronic equipment, electronic equipment, program products and computer-readable storage media.
  • the user wears a Bluetooth headset and controls the electronic device to record video with a camera. If the user wants to pause the recording, he or she needs to perform a touch operation on the recording interface of the electronic device, which greatly reduces the convenience of the operation for users who are far away from the mobile phone.
  • This application provides a video recording control method for electronic equipment, electronic equipment, program products, and computer-readable storage media.
  • the purpose is that users can control the electronic equipment to pause video recording by touching the Bluetooth headset.
  • this application provides a video recording control method for electronic equipment, which can be applied to electronic equipment.
  • the electronic equipment establishes a synchronous directional connection SCO link with the Bluetooth headset.
  • the electronic equipment is in the recording state, and the Bluetooth headset passes the SCO link.
  • Send audio information to the electronic device, and the audio information is collected by the microphone of the Bluetooth headset.
  • the video recording control method of the electronic device includes: the electronic device receives a first control instruction sent by the Bluetooth headset, and the first control instruction is used to control the electronic device to end the call;
  • the control instruction is generated by the Bluetooth headset in response to the first touch operation;
  • the electronic device generates a pause instruction according to the first control instruction, and the pause instruction is used to control the electronic device to pause recording;
  • the electronic device responds to the pause instruction and drives the camera to pause recording.
  • the user can perform the first touch operation on the Bluetooth headset
  • the Bluetooth headset can sense the user's first touch operation, generate the first control instruction and send it to the electronic device, and the electronic device can respond according to the first touch operation.
  • Control refers to generating a pause command to control the electronic device to pause recording. This enables the user to pause the recording of the electronic device without operating the electronic device and can only operate the Bluetooth headset.
  • the method further includes: the electronic device detects that the electronic device is in the video recording mode.
  • the electronic device detects that the electronic device is in the video recording mode, including: the electronic device calls a service operation to detect whether the electronic device is in the video recording mode; the electronic device obtains the detection result of the service, and determines that the detection result indicates that the electronic device is in the video recording mode.
  • Video mode including: the electronic device calls a service operation to detect whether the electronic device is in the video recording mode; the electronic device obtains the detection result of the service, and determines that the detection result indicates that the electronic device is in the video recording mode.
  • the electronic device detects that the electronic device is in the video recording mode, including: the electronic device traverses the processes in the running state, and determines that the process in the running state includes the video recording process.
  • the electronic device receiving the first control instruction sent by the Bluetooth headset includes: the electronic device receiving the first control instruction sent by the Bluetooth headset through the asynchronous connectionless ACL link.
  • the method for establishing a synchronous directional connection SCO link between an electronic device and a Bluetooth headset includes: the electronic device sends a connection command to the Bluetooth headset; the Bluetooth headset receives the connection command sent by the electronic device and returns the connection to the electronic device. event.
  • the method before the electronic device generates the pause instruction according to the first control instruction, the method further includes: the electronic device determines that the electronic device is not in the call mode.
  • the video recording control method of the electronic device further includes: the electronic device determines that the electronic device is in a call mode, and ends the call in response to the first control instruction.
  • the method before the electronic device generates the pause instruction according to the first control instruction, the method further includes: the electronic device determines that the electronic device is in the call mode.
  • the electronic device after the electronic device responds to the pause instruction and pauses the recording, it further includes: the electronic device receives a second control instruction sent by the Bluetooth headset, and the second control instruction is used to control the electronic device to start recording; the second control instruction The Bluetooth headset is generated in response to the second touch operation; the electronic device responds to the second control instruction and drives the camera to record video.
  • the electronic device pauses recording. If the user wants to continue recording using the electronic device, the user can input a second touch operation on the Bluetooth headset, and the Bluetooth headset can send a second control command to the electronic device to control the electronic device. The device continues recording, so that the user does not need to operate the electronic device and only controls the electronic device through the Bluetooth headset to continue recording.
  • the electronic device after the electronic device responds to the second control instruction and calls the camera to record, the electronic device further includes: the electronic device receives audio information sent by the Bluetooth headset through the SCO link, and the audio information is collected by the microphone of the Bluetooth headset; Save audio information.
  • this application provides an electronic device, including: one or more processors, memories, cameras and wireless communication modules; the memory, cameras and wireless communication modules are coupled with one or more processors, and the memory is used to store Computer program code.
  • the computer program code includes computer instructions.
  • the electronic device executes any one of the video recording control methods of the electronic device in the first aspect.
  • the present application provides a computer-readable storage medium for storing a computer program.
  • the computer program When executed, it is specifically used to implement the video recording control method of an electronic device as in any one of the first aspect.
  • the present application provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to execute the video recording control method of an electronic device as described in any one of the first aspect.
  • Figure 1 is an application scenario diagram provided by this application.
  • FIG. 2 is a sequence diagram of the video recording control method of the electronic device provided by this application.
  • FIG. 3 is a hardware structure diagram of the electronic device provided by this application.
  • FIG. 4 is a software architecture diagram of the electronic device provided by this application.
  • Figures 5 to 8 are application scenario diagrams provided by embodiments of the present application.
  • FIG. 9 is a sequence diagram of a video recording control method of an electronic device provided by an embodiment of the present application.
  • one or more refers to one, two or more than two; "and/or” describes the association relationship of associated objects, indicating that three relationships can exist; for example, A and/or B can mean: A alone exists, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural.
  • the character "/" generally indicates that the related objects are in an "or” relationship.
  • the user can control the electronic device (a mobile phone is used as an example in the figure) to start recording by touching the Bluetooth headset.
  • the user wears a Bluetooth headset, and a Bluetooth connection is established between the Bluetooth headset and the electronic device.
  • the electronic device enters the recording mode, and the display screen displays the recording interface.
  • the user touches the Bluetooth headset and clicks on the body of the Bluetooth headset as shown in (b) of Figure 1, and the electronic device starts recording.
  • FIG 2 shows the process for users to control electronic devices through Bluetooth headsets to start recording. See Figure 2, the video recording control method of electronic equipment, including steps:
  • the Bluetooth headset and the electronic device establish a Bluetooth connection channel.
  • the user can control the electronic device to search for Bluetooth headsets by performing operations on the electronic device. After the electronic device discovers the Bluetooth headset, the user performs an operation on the electronic device to control the electronic device to establish a connection with the Bluetooth headset.
  • the electronic device can automatically initiate a connection with the Bluetooth headset after turning on the Bluetooth function.
  • Bluetooth headsets and electronic devices can use the Bluetooth protocol to establish a Bluetooth connection channel.
  • the specific implementation method of establishing a Bluetooth connection channel between a Bluetooth headset and an electronic device will not be explained here.
  • the Bluetooth connection channel established by Bluetooth headsets and electronic devices is an asynchronous connection less (ACL) link.
  • the ACL link is the basic connection link of Bluetooth. It is generally used to transmit connection-type negotiation signaling and to maintain the Bluetooth connection.
  • ACL links also support one-way transmission of data. For example, when an electronic device sends data to a Bluetooth headset through an ACL link, the Bluetooth headset cannot send data to the electronic device at the same time.
  • the Bluetooth headset responds to the user's touch operation and analyzes the user's touch operation.
  • the Bluetooth headset is equipped with a sensor and a Bluetooth module, and the sensor is used to detect the user's touch operation.
  • the user inputs touch operations on the Bluetooth headset.
  • the Bluetooth headset's sensor detects touch operations.
  • the sensor of the Bluetooth headset converts the detected touch operation into a touch command and transmits it to the Bluetooth module.
  • the Bluetooth module parses the touch command to clarify the touch operation input by the user.
  • the Bluetooth headset parses the user's touch operation as the first operation and generates the first instruction.
  • the Bluetooth module of the Bluetooth headset parses the touch commands corresponding to the user's touch operations. If the Bluetooth module determines that the user has input the first operation by analyzing the touch command, the Bluetooth module generates a first command, which is used to control the electronic device to start recording.
  • the first instruction may refer to the avrcp play instruction.
  • the first operation is a touch operation performed by the user on the Bluetooth headset, which can be understood as an operation for the user to control the electronic device through the Bluetooth headset to start recording.
  • the first operation may be a click operation on the body of the Bluetooth headset.
  • it may be set to a click operation on a specific position of the body of the Bluetooth headset, or a click operation at any position.
  • the first operation may also be a touch operation on a button on the Bluetooth headset.
  • the Bluetooth headset sends the first command to the electronic device.
  • the Bluetooth module of the Bluetooth headset can send the first command to the electronic device through the Bluetooth connection channel established with the electronic device.
  • the electronic device receives the first command and detects whether the electronic device is in the video recording mode.
  • the Bluetooth module of the electronic device receives the first instruction and sends a first request to the audio module of the electronic device.
  • the first request is used to control the electronic device to start recording.
  • the audio module receives the first request and detects whether the electronic device is in recording mode.
  • the audio module can detect whether the electronic device is in recording mode in the following two ways:
  • Method 1 The application layer or application framework layer of the software architecture of the electronic device sets a service.
  • the function of the service is to identify whether the electronic device is in recording mode.
  • the electronic device controls the operation of the service and obtains the operation result of the service.
  • the electronic device can determine whether the electronic device is in the recording mode based on the operation results of the service.
  • Method 2 The electronic device traverses the currently running processes and determines whether the currently running processes include a video recording process. In some embodiments, the electronic device may determine whether the currently running process includes a video recording process through the process identifier.
  • the electronic device traverses the currently running processes according to method 2 and determines whether the currently running processes include a video recording process.
  • the electronic device can detect that the electronic device is in the video recording mode according to the aforementioned two methods.
  • the electronic device may execute step S206. If the electronic device detects that the electronic device is not in the recording mode, the electronic device can exit the process of executing this method.
  • the electronic device and the Bluetooth headset establish a SCO link.
  • the synchronous connection oriented (SCO) link is a Bluetooth physical link between the electronic device and the Bluetooth headset.
  • the SCO link is a connection technology supported by Bluetooth baseband and uses reserved time slots to transmit data.
  • the SCO link also supports bidirectional data transmission. For example, when the electronic device sends data to the Bluetooth headset through the SCO link, the Bluetooth headset can also send data to the electronic device through the SCO link.
  • the method for establishing an SCO link between an electronic device and a Bluetooth headset includes:
  • the electronic device sends a connection command (Command) to the Bluetooth headset.
  • a connection command (Command) to the Bluetooth headset.
  • the Bluetooth headset receives the Command sent by the electronic device and returns an event (Event) to the electronic device. With this, the establishment of the SCO link between the electronic device and the Bluetooth headset is completed.
  • the electronic device can be understood as the host, and the Bluetooth headset can be understood as the slave.
  • the host and slave can communicate through the interface (Host Controller Interface, HCI) in the form of Command and Event. Normally, the command is passed from the master to the slave, and the event is fed back from the slave to the master.
  • HCI Home Controller Interface
  • the Command sent by the electronic device to the Bluetooth headset may be: HCI_Setup_Synchronous_Connection.
  • the Event returned by the Bluetooth headset to the electronic device can be: HCI_Setup_Synchronous_Connection.
  • the SCO link between the electronic device and the Bluetooth headset is established, and the electronic device can start recording.
  • the electronic device when the electronic device starts recording, it means that the electronic device captures video through the camera, but does not collect audio information through the microphone of the electronic device.
  • the Bluetooth headset interprets the touch operation as an operation to control the electronic device to start recording.
  • the electronic device determines that it is in the recording mode, and then the electronic device and the Bluetooth headset establish a SCO link.
  • the electronic device starts recording, which enables the user to control the electronic device to start recording through the touch Bluetooth headset without operating the electronic device.
  • Bluetooth headset collects audio information through the microphone.
  • Bluetooth headsets are equipped with one or more microphones for collecting audio information.
  • the Bluetooth headset sends audio information to the electronic device through the SCO link.
  • the Bluetooth module of the Bluetooth headset sends the audio information collected by the microphone to the electronic device.
  • the Bluetooth module of the electronic device receives the audio information sent by the Bluetooth headset and transmits it to the audio module of the electronic device.
  • the Bluetooth headset collects audio information through the microphone and transmits it to the electronic device, which can ensure that the user is in an area far away from the electronic device.
  • the user's audio information can also be collected through the microphone of the Bluetooth headset.
  • the user can control the electronic device to start recording by touching the Bluetooth headset.
  • the electronic device and the Bluetooth headset established an SCO link, and the electronic device and the Bluetooth headset triggered the call process. Based on this, the Bluetooth headset runs the call process.
  • the Bluetooth headset After the electronic device and the Bluetooth headset establish the SCO link, if the user triggers the Bluetooth headset again, the Bluetooth headset will recognize the trigger operation as a hang-up operation in the call process and send an instruction to hang up the call to the electronic device.
  • the electronic device receives an instruction to hang up the call. Since the electronic device is not currently on a call, it cannot respond to the instruction.
  • embodiments of the present application provide a video recording control method for the electronic device.
  • the video recording control method of electronic equipment provided by the embodiment of the present application can be applied to mobile phones, tablet computers, desktops, laptops, notebook computers, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), handheld computers, and netbooks.
  • Personal Digital Assistant (PDA) wearable electronic devices, smart watches and other electronic devices capable of wireless communication.
  • FIG. 3 is an example of the composition of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an internal memory 120, a display screen 130, a camera 140, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, and the like.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than illustrated, some components may be combined, some components may be separated, or components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, smart sensor hub (sensor hub) and/or neural network processor (neural- network processing unit, NPU), etc.
  • application processor application processor
  • AP application processor
  • modem processor e.g., GPU
  • GPU graphics processing unit
  • image signal processor image signal processor
  • controller image signal processor
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor a digital signal processor
  • smart sensor hub sensor hub
  • neural network processing unit neural- network processing unit
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • Internal memory 120 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 120 to execute various functional applications and data processing of the electronic device 100 .
  • the internal memory 120 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the internal memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 120 and/or instructions stored in a memory provided in the processor.
  • the internal memory 120 stores instructions for executing the video recording control method of the electronic device.
  • the processor 110 can control the electronic device to start recording and pause recording by executing instructions stored in the internal memory 120 .
  • the electronic device implements display functions through the GPU, the display screen 130, and the application processor.
  • the GPU is an image processing microprocessor and is connected to the display screen 130 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 130 is used to display images, videos, etc.
  • Display screen 130 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed
  • Micro-oled quantum dot light emitting diode
  • QLED quantum dot light emitting diode
  • the electronic device may include 1 or N display screens 130, where N is a positive integer greater than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 140, a video codec, a GPU, a display screen 130, an application processor, and the like.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the wireless communication module 160 may be a Bluetooth module.
  • the Bluetooth module may include one or more memories, one or more processors, and the like.
  • the processor in the Bluetooth module can perform frequency modulation, filtering, calculation, judgment and other operations on the electromagnetic waves received through the antenna 2, and convert the processed signals into electromagnetic waves for radiation through the antenna 2.
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • the audio module 170 can be used to detect whether the electronic device is in a video recording mode, and can also be used to convert an instruction to hang up the call into an instruction to pause video recording.
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the electronic device may be provided with at least one microphone 170C. In other embodiments, the electronic device may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA Cellular Telecommunications Industry Association of the USA
  • an operating system runs on top of the above components.
  • iOS operating system For example, iOS operating system, Android operating system, Windows operating system, etc.
  • Applications can be installed and run on the operating system.
  • FIG. 4 is a software structure block diagram of the electronic device according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
  • the application layer can include a series of application packages. As shown in Figure 4, the application package can include camera, calendar, map, call, gallery, Bluetooth and other applications.
  • the application layer may also include service A, which can identify whether the electronic device is in the video recording mode when called and run as described above.
  • service A can identify whether the electronic device is in the video recording mode when called and run as described above.
  • Figure 4 shows an example where service A is set up in the application layer.
  • service A may also be set at the application framework layer.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 4, the application framework layer can include a window manager, content provider, phone manager, resource manager, notification manager, and view system, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • Telephone managers are used to provide communication functions of electronic devices. For example, call status management (including connected, hung up, etc.).
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system. In some embodiments of this application, the cold start of the application will be run in the Android runtime, and the Android runtime will obtain the optimized file status parameters of the application. Then the Android runtime can determine whether the optimized file is outdated due to system upgrades through the optimized file status parameters. , and returns the judgment result to the application management module.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), three-dimensional graphics processing libraries (for example: OpenGL ES), two-dimensional graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG2, H.262, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least display driver, audio driver, camera driver, etc.
  • the video recording control method of an electronic device provided by the embodiment of the present application enables the user to control the electronic device to start recording and pause the video by touching the Bluetooth headset.
  • the video recording control method of electronic equipment provided by this embodiment can be applied to the application scenarios shown in Figures 5 to 8.
  • the user wears a Bluetooth headset, and a Bluetooth connection is established between the Bluetooth headset and the electronic device.
  • the electronic device enters the recording mode, and the display screen displays the recording interface.
  • the user touches the Bluetooth headset, for example, clicks on the body of the Bluetooth headset as shown in Figure 6, and the electronic device starts recording in response to the user's click operation.
  • the electronic device records for a period of time, for example, 14 seconds after recording the video as shown in Figure 7
  • the user can touch the Bluetooth headset again, for example, click on the body of the Bluetooth headset as shown in Figure 8, and the electronic device The device pauses recording again in response to the user's click operation.
  • FIG. 9 shows a flow chart of a video recording control method of an electronic device provided by an embodiment of the present application.
  • the video recording control method of electronic equipment provided by this embodiment includes the following steps:
  • the Bluetooth headset and the electronic device establish a Bluetooth connection channel.
  • the Bluetooth headset and the electronic device can use the content mentioned in step S201 in the aforementioned content to establish a Bluetooth connection channel.
  • the Bluetooth connection channel is used for data interaction between electronic devices and Bluetooth headsets.
  • the Bluetooth headset responds to the user's touch operation and analyzes the user's touch operation.
  • step S202 For the specific implementation of this step, please refer to the content of step S202 in the foregoing content, and will not be described here.
  • the Bluetooth headset parses the user's touch operation as the first operation and generates the first instruction.
  • step S203 For the specific implementation of this step, please refer to the content of step S203 in the foregoing content, and will not be described here.
  • the Bluetooth headset sends the first command to the electronic device.
  • the Bluetooth headset sends the first command to the electronic device through the Bluetooth connection channel established in the aforementioned step S301.
  • the electronic device receives the first command and detects whether the electronic device is in the video recording mode.
  • step S205 For the specific implementation of this step, please refer to the content of step S205 in the foregoing content, and will not be described here.
  • the electronic device can detect that the electronic device is in the video recording mode according to the two methods provided in the aforementioned step S205.
  • the electronic device may execute step S306. If the electronic device detects that the electronic device is not in the recording mode, the electronic device can exit the process of executing this method.
  • the electronic device and the Bluetooth headset establish a SCO link.
  • step S206 For the specific implementation of this step, please refer to the content of step S206 in the foregoing content, and will not be described here.
  • the electronic device starts recording.
  • the user inputs a touch operation on the Bluetooth headset
  • the Bluetooth headset interprets the touch operation as an operation to control the electronic device to start recording
  • the electronic device determines that it is in the recording mode, then the electronic device and the Bluetooth headset establish an SCO link to After the data is transmitted, the electronic device starts recording, so that the user does not need to operate the electronic device and can control the electronic device to start recording just by touching the Bluetooth headset.
  • Bluetooth headset collects audio information through the microphone.
  • Bluetooth headsets are equipped with one or more microphones for collecting audio information.
  • the Bluetooth headset sends audio information to the electronic device through the SCO link.
  • step S209 for the specific implementation of this step, please refer to the content of step S209 in the foregoing content, and will not be described here.
  • the Bluetooth headset responds to the user's touch operation and analyzes the user's touch operation.
  • the user if the user wants to pause the recording, he can also input touch operations on the Bluetooth headset.
  • the user inputs a touch operation on the Bluetooth headset, such as the touch operation of double-clicking the body of the Bluetooth headset as shown in Figure 8.
  • the sensor of the Bluetooth headset senses the user's touch operation, converts the touch operation into the corresponding touch command, and transmits it to the Bluetooth module of the Bluetooth headset.
  • the Bluetooth module parses the touch command to determine the touch operation input by the user.
  • the Bluetooth headset parses the user's touch operation as a second operation and generates a second instruction.
  • the Bluetooth module of the Bluetooth headset parses the touch commands corresponding to the user's touch operations. If the Bluetooth module determines that the user has input a second operation by analyzing the touch command, the Bluetooth module generates a second command, which is used to control the electronic device to end the call.
  • the second instruction may refer to a hangup instruction.
  • the second operation is also a touch operation performed by the user on the Bluetooth headset, which can be understood as an operation for the user to control the electronic device to pause recording through the Bluetooth headset.
  • the second operation may be a single-click operation or a double-click operation on the Bluetooth headset body, and may be set to a single-click operation or double-click operation on a specific position of the Bluetooth headset body.
  • the manipulation position of the second operation should be different from the manipulation position of the first operation.
  • the first operation may also be a touch operation on a button on the Bluetooth headset. Of course, the button needs to be different from the button used in the first operation.
  • the Bluetooth headset and the electronic device have established an SCO link, the Bluetooth headset will be in the call process. Therefore, when the user performs a touch operation on the Bluetooth headset and needs to control the electronic device to pause recording, the Bluetooth headset will interpret the operation as Control the operation of the electronic device to end the call and generate instructions to end the call.
  • the Bluetooth headset sends the second command to the electronic device.
  • the Bluetooth module of the Bluetooth headset can send the second command to the electronic device through the Bluetooth connection channel established with the electronic device in step S301.
  • the electronic device detects whether the electronic device is in recording mode.
  • the Bluetooth module of the electronic device receives the second instruction and sends a second request to the audio module of the electronic device.
  • the second request is used to control the electronic device to suspend the call.
  • the audio module receives the second request and detects whether the electronic device is in recording mode.
  • the electronic device can detect whether the electronic device is in the video recording mode in the following two ways:
  • Method 1 After receiving the second instruction, the electronic device calls service A to identify whether the electronic device is in the video recording mode and obtains the operation result of the service. The electronic device can determine whether the electronic device is in the recording mode based on the operation results of the service.
  • Method 2 After the electronic device receives the second instruction, the electronic device traverses the currently running processes and determines whether the currently running processes include a video recording process. In some embodiments, the electronic device may determine whether the currently running process includes a video recording process through the process identifier.
  • step S314 If the electronic device detects that the electronic device is not in the recording mode, the electronic device can exit the process of executing this method.
  • the electronic device generates a pause command according to the second command.
  • the pause command is used to control the electronic device to pause recording.
  • the audio module of the electronic device generates a pause instruction according to the second instruction.
  • the pause instruction may refer to avrcp pause. Since the second command is used to control the electronic device to stop talking, it needs to be converted into an command to control the electronic device to pause recording.
  • the electronic device After the electronic device generates a pause command, the electronic device will respond to the pause command and pause the recording. The electronic device pauses recording. If the user wants to continue recording with the electronic device, the user can click on the body of the Bluetooth headset as shown in Figure 6.
  • the Bluetooth headset executes steps S302 to step S304, and the electronic device executes steps S305 to step S309 to achieve this.
  • the electronic device continues to record.
  • Step S306 may not be executed.
  • the Bluetooth headset and the electronic device perform steps S301 to S309 to enable the user to control the electronic device to start recording by touching the Bluetooth headset. If the SCO link established by the electronic device and the Bluetooth headset is not disconnected, then When the Bluetooth headset and the electronic device perform the process from step S302 to step S309 again, step S306 can no longer be used to repeatedly establish the SCO link.
  • the Bluetooth headset can sense the user's touch operation, generate a second instruction and send it to the electronic device, and the electronic device will process the second instruction. It is converted into a pause command to control the electronic device to pause recording, so that the user does not need to operate the electronic device when he wants to pause the recording of the electronic device, and can only operate the Bluetooth headset.
  • step S314 it may also determine whether the electronic device is in a call state. If the electronic device determines that the electronic device is not in a call state, it means that the electronic device has only turned on recording, and step S314 can be executed.
  • step S313 is performed first and then the judgment of whether the electronic device is in the call state is performed, or the step S313 is performed first and then the step S313 is performed, and Unlimited.
  • step S314 is executed to record the electronic device. of pause.
  • the electronic device determines that the electronic device is not in the recording mode but is in a call state, the electronic device can end the call according to the second instruction in step S312.
  • the electronic device determines that the electronic device is in recording mode and in a call state, after receiving the second command, the electronic device can execute in the following three ways:
  • Method 1 Execute step S314 to control the electronic device to pause recording.
  • Method 2 Do not execute step S314, and end the call according to the second instruction in step S312.
  • Step S314 is not executed, and the call is not ended according to the second instruction in step S312.
  • the electronic device can also combine other information of the electronic device to select one of the above three methods for execution.
  • Another embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium stores instructions, which when run on a computer or processor, cause the computer or processor to perform any one of the above methods. one or more steps.
  • the computer-readable storage medium may be a non-transitory computer-readable storage medium.
  • the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
  • Another embodiment of the present application also provides a computer program product containing instructions.
  • the computer program product is run on a computer or processor, the computer or processor is caused to perform one or more steps in any of the above methods.

Abstract

Embodiments of the present application provide a video recording control method of an electronic device, an electronic device, and a computer readable storage medium. An SCO link is established between the electronic device and Bluetooth earphones, the electronic device is in a video recording state, and the Bluetooth earphones send audio information to the electronic device by means of the SCO link. The video recording control method of the electronic device comprises: the electronic device receives a first control instruction sent by the Bluetooth earphones; the electronic device generates a pause instruction according to the first control instruction; the electronic device drives a camera to pause video recording in response to the pause instruction. Hence, a user can perform a first touch operation on the Bluetooth earphones, the Bluetooth earphones can sense the first touch operation of the user to generate a first control instruction and send the first control instruction to the electronic device, and the electronic device generates a pause instruction according to the first control instruction to control the electronic device to pause video recording, so that the user does not need to operate the electronic device when the user wants to pause video recording of the electronic device, but only needs to operate the Bluetooth earphones.

Description

电子设备的录像控制方法、电子设备及可读介质Video recording control method of electronic equipment, electronic equipment and readable medium
本申请要求2022年03月29日提交中国国家知识产权局、申请号为202210315288.6、发明名称为“电子设备的录像控制方法、电子设备及可读介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on March 29, 2022, with the application number 202210315288.6 and the invention title "Recording control method of electronic equipment, electronic equipment and readable medium", and its entire contents incorporated herein by reference.
技术领域。technical field.
本申请涉及通信技术领域,尤其涉及一种电子设备的录像控制方法、电子设备、程序产品及计算机可读存储介质。The present application relates to the field of communication technology, and in particular to a video recording control method of electronic equipment, electronic equipment, program products and computer-readable storage media.
背景技术Background technique
随着电子设备的不断发展,用户对电子设备的操作便捷性的需求也不断增强。With the continuous development of electronic equipment, users' demand for the convenience of operating electronic equipment is also increasing.
在电子设备的一个应用场景中,用户佩戴蓝牙耳机,且控制电子设备以摄像头进行录像。若用户想暂停录像,则需要在电子设备的录像界面上执行触控操作,这对处于远离手机位置的用户来说,操作的便捷性大大降低。In an application scenario of electronic devices, the user wears a Bluetooth headset and controls the electronic device to record video with a camera. If the user wants to pause the recording, he or she needs to perform a touch operation on the recording interface of the electronic device, which greatly reduces the convenience of the operation for users who are far away from the mobile phone.
因此,需要向用户提供一种能够通过蓝牙耳机控制电子设备暂停录像的方案。Therefore, it is necessary to provide users with a solution that can control electronic devices to pause recording through Bluetooth headsets.
发明内容Contents of the invention
本申请提供了一种电子设备的录像控制方法、电子设备、程序产品及计算机可读存储介质,目的在于用户能够通过触控蓝牙耳机,实现控制电子设备暂停录像。This application provides a video recording control method for electronic equipment, electronic equipment, program products, and computer-readable storage media. The purpose is that users can control the electronic equipment to pause video recording by touching the Bluetooth headset.
为了实现上述目的,本申请提供了以下技术方案:In order to achieve the above objectives, this application provides the following technical solutions:
第一方面,本申请提供了一种电子设备的录像控制方法,可应用于电子设备,该电子设备与蓝牙耳机建立有同步定向连接SCO链路,电子设备处于录像状态,蓝牙耳机通过SCO链路向电子设备发送音频信息,音频信息由蓝牙耳机的麦克风采集,电子设备的录像控制方法包括:电子设备接收蓝牙耳机发送的第一控制指令,第一控制指令用于控制电子设备结束通话;第一控制指令由蓝牙耳机响应于第一触控操作而生成;电子设备根据第一控制指令,生成暂停指令,暂停指令用于控制电子设备暂停录像;电子设备响应于暂停指令,驱动摄像头暂停录像。In the first aspect, this application provides a video recording control method for electronic equipment, which can be applied to electronic equipment. The electronic equipment establishes a synchronous directional connection SCO link with the Bluetooth headset. The electronic equipment is in the recording state, and the Bluetooth headset passes the SCO link. Send audio information to the electronic device, and the audio information is collected by the microphone of the Bluetooth headset. The video recording control method of the electronic device includes: the electronic device receives a first control instruction sent by the Bluetooth headset, and the first control instruction is used to control the electronic device to end the call; The control instruction is generated by the Bluetooth headset in response to the first touch operation; the electronic device generates a pause instruction according to the first control instruction, and the pause instruction is used to control the electronic device to pause recording; the electronic device responds to the pause instruction and drives the camera to pause recording.
由上述内容可以看出:用户可通过在蓝牙耳机上执行第一触控操作,蓝牙耳机可感知到用户的第一触控操作,生成第一控制指令并发送到电子设备,电子设备根据第一控制指生成暂停指令以控制电子设备暂停录像,实现了用户想暂停电子设备录像时也无需操作电子设备,可仅操作蓝牙耳机。It can be seen from the above that: the user can perform the first touch operation on the Bluetooth headset, the Bluetooth headset can sense the user's first touch operation, generate the first control instruction and send it to the electronic device, and the electronic device can respond according to the first touch operation. Control refers to generating a pause command to control the electronic device to pause recording. This enables the user to pause the recording of the electronic device without operating the electronic device and can only operate the Bluetooth headset.
在一个可能的实施方式中,电子设备接收蓝牙耳机发送的第一控制指令之后,还包括:电子设备检测电子设备处于录像模式。In a possible implementation, after the electronic device receives the first control instruction sent by the Bluetooth headset, the method further includes: the electronic device detects that the electronic device is in the video recording mode.
在一个可能的实施方式中,电子设备检测电子设备处于录像模式,包括:电子设备调用服务运行,以检测电子设备是否处于录像模式;电子设备获取服务的检测结果,且确定检测结果表征电子设备处于录像模式。In a possible implementation, the electronic device detects that the electronic device is in the video recording mode, including: the electronic device calls a service operation to detect whether the electronic device is in the video recording mode; the electronic device obtains the detection result of the service, and determines that the detection result indicates that the electronic device is in the video recording mode. Video mode.
在一个可能的实施方式中,电子设备检测电子设备处于录像模式,包括:电子设备遍历处于运行状态的进程,确定处于运行状态的进程包括录像进程。In a possible implementation, the electronic device detects that the electronic device is in the video recording mode, including: the electronic device traverses the processes in the running state, and determines that the process in the running state includes the video recording process.
在一个可能的实施方式中,电子设备接收蓝牙耳机发送的第一控制指令,包括:电子设备接收蓝牙耳机通过异步无连接ACL链路发送的第一控制指令。In a possible implementation, the electronic device receiving the first control instruction sent by the Bluetooth headset includes: the electronic device receiving the first control instruction sent by the Bluetooth headset through the asynchronous connectionless ACL link.
在一个可能的实施方式中,电子设备与蓝牙耳机建立同步定向连接SCO链路的方式,包括:电子设备向蓝牙耳机发送连接命令;蓝牙耳机收到电子设备发送的连接命令,向电子设备返回连接事件。In a possible implementation, the method for establishing a synchronous directional connection SCO link between an electronic device and a Bluetooth headset includes: the electronic device sends a connection command to the Bluetooth headset; the Bluetooth headset receives the connection command sent by the electronic device and returns the connection to the electronic device. event.
在一个可能的实施方式中,电子设备根据第一控制指令,生成暂停指令之前,还包括:电子设备确定电子设备未处于通话模式。In a possible implementation, before the electronic device generates the pause instruction according to the first control instruction, the method further includes: the electronic device determines that the electronic device is not in the call mode.
在一个可能的实施方式中,该电子设备的录像控制方法还包括:电子设备确定电子设备处于通话模式,则响应于第一控制指令,结束通话。In a possible implementation, the video recording control method of the electronic device further includes: the electronic device determines that the electronic device is in a call mode, and ends the call in response to the first control instruction.
在一个可能的实施方式中,电子设备根据第一控制指令,生成暂停指令之前,还包括:电子设备确定电子设备处于通话模式。In a possible implementation, before the electronic device generates the pause instruction according to the first control instruction, the method further includes: the electronic device determines that the electronic device is in the call mode.
在一个可能的实施方式中,电子设备响应于暂停指令,暂停录像之后,还包括:电子设备接收蓝牙耳机发送的第二控制指令,第二控制指令用于控制电子设备开始录像;第二控制指令由蓝牙耳机响应于第二触控操作而生成;电子设备响应于第二控制指令,驱动摄像头录像。In a possible implementation, after the electronic device responds to the pause instruction and pauses the recording, it further includes: the electronic device receives a second control instruction sent by the Bluetooth headset, and the second control instruction is used to control the electronic device to start recording; the second control instruction The Bluetooth headset is generated in response to the second touch operation; the electronic device responds to the second control instruction and drives the camera to record video.
在本可能的实施方式中,电子设备暂停录像,若用户想继续利用电子设备录像,用户可在蓝牙耳机上输入第二触控操作,蓝牙耳机可向电子设备发送第二控制指令,以控制电子设备继续录像,实现了用户无需操作电子设备,仅通过蓝牙耳机控制电子设备继续录像。In this possible implementation, the electronic device pauses recording. If the user wants to continue recording using the electronic device, the user can input a second touch operation on the Bluetooth headset, and the Bluetooth headset can send a second control command to the electronic device to control the electronic device. The device continues recording, so that the user does not need to operate the electronic device and only controls the electronic device through the Bluetooth headset to continue recording.
在一个可能的实施方式中,电子设备响应于第二控制指令,调用摄像头录像之后,还包括:电子设备接收蓝牙耳机通过SCO链路发送的音频信息,音频信息由蓝牙耳机的麦克风采集;电子设备保存音频信息。In a possible implementation, after the electronic device responds to the second control instruction and calls the camera to record, the electronic device further includes: the electronic device receives audio information sent by the Bluetooth headset through the SCO link, and the audio information is collected by the microphone of the Bluetooth headset; Save audio information.
第二方面,本申请提供了一种电子设备,包括:一个或多个处理器、存储器,摄像头和无线通信模块;存储器、摄像头和无线通信模块与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,电子设备执行如第一方面中任意一项的电子设备的录像控制方法。In a second aspect, this application provides an electronic device, including: one or more processors, memories, cameras and wireless communication modules; the memory, cameras and wireless communication modules are coupled with one or more processors, and the memory is used to store Computer program code. The computer program code includes computer instructions. When one or more processors execute the computer instructions, the electronic device executes any one of the video recording control methods of the electronic device in the first aspect.
第三方面,本申请提供了一种计算机可读存储介质,用于存储计算机程序,计算机程序被执行时,具体用于实现如第一方面中任意一项的电子设备的录像控制方法。In a third aspect, the present application provides a computer-readable storage medium for storing a computer program. When the computer program is executed, it is specifically used to implement the video recording control method of an electronic device as in any one of the first aspect.
第四方面,本申请提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面中任意一项的电子设备的录像控制方法。In a fourth aspect, the present application provides a computer program product. When the computer program product is run on a computer, it causes the computer to execute the video recording control method of an electronic device as described in any one of the first aspect.
附图说明Description of drawings
图1为本申请提供的一种应用场景图;Figure 1 is an application scenario diagram provided by this application;
图2为本申请提供的电子设备的录像控制方法的时序图;Figure 2 is a sequence diagram of the video recording control method of the electronic device provided by this application;
图3为本申请提供的电子设备的硬件结构图;Figure 3 is a hardware structure diagram of the electronic device provided by this application;
图4为本申请提供的电子设备的软件架构图;Figure 4 is a software architecture diagram of the electronic device provided by this application;
图5到图8为本申请实施例提供的一种应用场景图;Figures 5 to 8 are application scenario diagrams provided by embodiments of the present application;
图9为本申请实施例提供的一种电子设备的录像控制方法的时序图。FIG. 9 is a sequence diagram of a video recording control method of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. The terminology used in the following examples is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "the" are intended to also Expressions such as "one or more" are included unless the context clearly indicates otherwise. It should also be understood that in the embodiments of this application, "one or more" refers to one, two or more than two; "and/or" describes the association relationship of associated objects, indicating that three relationships can exist; for example, A and/or B can mean: A alone exists, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
本申请实施例涉及的多个,是指大于或等于两个。需要说明的是,在本申请实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。The plurality involved in the embodiments of this application refers to more than or equal to two. It should be noted that in the description of the embodiments of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating. Or suggestive order.
图1展示的应用场景中,用户可通过触控蓝牙耳机,控制电子设备(图中以手机为例)开始录像。具体的,图1中的(a)中,用户佩戴蓝牙耳机,蓝牙耳机和电子设备建立有蓝牙连接。电子设备进入录像模式,显示屏显示录像界面。用户触控蓝牙耳机,如图1中的(b)所示的点击蓝牙耳机的机身,电子设备则开始录像。In the application scenario shown in Figure 1, the user can control the electronic device (a mobile phone is used as an example in the figure) to start recording by touching the Bluetooth headset. Specifically, in (a) of Figure 1, the user wears a Bluetooth headset, and a Bluetooth connection is established between the Bluetooth headset and the electronic device. The electronic device enters the recording mode, and the display screen displays the recording interface. The user touches the Bluetooth headset and clicks on the body of the Bluetooth headset as shown in (b) of Figure 1, and the electronic device starts recording.
图2展示了用户通过蓝牙耳机控制电子设备开始录像的流程。参见图2,电子设备的录像控制方法,包括步骤:Figure 2 shows the process for users to control electronic devices through Bluetooth headsets to start recording. See Figure 2, the video recording control method of electronic equipment, including steps:
S201、蓝牙耳机和电子设备建立蓝牙连接通道。S201, the Bluetooth headset and the electronic device establish a Bluetooth connection channel.
用户可通过在电子设备上执行操作,控制电子设备搜索蓝牙耳机。在电子设备发现蓝牙耳机后,用户在电子设备上执行操作,控制电子设备与蓝牙耳机建立连接。The user can control the electronic device to search for Bluetooth headsets by performing operations on the electronic device. After the electronic device discovers the Bluetooth headset, the user performs an operation on the electronic device to control the electronic device to establish a connection with the Bluetooth headset.
当然,若电子设备的蓝牙连接的历史记录中记录有蓝牙耳机,则电子设备开启蓝牙功能后,可自动发起与蓝牙耳机建立连接。Of course, if a Bluetooth headset is recorded in the Bluetooth connection history of the electronic device, the electronic device can automatically initiate a connection with the Bluetooth headset after turning on the Bluetooth function.
需要说明的是,蓝牙耳机和电子设备可采用蓝牙协议,建立蓝牙连接通道。蓝牙耳机和电子设备建立蓝牙连接通道的具体实现方式,此处不展开说明。It should be noted that Bluetooth headsets and electronic devices can use the Bluetooth protocol to establish a Bluetooth connection channel. The specific implementation method of establishing a Bluetooth connection channel between a Bluetooth headset and an electronic device will not be explained here.
通常情况下,蓝牙耳机和电子设备建立的蓝牙连接通道是异步无连接(asynchronous connection less,ACL)链路。ACL链路是蓝牙的基本连接链路,一般用于传输连接类的协商信令,用于保持蓝牙连接。ACL链路还支持单向传输数据。示例性的,当电子设备通过ACL链路向蓝牙耳机发送数据时,蓝牙耳机无法同时向电子设备发送数据。Normally, the Bluetooth connection channel established by Bluetooth headsets and electronic devices is an asynchronous connection less (ACL) link. The ACL link is the basic connection link of Bluetooth. It is generally used to transmit connection-type negotiation signaling and to maintain the Bluetooth connection. ACL links also support one-way transmission of data. For example, when an electronic device sends data to a Bluetooth headset through an ACL link, the Bluetooth headset cannot send data to the electronic device at the same time.
S202、蓝牙耳机响应用户的触控操作,解析用户的触控操作。S202. The Bluetooth headset responds to the user's touch operation and analyzes the user's touch operation.
蓝牙耳机设置有传感器和蓝牙模块,传感器用于检测用户的触控操作。用户在蓝牙耳机输入触控操作。蓝牙耳机的传感器可检测到触控操作。蓝牙耳机的传感器将检测到的触 控操作,转换为触控指令,并传输到蓝牙模块。蓝牙模块解析该触控指令,以明确用户输入的触控操作。The Bluetooth headset is equipped with a sensor and a Bluetooth module, and the sensor is used to detect the user's touch operation. The user inputs touch operations on the Bluetooth headset. The Bluetooth headset's sensor detects touch operations. The sensor of the Bluetooth headset converts the detected touch operation into a touch command and transmits it to the Bluetooth module. The Bluetooth module parses the touch command to clarify the touch operation input by the user.
S203、蓝牙耳机解析用户的触控操作为第一操作,生成第一指令。S203. The Bluetooth headset parses the user's touch operation as the first operation and generates the first instruction.
蓝牙耳机的蓝牙模块解析用户的触控操作对应的触控指令。若蓝牙模块通过解析该触控指令,确定用户输入了第一操作,蓝牙模块生成第一指令,该第一指令用于控制电子设备开始录像。一些实施例中,第一指令可指代avrcp play指令。The Bluetooth module of the Bluetooth headset parses the touch commands corresponding to the user's touch operations. If the Bluetooth module determines that the user has input the first operation by analyzing the touch command, the Bluetooth module generates a first command, which is used to control the electronic device to start recording. In some embodiments, the first instruction may refer to the avrcp play instruction.
第一操作是用户对蓝牙耳机的一种触控操作,可以理解成是提供给用户通过蓝牙耳机控制电子设备开始录像的操作。一个示例中,第一操作可为对蓝牙耳机机身的单击操作,当然可以设定为对蓝牙耳机机身特定位置的单击操作,或任意位置的单击操作。另一个示例中,第一操作也可以为对蓝牙耳机上按键的触控操作。The first operation is a touch operation performed by the user on the Bluetooth headset, which can be understood as an operation for the user to control the electronic device through the Bluetooth headset to start recording. In one example, the first operation may be a click operation on the body of the Bluetooth headset. Of course, it may be set to a click operation on a specific position of the body of the Bluetooth headset, or a click operation at any position. In another example, the first operation may also be a touch operation on a button on the Bluetooth headset.
S204、蓝牙耳机向电子设备发送第一指令。S204. The Bluetooth headset sends the first command to the electronic device.
蓝牙耳机的蓝牙模块,可通过与电子设备建立的蓝牙连接通道向电子设备发送第一指令。The Bluetooth module of the Bluetooth headset can send the first command to the electronic device through the Bluetooth connection channel established with the electronic device.
S205、电子设备接收第一指令,并检测电子设备是否处于录像模式。S205. The electronic device receives the first command and detects whether the electronic device is in the video recording mode.
电子设备的蓝牙模块接收第一指令,并向电子设备的音频模块发送第一请求,该第一请求用于控制电子设备开始录像。音频模块收到第一请求,检测电子设备是否处于录像模式。The Bluetooth module of the electronic device receives the first instruction and sends a first request to the audio module of the electronic device. The first request is used to control the electronic device to start recording. The audio module receives the first request and detects whether the electronic device is in recording mode.
一些实施例中,音频模块检测电子设备是否处于录像模式可有下述两种方式:In some embodiments, the audio module can detect whether the electronic device is in recording mode in the following two ways:
方式1、电子设备的软件架构的应用程序层或应用框架层设置一个服务,该服务的功能是:识别电子设备是否处于录像模式。Method 1. The application layer or application framework layer of the software architecture of the electronic device sets a service. The function of the service is to identify whether the electronic device is in recording mode.
基于此,电子设备接收到第一指令后,控制该服务运行,并获取该服务的运行结果。电子设备可根据该服务的运行结果确定电子设备是否处于录像模式。Based on this, after receiving the first instruction, the electronic device controls the operation of the service and obtains the operation result of the service. The electronic device can determine whether the electronic device is in the recording mode based on the operation results of the service.
方式2、电子设备遍历当前运行的进程,判断当前运行的进程是否包括录像的进程。一些实施例中,电子设备可通过进程标识符来判断当前运行的进程是否包括录像的进程。Method 2: The electronic device traverses the currently running processes and determines whether the currently running processes include a video recording process. In some embodiments, the electronic device may determine whether the currently running process includes a video recording process through the process identifier.
基于此,电子设备接收到第一指令后,则按照方式2,遍历当前运行的进程,判断当前运行的进程是否包括录像的进程。Based on this, after receiving the first instruction, the electronic device traverses the currently running processes according to method 2 and determines whether the currently running processes include a video recording process.
还需要说明的是,若电子设备启动摄像头运行且处理录像模式,则电子设备可按照前述两种方式检测出电子设备处于录像模式。在电子设备被检测出处于录像模式时,电子设备则可执行步骤S206。若电子设备检测电子设备未处于录像模式,则电子设备可退出执行本方法的流程。It should also be noted that if the electronic device starts the camera operation and processes the video recording mode, the electronic device can detect that the electronic device is in the video recording mode according to the aforementioned two methods. When the electronic device is detected to be in the video recording mode, the electronic device may execute step S206. If the electronic device detects that the electronic device is not in the recording mode, the electronic device can exit the process of executing this method.
S206、电子设备和蓝牙耳机建立SCO链路。S206. The electronic device and the Bluetooth headset establish a SCO link.
其中,同步定向连接(synchronous connection oriented,SCO)链路属于电子设备与蓝牙耳机之间的一种蓝牙物理链路。SCO链路是蓝牙基带支持的连接技术,是利用保留时隙传输数据。SCO链路还支持双向传输数据。示例性的,当电子设备通过SCO链路向蓝牙耳机发送数据时,蓝牙耳机也可以通过该SCO链路向电子设备发送数据。Among them, the synchronous connection oriented (SCO) link is a Bluetooth physical link between the electronic device and the Bluetooth headset. The SCO link is a connection technology supported by Bluetooth baseband and uses reserved time slots to transmit data. The SCO link also supports bidirectional data transmission. For example, when the electronic device sends data to the Bluetooth headset through the SCO link, the Bluetooth headset can also send data to the electronic device through the SCO link.
一些实施例中,电子设备和蓝牙耳机建立SCO链路的方式,包括:In some embodiments, the method for establishing an SCO link between an electronic device and a Bluetooth headset includes:
电子设备向蓝牙耳机发送连接命令(Command)。The electronic device sends a connection command (Command) to the Bluetooth headset.
蓝牙耳机收到电子设备发送的Command,向电子设备返回事件(Event)。以此,电子设备和蓝牙耳机之间的SCO链路的建立完成。The Bluetooth headset receives the Command sent by the electronic device and returns an event (Event) to the electronic device. With this, the establishment of the SCO link between the electronic device and the Bluetooth headset is completed.
电子设备可以理解成主机,蓝牙耳机可以理解成从机。主机和从机可通过接口(Host Controller Interface,HCI),通过Command和Event的形式进行通信。通常情况下,command是主机传给从机,Event是从机反馈给主机。The electronic device can be understood as the host, and the Bluetooth headset can be understood as the slave. The host and slave can communicate through the interface (Host Controller Interface, HCI) in the form of Command and Event. Normally, the command is passed from the master to the slave, and the event is fed back from the slave to the master.
一些实施例中,电子设备向蓝牙耳机发送的Command可以为:HCI_Setup_Synchronous_Connection。蓝牙耳机向电子设备返回的Event可以为:HCI_Setup_Synchronous_Connection。In some embodiments, the Command sent by the electronic device to the Bluetooth headset may be: HCI_Setup_Synchronous_Connection. The Event returned by the Bluetooth headset to the electronic device can be: HCI_Setup_Synchronous_Connection.
S207、电子设备开始录像。S207. The electronic device starts recording.
电子设备和蓝牙耳机之间的SCO链路建立完成,电子设备可开始录像。The SCO link between the electronic device and the Bluetooth headset is established, and the electronic device can start recording.
可以理解的是,电子设备开始录像是指电子设备通过摄像头拍摄视频,但并不通过电子设备的麦克风采集音频信息。It can be understood that when the electronic device starts recording, it means that the electronic device captures video through the camera, but does not collect audio information through the microphone of the electronic device.
还需要说明的是,用户对蓝牙耳机输入触控操作,蓝牙耳机解析该触控操作为控制电子设备开始录像的操作,电子设备判断自身处于录像模式,则电子设备和蓝牙耳机建立SCO链路,电子设备开始录像,实现了用户通过触控蓝牙耳机控制电子设备开始录像,而无需操作电子设备。It should also be noted that when the user inputs a touch operation on the Bluetooth headset, the Bluetooth headset interprets the touch operation as an operation to control the electronic device to start recording. The electronic device determines that it is in the recording mode, and then the electronic device and the Bluetooth headset establish a SCO link. The electronic device starts recording, which enables the user to control the electronic device to start recording through the touch Bluetooth headset without operating the electronic device.
S208、蓝牙耳机通过麦克风采集音频信息。S208, Bluetooth headset collects audio information through the microphone.
蓝牙耳机设置有一个或多个麦克风,用于采集音频信息。Bluetooth headsets are equipped with one or more microphones for collecting audio information.
S209、蓝牙耳机通过SCO链路向电子设备发送音频信息。S209. The Bluetooth headset sends audio information to the electronic device through the SCO link.
蓝牙耳机的蓝牙模块将麦克风采集的音频信息向电子设备发送。电子设备的蓝牙模块接收蓝牙耳机发送的音频信息,并传输到电子设备的音频模块。The Bluetooth module of the Bluetooth headset sends the audio information collected by the microphone to the electronic device. The Bluetooth module of the electronic device receives the audio information sent by the Bluetooth headset and transmits it to the audio module of the electronic device.
需要说明的是,蓝牙耳机通过麦克风采集音频信息,并传输到电子设备,可保证用户位于远离电子设备的区域,也可通过蓝牙耳机的麦克风采集用户的音频信息。It should be noted that the Bluetooth headset collects audio information through the microphone and transmits it to the electronic device, which can ensure that the user is in an area far away from the electronic device. The user's audio information can also be collected through the microphone of the Bluetooth headset.
前述内容提出的电子设备开启录像的方法中,用户可通过触控蓝牙耳机控制电子设备开始录像,但是若需要控制电子设备暂停录像,还需要用户操作电子设备。究其原因发现:电子设备和蓝牙耳机建立SCO链路,电子设备和蓝牙耳机触发通话流程。基于此,蓝牙耳机运行通话流程。电子设备和蓝牙耳机建立SCO链路之后,用户再次触发蓝牙耳机,蓝牙耳机会认定该触发操作为通话流程中的挂断操作,向电子设备发送挂断通话的指令。电子设备收到挂断通话的指令,因目前电子设备并没有进行通话,因此无法响应该指令。In the method for starting recording of an electronic device proposed in the foregoing content, the user can control the electronic device to start recording by touching the Bluetooth headset. However, if the electronic device needs to be controlled to pause the recording, the user also needs to operate the electronic device. The reason was found: the electronic device and the Bluetooth headset established an SCO link, and the electronic device and the Bluetooth headset triggered the call process. Based on this, the Bluetooth headset runs the call process. After the electronic device and the Bluetooth headset establish the SCO link, if the user triggers the Bluetooth headset again, the Bluetooth headset will recognize the trigger operation as a hang-up operation in the call process and send an instruction to hang up the call to the electronic device. The electronic device receives an instruction to hang up the call. Since the electronic device is not currently on a call, it cannot respond to the instruction.
为了实现用户能够通过触控蓝牙耳机,实现控制电子设备暂停录像,本申请实施例提供了一种电子设备的录像控制方法。In order to enable the user to control the electronic device to pause recording by touching the Bluetooth headset, embodiments of the present application provide a video recording control method for the electronic device.
本申请实施例提供的电子设备的录像控制方法,可以适用于手机,平板电脑,桌面型、膝上型、笔记本电脑,超级移动个人计算机(Ultra-mobile Personal Computer,UMPC),手持计算机,上网本,个人数字助理(Personal Digital Assistant,PDA),可穿戴电子设备,智能手表等能够进行无线通信的电子设备。The video recording control method of electronic equipment provided by the embodiment of the present application can be applied to mobile phones, tablet computers, desktops, laptops, notebook computers, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), handheld computers, and netbooks. Personal Digital Assistant (PDA), wearable electronic devices, smart watches and other electronic devices capable of wireless communication.
以手机为例,图3为本申请实施例提供的一种电子设备的组成示例。如图3所示,电子设备100可以包括处理器110,内部存储器120,显示屏130,摄像头140,天线1,天线2,移动通信模块150,以及无线通信模块160,以及音频模块170等。Taking a mobile phone as an example, FIG. 3 is an example of the composition of an electronic device provided by an embodiment of the present application. As shown in Figure 3, the electronic device 100 may include a processor 110, an internal memory 120, a display screen 130, a camera 140, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, and the like.
可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 . In other embodiments, the electronic device 100 may include more or fewer components than illustrated, some components may be combined, some components may be separated, or components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,智能传感集线器(sensor hub)和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, smart sensor hub (sensor hub) and/or neural network processor (neural- network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
内部存储器120可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器110通过运行存储在内部存储器120的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器120的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。Internal memory 120 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 120 to execute various functional applications and data processing of the electronic device 100 . The internal memory 120 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 120 and/or instructions stored in a memory provided in the processor.
本申请实施例中,内部存储器120存储的是用于执行电子设备的录像控制方法的指令。处理器110可以通过执行存储在内部存储器120中的指令,实现控制电子设备开始录像以及暂停录像。In the embodiment of the present application, the internal memory 120 stores instructions for executing the video recording control method of the electronic device. The processor 110 can control the electronic device to start recording and pause recording by executing instructions stored in the internal memory 120 .
电子设备通过GPU,显示屏130,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏130和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device implements display functions through the GPU, the display screen 130, and the application processor. The GPU is an image processing microprocessor and is connected to the display screen 130 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏130用于显示图像,视频等。显示屏130包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oled,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏130,N为大于1的正整数。The display screen 130 is used to display images, videos, etc. Display screen 130 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oled, quantum dot light emitting diode (quantum dot light emitting diode, QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 130, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头140,视频编解码器,GPU,显示屏130以及应用处理器等实现拍摄功能。The electronic device 100 can implement the shooting function through an ISP, a camera 140, a video codec, a GPU, a display screen 130, an application processor, and the like.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
一些实施例中,在无线通信模块160提供蓝牙通信的示例中,无线通信模块160可以是蓝牙模块。该蓝牙模块可以包括一个或多个存储器、以及一个或多个处理器等。该蓝牙模块中的处理器可以对经由天线2所接收的电磁波进行调频、滤波、运算、判断等操作,并将处理后的信号经由天线2转为电磁波辐射出去。In some embodiments, in the example where the wireless communication module 160 provides Bluetooth communication, the wireless communication module 160 may be a Bluetooth module. The Bluetooth module may include one or more memories, one or more processors, and the like. The processor in the Bluetooth module can perform frequency modulation, filtering, calculation, judgment and other operations on the electromagnetic waves received through the antenna 2, and convert the processed signals into electromagnetic waves for radiation through the antenna 2.
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
一些实施例中,音频模块170可用于检测电子设备是否处于录像模式,还可用于转换挂断通话的指令为暂停录像的指令。In some embodiments, the audio module 170 can be used to detect whether the electronic device is in a video recording mode, and can also be used to convert an instruction to hang up the call into an instruction to pause video recording.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备可以通过扬声器170A收听音乐,或收听免提通话。 Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。 Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备可以设置至少一个麦克风170C。在另一些实施例中,电子设备可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。 Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device may be provided with at least one microphone 170C. In other embodiments, the electronic device may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
另外,在上述部件之上,运行有操作系统。例如iOS操作系统,Android操作系统,Windows操作系统等。在操作系统上可以安装运行应用程序。In addition, an operating system runs on top of the above components. For example, iOS operating system, Android operating system, Windows operating system, etc. Applications can be installed and run on the operating system.
图4是本申请实施例的电子设备的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。Figure 4 is a software structure block diagram of the electronic device according to the embodiment of the present application. The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
应用程序层可以包括一系列应用程序包。如图4所示,应用程序包可以包括相机,日历,地图,通话,图库,蓝牙等应用程序。The application layer can include a series of application packages. As shown in Figure 4, the application package can include camera, calendar, map, call, gallery, Bluetooth and other applications.
一些实施例中,应用程序层还可包括服务A,该服务A如前述内容,被调用运行时可识别电子设备是否处于录像模式。当然,图4是以服务A设置于应用程序层为例进行展示。一些实施例中,服务A也可设置于应用程序框架层。In some embodiments, the application layer may also include service A, which can identify whether the electronic device is in the video recording mode when called and run as described above. Of course, Figure 4 shows an example where service A is set up in the application layer. In some embodiments, service A may also be set at the application framework layer.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,电话管理器,资源管理器,通知管理器,以及视图系统等。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 4, the application framework layer can include a window manager, content provider, phone manager, resource manager, notification manager, and view system, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。Telephone managers are used to provide communication functions of electronic devices. For example, call status management (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。在本申请一些实施例中,应用冷启动会在Android runtime中运行,Android runtime由此获取到应用的优化文件状态参数,进而Android runtime可以通过优化文件状态参数判断优化文件是否因系统升级而导致过时,并将判断结果返回给应用管控模块。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system. In some embodiments of this application, the cold start of the application will be run in the Android runtime, and the Android runtime will obtain the optimized file status parameters of the application. Then the Android runtime can determine whether the optimized file is outdated due to system upgrades through the optimized file status parameters. , and returns the judgment result to the application management module.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), three-dimensional graphics processing libraries (for example: OpenGL ES), two-dimensional graphics engines (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG2,H.262,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG2, H.262, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染、合成和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.
二维图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,音频驱动,摄像头驱动等。The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, audio driver, camera driver, etc.
需要说明的是,本申请实施例虽然以Android系统为例进行说明,但是其基本原理同样适用于基于iOS、Windows等操作系统的电子设备。It should be noted that although the embodiments of this application take the Android system as an example for explanation, the basic principles are also applicable to electronic devices based on operating systems such as iOS and Windows.
为了便于理解,本申请以下实施例将以具有图3所示的结构以及图4所示的软件架构的电子设备为例,对本申请实施例提供的电子设备的录像控制方法进行具体阐述。In order to facilitate understanding, the following embodiments of the present application will take an electronic device having the structure shown in FIG. 3 and the software architecture shown in FIG. 4 as an example to specifically describe the video recording control method of the electronic device provided by the embodiments of the present application.
本申请实施例提供的电子设备的录像控制方法,可实现用户能够通过触控蓝牙耳机,实现控制电子设备开始录像以及暂停录像。本实施例提供的电子设备的录像控制方法,可应用于如图5至图8所示的应用场景。The video recording control method of an electronic device provided by the embodiment of the present application enables the user to control the electronic device to start recording and pause the video by touching the Bluetooth headset. The video recording control method of electronic equipment provided by this embodiment can be applied to the application scenarios shown in Figures 5 to 8.
图5展示的应用场景中,用户佩戴蓝牙耳机,蓝牙耳机和电子设备建立有蓝牙连接。电子设备进入录像模式,显示屏显示录像界面。用户触控蓝牙耳机,示例性的,如图6所示的点击蓝牙耳机的机身,电子设备响应于用户的点击操作开始录像。在电子设备录像一段时间后,示例性的,如图7所示的录制视频14秒后,用户可再次触控蓝牙耳机,示例性的,如图8所示的点击蓝牙耳机的机身,电子设备再次响应于用户的点击操作暂停录像。In the application scenario shown in Figure 5, the user wears a Bluetooth headset, and a Bluetooth connection is established between the Bluetooth headset and the electronic device. The electronic device enters the recording mode, and the display screen displays the recording interface. The user touches the Bluetooth headset, for example, clicks on the body of the Bluetooth headset as shown in Figure 6, and the electronic device starts recording in response to the user's click operation. After the electronic device records for a period of time, for example, 14 seconds after recording the video as shown in Figure 7, the user can touch the Bluetooth headset again, for example, click on the body of the Bluetooth headset as shown in Figure 8, and the electronic device The device pauses recording again in response to the user's click operation.
图9展示了本申请实施例提供的电子设备的录像控制方法的流程图。参见图9,本实施例提供的电子设备的录像控制方法,包括下述步骤:Figure 9 shows a flow chart of a video recording control method of an electronic device provided by an embodiment of the present application. Referring to Figure 9, the video recording control method of electronic equipment provided by this embodiment includes the following steps:
S301、蓝牙耳机和电子设备建立蓝牙连接通道。S301, the Bluetooth headset and the electronic device establish a Bluetooth connection channel.
其中,蓝牙耳机和电子设备可采用前述内容中步骤S201提及的内容,建立蓝牙连接通道。该蓝牙连接通道用于电子设备和蓝牙耳机进行数据交互。Among them, the Bluetooth headset and the electronic device can use the content mentioned in step S201 in the aforementioned content to establish a Bluetooth connection channel. The Bluetooth connection channel is used for data interaction between electronic devices and Bluetooth headsets.
S302、蓝牙耳机响应用户的触控操作,解析用户的触控操作。S302. The Bluetooth headset responds to the user's touch operation and analyzes the user's touch operation.
本步骤的具体实现方式可参见前述内容中步骤S202的内容,此处不展开说明。For the specific implementation of this step, please refer to the content of step S202 in the foregoing content, and will not be described here.
S303、蓝牙耳机解析用户的触控操作为第一操作,生成第一指令。S303. The Bluetooth headset parses the user's touch operation as the first operation and generates the first instruction.
本步骤的具体实现方式可参见前述内容中步骤S203的内容,此处不展开说明。For the specific implementation of this step, please refer to the content of step S203 in the foregoing content, and will not be described here.
S304、蓝牙耳机向电子设备发送第一指令。S304. The Bluetooth headset sends the first command to the electronic device.
蓝牙耳机通过前述步骤S301建立的蓝牙连接通道,向电子设备发送第一指令。The Bluetooth headset sends the first command to the electronic device through the Bluetooth connection channel established in the aforementioned step S301.
S305、电子设备接收第一指令,并检测电子设备是否处于录像模式。S305. The electronic device receives the first command and detects whether the electronic device is in the video recording mode.
本步骤的具体实现方式可参见前述内容中步骤S205的内容,此处不展开说明。For the specific implementation of this step, please refer to the content of step S205 in the foregoing content, and will not be described here.
需要说明的是,若电子设备启动摄像头运行且处理录像模式,则电子设备可按照前述步骤S205提供的两种方式检测出电子设备处于录像模式。在电子设备被检测出处于录像模式时,电子设备则可执行步骤S306。若电子设备检测电子设备未处于录像模式,则电子设备可退出执行本方法的流程。It should be noted that if the electronic device starts the camera operation and processes the video recording mode, the electronic device can detect that the electronic device is in the video recording mode according to the two methods provided in the aforementioned step S205. When the electronic device is detected to be in the video recording mode, the electronic device may execute step S306. If the electronic device detects that the electronic device is not in the recording mode, the electronic device can exit the process of executing this method.
S306、电子设备和蓝牙耳机建立SCO链路。S306. The electronic device and the Bluetooth headset establish a SCO link.
本步骤的具体实现方式可参见前述内容中步骤S206的内容,此处不展开说明。For the specific implementation of this step, please refer to the content of step S206 in the foregoing content, and will not be described here.
S307、电子设备开始录像。S307. The electronic device starts recording.
本实施例中,用户对蓝牙耳机输入触控操作,蓝牙耳机解析该触控操作为控制电子设备开始录像的操作,且电子设备判断自身处于录像模式,则电子设备和蓝牙耳机建立SCO链路以传输数据,电子设备开始录像,实现了用户无需操作电子设备,可以仅通过触控蓝牙耳机,则可控制电子设备开始录像。In this embodiment, the user inputs a touch operation on the Bluetooth headset, the Bluetooth headset interprets the touch operation as an operation to control the electronic device to start recording, and the electronic device determines that it is in the recording mode, then the electronic device and the Bluetooth headset establish an SCO link to After the data is transmitted, the electronic device starts recording, so that the user does not need to operate the electronic device and can control the electronic device to start recording just by touching the Bluetooth headset.
S308、蓝牙耳机通过麦克风采集音频信息。S308, Bluetooth headset collects audio information through the microphone.
蓝牙耳机设置有一个或多个麦克风,用于采集音频信息。Bluetooth headsets are equipped with one or more microphones for collecting audio information.
S309、蓝牙耳机通过SCO链路向电子设备发送音频信息。S309. The Bluetooth headset sends audio information to the electronic device through the SCO link.
本步骤的具体实现方式可参见前述内容中步骤S209的内容,此处不展开说明。For the specific implementation of this step, please refer to the content of step S209 in the foregoing content, and will not be described here.
S310、蓝牙耳机响应用户的触控操作,解析用户的触控操作。S310, the Bluetooth headset responds to the user's touch operation and analyzes the user's touch operation.
电子设备录像过程中,若用户想暂停录像时,也可以在蓝牙耳机上输入触控操作。During the recording process of the electronic device, if the user wants to pause the recording, he can also input touch operations on the Bluetooth headset.
用户在蓝牙耳机上输入触控操作,如图8展示的双击蓝牙耳机机身的触控操作。蓝牙耳机的传感器感知到用户的触控操作,将触控操作转换为对应的触控指令,并传输到蓝牙耳机的蓝牙模块。蓝牙模块解析该触控指令,以确定用户输入的触控操作。The user inputs a touch operation on the Bluetooth headset, such as the touch operation of double-clicking the body of the Bluetooth headset as shown in Figure 8. The sensor of the Bluetooth headset senses the user's touch operation, converts the touch operation into the corresponding touch command, and transmits it to the Bluetooth module of the Bluetooth headset. The Bluetooth module parses the touch command to determine the touch operation input by the user.
S311、蓝牙耳机解析用户的触控操作为第二操作,生成第二指令。S311. The Bluetooth headset parses the user's touch operation as a second operation and generates a second instruction.
蓝牙耳机的蓝牙模块解析用户的触控操作对应的触控指令。若蓝牙模块通过解析该触控指令,确定用户输入了第二操作,蓝牙模块生成第二指令,该第二指令用于控制电子设备结束通话。一些实施例中,第二指令可指代挂断(hangup)指令。The Bluetooth module of the Bluetooth headset parses the touch commands corresponding to the user's touch operations. If the Bluetooth module determines that the user has input a second operation by analyzing the touch command, the Bluetooth module generates a second command, which is used to control the electronic device to end the call. In some embodiments, the second instruction may refer to a hangup instruction.
第二操作也是用户对蓝牙耳机的一种触控操作,可以理解成是提供给用户通过蓝牙耳机控制电子设备暂停录像的操作。一个示例中,第二操作可为对蓝牙耳机机身的单击操作或双击操作,可以设定为对蓝牙耳机机身特定位置的单击操作或双击操作。在第一操作和第二操作均为单击操作时,第二操作的操纵位置要区别于第一操作的操作位置。另一个示例中,第一操作也可以为对蓝牙耳机上按键的触控操作,当然,该按键需区别于第一操作的按键。The second operation is also a touch operation performed by the user on the Bluetooth headset, which can be understood as an operation for the user to control the electronic device to pause recording through the Bluetooth headset. In one example, the second operation may be a single-click operation or a double-click operation on the Bluetooth headset body, and may be set to a single-click operation or double-click operation on a specific position of the Bluetooth headset body. When both the first operation and the second operation are click operations, the manipulation position of the second operation should be different from the manipulation position of the first operation. In another example, the first operation may also be a touch operation on a button on the Bluetooth headset. Of course, the button needs to be different from the button used in the first operation.
需要说明的是,因蓝牙耳机和电子设备建立了SCO链路,蓝牙耳机会处于通话流程,因此,用户对蓝牙耳机执行触控操作,需要控制电子设备暂停录像时,蓝牙耳机会解析该操作为控制电子设备结束通话的操作,生成结束通话的指令。It should be noted that because the Bluetooth headset and the electronic device have established an SCO link, the Bluetooth headset will be in the call process. Therefore, when the user performs a touch operation on the Bluetooth headset and needs to control the electronic device to pause recording, the Bluetooth headset will interpret the operation as Control the operation of the electronic device to end the call and generate instructions to end the call.
S312、蓝牙耳机向电子设备发送第二指令。S312. The Bluetooth headset sends the second command to the electronic device.
其中,蓝牙耳机的蓝牙模块,可通过与电子设备通过步骤S301建立的蓝牙连接通道,向电子设备发送第二指令。Among them, the Bluetooth module of the Bluetooth headset can send the second command to the electronic device through the Bluetooth connection channel established with the electronic device in step S301.
S313、电子设备检测电子设备是否处于录像模式。S313. The electronic device detects whether the electronic device is in recording mode.
电子设备的蓝牙模块接收第二指令,并向电子设备的音频模块发送第二请求,该第二请求用于控制电子设备暂停通话。音频模块收到第二请求,检测电子设备是否处于录像模式。The Bluetooth module of the electronic device receives the second instruction and sends a second request to the audio module of the electronic device. The second request is used to control the electronic device to suspend the call. The audio module receives the second request and detects whether the electronic device is in recording mode.
一些实施例中,电子设备检测电子设备是否处于录像模式可有下述两种方式:In some embodiments, the electronic device can detect whether the electronic device is in the video recording mode in the following two ways:
方式1、电子设备接收到第二指令后,调用服务A识别电子设备是否处于录像模式,并获取该服务的运行结果。电子设备可根据该服务的运行结果确定电子设备是否处于录像模式。Method 1: After receiving the second instruction, the electronic device calls service A to identify whether the electronic device is in the video recording mode and obtains the operation result of the service. The electronic device can determine whether the electronic device is in the recording mode based on the operation results of the service.
方式2、电子设备接收到第二指令后,电子设备遍历当前运行的进程,判断当前运行的进程是否包括录像的进程。一些实施例中,电子设备可通过进程标识符来判断当前运行的进程是否包括录像的进程。Method 2: After the electronic device receives the second instruction, the electronic device traverses the currently running processes and determines whether the currently running processes include a video recording process. In some embodiments, the electronic device may determine whether the currently running process includes a video recording process through the process identifier.
还需要说明的是,若电子设备检测电子设备处于录像模式,电子设备执行步骤S314。若电子设备检测电子设备未处于录像模式,则电子设备可退出执行本方法的流程。It should also be noted that if the electronic device detects that the electronic device is in the video recording mode, the electronic device executes step S314. If the electronic device detects that the electronic device is not in the recording mode, the electronic device can exit the process of executing this method.
S314、电子设备根据第二指令,生成暂停指令,该暂停指令用于控制电子设备暂停录像。S314. The electronic device generates a pause command according to the second command. The pause command is used to control the electronic device to pause recording.
其中,电子设备的音频模块根据第二指令,生成暂停指令。一些实施例中,暂停指令可指代avrcp pause。因第二指令用于控制电子设备停止通话,因此,需要将其转换为控制电子设备暂停录像的指令。Wherein, the audio module of the electronic device generates a pause instruction according to the second instruction. In some embodiments, the pause instruction may refer to avrcp pause. Since the second command is used to control the electronic device to stop talking, it needs to be converted into an command to control the electronic device to pause recording.
电子设备生成暂停指令后,电子设备则会响应暂停指令,暂停录像。电子设备暂停录像,若用户想继续利用电子设备录像,用户可再如图6所示的点击蓝牙耳机的机身,蓝牙耳机则执行步骤S302至步骤S304,电子设备执行步骤S305至步骤S309以实现电子设备继续录像。After the electronic device generates a pause command, the electronic device will respond to the pause command and pause the recording. The electronic device pauses recording. If the user wants to continue recording with the electronic device, the user can click on the body of the Bluetooth headset as shown in Figure 6. The Bluetooth headset executes steps S302 to step S304, and the electronic device executes steps S305 to step S309 to achieve this. The electronic device continues to record.
需要说明的是,为实现电子设备暂停录像之后,用户如图6所示的点击蓝牙耳机的机身以控制电子设备继续录像的目的,蓝牙耳机和电子设备执行步骤S302至步骤S309的过程中,步骤S306也可以不执行。一些实施例中,蓝牙耳机和电子设备通过执行步骤S301至步骤S309,以实现用户通过触控蓝牙耳机控制电子设备开启录像之后,若电子设备和蓝牙耳机建立的SCO链路未断开连接,则蓝牙耳机和电子设备再次执行步骤S302至步骤S309的过程中,则可不再利用步骤S306重复建立SCO链路。It should be noted that, after the electronic device pauses recording, the user clicks on the body of the Bluetooth headset as shown in Figure 6 to control the electronic device to continue recording. When the Bluetooth headset and the electronic device perform steps S302 to S309, Step S306 may not be executed. In some embodiments, the Bluetooth headset and the electronic device perform steps S301 to S309 to enable the user to control the electronic device to start recording by touching the Bluetooth headset. If the SCO link established by the electronic device and the Bluetooth headset is not disconnected, then When the Bluetooth headset and the electronic device perform the process from step S302 to step S309 again, step S306 can no longer be used to repeatedly establish the SCO link.
由前述步骤S310至步骤S314可以看出:用户可通过在蓝牙耳机上执行触控操作,蓝牙耳机可感知到用户的触控操作,生成第二指令并发送到电子设备,电子设备将第二指令转换为暂停指令以控制电子设备暂停录像,实现了用户想暂停电子设备录像时也无需操作电子设备,可仅操作蓝牙耳机。It can be seen from the aforementioned steps S310 to S314 that the user can perform a touch operation on the Bluetooth headset. The Bluetooth headset can sense the user's touch operation, generate a second instruction and send it to the electronic device, and the electronic device will process the second instruction. It is converted into a pause command to control the electronic device to pause recording, so that the user does not need to operate the electronic device when he wants to pause the recording of the electronic device, and can only operate the Bluetooth headset.
还需要说明的是,在一些实施例中,电子设备执行步骤S314之前,还可以判断电子设备是否处于通话状态。若电子设备判断电子设备未处于通话状态,则说明电子设备仅开启了录像,可执行步骤S314。It should also be noted that in some embodiments, before the electronic device executes step S314, it may also determine whether the electronic device is in a call state. If the electronic device determines that the electronic device is not in a call state, it means that the electronic device has only turned on recording, and step S314 can be executed.
当然,判断电子设备是否处于通话状态的步骤和前述步骤S313可并行执行,或先执行步骤S313再执行判断电子设备是否处于通话状态,或先执行判断电子设备是否处于通话状态再执行步骤S313,并无限定。Of course, the step of determining whether the electronic device is in the call state and the aforementioned step S313 can be executed in parallel, or step S313 is performed first and then the judgment of whether the electronic device is in the call state is performed, or the step S313 is performed first and then the step S313 is performed, and Unlimited.
本实施例中,判断电子设备未处于通话状态,且电子设备处于录像模式,则说明用户对蓝牙耳机输入的触控操作,是要控制电子设备暂停录像,因此执行步骤S314以实现对电子设备录像的暂停。In this embodiment, it is determined that the electronic device is not in the call state and the electronic device is in the recording mode. This means that the user's touch operation on the Bluetooth headset is to control the electronic device to pause recording. Therefore, step S314 is executed to record the electronic device. of pause.
还需要说明的是,若电子设备判断电子设备未处于录像模式,但处于通话状态,电子设备可根据步骤S312中的第二指令,结束通话。It should also be noted that if the electronic device determines that the electronic device is not in the recording mode but is in a call state, the electronic device can end the call according to the second instruction in step S312.
若电子设备判断电子设备处于录像模式,且处于通话状态,电子设备接收第二指令后,可按照下述三种方式执行:If the electronic device determines that the electronic device is in recording mode and in a call state, after receiving the second command, the electronic device can execute in the following three ways:
方式1、执行步骤S314控制电子设备暂停录像。Method 1: Execute step S314 to control the electronic device to pause recording.
方式2、不执行步骤S314,根据步骤S312中的第二指令,结束通话。Method 2: Do not execute step S314, and end the call according to the second instruction in step S312.
方式3、不执行步骤S314,也不根据步骤S312中的第二指令,结束通话。Method 3: Step S314 is not executed, and the call is not ended according to the second instruction in step S312.
当然,电子设备也可以结合电子设备的其他信息,来选择出上述三种方式中一种方式执行。Of course, the electronic device can also combine other information of the electronic device to select one of the above three methods for execution.
本申请另一实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机或处理器上运行时,使得计算机或处理器执行上述任一个方法中的一个或多个步骤。Another embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores instructions, which when run on a computer or processor, cause the computer or processor to perform any one of the above methods. one or more steps.
计算机可读存储介质可以是非临时性计算机可读存储介质,例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。The computer-readable storage medium may be a non-transitory computer-readable storage medium. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
本申请另一实施例还提供了一种包含指令的计算机程序产品。当该计算机程序产品在计算机或处理器上运行时,使得计算机或处理器执行上述任一个方法中的一个或多个步骤。Another embodiment of the present application also provides a computer program product containing instructions. When the computer program product is run on a computer or processor, the computer or processor is caused to perform one or more steps in any of the above methods.

Claims (24)

  1. 一种电子设备的录像控制方法,其特征在于,应用于电子设备,所述电子设备与蓝牙耳机建立有同步定向连接SCO链路,所述电子设备处于录像状态,所述蓝牙耳机通过所述SCO链路向所述电子设备发送音频信息,所述音频信息由所述蓝牙耳机的麦克风采集,所述电子设备的录像控制方法,包括:A video recording control method for electronic equipment, characterized in that it is applied to electronic equipment, the electronic equipment establishes a synchronous directional connection SCO link with a Bluetooth headset, the electronic equipment is in a video recording state, and the Bluetooth headset passes through the SCO The link sends audio information to the electronic device, and the audio information is collected by the microphone of the Bluetooth headset. The video recording control method of the electronic device includes:
    所述电子设备接收所述蓝牙耳机发送的第一控制指令,所述第一控制指令用于控制所述电子设备结束通话;所述第一控制指令由所述蓝牙耳机响应于第一触控操作而生成;The electronic device receives a first control instruction sent by the Bluetooth headset, and the first control instruction is used to control the electronic device to end the call; the first control instruction is sent by the Bluetooth headset in response to a first touch operation. And generate;
    所述电子设备根据所述第一控制指令,生成暂停指令,所述暂停指令用于控制所述电子设备暂停录像;The electronic device generates a pause instruction according to the first control instruction, and the pause instruction is used to control the electronic device to pause video recording;
    所述电子设备响应于所述暂停指令,驱动摄像头暂停录像。In response to the pause instruction, the electronic device drives the camera to pause recording.
  2. 根据权利要求1所述的电子设备的录像控制方法,其特征在于,所述电子设备接收所述蓝牙耳机发送的第一控制指令之后,还包括:The video recording control method of an electronic device according to claim 1, wherein after the electronic device receives the first control instruction sent by the Bluetooth headset, it further includes:
    所述电子设备检测所述电子设备处于录像模式。The electronic device detects that the electronic device is in a video recording mode.
  3. 根据权利要求2所述的电子设备的录像控制方法,其特征在于,所述电子设备检测所述电子设备处于录像模式,包括:The video recording control method of electronic equipment according to claim 2, characterized in that the electronic equipment detects that the electronic equipment is in the video recording mode, including:
    所述电子设备调用服务运行,以检测所述电子设备是否处于录像模式;The electronic device calls a service operation to detect whether the electronic device is in video recording mode;
    所述电子设备获取所述服务的检测结果,且确定所述检测结果表征所述电子设备处于录像模式。The electronic device obtains the detection result of the service, and determines that the detection result indicates that the electronic device is in the video recording mode.
  4. 根据权利要求2所述的电子设备的录像控制方法,其特征在于,所述电子设备检测所述电子设备处于录像模式,包括:The video recording control method of electronic equipment according to claim 2, characterized in that the electronic equipment detects that the electronic equipment is in the video recording mode, including:
    所述电子设备遍历处于运行状态的进程,确定所述处于运行状态的进程包括录像进程。The electronic device traverses processes in a running state and determines that the process in a running state includes a video recording process.
  5. 根据权利要求1至4中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备接收所述蓝牙耳机发送的第一控制指令,包括:The video recording control method of an electronic device according to any one of claims 1 to 4, characterized in that the electronic device receives the first control instruction sent by the Bluetooth headset, including:
    所述电子设备接收所述蓝牙耳机通过异步无连接ACL链路发送的第一控制指令。The electronic device receives the first control instruction sent by the Bluetooth headset through the asynchronous connectionless ACL link.
  6. 根据权利要求1至4中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备与蓝牙耳机建立同步定向连接SCO链路的方式,包括:The video recording control method of electronic equipment according to any one of claims 1 to 4, characterized in that the method of establishing a synchronous directional connection SCO link between the electronic equipment and the Bluetooth headset includes:
    所述电子设备向所述蓝牙耳机发送连接命令;The electronic device sends a connection command to the Bluetooth headset;
    所述蓝牙耳机收到所述电子设备发送的连接命令,向所述电子设备返回连接事件。The Bluetooth headset receives the connection command sent by the electronic device and returns a connection event to the electronic device.
  7. 根据权利要求1至4中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备根据所述第一控制指令,生成暂停指令之前,还包括:The video recording control method of electronic equipment according to any one of claims 1 to 4, characterized in that, before the electronic equipment generates a pause instruction according to the first control instruction, it further includes:
    所述电子设备确定所述电子设备未处于通话模式。The electronic device determines that the electronic device is not in talk mode.
  8. 根据权利要求7所述的电子设备的录像控制方法,其特征在于,还包括:The video recording control method of electronic equipment according to claim 7, further comprising:
    所述电子设备确定所述电子设备处于通话模式,则响应于所述第一控制指令,结束通话。The electronic device determines that the electronic device is in the call mode and ends the call in response to the first control instruction.
  9. 根据权利要求1至4中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备根据所述第一控制指令,生成暂停指令之前,还包括:The video recording control method of electronic equipment according to any one of claims 1 to 4, characterized in that, before the electronic equipment generates a pause instruction according to the first control instruction, it further includes:
    所述电子设备确定所述电子设备处于通话模式。The electronic device determines that the electronic device is in a call mode.
  10. 根据权利要求1至4中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备响应于所述暂停指令,暂停录像之后,还包括:The video recording control method of electronic equipment according to any one of claims 1 to 4, characterized in that, after the electronic equipment pauses video recording in response to the pause instruction, it further includes:
    所述电子设备接收所述蓝牙耳机发送的第二控制指令,所述第二控制指令用于控制电子设备开始录像;所述第二控制指令由所述蓝牙耳机响应于第二触控操作而生成;The electronic device receives a second control instruction sent by the Bluetooth headset, and the second control instruction is used to control the electronic device to start recording; the second control instruction is generated by the Bluetooth headset in response to a second touch operation. ;
    所述电子设备响应于所述第二控制指令,驱动摄像头录像。In response to the second control instruction, the electronic device drives the camera to record video.
  11. 根据权利要求10所述的电子设备的录像控制方法,其特征在于,所述电子设备响应于所述第二控制指令,调用摄像头录像之后,还包括:The video recording control method of electronic equipment according to claim 10, characterized in that, after the electronic equipment responds to the second control instruction and calls the camera to record video, it further includes:
    所述电子设备接收所述蓝牙耳机通过所述SCO链路发送的音频信息,所述音频信息由所述蓝牙耳机的麦克风采集;The electronic device receives the audio information sent by the Bluetooth headset through the SCO link, and the audio information is collected by the microphone of the Bluetooth headset;
    所述电子设备保存所述音频信息。The electronic device saves the audio information.
  12. 一种电子设备,其特征在于,包括:An electronic device, characterized by including:
    一个或多个处理器、存储器,摄像头和无线通信模块;One or more processors, memories, cameras and wireless communication modules;
    所述存储器、所述摄像头和所述无线通信模块与所述一个或多个所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述电子设备执行如权利要求1至11任意一项所述的电子设备的录像控制方法。The memory, the camera and the wireless communication module are coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and when the one or more When multiple processors execute the computer instructions, the electronic device executes the video recording control method of the electronic device according to any one of claims 1 to 11.
  13. 一种计算机可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序被执行时,具体用于实现如权利要求1至11任意一项所述的电子设备的录像控制方法。A computer-readable storage medium, characterized in that it is used to store a computer program. When the computer program is executed, it is specifically used to implement the video recording control method of an electronic device according to any one of claims 1 to 11.
  14. 一种电子设备的录像控制方法,其特征在于,应用于电子设备,所述电子设备与蓝牙耳机建立有同步定向连接SCO链路,所述电子设备处于录像状态,所述蓝牙耳机通过所述SCO链路向所述电子设备发送音频信息,所述音频信息由所述蓝牙耳机的麦克风采集,所述电子设备的录像控制方法,包括:A video recording control method for electronic equipment, characterized in that it is applied to electronic equipment, the electronic equipment establishes a synchronous directional connection SCO link with a Bluetooth headset, the electronic equipment is in a video recording state, and the Bluetooth headset passes through the SCO The link sends audio information to the electronic device, and the audio information is collected by the microphone of the Bluetooth headset. The video recording control method of the electronic device includes:
    所述电子设备在录像过程中,所述电子设备接收所述蓝牙耳机发送的第一控制指令,所述第一控制指令用于控制所述电子设备结束通话;所述第一控制指令由所述蓝牙耳机响应于第一触控操作而生成,所述第一触控操作为对所述蓝牙耳机的触控操作;During the video recording process of the electronic device, the electronic device receives the first control instruction sent by the Bluetooth headset, and the first control instruction is used to control the electronic device to end the call; the first control instruction is sent by the The Bluetooth headset is generated in response to a first touch operation, the first touch operation being a touch operation on the Bluetooth headset;
    所述电子设备根据所述第一控制指令,生成暂停指令,所述暂停指令用于控制所述电子设备暂停录像;The electronic device generates a pause instruction according to the first control instruction, and the pause instruction is used to control the electronic device to pause video recording;
    所述电子设备响应于所述暂停指令,驱动摄像头暂停录像。In response to the pause instruction, the electronic device drives the camera to pause recording.
  15. 根据权利要求14所述的电子设备的录像控制方法,其特征在于,所述电子设备接收所述蓝牙耳机发送的第一控制指令之后,还包括:The video recording control method of an electronic device according to claim 14, wherein after the electronic device receives the first control instruction sent by the Bluetooth headset, it further includes:
    所述电子设备检测所述电子设备处于录像模式。The electronic device detects that the electronic device is in a video recording mode.
  16. 根据权利要求15所述的电子设备的录像控制方法,其特征在于,所述电子设备检测所述电子设备处于录像模式,包括:The video recording control method of electronic equipment according to claim 15, characterized in that the electronic equipment detects that the electronic equipment is in the video recording mode, including:
    所述电子设备调用服务运行,以检测所述电子设备是否处于录像模式;The electronic device calls a service operation to detect whether the electronic device is in video recording mode;
    所述电子设备获取所述服务的检测结果,且确定所述检测结果表征所述电子设备处于录像模式。The electronic device obtains the detection result of the service, and determines that the detection result indicates that the electronic device is in the video recording mode.
  17. 根据权利要求15所述的电子设备的录像控制方法,其特征在于,所述电子设备检测所述电子设备处于录像模式,包括:The video recording control method of electronic equipment according to claim 15, characterized in that the electronic equipment detects that the electronic equipment is in the video recording mode, including:
    所述电子设备遍历处于运行状态的进程,确定所述处于运行状态的进程包括录像进程。The electronic device traverses processes in a running state and determines that the process in a running state includes a video recording process.
  18. 根据权利要求1至17中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备接收所述蓝牙耳机发送的第一控制指令,包括:The video recording control method of an electronic device according to any one of claims 1 to 17, characterized in that the electronic device receives the first control instruction sent by the Bluetooth headset, including:
    所述电子设备接收所述蓝牙耳机通过异步无连接ACL链路发送的第一控制指令。The electronic device receives the first control instruction sent by the Bluetooth headset through the asynchronous connectionless ACL link.
  19. 根据权利要求1至17中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备与蓝牙耳机建立同步定向连接SCO链路的方式,包括:The video recording control method of an electronic device according to any one of claims 1 to 17, characterized in that the method of establishing a synchronous directional connection SCO link between the electronic device and the Bluetooth headset includes:
    所述电子设备向所述蓝牙耳机发送连接命令;The electronic device sends a connection command to the Bluetooth headset;
    所述蓝牙耳机收到所述电子设备发送的连接命令,向所述电子设备返回连接事件。The Bluetooth headset receives the connection command sent by the electronic device and returns a connection event to the electronic device.
  20. 根据权利要求1至17中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备根据所述第一控制指令,生成暂停指令之前,还包括:The video recording control method of electronic equipment according to any one of claims 1 to 17, characterized in that, before the electronic equipment generates a pause instruction according to the first control instruction, it further includes:
    所述电子设备确定所述电子设备未处于通话模式。The electronic device determines that the electronic device is not in talk mode.
  21. 根据权利要求20所述的电子设备的录像控制方法,其特征在于,还包括:The video recording control method of electronic equipment according to claim 20, further comprising:
    所述电子设备确定所述电子设备处于通话模式,则响应于所述第一控制指令,结束通话。The electronic device determines that the electronic device is in the call mode and ends the call in response to the first control instruction.
  22. 根据权利要求1至17中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备根据所述第一控制指令,生成暂停指令之前,还包括:The video recording control method of electronic equipment according to any one of claims 1 to 17, characterized in that, before the electronic equipment generates a pause instruction according to the first control instruction, it further includes:
    所述电子设备确定所述电子设备处于通话模式。The electronic device determines that the electronic device is in a call mode.
  23. 根据权利要求1至17中任意一项所述的电子设备的录像控制方法,其特征在于,所述电子设备响应于所述暂停指令,暂停录像之后,还包括:The video recording control method of electronic equipment according to any one of claims 1 to 17, characterized in that, after the electronic equipment pauses video recording in response to the pause instruction, it further includes:
    所述电子设备接收所述蓝牙耳机发送的第二控制指令,所述第二控制指令用于控制电子设备开始录像;所述第二控制指令由所述蓝牙耳机响应于第二触控操作而生成;The electronic device receives a second control instruction sent by the Bluetooth headset, and the second control instruction is used to control the electronic device to start recording; the second control instruction is generated by the Bluetooth headset in response to a second touch operation. ;
    所述电子设备响应于所述第二控制指令,驱动摄像头录像。In response to the second control instruction, the electronic device drives the camera to record video.
  24. 根据权利要求23所述的电子设备的录像控制方法,其特征在于,所述电子设备响应于所述第二控制指令,调用摄像头录像之后,还包括:The video recording control method of electronic equipment according to claim 23, characterized in that, after the electronic equipment responds to the second control instruction and calls the camera to record video, it further includes:
    所述电子设备接收所述蓝牙耳机通过所述SCO链路发送的音频信息,所述音频信息由所述蓝牙耳机的麦克风采集;The electronic device receives the audio information sent by the Bluetooth headset through the SCO link, and the audio information is collected by the microphone of the Bluetooth headset;
    所述电子设备保存所述音频信息。The electronic device saves the audio information.
PCT/CN2022/112926 2022-03-29 2022-08-17 Video recording control method of electronic device, electronic device, and readable medium WO2023184825A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210315288.6A CN114422710B (en) 2022-03-29 2022-03-29 Video recording control method for electronic equipment, electronic equipment and readable medium
CN202210315288.6 2022-03-29

Publications (1)

Publication Number Publication Date
WO2023184825A1 true WO2023184825A1 (en) 2023-10-05

Family

ID=81264451

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112926 WO2023184825A1 (en) 2022-03-29 2022-08-17 Video recording control method of electronic device, electronic device, and readable medium

Country Status (2)

Country Link
CN (1) CN114422710B (en)
WO (1) WO2023184825A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422710B (en) * 2022-03-29 2022-08-16 荣耀终端有限公司 Video recording control method for electronic equipment, electronic equipment and readable medium
CN115022536B (en) * 2022-05-24 2023-10-03 Oppo广东移动通信有限公司 Video shooting method, device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647523A (en) * 2012-04-11 2012-08-22 深圳市中兴移动通信有限公司 Remote control realization system and remote control realization method of intelligent mobile terminal and mobile terminal camera
CN103237169A (en) * 2013-04-16 2013-08-07 广东欧珀移动通信有限公司 Method and device for controlling camera to take photos by Bluetooth headset
CN104461290A (en) * 2014-11-28 2015-03-25 广东欧珀移动通信有限公司 Photographing control method and device
CN104540061A (en) * 2014-12-31 2015-04-22 中科创达软件股份有限公司 Bluetooth headset recording method and device
JP2020167669A (en) * 2020-03-03 2020-10-08 株式会社Theater Guild Video voice management device for screening video and voice and screening system
CN113794797A (en) * 2021-06-16 2021-12-14 荣耀终端有限公司 Terminal equipment and method for picking up sound through Bluetooth peripheral
CN114205546A (en) * 2020-09-18 2022-03-18 华为终端有限公司 Equipment control system
CN114422710A (en) * 2022-03-29 2022-04-29 荣耀终端有限公司 Video recording control method for electronic equipment, electronic equipment and readable medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141505A (en) * 2006-09-07 2008-03-12 环达电脑(上海)有限公司 Earphone keying shot method of mobile phone
CN103139359A (en) * 2011-11-25 2013-06-05 上海晨兴希姆通电子科技有限公司 Camera system and camera method
CN103747176A (en) * 2013-12-27 2014-04-23 西安乾易企业管理咨询有限公司 Method for controlling camera of mobile phone by using earphone
CN204733339U (en) * 2015-07-10 2015-10-28 深圳市狂热者数码科技有限公司 Bluetooth earphone
CN107396017B (en) * 2017-06-19 2020-11-13 捷开通讯(深圳)有限公司 Intelligent terminal, video recording method thereof and device with storage function
CN114121026A (en) * 2020-08-25 2022-03-01 华为技术有限公司 Recording method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647523A (en) * 2012-04-11 2012-08-22 深圳市中兴移动通信有限公司 Remote control realization system and remote control realization method of intelligent mobile terminal and mobile terminal camera
CN103237169A (en) * 2013-04-16 2013-08-07 广东欧珀移动通信有限公司 Method and device for controlling camera to take photos by Bluetooth headset
CN104461290A (en) * 2014-11-28 2015-03-25 广东欧珀移动通信有限公司 Photographing control method and device
CN104540061A (en) * 2014-12-31 2015-04-22 中科创达软件股份有限公司 Bluetooth headset recording method and device
JP2020167669A (en) * 2020-03-03 2020-10-08 株式会社Theater Guild Video voice management device for screening video and voice and screening system
CN114205546A (en) * 2020-09-18 2022-03-18 华为终端有限公司 Equipment control system
CN113794797A (en) * 2021-06-16 2021-12-14 荣耀终端有限公司 Terminal equipment and method for picking up sound through Bluetooth peripheral
CN114422710A (en) * 2022-03-29 2022-04-29 荣耀终端有限公司 Video recording control method for electronic equipment, electronic equipment and readable medium

Also Published As

Publication number Publication date
CN114422710B (en) 2022-08-16
CN114422710A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
EP4024193A1 (en) Data transmission method and related devices
EP4024188A1 (en) Screen capturing method and related device
WO2021013158A1 (en) Display method and related apparatus
WO2023184825A1 (en) Video recording control method of electronic device, electronic device, and readable medium
WO2020119492A1 (en) Message processing method and related apparatus
WO2021121052A1 (en) Multi-screen cooperation method and system, and electronic device
WO2021185244A1 (en) Device interaction method and electronic device
WO2021147406A1 (en) Audio output method and terminal device
CN112398855B (en) Method and device for transferring application contents across devices and electronic device
WO2019154182A1 (en) Method for setting volume of application program, and mobile terminal
WO2023130991A1 (en) Collaborative calling method and apparatus, device, storage medium, and program product
WO2020156230A1 (en) Method for presenting video on electronic device when incoming call comes, and electronic device
WO2020238759A1 (en) Interface display method and electronic device
WO2020259514A1 (en) Method and apparatus for calling service
WO2023088209A1 (en) Cross-device audio data transmission method and electronic devices
WO2024021519A1 (en) Card display method and terminal device
WO2020006711A1 (en) Message playing method and terminal
WO2023236794A1 (en) Audio track marking method and electronic device
CN115016697A (en) Screen projection method, computer device, readable storage medium, and program product
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
WO2021042881A1 (en) Message notification method and electronic device
WO2023020012A1 (en) Data communication method between devices, device, storage medium, and program product
KR20150029197A (en) Mobile terminal and operation method thereof
CN115242994A (en) Video call system, method and device
CN115086888A (en) Message notification method and device and electronic equipment