WO2024037421A1 - Operation method, electronic device, and medium - Google Patents

Operation method, electronic device, and medium Download PDF

Info

Publication number
WO2024037421A1
WO2024037421A1 PCT/CN2023/112297 CN2023112297W WO2024037421A1 WO 2024037421 A1 WO2024037421 A1 WO 2024037421A1 CN 2023112297 W CN2023112297 W CN 2023112297W WO 2024037421 A1 WO2024037421 A1 WO 2024037421A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
information
video
interface
user
Prior art date
Application number
PCT/CN2023/112297
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 WO2024037421A1 publication Critical patent/WO2024037421A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements

Definitions

  • the present application relates to the field of communication technology, and in particular to an operating method, electronic equipment and media.
  • electronic devices such as smartphones have been widely used in various customer groups.
  • electronic devices such as smartphones are also widely used in middle-aged and elderly people.
  • most users in the middle-aged and elderly people do some operations while using mobile phones. Not very familiar with the problem, or unable to perform some operations at all, such as not being able to connect to Bluetooth and WIFI, not being able to adjust the font display size of the mobile phone, etc.
  • family members are not around and cannot provide on-site guidance.
  • other users may not be able to use some operations, resulting in users being unable to perform certain operations.
  • FIG. 1a In the existing technology, some solutions are shown in Figure 1a.
  • User A generally clicks the screen recording control 101 of the mobile phone 100 to implement the process of performing the target operation, such as the process of performing some Bluetooth connection or WIFI connection operations in the settings application 102.
  • the video 103 is sent to the mobile phone 200 of user B who needs to learn the operation through communication software.
  • the user who needs to learn the operation can learn how to perform the target operation according to the video content.
  • user B easily forgets how to operate after watching the video, so he needs to watch the video repeatedly to learn. In this way, it is more cumbersome for users to implement the above operations and reduces the user experience.
  • embodiments of the present application provide an operating method, electronic equipment, and media.
  • embodiments of the present application provide an operating method applied to a first electronic device.
  • the method includes: obtaining a first video and first information associated with the first video, wherein the first information includes a screen
  • the interface information of at least one display interface recorded during the recording process and the identification information of the target control operated by the user on the at least one display interface; play the first video, and during the process of playing the first video, based on the perform the operation on the first information.
  • the first video may refer to the recorded video mentioned in the embodiment of this application.
  • the first electronic device can perform the same operation as the operation performed by the user on the electronic device in the recorded video, which can eliminate the need for the user to operate by himself and improve the convenience of operation and user experience.
  • the first information includes the identification information of the target control operated by the user on the display interface, where the identification information of the target space may be the layout ID information of the target space, since the identification information of each operation target is unique. Even if the interface settings of the first electronic device and the electronic device in the recorded video are different, the first electronic device can still accurately find the corresponding control according to the identification of the target control and perform the corresponding operation, effectively improving the accuracy of the operation.
  • the operation is consistent with the user's operation on the at least one display interface in the first video.
  • the first video and the first information are stored as the same file, or the first video and the first information are stored as different files.
  • the method includes: the first information also includes the user's operation mode of the target control on the at least one display interface.
  • performing an operation based on the first information includes: obtaining interface information of a first display interface in the first information, and determining the interface information of the first display interface based on the interface information of the first display interface.
  • the first to-be-operated interface of the electronic device obtains identification information of a target control operated by the user on the first display interface, and determines the first operation based on the identification information of the target control operated by the user on the first display interface.
  • the to-be-operated control on the to-be-operated interface obtains the user's operating mode for the target control on the first display interface, and controls the to-be-operated control based on the user's operating mode for the target control on the first display interface.
  • Controls perform corresponding operations; Obtain the interface information of the second display interface in the first information, and determine the second to-be-operated interface of the electronic device based on the interface information of the second display interface.
  • the first information when the operation mode of the target control is a multi-state operation mode, the first information further includes auxiliary information corresponding to the operation mode.
  • the multi-state operation mode includes a typing operation and an adjustment operation
  • the auxiliary information corresponding to the typing operation includes input content
  • the auxiliary information corresponding to the adjustment operation includes an adjustment state
  • the adjustment may include sliding operations, such as sliding progress bars, etc.
  • the second electronic device when the second electronic device performs operations with multiple states such as sliding and typing, it can accurately obtain the operation that should be performed on the target control based on the auxiliary information, thereby improving the accuracy of the operation.
  • the interface information includes an interface package name, an interface application name, and an interface activity name.
  • the first electronic device includes a first display area and a second display area
  • the first display area displays the playback screen of the first video
  • the second display area displays the first electronic device performing the operation. Operation process.
  • the first display area overlaps a partial area of the second display area, or the second display area overlaps a partial area of the first display area.
  • the second display area and the first display area are displayed in separate screens.
  • the third electronic device is connected to the first electronic device, the third electronic device displays the playback screen of the first video, and the first electronic device displays the first video.
  • An electronic device performs the operation process of the operation.
  • the third electronic device is connected to the first electronic device, the third electronic device displays the operation process of the first electronic device performing the operation, and the first electronic device The device displays the playback screen of the first video.
  • the third electronic device is connected to the first electronic device, and the first electronic device displays the operation process and/or the first video of the first electronic device performing the operation.
  • the playback screen; the third electronic device includes a third display area and a fourth display area, the third display area displays the display content of the first electronic device, and the fourth display area displays the operation process or The playback screen of the first video.
  • the method further includes: upon receiving an instruction to exit playback and detecting that the operation is not completed, sending prompt information to a display interface of the first electronic device.
  • the first video is marked with multiple time points, and each time point corresponds to part of the user's operation during the screen recording process.
  • the method further includes: fixing associated partial time points among the plurality of time points, so that videos corresponding to the associated partial time points are played continuously.
  • the associated time point may be a time point during the operation of executing any function, such as multiple time points during the operation of turning on the WIFI function in the embodiment of the present application. Fixing the associated time points prevents the electronic device from dragging the progress bar back and forth between the associated time points when playing a video, preventing the user from dragging the progress bar when recording a video that includes the execution of multiple functions. The user can perform subsequent viewing during the intermediate process of performing a certain function, causing the problem that the electronic device performs redundant operations or performs less operations.
  • the playback of the first video is stopped; After the operation corresponding to the target time point is completed, the first video continues to be played.
  • the method further includes: editing the first video to obtain a second video.
  • the editing processing includes cutting processing and/or splitting processing and/or reorganization processing.
  • the first electronic device stores the first video and the first information in MOV format, EXIF format or compressed package format.
  • performing an operation based on the first information includes: detecting a play instruction, playing the first video, and performing an operation on the first video.
  • the operation corresponding to the first time point is added to the task queue, and the operation in the task queue is executed based on the first information; when the first video is played to At the second time point, add the operation corresponding to the second time point to the task queue.
  • this application provides an operating method, applied to a second electronic device, which is characterized by including: detecting a screen recording instruction; starting screen recording, and generating a first video and first information, where the first information includes The interface information of at least one display interface recorded during the screen recording process and the identification information of the target control of the user's operation of the at least one display interface, wherein the first information can be used: when the electronic device plays the first video In the process, the corresponding operation is performed based on the first information.
  • the second electronic device sends the first video and the first information to the first electronic device.
  • the present application provides an electronic device, which is characterized in that it includes: a memory for storing instructions executed by one or more processors of the electronic device, and the processor is a processor of the electronic device.
  • the processor is a processor of the electronic device.
  • the present application provides a readable storage medium. Instructions are stored on the readable medium. When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the operation method mentioned in the present application.
  • the present application provides a computer program product, including: execution instructions, the execution instructions are stored in a readable storage medium, and at least one processor of an electronic device can read the execution instructions from the readable storage medium. Instructions, the at least one processor executes the execution instructions so that the electronic device implements the operation method mentioned in this application.
  • Figure 1a shows a schematic diagram of a screen recording process according to some embodiments of the prior art.
  • Figure 1b shows a schematic diagram of playing a recorded video according to some embodiments of the prior art.
  • Figure 2a shows a schematic diagram of a screen recording process according to some embodiments of the present application.
  • Figure 2b shows a schematic diagram of a screen recording process according to some embodiments of the present application.
  • Figure 3 shows a schematic diagram of a screen recording process according to some embodiments of the present application.
  • Figures 4a-4h show a schematic diagram of a screen recording process according to some embodiments of the present application.
  • Figure 5 shows a schematic structural diagram of an electronic device according to some embodiments of the present application.
  • Figure 6 shows a schematic flowchart of an operating method according to some embodiments of the present application.
  • Figures 7a-7c respectively show a schematic diagram of recording a video according to some embodiments of the present application.
  • Figure 7d shows a storage schematic diagram of recorded video and operation information respectively according to some embodiments of the present application.
  • Figure 8 shows a schematic diagram of playback of recorded video according to some embodiments of the present application.
  • Figures 9a-9b respectively show a schematic diagram of playback of a recorded video according to some embodiments of the present application.
  • Figure 10 shows a schematic diagram of playback of recorded video according to some embodiments of the present application.
  • Figure 11 shows a schematic diagram of playback of recorded video according to some embodiments of the present application.
  • Figure 12 shows a schematic diagram of playback of recorded video according to some embodiments of the present application.
  • Figure 13 shows a schematic diagram of a scene of exiting playback during playback of a recorded video according to some embodiments of the present application.
  • Figure 14 shows a schematic diagram of setting time points in a recorded video according to some embodiments of the present application.
  • Figure 15 shows a schematic diagram of associated fixation of time points in a recorded video according to some embodiments of the present application.
  • Figure 16 shows a schematic diagram of the generation of a task queue during the playback process of a recorded video according to some embodiments of the present application.
  • 17a-17b illustrate a schematic diagram of a video clip according to some embodiments of the present application.
  • Figure 18 shows a schematic diagram of the hardware structure of an electronic device according to some embodiments of the present application.
  • Illustrative embodiments of the present application include, but are not limited to, a method of operation, electronic equipment, and media.
  • an embodiment of the present application provides an operation method, which includes: after detecting the recording triggering operation, the first electronic device starts screen recording, and records the user's actions on the target controls triggered by each interface during the recording process.
  • Location information for example, as shown in Figure 2a, during the recording process, the user clicks on the WIFI control 4031 on the setting interface 403 of the mobile phone 100, then the electronic device can record the location information of the WIFI control 4031.
  • the location information of the WIFI control 4031 is "Set the second control row of the interface".
  • the first electronic device can send the recorded video and the corresponding position information of the target control of each interface to the second electronic device.
  • the second electronic device can automatically trigger the target control based on the position information of the target control on each interface, that is, to achieve the same Record actions consistent with the actions in the video. For example, during the recording process of the first electronic device, the user clicks on the WIFI control 4031 on the setting interface 403 of the mobile phone 100 . Then, while playing the video, the second electronic device will also trigger the WIFI control on the second electronic device based on the location information of the WIFI control 4031.
  • the above solution can automatically trigger corresponding operations while playing videos, simplifying the operation process.
  • the positions of different controls on different devices may change, for example, as shown in Figure 2a.
  • the location information of the WIFI control 4031 on the mobile phone 100 is "the second control row of the setting interface"
  • the location of the WIFI control 2011 on the mobile phone 200 is the third control row of the setting interface 201.
  • the mobile phone 200 plays the above recorded video, it will still trigger the second control row of the setting interface 201 of the mobile phone 200 based on the above location information, resulting in an incorrect operation.
  • the first electronic device can only record the location of the target control. Therefore, if there is a control with multiple state operations, such as multiple adjustment states, multiple typing states, etc., the second electronic device cannot determine the target control.
  • the specific status makes it impossible to perform specific operations. For example, as shown in Figure 2b, during the recording process, the user slides the brightness adjustment control 1001 on the shortcut interface 101 of the mobile phone 100.
  • the first electronic device can only record the location of the brightness adjustment control 1001. For example, in The last control row of the shortcut interface. However, the degree of brightness adjustment is not recorded. Therefore, based on the above solution, the second electronic device cannot determine the degree of brightness adjustment based on the position of the brightness adjustment control. Therefore, the second electronic device cannot adjust the brightness to the same level as the brightness in the recorded video.
  • an embodiment of the present application provides an operation method, which includes: the first electronic device detects a recording trigger operation. For example, as shown in Figure 3, the user clicks the operation recording control 4011 on the mobile phone 100, then Start screen recording, that is, record the change process of screen display caused by user operation, obtain the recorded video and the first information, and store the recorded video and the first information.
  • the first information may be the user's operation information on the first electronic device during the recording process.
  • the first information includes the interface information of each interface recorded during the screen recording process and the user's operation information on each interface.
  • the user's operation information on each interface may include the user's operation style, operation target and operation target.
  • the layout ID is the layout ID.
  • the user's operation information on each interface may also include information such as the coordinates of the operation target, the position of the control row where the operation target is located, the size of the control, and other information.
  • the operation target may refer to the target control operated by the user.
  • the recorded video and the first information can be stored as two separate files or as one file.
  • the first electronic device can send the recorded video and the corresponding first information to the second electronic device.
  • the second electronic device detects the user's playback operation of the recorded video, then plays the recorded video, and plays the recorded video.
  • a corresponding operation is performed on the second electronic device based on the first information, so that the second electronic device can perform the same operation as the user performed on the first electronic device in the video recording.
  • the user's operation on the first electronic device is to open the settings application, then the second electronic device can open the settings application based on the received first information.
  • the interface information of each interface may include the package name, application name, activity name, etc. of the interface.
  • the user's operation information on each interface may include the user's operation style (such as clicking, typing, filling information, sliding, selecting, typing, etc.), operation target, layout ID of the operation target, etc.
  • the layout ID of each operation target is unique. For example, if the layout ID of the WIFI control in the settings interface is "12345", then on any device, the layout ID of the WIFI control will be "12345". In this way, even if the interface settings of the second electronic device and the first electronic device are different, the electronic device can still accurately find the corresponding control according to the layout ID of the target control and perform the corresponding operation.
  • the first electronic device will record the interface information of the setting interface, including, for example, the application name "settings” and the package name "com. setting” and the activity name “setting interface”, and can record the user's operation information on the setting interface. For example, it can include: the user's operation style "click", the operation target "WIFI control", and the layout ID of "WIFI control" "12345” .
  • the operation information may also include auxiliary information corresponding to the operation style.
  • auxiliary information can also include the typing content
  • the sliding auxiliary information can also include the sliding position. , or adjust the position of the progress bar, etc.
  • the brightness adjustment degree can also be recorded, that is, the adjustment position of the brightness bar, for example, the percentage of the overall brightness bar. The position of thirty. In this way, when the second electronic device performs a brightness adjustment operation based on the operation information, the brightness can be accurately adjusted according to the adjustment position of the brightness bar.
  • the second electronic device when the second electronic device performs operations with multiple states such as sliding and typing, it can accurately obtain the operation that should be performed on the target control based on the auxiliary information, thereby improving the accuracy of the operation.
  • the index ID of the corresponding position of the content in the list can be used instead of the layout ID.
  • the first electronic device can send the recorded video and the corresponding first information to the second electronic device through any means such as communication software or Bluetooth transmission.
  • the way in which the second electronic device performs corresponding operations on the second electronic device based on the first information during the video playing process may be:
  • the second electronic device obtains the interface information and user operation information of the first interface in the received first information, enters the interface to be operated according to the interface information, and enters the interface to be operated according to the layout ID of the corresponding control in the user's operation information. Traverse the layout IDs of all controls to find the target control that is consistent with the layout ID of the operation target in the operation information of the first interface received, and perform corresponding operations on the target control according to the operation style in the operation information. After the operation on the first interface is completed, the interface information and user operation information of the next interface are obtained, and the above steps are performed to complete the corresponding operation on the next interface.
  • the user can obtain the recorded video and the user's first information about the first electronic device during the recording process by performing screen recording on the first electronic device, and record the video and the user's first information about the first electronic device during the recording process.
  • First information from an electronic device is sent to a second electronic device.
  • the second electronic device can perform the same operation as the operation performed by the user on the first electronic device in the recorded video, so that the user who receives the screen recording video and the first information does not need to do the operation himself.
  • the electronic device can perform corresponding operations based on the received recorded video and first information, thereby improving operation convenience and user experience.
  • the second electronic device can accurately identify the interface to be operated based on the first information. and corresponding controls to be operated to improve the accuracy of operations.
  • the operation process performed by the second electronic device can be displayed in the form of a floating window to facilitate viewing by the user.
  • the solution in the embodiment of the present application is explained below by taking a scenario in which the user performs screen recording of the process of turning on the WIFI function through the first electronic device and sends the recorded video and operation information to the second electronic device as an example.
  • the first electronic device may be a mobile phone 100
  • the second electronic device may be a mobile phone 200.
  • the mobile phone 100 will record the change process of the display state of the screen caused by the user A's operation, and record the corresponding actions of the user's operation.
  • first information and the mobile phone 100 can display the recording box 400 as shown in Figure 4b during the entire recording process.
  • the user records the WIFI connection operation on the mobile phone 100.
  • the user first clicks the setting application 4021 on the main interface 402.
  • the mobile phone 100 can record the interface information of the main interface 402 while recording the video, such as It includes the activity name "main interface” and can record the user's operation information on the main interface 402. For example, it can include: the user's operation style "click", the operation target "setting application”, and the layout ID "1234" of the setting application 4021.
  • the mobile phone 100 can display the setting interface 403.
  • the mobile phone 100 can record the setting interface 403 while recording the video.
  • Information for example, includes the application name "Settings", the package name "com.setting” and the activity name “Settings Interface”, as well as the user's operation information in the settings interface 403, for example, it may include: the user's operation style "click", operation target " WIFI Control", the layout ID of WIFI control 4031 is "12345".
  • the mobile phone 100 can display the WIFI interface 404.
  • the mobile phone 100 can record the interface information of the WIFI interface 404 while recording the video. For example, it includes the application name "Settings”, the package name "com.setting” and the activity name "WIFI interface”, as well as the user's operation information on the WIFI interface 404. For example, it can include: the user's operation style "click", the operation target "switch control" ", the layout ID of switch control 4041 is "12346".
  • the WIFI interface 404 of the mobile phone 100 can display a list of available WLANs. After the user finishes the operation, he can click the recording stop control 4001 in the recording box 400 to stop recording. At this time, the mobile phone 100 obtains the recorded video 500 of the entire operation process and the corresponding first information and stores it.
  • the recorded video can be sent through communication software as shown in Figure 4f.
  • Video 500 is sent to user B's mobile phone 200. It can be understood that while the recorded video 500 is being sent, the first information will also be sent to user B's mobile phone 200 at the same time.
  • user B can receive and display the recorded video 500 through communication software.
  • user B's electronic device can operate the mobile phone 200 based on the recorded information, and display the operation in the operation floating window 405 process.
  • the specific operation process may include: first triggering the setting control on the main interface and displaying the setting interface, and then triggering the WIFI control on the setting interface and displaying the WIFI interface. And trigger the switch control on the WIFI interface to turn on the WIFI function.
  • the electronic device is a first electronic device or a second electronic device.
  • Software systems of electronic devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.
  • the embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device.
  • FIG. 5 is a software structure block diagram of the electronic device according to the embodiment of the present invention.
  • 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 5, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, 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.
  • the window manager can respond to the user's playback operation of the recorded video and send a playback instruction to the corresponding application. For example, if the user clicks play in the photo album application, the window manager can send a playback instruction to the photo album. The application sends playback instructions.
  • the window manager can obtain the first information in response to the user's playback operation of the recorded video, and control the corresponding application program to perform corresponding operations on the second electronic device based on the first information.
  • the window manager can obtain the interface information and user operation information of the first interface in the received first information, determine the interface to be operated based on the interface information, and determine the interface to be operated based on the layout ID of the corresponding control in the user's operation information.
  • the interface traverses the layout IDs of all controls to find the target control that is consistent with the layout ID of the operation target in the operation information received from the first interface, and controls the corresponding application to perform operations on the target control according to the operation style in the operation information. Act accordingly.
  • the interface information and user operation information of the next interface are obtained, and the above steps are performed to complete the corresponding operation on the next interface.
  • 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.
  • 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.
  • 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.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • 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), 3D graphics processing libraries (for example: OpenGL ES), 2D 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: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the media library in response to the user's recording operation, can call a dedicated recording interface to perform screen recording, and store the obtained recorded video and the user's first information on the first electronic device during the recording process in Set a location, such as in the Photos app.
  • the media library may store the file containing the recorded video and the first information in the form of a compressed package in the photo album application of the electronic device.
  • the media library may store the entire file corresponding to the recorded video and the first information in a multi-track format, such as an Exchangeable Image File Format (EXIF) or MOV format.
  • EXIF Exchangeable Image File Format
  • MOV MOV format
  • the media library When the video is recorded and the first information is saved in the photo album or other folders of the electronic device via MOV format.
  • the media library will record the video and store it in the video track according to the format of the video.
  • the media library can output each interface information in the first information into a corresponding text file through the command line, and the operation information of each interface can also be output into the corresponding text file through the command line, and the interface information and the operation of each interface can be output
  • the text files corresponding to the information can be stored in the form of text through data tracks.
  • the video in MOV format supports arbitrary cropping and editing operations. Therefore, using the MOV format to store the recorded video and the first information can make the recorded video in an editable form, which facilitates post-processing.
  • the media library may bundle the recorded video and the first information and save them in the photo album application of the electronic device in MP4 format.
  • the media library can receive recorded videos and first information sent by other electronic devices.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, 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 contains at least display driver, camera driver, audio driver, and sensor driver.
  • Figure 6 shows the interaction process between the first electronic device and the second electronic device according to the embodiment of the present application.
  • the operation method includes:
  • the first electronic device detects the recording trigger operation and starts screen recording.
  • the recording triggering operation may be an operation in which the user clicks on the recording control 4011 on the mobile phone 100 .
  • a recording box can be displayed on the display interface to remind the user that the recording is in progress and to prompt the user for the recording time.
  • a recording stop control may also be present in the recording box.
  • a recording box 400 may be displayed on the display interface of the mobile phone 100, and the recording box 400 may include a recording time and a recording stop control 4001.
  • the first electronic device obtains the recorded video and the first information.
  • the recorded video may include a video of changes in the screen display caused by user operations during the recording process.
  • the first information may include interface information of each interface recorded during the screen recording process and user operation information on each interface.
  • the interface information of each interface may include the package name, application name, activity name, etc. of the interface.
  • the user's operation information on each interface may include the user's operation style (such as clicking, typing, filling information, sliding, selecting, typing, etc.), operation target, layout ID of the operation target, etc.
  • the layout ID of each operation target is unique. For example, if the layout ID of the WIFI control in the settings interface is "12345", then on any device, the layout ID of the WIFI control will be "12345". In this way, even if the interface settings of the second electronic device and the first electronic device are different, the electronic device can still accurately find the corresponding control according to the layout ID of the target control and perform the corresponding operation.
  • the user clicked the WIFI control on the setting interface of the first electronic device, and the first electronic device
  • the device will record the interface information of the setting interface, such as the application name "Settings", the package name “com.setting” and the activity name “Settings Interface”, and can record the user's operation information in the setting interface, for example, it can include: the user's The operation style is "click”, the operation target is "WIFI control", and the layout ID of "WIFI control" is "12345".
  • the operation information may also include auxiliary information corresponding to the operation style.
  • auxiliary information can also include the typing content
  • the sliding auxiliary information can also include the sliding position. , or adjust the position of the progress bar, etc.
  • the brightness adjustment control 1001 on the shortcut interface 101 of the mobile phone 100.
  • the brightness adjustment degree can also be recorded, that is, the adjustment position of the brightness bar, for example, the position of 30% of the overall brightness bar. In this way, when the second electronic device performs a brightness adjustment operation based on the operation information, the brightness can be accurately adjusted according to the adjustment position of the brightness bar.
  • the second electronic device when the second electronic device performs operations with multiple states such as sliding and typing, it can accurately obtain the operation that should be performed on the target control based on the auxiliary information, thereby improving the accuracy of the operation.
  • the index ID of the corresponding position of the content in the list can be used instead of the layout ID.
  • the first electronic device can store the recorded video and the first information. There are various storage forms of the recorded video and the first information in the first electronic device.
  • the recorded video and the first information may be bundled and saved in a compressed package file format in a photo album application or other folder of the first-end electronic device.
  • the compressed package file containing the recorded video and the first information may be displayed in the photo album application in the form of a video plus an operation mark.
  • the presentation form of the compressed package file can be a video style as shown in Figure 7a, and a border highlighting operation mark 501 is added.
  • the presentation form of the compressed package file can also be a video style as shown in Figure 7b, and a corner mark is added.
  • Mark operation mark 502 the presentation form of the compressed package file can also be a video style as shown in Figure 7c, and add a masking layer prompt operation mark 503.
  • the recorded video and the first information may be saved in the photo album application of the first electronic device or in other folders in MP4 format.
  • the entire file corresponding to the recorded video and the first information can also be stored in a multi-track format, such as an exchangeable image file format (EXIF) or MOV format.
  • EXIF exchangeable image file format
  • MOV MOV format
  • the recorded video and the first information are saved in the photo album or other folder of the electronic device through the MOV format as shown in Figure 7d.
  • the recorded video can be stored in the video format, such as MP4 format, through the video track.
  • Each interface information in the first information can be output as a corresponding text file through the command line, and the operation information of each interface can also be output as a corresponding text file through the command line.
  • the interface information and the operation information of each interface correspond to Text files can be stored as text via data tracks.
  • the video in MOV format supports arbitrary cropping and editing operations. Therefore, using the MOV format to store the recorded video and the first information can make the recorded video in an editable form, which facilitates post-processing.
  • the first electronic device sends the recorded video and the corresponding first information to the second electronic device.
  • the first electronic device can send the recorded video and the file corresponding to the corresponding first information, such as a compressed package file, to the second electronic device through the communication software through the network.
  • the first electronic device may send the recorded video and the file corresponding to the corresponding first information to the second electronic device through Bluetooth transmission.
  • the first electronic device can also upload files corresponding to the recorded video and the corresponding first information to the cloud space, and the second electronic device can download the files corresponding to the recorded video and the corresponding first information from the cloud space.
  • the first electronic device will share the recorded video and the file corresponding to the corresponding first information through a link, password, etc. Share to the second electronic device, and the second electronic device obtains the recorded video and the corresponding first information by opening the sharing link or entering a password.
  • the first electronic device transmits the recorded video and the corresponding first information to the second electronic device
  • the first electronic device transmits the recorded video and the corresponding first information to the second electronic device.
  • the mode of the second electronic device may be any implementable mode.
  • the recorded video 500 can be sent to user B's mobile phone through the network and communication software as shown in Figure 4f. 200 for mobile phone. It can be understood that while the recorded video is being sent, the first information will also be sent to user B's mobile phone 200 at the same time.
  • the second electronic device receives the recorded video and the corresponding first information.
  • the second electronic device While receiving the recorded video, the second electronic device will also receive the first information at the same time.
  • user B can receive the recorded video 500 through communication software and display the recorded video in a video style.
  • the second electronic device can store the recorded video and the corresponding first information.
  • the recorded video and the first information may be stored in the second electronic device in a variety of storage forms.
  • the recorded video and the first information may be bundled and saved in a compressed package file format in a photo album application or other folder of the second electronic device.
  • the compressed package file containing the recorded video and the first information may be displayed in the photo album application in the form of a video plus an operation mark.
  • the presentation form of the compressed package file can be a video style as shown in the aforementioned Figure 7a, and a border highlighting operation mark 501 is added.
  • the presentation form of the compressed package file can also be a video style as shown in Figure 7b, with the addition
  • the corner mark operation mark 502 the presentation form of the compressed package file can also be a video style as shown in Figure 7c, and a masking layer prompt operation mark 503 is added.
  • the recorded video and the first information may be bundled and saved in MP4 format in a photo album application of the second electronic device or in other folders.
  • the recorded video and the first information may be bundled and saved in MP4 format in a photo album application of the second electronic device or in other folders.
  • the entire file corresponding to the recorded video and the first information can also be stored in a multi-track format, such as an exchangeable image file format (EXIF) or MOV format.
  • EXIF exchangeable image file format
  • MOV MOV format
  • the recorded video and the first information are saved in the photo album or other folder of the electronic device through the MOV format as shown in Figure 7d.
  • the recorded video can be stored in the video format, such as MP4 format, through the video track.
  • Each interface information in the first information can be output as a corresponding text file through the command line, and the operation information of each interface can also be output as a corresponding text file through the command line.
  • the interface information and the operation information of each interface correspond to Text files can be stored as text via data tracks.
  • the video in MOV format supports arbitrary cropping and editing operations. Therefore, using the MOV format to store the recorded video and the first information can make the recorded video in an editable form, which facilitates post-processing.
  • the second electronic device responds to the user's playback operation and performs a corresponding operation based on the first information.
  • the operation performed by the second electronic device based on the first information is consistent with the user's operation on the display interface in the recorded video.
  • the way in which the second electronic device performs the corresponding operation based on the first information may be:
  • the second electronic device obtains the information of the first interface and user operation information in the received first information, enters the interface to be operated according to the interface information, and displays the interface to be operated according to the layout ID of the corresponding control in the user's operation information.
  • the layout IDs of all controls are traversed to find the target control that is consistent with the layout ID of the operation target in the operation information of the first interface received, and corresponding operations are performed on the target control according to the operation style in the operation information.
  • the interface information and user operation information of the next interface are obtained, and the above steps are performed to complete the corresponding operation on the next interface.
  • the second electronic device performs the second electronic device on the second electronic device based on the first information during the video playback process. How electronic equipment performs corresponding operations:
  • the mobile phone 200 first obtains the interface information 402 of the main interface in the first information, including, for example, the activity name "main interface”, and Obtaining the user's operation information on the main interface 402 may include, for example: the user's operation style "click", the operation target "setting application”, and the layout ID "1234" of the setting application 4021.
  • the main interface of the mobile phone 200 is found as the interface to be operated.
  • the layout ID "1234" corresponding to the setting application 4021 in the user's operation information the layout IDs of all controls are traversed on the main interface of the mobile phone 200 to find the target control consistent with the layout ID "1234" of the setting application 4021.
  • the operation style "click" in the first information performs a click operation on the target control. After the click operation on the target control is completed, the interface information and user operation information of the setting interface 403 are obtained, and the above steps are performed to complete the corresponding operation on the setting interface of the mobile phone 200 .
  • the second electronic device in response to the user's playback operation, can play the recorded video in full screen or in a large window, and perform the operation in the background without displaying the operation process.
  • the second electronic device in response to the user's play operation, can play the recorded video in full screen or in a large window, and display the operation process in the operation floating window.
  • the recorded video 500 when the user clicks on the recorded video 500 received by the mobile phone 200 for video playback, as shown in Figure 4h, the recorded video can be played in full screen on the main interface of the mobile phone 200, and in the operation floating window 405 Show the operation process.
  • the second electronic device in response to the user's playback operation, can display the recorded video in a video operation floating window, and place the operation process in a large window for playback.
  • the operation process can be displayed on the main interface of the mobile phone 200, and the recorded video can be played in the video floating window 406.
  • the second electronic device may include a first display area and a second display area.
  • the first display area displays the recorded video
  • the second display area displays the operation process, that is, the recorded video and the operation process.
  • the second electronic device may have any number of other devices connected to each other. Then, the video can be played through any device among the multiple devices connected to each other, and any device among the other devices can control the second electronic device to perform the operation corresponding to the first information.
  • the above-mentioned mutual connection method can be any method such as Bluetooth connection, mobile phone NFC function pairing connection, scan code connection, wired connection, etc.
  • the third electronic device is a tablet 300
  • the second electronic device is a mobile phone 200.
  • the tablet 300 and the mobile phone 200 are paired and connected through the NFC function of the mobile phone, and the third electronic device can be used to play the recorded video 500
  • the second electronic device may be used to perform corresponding operations according to the first information.
  • the mobile phone 200 can be used to play the recorded video 500, and the tablet 300 can be used to control the second device to perform corresponding operations based on the first information, and display the operation process.
  • the tablet 300 can display the virtual interface 302 corresponding to the mobile phone 200.
  • the mobile phone 200 can display the operation process on the main interface of the mobile phone 200.
  • the virtual interface 302 of the tablet 300 can be consistent with the mobile phone. Show the operation process.
  • the play window 301 of the tablet 300 can play the recorded video at the same time.
  • the user when the user exits playback, if the second electronic device still has unfinished operations, the user may be reminded in the form of a pop-up window or other forms.
  • a prompt box 600 may be prompted that "the operation is not completed, do you want to continue?"
  • the user clicks the Yes control 601 in the prompt box 600 the video will continue to be played.
  • the user clicks the No control 602 in the prompt box 600 the video playback will be stopped.
  • the recorded video can maintain any functions of conventional video such as fast forward, rewind, window size adjustment, and pause. And the recorded video can be played multiple times.
  • the first electronic device can mark multiple time points in the recorded video. For example, in some embodiments, during the recording process, after all operations on each interface are completed, a time point can be marked before the next interface is displayed.
  • the following description takes the first electronic device as a mobile phone 100 and the mobile phone 100 recording the operation process of user A turning on the WIFI function as an example to describe the acquisition of the recorded information and the first information in the embodiment of the present application.
  • the user records the WIFI opening operation on the mobile phone 100.
  • the user first clicks the settings application 4021 on the main interface 402.
  • the mobile phone 100 records the interface information of the main interface 402 while recording the video, such as the activity name. "Main interface”, and can record the user's operation information on the main interface 402, which may include, for example: the user's operation style "click", the operation target "setting application", and the layout ID "1234" of the setting application 4021.
  • the mobile phone 100 can mark the first time point in the recorded video.
  • the mobile phone 100 can display the setting interface 403.
  • the mobile phone 100 can also record the interface information of the setting interface 403, for example, including The application name "Settings", the package name "com.setting” and the activity name “Settings Interface”, as well as the user's operation information on the settings interface 403, may include, for example: the user's operation style "click", the operation target "WIFI control", After the user clicks the layout ID "12345" of the WIFI control 401, the mobile phone 100 can mark the second time point in the recorded video.
  • the mobile phone 100 can display the WIFI interface 404.
  • the WIFI interface 404 of the mobile phone 100 can display a list of available WLANs.
  • the mobile phone 100 After the user finishes the operation, he can click the recording stop control 4001 in the recording box 400 to stop recording. At this time, the mobile phone 100 marks the third time point, which is the end time point. The mobile phone 100 obtains and stores the recorded video of the entire operation process and the corresponding first information.
  • the obtained recorded video 500 may include three time points as shown in FIG. 14 , where each time point may correspond to a subtask in the WIFI activation function task.
  • associated time points among multiple time points can be fixed to each other.
  • the associated time points can be time points during the operation of performing any function, such as performing the above Multiple time points during the operation of turning on the WIFI function. This prevents the first electronic device or the second electronic device from dragging the progress bar between associated time points back and forth when playing a video, thereby preventing the user from dragging the video when the video includes the execution of multiple functions. The progress bar is followed up until the execution of a certain function, causing the problem that the electronic device performs unnecessary operations or performs less operations.
  • the first time point in the recorded video 500 is the time point after the user clicks on the WIFI control 401 in the scene shown in Figure 4, and the second time point is after the user clicks on the WIFI control 401.
  • the third time point is the time point after the user clicks the switch control 4041.
  • the operation between the third time point and the fourth time point is the operation of returning to the main interface.
  • the fifth time point, The sixth time point and the seventh time point are respectively the time points in the recording process when the user performs the transfer function.
  • the first electronic device can transfer the first time point, the second time point and the third time point. Click to fix the association.
  • the fifth time point, the sixth time point and the seventh time point are also related and fixed. That is, when playing a video, the first electronic device or the second electronic device cannot drag the progress bar back and forth before the third time point between the starting times.
  • the content between the fixed time point and the previous time point is the operation content corresponding to the fixed time point. Therefore, when any time point is fixed, the content between the fixed time point and the previous time point will The content is also fixed. Because for the recorded video shown in Figure 15, when the second electronic device or the first electronic device plays the recorded video 500, the user cannot drag the progress bar between the starting time and the third time point. Nor can you drag the progress bar between the fourth time point and the seventh time point back and forth. That is, if the user wants to drag the progress bar, he can only drag it directly from the initial time point to the third time point, and directly play the video after the third time point. He cannot drag directly from the initial time point to the first time point. Or the second point in time. In this way, it can be effectively avoided that if the user wants to perform the operation of turning on the WIFI function, the electronic device will perform less functions. If the user wants to perform the operation of the transfer function, the electronic device will perform more operations of turning on the WIFI function.
  • the second electronic device can perform corresponding operations on the second electronic device based on the first information while starting to play the video.
  • the second electronic device can automatically pause the playback to wait for the operation before the point in time to be completed before playing.
  • the second electronic device While the second electronic device is playing the recorded video 500, if the recorded video 500 has been played to the second time point, but the second electronic device has not completed the operation of clicking the WIFI control on the setting interface, the second electronic device Video playback will stop and the video will be played again after the second electronic device completes the operation of clicking the WIFI control on the setting interface.
  • the second electronic device may not trigger the execution of the operation when starting to play the video. Instead, when the video is played to each time point, the second electronic device may trigger the execution of the operation task before that time point, and each operation task may be added. into the task queue, and the second device sequentially executes the above operation tasks in the order in which the operation tasks are added. That is, the second electronic device triggers the execution of the operation when the playback reaches the first time point.
  • the first operation task is triggered, that is, the first operation task is triggered.
  • Operations performed before a certain point in time such as clicking settings on the main interface Set the operation of the application and add the first operation task to the task queue;
  • the second task is triggered, that is, the operation before the second point in time, for example, to implement the Click the operation of the WIFI control on the setting interface, and add the second operation task to the task queue.
  • both the first electronic device and the second electronic device can edit the recorded video, such as cropping by mistake, splitting the operation to obtain multiple video files, etc. In this way, incorrect operations or redundant operations during the recording process can be effectively avoided. It can be understood that during the editing process of the recorded video by the electronic device, the first information will also be adjusted accordingly.
  • the electronic device after the electronic device performed the operation of clicking the WIFI control on the setting interface, it marked the second time point, and then accidentally pressed the volume button, the electronic device marked the third time point, so The operation corresponding to the third time point is a redundant operation. At this time, the user can crop out the video content between the second time point and the third time point as shown in Figure 17b. At the same time, the electronic device will automatically delete the second time point. and the first information corresponding to the video between the third time point.
  • the following describes the hardware structure of the electronic device provided by the embodiment of the present application, taking the mobile phone 10 as an example.
  • the mobile phone 10 may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 101 and a display. Screen 102 etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 10 .
  • the mobile phone 10 may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some 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, for example, may include a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a digital signal processor DSP, a microprocessor (Micro- Processing modules or processing circuits such as programmed Control Unit (MCU), artificial intelligence (Artificial Intelligence, AI) processor or programmable logic device (Field Programmable Gate Array, FPGA). Among them, different processing units can be independent devices or integrated in one or more processors.
  • a storage unit may be provided in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory 180, and the cache memory 180 can save instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instructions or data again, it can be called directly from the memory.
  • Power module 140 may include a power supply, power management components, and the like.
  • the power source can be a battery.
  • the power management component is used to manage the charging of the power supply and the power supply from the power supply to other modules.
  • the power management component includes a charge management module and a power management module.
  • the charging management module is used to receive charging input from the charger; the power management module is used to connect the power supply, the charging management module and the processor 110 .
  • the power management module receives input from the power supply and/or charging management module and supplies power to the processor 110, the display screen 102, the camera 170, the wireless communication module 120, etc.
  • the mobile communication module 130 may include, but is not limited to, an antenna, a power amplifier, a filter, an LNA (Low noise amplifier), etc.
  • the mobile communication module 130 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone 10 .
  • the mobile communication module 130 can receive electromagnetic waves through an antenna, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 130 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna for radiation.
  • at least part of the functional modules of the mobile communication module 130 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 130 may be provided in the same device as at least part of the modules of the processor 110 .
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 102 .
  • the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processing
  • the processor 110 is provided in the same device as the mobile communication module 130 or other functional modules.
  • the wireless communication module 120 may include an antenna, and implements the transmission and reception of electromagnetic waves via the antenna.
  • the wireless communication module 120 can provide applications on the mobile phone 10 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • Bluetooth bluetooth, BT
  • global navigation satellite systems global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the mobile phone 10 can communicate with the network and other devices through wireless communication technology.
  • the mobile communication module 130 and the wireless communication module 120 of the mobile phone 10 may also be located in the same module.
  • the display screen 102 is used to display human-computer interaction interfaces, images, videos, etc.
  • Display 102 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), etc.
  • the sensor module 190 may include a proximity light sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the audio module 150 is used to convert digital audio information into an analog audio signal output, or convert an analog audio input into a digital audio signal. Audio module 150 may also be used to encode and decode audio signals. In some embodiments, the audio module 150 may be disposed in the processor 110 , or some functional modules of the audio module 150 may be disposed in the processor 110 . In some embodiments, audio module 150 may include speakers, earpieces, microphones, and headphone jacks.
  • Speakers also called “horns,” are used to convert audio electrical signals into sound signals.
  • a handset also called a “receiver” is used to convert audio electrical signals into sound signals.
  • Microphone 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 through the mouth close to the microphone and input the sound signal into the microphone.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 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 mobile phone 10 can also be equipped with three, four or more microphones to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone jack is used to connect wired headphones.
  • the headphone interface can be a USB interface, or it can 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
  • Camera 170 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to ISP (Image Signal Processing) to convert it into a digital image signal.
  • ISP Image Signal Processing
  • the mobile phone 10 can realize the shooting function through the ISP, camera 170, video codec, GPU (Graphic Processing Unit, graphics processor), display screen 102 and application processor.
  • the ISP is used to process the data fed back by the camera 193.
  • the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: MOVing picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • the interface module 160 includes an external memory interface, a universal serial bus (universal serial bus, USB) interface, a subscriber identification module (subscriber identification module, SIM) card interface, and so on.
  • the external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 10.
  • the external memory card communicates with the processor 110 through the external memory interface to implement data storage functions.
  • the Universal Serial Bus interface is used by mobile phones 10 and other electronic devices to communicate.
  • the user identity module card interface is used to communicate with the SIM card installed in the mobile phone 1010, such as reading the phone number stored in the SIM card, or writing the phone number into the SIM card.
  • the mobile phone 10 also includes buttons 101, motors, indicators, etc.
  • the keys 101 may include volume keys, on/off keys, etc.
  • the motor can produce vibration cues.
  • the motor can be used to vibrate for incoming calls or for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • the motor can also respond to different vibration feedback effects for touch operations in different areas of the display screen 102 .
  • Different application scenarios such as time reminders, receiving information, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • Indicators may include laser pointers, radio frequency indicators, LED indicators, etc.
  • Embodiments of the present application provide an electronic device, including: a memory, used to store instructions executed by one or more processors of the electronic device; and a processor, which is one of the one or more processors of the electronic device, used to execute The above operation method.
  • Embodiments of the present application provide a readable storage medium, in which instructions are stored on the readable storage medium.
  • the electronic device When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the above operation method.
  • Embodiments of the present application provide a computer program product, including: execution instructions.
  • the execution instructions are stored in a readable storage medium.
  • At least one processor of an electronic device can read the execution instructions from the readable storage medium.
  • the at least one processor executes the execution instructions.
  • the instructions enable the electronic device to implement the above operation method.
  • Embodiments disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods.
  • Embodiments of the present application may be implemented as a computer program or program code executing on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device and at least one output device.
  • Program code may be applied to input instructions to perform the functions described herein and to generate output information.
  • Output information can be applied to one or more output devices in a known manner.
  • a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • Program code may be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system.
  • assembly language or machine language can also be used to implement program code.
  • the mechanisms described in this application are not limited to the scope of any particular programming language. In either case, the language may be a compiled or interpreted language.
  • the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof.
  • the disclosed embodiments may also be implemented as instructions carried on or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be operated by one or more processors Read and execute.
  • instructions may be distributed over a network or through other computer-readable media.
  • machine-readable media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic Optical disk, read-only memory (ROM), random-access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical card, flash memory, or Tangible machine-readable storage used to transmit information (e.g., carrier waves, infrared signals, digital signals, etc.) using electrical, optical, acoustic, or other forms of propagated signals over the Internet.
  • machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, computer).
  • each unit/module mentioned in each device embodiment of this application is a logical unit/module.
  • a logical unit/module can be a physical unit/module, or it can be a physical unit/module.
  • Part of the module can also be implemented as a combination of multiple physical units/modules.
  • the physical implementation of these logical units/modules is not the most important.
  • the combination of functions implemented by these logical units/modules is what solves the problem of this application. Key technical issues raised.
  • the above-mentioned equipment embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems raised by this application. This does not mean that the above-mentioned equipment embodiments do not exist. Other units/modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the technical field of communications, and discloses an operation method, an electronic device, and a medium. The operation method comprises: a first electronic device acquiring a first video and first information associated with the first video, wherein the first information comprises interface information of at least one display interface recorded in a screen recording process and identification information of a target control operated by a user on the at least one display interface; playing back the first video, and executing an operation on the basis of the first information in the playback process of the first video. According to the solution, in a video playback process, the first electronic device can execute the same operation as the operation executed by a user on an electronic device during video recording, such that the user does not need to operate by himself/herself, thereby improving the operation convenience and the user experience.

Description

一种操作方法、电子设备及介质An operating method, electronic device and medium
本申请要求于2022年08月18日提交中国专利局、申请号为202210995317.8、申请名称为“一种操作方法、电子设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the China Patent Office on August 18, 2022, with application number 202210995317.8 and the application title "An operating method, electronic device and medium", the entire content of which is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及通信技术领域,特别涉及一种操作方法、电子设备及介质。The present application relates to the field of communication technology, and in particular to an operating method, electronic equipment and media.
背景技术Background technique
目前,智能手机等电子设备已经广泛应用于各种客户群体,例如,智能手机等电子设备在中老年人群体也广泛应用,而中老年群体中存在大多数用户在使用手机的过程中,有些操作不太熟悉,或者完全不会执行一些操作的问题,例如不会进行蓝牙连接和WIFI连接、不会调整手机字体显示大小等问题,而此时家人不在身边,无法现场指导。此外,除了中老年群体用户,其他用户也可能存在有些操作不会使用,导致用户无法执行某些操作的情况。At present, electronic devices such as smartphones have been widely used in various customer groups. For example, electronic devices such as smartphones are also widely used in middle-aged and elderly people. However, most users in the middle-aged and elderly people do some operations while using mobile phones. Not very familiar with the problem, or unable to perform some operations at all, such as not being able to connect to Bluetooth and WIFI, not being able to adjust the font display size of the mobile phone, etc. At this time, family members are not around and cannot provide on-site guidance. In addition, in addition to middle-aged and elderly users, other users may not be able to use some operations, resulting in users being unable to perform certain operations.
现有技术中,一些解决方案如图1a所示,用户A一般通过点击手机100的屏幕录制控件101以实现执行目标操作的过程,例如在设置应用102执行一些蓝牙连接或WIFI连接的操作的过程,录制为视频103,然后如图1b所示,将视频103通过通讯软件发送至需要学习操作的用户B的手机200,需要学习操作的用户可以根据视频内容进行学习如何执行目标操作。但上述解决方案中,用户B观看视频后进行操作容易忘记如何操作,因此需要反复观看视频学习。如此,造成用户实现上述操作较为繁琐,降低用户体验。In the existing technology, some solutions are shown in Figure 1a. User A generally clicks the screen recording control 101 of the mobile phone 100 to implement the process of performing the target operation, such as the process of performing some Bluetooth connection or WIFI connection operations in the settings application 102. , recorded as video 103, and then as shown in Figure 1b, the video 103 is sent to the mobile phone 200 of user B who needs to learn the operation through communication software. The user who needs to learn the operation can learn how to perform the target operation according to the video content. However, in the above solution, user B easily forgets how to operate after watching the video, so he needs to watch the video repeatedly to learn. In this way, it is more cumbersome for users to implement the above operations and reduces the user experience.
发明内容Contents of the invention
为解决上述用户实现录制视频中操作较为繁琐的技术问题,本申请实施例提供一种操作方法、电子设备及介质。In order to solve the above-mentioned technical problem of relatively complicated operations for users to record videos, embodiments of the present application provide an operating method, electronic equipment, and media.
第一方面,本申请实施例提供一种操作方法,应用于第一电子设备,方法包括:获取第一视频和与所述第一视频关联的第一信息,其中,所述第一信息包括屏幕录制过程中录制的至少一个显示界面的界面信息以及用户在所述至少一个显示界面操作的目标控件的标识信息;播放所述第一视频,并在播放所述第一视频的过程中,基于所述第一信息执行操作。In a first aspect, embodiments of the present application provide an operating method applied to a first electronic device. The method includes: obtaining a first video and first information associated with the first video, wherein the first information includes a screen The interface information of at least one display interface recorded during the recording process and the identification information of the target control operated by the user on the at least one display interface; play the first video, and during the process of playing the first video, based on the perform the operation on the first information.
可以理解,本申请实施例中,第一视频可以指本申请实施例中提及的录制视频。It can be understood that in the embodiment of this application, the first video may refer to the recorded video mentioned in the embodiment of this application.
基于上述方案,第一电子设备在播放视频的过程中,即可以执行与录制视频中用户对电子设备执行的操作同样的操作,能够使得用户无需自己动手操作,提升操作的便利性和用户体验。Based on the above solution, during the process of playing the video, the first electronic device can perform the same operation as the operation performed by the user on the electronic device in the recorded video, which can eliminate the need for the user to operate by himself and improve the convenience of operation and user experience.
此外,第一信息包括用户在所述显示界面操作的目标控件的标识信息,其中,目标空间的标识信息可以为目标空间的布局ID信息,由于每个操作目标的标识信息是唯一的。使得即使第一电子设备与录制视频中电子设备的界面设置有所不同,但第一电子设备仍然可以根据目标控件的标识精确找到对应的控件,执行对应操作,有效提高操作的正确性。In addition, the first information includes the identification information of the target control operated by the user on the display interface, where the identification information of the target space may be the layout ID information of the target space, since the identification information of each operation target is unique. Even if the interface settings of the first electronic device and the electronic device in the recorded video are different, the first electronic device can still accurately find the corresponding control according to the identification of the target control and perform the corresponding operation, effectively improving the accuracy of the operation.
在一种可能的实现方式中,所述操作与所述第一视频中用户在所述至少一个显示界面的操作一致。In a possible implementation, the operation is consistent with the user's operation on the at least one display interface in the first video.
在一种可能的实现方式中,所述第一视频和所述第一信息作为同一个文件进行存储,或,所述第一视频和所述第一信息作为不同文件进行存储。In a possible implementation, the first video and the first information are stored as the same file, or the first video and the first information are stored as different files.
在一种可能的实现方式中,包括:所述第一信息还包括用户在所述至少一个显示界面对所述目标控件的操作方式。In a possible implementation, the method includes: the first information also includes the user's operation mode of the target control on the at least one display interface.
在一种可能的实现方式中,所述基于所述第一信息执行操作,包括:获取所述第一信息中第一显示界面的界面信息,基于所述第一显示界面的界面信息确定所述电子设备的第一待操作界面;获取用户在所述第一显示界面操作的目标控件的标识信息,基于所述用户在所述第一显示界面操作的目标控件的标识信息,确定所述第一待操作界面的待操作控件;获取用户在所述第一显示界面对所述目标控件的操作方式,基于所述用户在所述第一显示界面对所述目标控件的操作方式对所述待操作控件进行对应操作; 获取所述第一信息中第二显示界面的界面信息,基于所述第二显示界面的界面信息确定所述电子设备的第二待操作界面。In a possible implementation, performing an operation based on the first information includes: obtaining interface information of a first display interface in the first information, and determining the interface information of the first display interface based on the interface information of the first display interface. The first to-be-operated interface of the electronic device; obtains identification information of a target control operated by the user on the first display interface, and determines the first operation based on the identification information of the target control operated by the user on the first display interface. The to-be-operated control on the to-be-operated interface; obtains the user's operating mode for the target control on the first display interface, and controls the to-be-operated control based on the user's operating mode for the target control on the first display interface. Controls perform corresponding operations; Obtain the interface information of the second display interface in the first information, and determine the second to-be-operated interface of the electronic device based on the interface information of the second display interface.
在一种可能的实现方式中,在所述目标控件的操作方式为多状态操作方式的情况下,所述第一信息还包括所述操作方式对应的辅助信息。In a possible implementation manner, when the operation mode of the target control is a multi-state operation mode, the first information further includes auxiliary information corresponding to the operation mode.
在一种可能的实现方式中,所述多状态操作方式包括键入操作和调节操作,所述键入操作对应的辅助信息包括键入内容,所述调节操作对应的辅助信息包括调节状态。In a possible implementation, the multi-state operation mode includes a typing operation and an adjustment operation, the auxiliary information corresponding to the typing operation includes input content, and the auxiliary information corresponding to the adjustment operation includes an adjustment state.
可以理解,调节凑在哦可以包括滑动操作,例如滑动进度条的操作等。It can be understood that the adjustment may include sliding operations, such as sliding progress bars, etc.
可以理解,本申请实施例中第二电子设备在进行操作样式为滑动、键入等具有多种状态的操作时,可以根据辅助信息精确获取对目标控件应该执行的操作,提高操作的准确性。It can be understood that in the embodiment of the present application, when the second electronic device performs operations with multiple states such as sliding and typing, it can accurately obtain the operation that should be performed on the target control based on the auxiliary information, thereby improving the accuracy of the operation.
在一种可能的实现方式中,所述界面信息包括界面包名、界面应用名和界面activity名称。In a possible implementation, the interface information includes an interface package name, an interface application name, and an interface activity name.
在一种可能的实现方式中,所述第一电子设备包括第一显示区域和第二显示区域;In a possible implementation, the first electronic device includes a first display area and a second display area;
所述第一电子设备播放所述第一视频的过程中,所述第一显示区域显示所述第一视频的播放画面,所述第二显示区域显示所述第一电子设备执行所述操作的操作过程。When the first electronic device plays the first video, the first display area displays the playback screen of the first video, and the second display area displays the first electronic device performing the operation. Operation process.
在一种可能的实现方式中,所述第一显示区域重叠于所述第二显示区域的部分区域,或,所述第二显示区域重叠于所述第一显示区域的部分区域。In a possible implementation, the first display area overlaps a partial area of the second display area, or the second display area overlaps a partial area of the first display area.
在一种可能的实现方式中,所述第二显示区域与所述第一显示区域分屏显示。In a possible implementation, the second display area and the first display area are displayed in separate screens.
在一种可能的实现方式中,所述第三电子设备与所述第一电子设备连接,所述第三电子设备显示所述第一视频的播放画面,所述第一电子设备显示所述第一电子设备执行所述操作的操作过程。In a possible implementation, the third electronic device is connected to the first electronic device, the third electronic device displays the playback screen of the first video, and the first electronic device displays the first video. An electronic device performs the operation process of the operation.
在一种可能的实现方式中,所述第三电子设备与所述第一电子设备连接,所述第三电子设备显示所述第一电子设备执行所述操作的操作过程,所述第一电子设备显示所述第一视频的播放画面。In a possible implementation, the third electronic device is connected to the first electronic device, the third electronic device displays the operation process of the first electronic device performing the operation, and the first electronic device The device displays the playback screen of the first video.
在一种可能的实现方式中,所述第三电子设备与所述第一电子设备连接,所述第一电子设备显示所述第一电子设备执行所述操作的操作过程和/或第一视频的播放画面;所述第三电子设备包括第三显示区域和第四显示区域,所述第三显示区域显示所述第一电子设备的显示内容,所述第四显示区域显示所述操作过程或所述第一视频的播放画面。In a possible implementation, the third electronic device is connected to the first electronic device, and the first electronic device displays the operation process and/or the first video of the first electronic device performing the operation. the playback screen; the third electronic device includes a third display area and a fourth display area, the third display area displays the display content of the first electronic device, and the fourth display area displays the operation process or The playback screen of the first video.
在一种可能的实现方式中,还包括:在接收到退出播放指令,且检测所述操作未完成的情况下,发送提示信息至所述第一电子设备的显示界面。In a possible implementation, the method further includes: upon receiving an instruction to exit playback and detecting that the operation is not completed, sending prompt information to a display interface of the first electronic device.
在一种可能的实现方式中,所述第一视频中标记有多个时刻点,每个所述时刻点对应所述屏幕录制过程中用户的部分操作。In a possible implementation, the first video is marked with multiple time points, and each time point corresponds to part of the user's operation during the screen recording process.
在一种可能的实现方式中,还包括:固定所述多个时刻点中的具有关联的部分时刻点,以使得所述具有关联的部分时刻点所对应的视频连续播放。In a possible implementation, the method further includes: fixing associated partial time points among the plurality of time points, so that videos corresponding to the associated partial time points are played continuously.
可以理解,本申请实施例中,具有关联的时间点可以为执行任一功能的操作过程中的时间点,例如执行本申请实施例中开启WIFI功能的操作过程中的多个时间点。固定具有关联的时刻点,可以使得电子设备在将播放视频时,不能前后拖动具有关联的时间点之间的进度条,避免在录制视频中包括多个功能的执行过程时,用户拖动进度条到执行了某一功能的中间过程进行后续观看,造成电子设备执行多余部分操作或者少执行了部分操作的问题发生。It can be understood that in the embodiment of the present application, the associated time point may be a time point during the operation of executing any function, such as multiple time points during the operation of turning on the WIFI function in the embodiment of the present application. Fixing the associated time points prevents the electronic device from dragging the progress bar back and forth between the associated time points when playing a video, preventing the user from dragging the progress bar when recording a video that includes the execution of multiple functions. The user can perform subsequent viewing during the intermediate process of performing a certain function, causing the problem that the electronic device performs redundant operations or performs less operations.
在一种可能的实现方式中,在所述第一视频播放到目标时刻点时,在所述目标时刻点所对应的操作未完成的情况下,停止所述第一视频的播放;在所述目标时刻点所对应的操作完成后,继续播放所述第一视频。In a possible implementation, when the first video is played to a target time point and the operation corresponding to the target time point is not completed, the playback of the first video is stopped; After the operation corresponding to the target time point is completed, the first video continues to be played.
在一种可能的实现方式中,方法还包括:对所述第一视频进行剪辑处理,以获取第二视频。In a possible implementation, the method further includes: editing the first video to obtain a second video.
在一种可能的实现方式中,所述剪辑处理包括剪切处理和/或拆分处理和/或重组等处理。In a possible implementation, the editing processing includes cutting processing and/or splitting processing and/or reorganization processing.
在一种可能的实现方式中,所述第一电子设备以MOV格式、EXIF格式或压缩包格式存储所述第一视频和所述第一信息。In a possible implementation, the first electronic device stores the first video and the first information in MOV format, EXIF format or compressed package format.
在一种可能的实现方式中,所述在播放所述第一视频的过程中,基于所述第一信息执行操作;包括:检测到播放指令,播放所述第一视频,并在所述第一视频播放到第一个时刻点时,将所述第一个时刻点对应的操作加入任务队列,并基于所述第一信息执行所述任务队列中的操作;在所述第一视频播放到第二个时刻点时,将所述第二个时刻点对应的操作加入所述任务队列。 In a possible implementation, during the process of playing the first video, performing an operation based on the first information includes: detecting a play instruction, playing the first video, and performing an operation on the first video. When a video is played to the first time point, the operation corresponding to the first time point is added to the task queue, and the operation in the task queue is executed based on the first information; when the first video is played to At the second time point, add the operation corresponding to the second time point to the task queue.
第二方面,本申请提供一种操作方法,应用于第二电子设备,其特征在于,包括:检测到屏幕录制指令;开启屏幕录制,生成第一视频和第一信息,所述第一信息包括屏幕录制过程中录制的至少一个显示界面的界面信息以及用户所述至少一个显示界面的操作的目标控件的标识信息,其中,所述第一信息能够用于:电子设备在播放所述第一视频的过程中,基于所述第一信息执行对应操作。In a second aspect, this application provides an operating method, applied to a second electronic device, which is characterized by including: detecting a screen recording instruction; starting screen recording, and generating a first video and first information, where the first information includes The interface information of at least one display interface recorded during the screen recording process and the identification information of the target control of the user's operation of the at least one display interface, wherein the first information can be used: when the electronic device plays the first video In the process, the corresponding operation is performed based on the first information.
在一种可能的实现方式中,所述第二电子设备将所述第一视频和所述第一信息发送至所述第一电子设备。In a possible implementation, the second electronic device sends the first video and the first information to the first electronic device.
第三方面,本申请提供一种电子设备,其特征在于,包括:存储器,用于存储所述电子设备的一个或多个处理器执行的指令,以及所述处理器,是所述电子设备的一个或多个处理器之一,用于执行本申请提及的操作方法。In a third aspect, the present application provides an electronic device, which is characterized in that it includes: a memory for storing instructions executed by one or more processors of the electronic device, and the processor is a processor of the electronic device. One of one or more processors, configured to perform the operation methods mentioned in this application.
第四方面,本申请提供一种可读存储介质,所述可读介质上存储有指令,所述指令在电子设备上执行时使得所述电子设备执行本申请提及的操作方法。In a fourth aspect, the present application provides a readable storage medium. Instructions are stored on the readable medium. When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the operation method mentioned in the present application.
第五方面,本申请提供一种计算机程序产品,包括:执行指令,所述执行指令存储在可读存储介质中,电子设备的至少一个处理器可以从所述可读存储介质读取所述执行指令,所述至少一个处理器执行所述执行指令使得所述电子设备实现执行本申请提及的操作方法。In a fifth aspect, the present application provides a computer program product, including: execution instructions, the execution instructions are stored in a readable storage medium, and at least one processor of an electronic device can read the execution instructions from the readable storage medium. Instructions, the at least one processor executes the execution instructions so that the electronic device implements the operation method mentioned in this application.
附图说明Description of drawings
图1a根据现有技术的一些实施例,示出了一种屏幕录制的过程示意图。Figure 1a shows a schematic diagram of a screen recording process according to some embodiments of the prior art.
图1b根据现有技术的一些实施例,示出了一种播放录制视频的示意图。Figure 1b shows a schematic diagram of playing a recorded video according to some embodiments of the prior art.
图2a根据本申请的一些实施例,示出了一种屏幕录制的过程示意图。Figure 2a shows a schematic diagram of a screen recording process according to some embodiments of the present application.
图2b根据本申请的一些实施例,示出了一种屏幕录制的过程示意图。Figure 2b shows a schematic diagram of a screen recording process according to some embodiments of the present application.
图3根据本申请的一些实施例,示出了一种屏幕录制的过程示意图。Figure 3 shows a schematic diagram of a screen recording process according to some embodiments of the present application.
图4a-4h根据本申请的一些实施例,示出了一种屏幕录制的过程示意图。Figures 4a-4h show a schematic diagram of a screen recording process according to some embodiments of the present application.
图5根据本申请的一些实施例,示出了一种电子设备的结构示意图。Figure 5 shows a schematic structural diagram of an electronic device according to some embodiments of the present application.
图6根据本申请的一些实施例,示出了一种操作方法的流程示意图。Figure 6 shows a schematic flowchart of an operating method according to some embodiments of the present application.
图7a-7c根据本申请的一些实施例,分别示出了一种录制视频的展示示意图。Figures 7a-7c respectively show a schematic diagram of recording a video according to some embodiments of the present application.
图7d根据本申请的一些实施例,分别示出了一种录制视频和操作信息的存储示意图。Figure 7d shows a storage schematic diagram of recorded video and operation information respectively according to some embodiments of the present application.
图8根据本申请的一些实施例,示出了一种录制视频的回放示意图。Figure 8 shows a schematic diagram of playback of recorded video according to some embodiments of the present application.
图9a-9b根据本申请的一些实施例,分别示出了一种录制视频的回放示意图。Figures 9a-9b respectively show a schematic diagram of playback of a recorded video according to some embodiments of the present application.
图10根据本申请的一些实施例,示出了一种录制视频的回放示意图。Figure 10 shows a schematic diagram of playback of recorded video according to some embodiments of the present application.
图11根据本申请的一些实施例,示出了一种录制视频的回放示意图Figure 11 shows a schematic diagram of playback of recorded video according to some embodiments of the present application.
图12根据本申请的一些实施例,示出了一种录制视频的回放示意图Figure 12 shows a schematic diagram of playback of recorded video according to some embodiments of the present application.
图13根据本申请的一些实施例,示出了一种录制视频的回放过程中,退出播放的场景示意图。Figure 13 shows a schematic diagram of a scene of exiting playback during playback of a recorded video according to some embodiments of the present application.
图14根据本申请的一些实施例,示出了一种录制视频中时刻点的设置示意图。Figure 14 shows a schematic diagram of setting time points in a recorded video according to some embodiments of the present application.
图15根据本申请的一些实施例,示出了一种录制视频中时刻点的关联固定示意图。Figure 15 shows a schematic diagram of associated fixation of time points in a recorded video according to some embodiments of the present application.
图16根据本申请的一些实施例,示出了一种录制视频的回放过程中,任务队列的生成示意图。Figure 16 shows a schematic diagram of the generation of a task queue during the playback process of a recorded video according to some embodiments of the present application.
图17a-17b根据本申请的一些实施例,示出了一种视频剪辑的示意图。17a-17b illustrate a schematic diagram of a video clip according to some embodiments of the present application.
图18根据本申请的一些实施例,示出了一种电子设备的硬件结构示意图。Figure 18 shows a schematic diagram of the hardware structure of an electronic device according to some embodiments of the present application.
具体实施方式Detailed ways
本申请的说明性实施例包括但不限于一种操作方法、电子设备和介质。Illustrative embodiments of the present application include, but are not limited to, a method of operation, electronic equipment, and media.
为解决上述问题,本申请实施例提供一种操作方法,包括:第一电子设备在检测到录制触发操作后,开始屏幕录制,并记录用户在录制过程中对每个界面所触发的目标控件的位置信息,例如,如图2a所示,在录制过程中,用户在手机100的设置界面403点击了WIFI控件4031,则电子设备可以记录WIFI控件4031的位置信息,例如WIFI控件4031的位置信息为“设置界面的第二个控件行”。In order to solve the above problem, an embodiment of the present application provides an operation method, which includes: after detecting the recording triggering operation, the first electronic device starts screen recording, and records the user's actions on the target controls triggered by each interface during the recording process. Location information, for example, as shown in Figure 2a, during the recording process, the user clicks on the WIFI control 4031 on the setting interface 403 of the mobile phone 100, then the electronic device can record the location information of the WIFI control 4031. For example, the location information of the WIFI control 4031 is "Set the second control row of the interface".
且第一电子设备可以将录制视频和对应的每个界面的目标控件的位置信息发送至第二电子设备。第二电子设备在播放视频的同时可以根据对每个界面的目标控件的位置信息自动触发目标控件,即实现与 录制视频中的操作一致的操作。例如,在第一电子设备的录制过程中,用户在手机100的设置界面403点击了WIFI控件4031。则第二电子设备在播放视频的同时,也会根据WIFI控件4031的位置信息触发第二电子设备上的WIFI控件。And the first electronic device can send the recorded video and the corresponding position information of the target control of each interface to the second electronic device. While playing the video, the second electronic device can automatically trigger the target control based on the position information of the target control on each interface, that is, to achieve the same Record actions consistent with the actions in the video. For example, during the recording process of the first electronic device, the user clicks on the WIFI control 4031 on the setting interface 403 of the mobile phone 100 . Then, while playing the video, the second electronic device will also trigger the WIFI control on the second electronic device based on the location information of the WIFI control 4031.
上述方案可以实现在播放视频的同时自动触发对应操作,简化操作过程。但是在一些实施例中,不同控件在不同设备上的位置可能会有所变化,例如,如图2a所示。WIFI控件4031在手机100上的位置信息为“设置界面的第二个控件行”,而手机200上的WIFI控件2011所在的位置为设置界面201的第三个控件行。手机200在播放上述录制视频的时候,仍然会根据上述位置信息触发手机200的设置界面201的第二个控件行,导致产生错误操作。The above solution can automatically trigger corresponding operations while playing videos, simplifying the operation process. However, in some embodiments, the positions of different controls on different devices may change, for example, as shown in Figure 2a. The location information of the WIFI control 4031 on the mobile phone 100 is "the second control row of the setting interface", and the location of the WIFI control 2011 on the mobile phone 200 is the third control row of the setting interface 201. When the mobile phone 200 plays the above recorded video, it will still trigger the second control row of the setting interface 201 of the mobile phone 200 based on the above location information, resulting in an incorrect operation.
此外,上述方案中,第一电子设备只能记录目标控件所在的位置,如此,存在一个控件具有多种状态操作,例如多种调节状态、多种键入状态等,第二电子设备无法确定目标控件的具体状态,导致无法执行具体操作。例如,如图2b所示,在录制过程中,用户在手机100的快捷界面101上滑动了亮度调节控件1001,上述方案中第一电子设备只能记录亮度调节控件1001所在的位置,例如,在快捷界面的最后一个控件行。但没有记录亮度调节程度,因此基于上述方案,第二电子设备无法根据亮度调节控件的位置确定亮度调节的程度,因此,第二电子设备无法将亮度调节到与录制视频中的亮度一样的程度。In addition, in the above solution, the first electronic device can only record the location of the target control. Therefore, if there is a control with multiple state operations, such as multiple adjustment states, multiple typing states, etc., the second electronic device cannot determine the target control. The specific status makes it impossible to perform specific operations. For example, as shown in Figure 2b, during the recording process, the user slides the brightness adjustment control 1001 on the shortcut interface 101 of the mobile phone 100. In the above solution, the first electronic device can only record the location of the brightness adjustment control 1001. For example, in The last control row of the shortcut interface. However, the degree of brightness adjustment is not recorded. Therefore, based on the above solution, the second electronic device cannot determine the degree of brightness adjustment based on the position of the brightness adjustment control. Therefore, the second electronic device cannot adjust the brightness to the same level as the brightness in the recorded video.
为解决上述问题,本申请实施例提供一种操作方法,包括:第一电子设备检测到录制触发操作,例如,可以为如图3所示,用户在手机100中点击了操作录制控件4011,则开始屏幕录制,即对针对于用户操作引起的屏幕显示的变化过程进行录制,并获取录制视频和第一信息,并将录制视频和第一信息进行存储。其中第一信息可以为录制过程中用户对第一电子设备的操作信息。其中,第一信息包括屏幕录制过程中录制的每个界面的界面信息以及用户在每个界面的操作信息,其中,用户在每个界面的操作信息可以包括用户的操作样式、操作目标和操作目标的布局ID。In order to solve the above problem, an embodiment of the present application provides an operation method, which includes: the first electronic device detects a recording trigger operation. For example, as shown in Figure 3, the user clicks the operation recording control 4011 on the mobile phone 100, then Start screen recording, that is, record the change process of screen display caused by user operation, obtain the recorded video and the first information, and store the recorded video and the first information. The first information may be the user's operation information on the first electronic device during the recording process. The first information includes the interface information of each interface recorded during the screen recording process and the user's operation information on each interface. The user's operation information on each interface may include the user's operation style, operation target and operation target. The layout ID.
可以理解,本申请实施例中,用户在每个界面的操作信息还可以包括操作目标的坐标、操作目标所在的控件行位置、控件尺寸等信息。其中,操作目标可以指用户操作的目标控件。It can be understood that in the embodiment of the present application, the user's operation information on each interface may also include information such as the coordinates of the operation target, the position of the control row where the operation target is located, the size of the control, and other information. Among them, the operation target may refer to the target control operated by the user.
可以理解,本申请实施例中,录制视频和第一信息可以作为两个单独的文件进行存储,也可以作为一个文件进行存储。It can be understood that in the embodiment of the present application, the recorded video and the first information can be stored as two separate files or as one file.
本申请实施例中,第一电子设备可以将录制视频和对应的第一信息发送至第二电子设备,第二电子设备检测到用户对录制视频的播放操作,则播放录制视频,并在播放录制视频的过程中基于第一信息对第二电子设备进行对应操作,以实现第二电子设备能够执行与录制视频中用户对第一电子设备执行的同样的操作。例如,第二电子设备播放的录制视频中,用户对第一电子设备的操作为打开了设置应用,则第二电子设备可以基于接收到的第一信息打开设置应用。In the embodiment of the present application, the first electronic device can send the recorded video and the corresponding first information to the second electronic device. The second electronic device detects the user's playback operation of the recorded video, then plays the recorded video, and plays the recorded video. During the video process, a corresponding operation is performed on the second electronic device based on the first information, so that the second electronic device can perform the same operation as the user performed on the first electronic device in the video recording. For example, in the recorded video played by the second electronic device, the user's operation on the first electronic device is to open the settings application, then the second electronic device can open the settings application based on the received first information.
其中,每个界面的界面信息可以包括界面的包名、应用名称、activity名称等。Among them, the interface information of each interface may include the package name, application name, activity name, etc. of the interface.
用户在每个界面的操作信息可以包括用户的操作样式(例如点击、键入、填充信息、滑动、选择、键入等)、操作目标、操作目标的布局ID等。其中,每个操作目标的布局ID是唯一的。例如,设置界面的WIFI控件的布局ID是“12345”,则在任意设备上,WIFI控件的布局ID均是“12345”。如此,即使第二电子设备与第一电子设备的界面设置有所不同,但电子设备仍然可以根据目标控件的布局ID精确找到对应的控件,并执行对应操作。The user's operation information on each interface may include the user's operation style (such as clicking, typing, filling information, sliding, selecting, typing, etc.), operation target, layout ID of the operation target, etc. Among them, the layout ID of each operation target is unique. For example, if the layout ID of the WIFI control in the settings interface is "12345", then on any device, the layout ID of the WIFI control will be "12345". In this way, even if the interface settings of the second electronic device and the first electronic device are different, the electronic device can still accurately find the corresponding control according to the layout ID of the target control and perform the corresponding operation.
例如,在录制过程中,用户在第一电子设备的设置界面进行了点击WIFI控件的操作,第一电子设备将会记录设置界面的界面信息,例如包括应用名“设置”,包名“com.setting”以及activity名称“设置界面”,并可以记录用户在设置界面的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“WIFI控件”,“WIFI控件”的布局ID“12345”。For example, during the recording process, if the user clicks on the WIFI control on the setting interface of the first electronic device, the first electronic device will record the interface information of the setting interface, including, for example, the application name "settings" and the package name "com. setting" and the activity name "setting interface", and can record the user's operation information on the setting interface. For example, it can include: the user's operation style "click", the operation target "WIFI control", and the layout ID of "WIFI control" "12345" .
可以理解,当一些操作样式为滑动、键入等具有多种状态的操作时,操作信息还可以包括操作样式对应的辅助信息。例如,当操作样式为键入操作时,键入内容可以有多种,因此键入辅助信息还可以包括键入内容;当操作样式为滑动时,滑动位置有多种,因此滑动的辅助信息还可以包括滑动位置,或进度条调节位置等。It can be understood that when some operation styles are operations with multiple states such as sliding and typing, the operation information may also include auxiliary information corresponding to the operation style. For example, when the operation style is a typing operation, there can be multiple types of typing content, so the typing auxiliary information can also include the typing content; when the operation style is a sliding operation, there are many types of sliding positions, so the sliding auxiliary information can also include the sliding position. , or adjust the position of the progress bar, etc.
例如,如图2b所示,在录制过程中,用户在手机100的快捷界面101上滑动了亮度调节控件1001,本申请实施例中除了记录用户的操作样式“滑动”,操作目标“亮度调节控件”,亮度调节控件1001的布局ID“12347”之外,还可以记录亮度调节程度,即亮度条的调节位置,例如为整体亮度条的百分 之三十的位置。如此,第二电子设备在基于操作信息执行亮度调节操作时,可以根据亮度条的调节位置精确调整亮度。For example, as shown in Figure 2b, during the recording process, the user slid the brightness adjustment control 1001 on the shortcut interface 101 of the mobile phone 100. In the embodiment of the present application, in addition to recording the user's operation style "sliding", the operation target "brightness adjustment control" ”, in addition to the layout ID “12347” of the brightness adjustment control 1001, the brightness adjustment degree can also be recorded, that is, the adjustment position of the brightness bar, for example, the percentage of the overall brightness bar. The position of thirty. In this way, when the second electronic device performs a brightness adjustment operation based on the operation information, the brightness can be accurately adjusted according to the adjustment position of the brightness bar.
基于上述方案,第二电子设备在进行操作样式为滑动、键入等具有多种状态的操作时,可以根据辅助信息精确获取对目标控件应该执行的操作,提高操作的准确性。Based on the above solution, when the second electronic device performs operations with multiple states such as sliding and typing, it can accurately obtain the operation that should be performed on the target control based on the auxiliary information, thereby improving the accuracy of the operation.
可以理解,在一些实施例中,操作目标是表格等列表形式中的内容时,可以采用列表中内容对应位置的索引ID代替布局ID。It can be understood that in some embodiments, when the operation target is content in a list form such as a table, the index ID of the corresponding position of the content in the list can be used instead of the layout ID.
可以理解,在一些实施例中,第一电子设备可以通过通讯软件或者蓝牙传输等任意方式将录制视频和对应的第一信息发送至第二电子设备。It can be understood that in some embodiments, the first electronic device can send the recorded video and the corresponding first information to the second electronic device through any means such as communication software or Bluetooth transmission.
可以理解,在一些实施例中,第二电子设备在播放视频的过程中基于第一信息对第二电子设备进行对应操作的方式可以为:It can be understood that in some embodiments, the way in which the second electronic device performs corresponding operations on the second electronic device based on the first information during the video playing process may be:
第二电子设备获取接收到的第一信息中第一个界面的界面信息和用户操作信息,根据界面信息进入到待操作的界面,根据用户的操作信息中对应控件的布局ID,在待操作界面对所有控件的布局ID进行遍历,以寻找与接收到的第一个界面的操作信息中操作目标的布局ID一致的目标控件,根据操作信息中的操作样式对目标控件进行相应操作。当第一个界面上的操作执行完成后,获取下一个界面的界面信息和用户操作信息,并执行上述步骤,以实现完成下一个界面上的对应操作。The second electronic device obtains the interface information and user operation information of the first interface in the received first information, enters the interface to be operated according to the interface information, and enters the interface to be operated according to the layout ID of the corresponding control in the user's operation information. Traverse the layout IDs of all controls to find the target control that is consistent with the layout ID of the operation target in the operation information of the first interface received, and perform corresponding operations on the target control according to the operation style in the operation information. After the operation on the first interface is completed, the interface information and user operation information of the next interface are obtained, and the above steps are performed to complete the corresponding operation on the next interface.
综上,本申请实施例中,用户可以通过对第一电子设备进行屏幕录制以获取录制视频和录制过程中用户对第一电子设备的第一信息,并将录制视频和录制过程中用户对第一电子设备的第一信息发送至第二电子设备。如此,第二电子设备在播放视频的过程中,即可以执行与录制视频中用户对第一电子设备执行的操作同样的操作,能够使得接收屏幕录制视频和第一信息的用户无需自己动手操作,电子设备即可以根据接收到的录制视频和第一信息进行对应操作,提升操作的便利性和用户体验。In summary, in the embodiments of the present application, the user can obtain the recorded video and the user's first information about the first electronic device during the recording process by performing screen recording on the first electronic device, and record the video and the user's first information about the first electronic device during the recording process. First information from an electronic device is sent to a second electronic device. In this way, during the process of playing the video, the second electronic device can perform the same operation as the operation performed by the user on the first electronic device in the recorded video, so that the user who receives the screen recording video and the first information does not need to do the operation himself. The electronic device can perform corresponding operations based on the received recorded video and first information, thereby improving operation convenience and user experience.
同时,由于用户第一信息中包括有详细的界面信息和界面对应的操作信息,例如目标空间的布局ID,以及辅助信息等,因此,使得第二电子设备可以根据第一信息准确识别待操作界面和对应的待操作控件,提高操作的准确性。At the same time, since the user's first information includes detailed interface information and operation information corresponding to the interface, such as the layout ID of the target space, and auxiliary information, the second electronic device can accurately identify the interface to be operated based on the first information. and corresponding controls to be operated to improve the accuracy of operations.
可以理解,在一些实施例中,第二电子设备进行视频播放的过程中,第二电子设备的执行操作过程可以以悬浮窗播放的形式展示,以便于用户观看。It can be understood that in some embodiments, when the second electronic device is playing a video, the operation process performed by the second electronic device can be displayed in the form of a floating window to facilitate viewing by the user.
下面以用户通过第一电子设备进行开启WIFI功能过程的屏幕录制,并将录制视频和操作信息发送至第二电子设备的场景为例说明本申请实施例中的方案。其中第一电子设备可以为手机100,第二电子设备可以为手机200。The solution in the embodiment of the present application is explained below by taking a scenario in which the user performs screen recording of the process of turning on the WIFI function through the first electronic device and sends the recorded video and operation information to the second electronic device as an example. The first electronic device may be a mobile phone 100, and the second electronic device may be a mobile phone 200.
例如,如图4a中所示,用户A在手机100上的快捷界面401点击操作录制控件4011,手机100将会录制由于用户A操作引起的屏幕的显示状态的变化过程,并记录用户操作对应的第一信息,且手机100可以在整个录制过程中显示如图4b所示的录制框400。例如,如图4b中所示,用户在手机100上进行WIFI连接操作的录制,用户首先在主界面402点击了设置应用4021,手机100在录制视频的同时可以记录主界面402的界面信息,例如包括activity名称“主界面”,并可以记录用户在主界面402的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“设置应用”,设置应用4021的布局ID“1234”。For example, as shown in Figure 4a, user A clicks the operation recording control 4011 on the shortcut interface 401 on the mobile phone 100. The mobile phone 100 will record the change process of the display state of the screen caused by the user A's operation, and record the corresponding actions of the user's operation. first information, and the mobile phone 100 can display the recording box 400 as shown in Figure 4b during the entire recording process. For example, as shown in Figure 4b, the user records the WIFI connection operation on the mobile phone 100. The user first clicks the setting application 4021 on the main interface 402. The mobile phone 100 can record the interface information of the main interface 402 while recording the video, such as It includes the activity name "main interface" and can record the user's operation information on the main interface 402. For example, it can include: the user's operation style "click", the operation target "setting application", and the layout ID "1234" of the setting application 4021.
在用户点击设置控件4021后,如图4c中所示,手机100可以显示设置界面403,用户此时在设置界面403点击了WIFI控件4031,手机100在录制视频的同时可以记录设置界面403的界面信息,例如包括应用名“设置”,包名“com.setting”以及activity名称“设置界面”,以及用户在设置界面403的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“WIFI控件”,WIFI控件4031的布局ID“12345”。After the user clicks the setting control 4021, as shown in Figure 4c, the mobile phone 100 can display the setting interface 403. The user clicks the WIFI control 4031 on the setting interface 403. The mobile phone 100 can record the setting interface 403 while recording the video. Information, for example, includes the application name "Settings", the package name "com.setting" and the activity name "Settings Interface", as well as the user's operation information in the settings interface 403, for example, it may include: the user's operation style "click", operation target " WIFI Control", the layout ID of WIFI control 4031 is "12345".
在用户点击WIFI控件4031后,如图4d中所示,手机100可以显示WIFI界面404,用户此时在WIFI点击了开关控件4041,手机100在录制视频的同时可以记录WIFI界面404的界面信息,例如包括应用名“设置”,包名“com.setting”以及activity名称“WIFI界面”,以及用户在WIFI界面404的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“开关控件”,开关控件4041的布局ID“12346”。在用户点击开关控件4041后,如图4e中所示,手机100的WIFI界面404可以显示可用WLAN列表。当用户结束操作后,可以点击录制框400中的录制停止控件4001停止录制,此时手机100获取到整个操作过程的录制视频500和对应的第一信息并存储。After the user clicks the WIFI control 4031, as shown in Figure 4d, the mobile phone 100 can display the WIFI interface 404. The user clicks the switch control 4041 on the WIFI. The mobile phone 100 can record the interface information of the WIFI interface 404 while recording the video. For example, it includes the application name "Settings", the package name "com.setting" and the activity name "WIFI interface", as well as the user's operation information on the WIFI interface 404. For example, it can include: the user's operation style "click", the operation target "switch control" ", the layout ID of switch control 4041 is "12346". After the user clicks the switch control 4041, as shown in Figure 4e, the WIFI interface 404 of the mobile phone 100 can display a list of available WLANs. After the user finishes the operation, he can click the recording stop control 4001 in the recording box 400 to stop recording. At this time, the mobile phone 100 obtains the recorded video 500 of the entire operation process and the corresponding first information and stores it.
若用户A想要将此录制视频500发给用户B的手机200上时,可以如图4f所示,通过通讯软件将该录制 视频500发送至用户B的手机200。可以理解,在录制视频500发送的同时,第一信息也会同时被发送到用户B的手机200上。如图4g所示,用户B可以通过通讯软件接收并展示录制视频500。If user A wants to send the recorded video 500 to user B's mobile phone 200, the recorded video can be sent through communication software as shown in Figure 4f. Video 500 is sent to user B's mobile phone 200. It can be understood that while the recorded video 500 is being sent, the first information will also be sent to user B's mobile phone 200 at the same time. As shown in Figure 4g, user B can receive and display the recorded video 500 through communication software.
当用户B点击录制视频500进行视频播放时,如图4h所示,在录制视频500播放的同时,用户B的电子设备可以基于录制信息对手机200进行操作,并在操作悬浮窗口405中展示操作过程。操作过程具体可以包括:首先在主界面触发设置控件,并显示设置界面,然后在设置界面进行触发WIFI控件,并显示WIFI界面。并在WIFI界面触发开关控件,以开启WIFI功能。When user B clicks on the recorded video 500 for video playback, as shown in Figure 4h, while the recorded video 500 is playing, user B's electronic device can operate the mobile phone 200 based on the recorded information, and display the operation in the operation floating window 405 process. The specific operation process may include: first triggering the setting control on the main interface and displaying the setting interface, and then triggering the WIFI control on the setting interface and displaying the WIFI interface. And trigger the switch control on the WIFI interface to turn on the WIFI function.
下面在详细介绍本申请实施例中的操作方法之前,首先对本申请实施例中提供的电子设备进行详细介绍。其中,电子设备为第一电子设备或第二电子设备。Before introducing the operation method in the embodiment of the present application in detail below, the electronic device provided in the embodiment of the present application will be introduced in detail first. Wherein, the electronic device is a first electronic device or a second electronic device.
电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备的软件结构。Software systems of electronic devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. The embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device.
图5是本发明实施例的电子设备的软件结构框图。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。Figure 5 is a software structure block diagram of the electronic device according to the embodiment of the present invention. 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.
应用程序层可以包括一系列应用程序包。如图5所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。The application layer can include a series of application packages. As shown in Figure 5, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。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.
如图5所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 5, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, 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.
可以理解,在一些实施例中,窗口管理器可以响应于用户对录制视频的播放操作,向对应的应用程序发送播放指令,例如,用户在相册应用中点击的播放,则窗口管理器可以向相册应用发送播放指令。此外,窗口管理器可以响应于用户对录制视频的播放操作,获取第一信息,并基于第一信息控制对应的应用程序对第二电子设备进行对应操作。It can be understood that in some embodiments, the window manager can respond to the user's playback operation of the recorded video and send a playback instruction to the corresponding application. For example, if the user clicks play in the photo album application, the window manager can send a playback instruction to the photo album. The application sends playback instructions. In addition, the window manager can obtain the first information in response to the user's playback operation of the recorded video, and control the corresponding application program to perform corresponding operations on the second electronic device based on the first information.
例如,窗口管理器可以获取接收到的第一信息中第一个界面的界面信息和用户操作信息,根据界面信息确定待操作的界面,根据用户的操作信息中对应控件的布局ID,在待操作界面对所有控件的布局ID进行遍历,以寻找与接收到的第一个界面的操作信息中操作目标的布局ID一致的目标控件,并控制对应的应用根据操作信息中的操作样式对目标控件进行相应操作。当第一个界面上的操作执行完成后,获取下一个界面的界面信息和用户操作信息,并执行上述步骤,以实现完成下一个界面上的对应操作。For example, the window manager can obtain the interface information and user operation information of the first interface in the received first information, determine the interface to be operated based on the interface information, and determine the interface to be operated based on the layout ID of the corresponding control in the user's operation information. The interface traverses the layout IDs of all controls to find the target control that is consistent with the layout ID of the operation target in the operation information received from the first interface, and controls the corresponding application to perform operations on the target control according to the operation style in the operation information. Act accordingly. After the operation on the first interface is completed, the interface information and user operation information of the next interface are obtained, and the above steps are performed to complete the corresponding operation on the next interface.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。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.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。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.
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。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.
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.
核心库包含两部分:一部分是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),2D图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D 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.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,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: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
可以理解,本申请实施例中,媒体库响应于用户的录制操作,可以调用专用的录制接口进行屏幕录制,并将获取的录制视频和录制过程中用户对第一电子设备的第一信息存储在设定位置,例如相册应用程序中。It can be understood that in the embodiment of the present application, in response to the user's recording operation, the media library can call a dedicated recording interface to perform screen recording, and store the obtained recorded video and the user's first information on the first electronic device during the recording process in Set a location, such as in the Photos app.
例如,在一些实施例中,媒体库可以将包含有录制视频和第一信息的文件以压缩包的形式存储在电子设备的相册应用中。For example, in some embodiments, the media library may store the file containing the recorded video and the first information in the form of a compressed package in the photo album application of the electronic device.
在一些实施例中,媒体库可以将录制视频和第一信息所对应的整体文件还可以以多轨道格式进行存储,例如可交换图像文件格式(Exchangeable image file format,EXIF)或者MOV格式。In some embodiments, the media library may store the entire file corresponding to the recorded video and the first information in a multi-track format, such as an Exchangeable Image File Format (EXIF) or MOV format.
其中,当录制视频和第一信息通过EXIF格式保存在电子设备的相册或其他文件夹中。则录制视频可以以动态图像的形式通过视频轨道存储于第一电子设备的相册或其他文件夹中,第一信息以文本形式通过数据轨道存储于第一电子设备的相册或其他文件夹中。可以理解,EXIF格式的文件不支持裁剪和剪辑等操作。Wherein, when the video is recorded and the first information is saved in the photo album or other folder of the electronic device through EXIF format. Then the recorded video can be stored in the photo album or other folders of the first electronic device in the form of dynamic images through the video track, and the first information can be stored in the photo album or other folders of the first electronic device through the data track in the form of text. It is understandable that files in EXIF format do not support operations such as cropping and editing.
当录制视频和第一信息通过MOV格式保存在电子设备的相册或其他文件夹中。媒体库将录制视频可以按照视频的格式通过视频轨道进行存储。媒体库可以将第一信息中的每个界面信息可以通过命令行输出为对应的文本文件,每个界面的操作信息也可以通过命令行输出为对应的文本文件,界面信息和每个界面的操作信息所对应的文本文件均可以通过数据轨道以文本的形式存储。When the video is recorded and the first information is saved in the photo album or other folders of the electronic device via MOV format. The media library will record the video and store it in the video track according to the format of the video. The media library can output each interface information in the first information into a corresponding text file through the command line, and the operation information of each interface can also be output into the corresponding text file through the command line, and the interface information and the operation of each interface can be output The text files corresponding to the information can be stored in the form of text through data tracks.
可以理解,本申请实施例中,MOV格式的视频支持任意的裁剪和剪辑操作,因此采用MOV格式存储录制视频和第一信息能够使得录制视频为可编辑形式,便于后期处理。It can be understood that in the embodiment of the present application, the video in MOV format supports arbitrary cropping and editing operations. Therefore, using the MOV format to store the recorded video and the first information can make the recorded video in an editable form, which facilitates post-processing.
在一些实施例中,媒体库可以将录制视频和第一信息将可以进行捆绑并以MP4格式保存在电子设备的相册应用中。In some embodiments, the media library may bundle the recorded video and the first information and save them in the photo album application of the electronic device in MP4 format.
且在一些实施例中,媒体库可以接收其他电子设备发送的录制视频和第一信息。And in some embodiments, the media library can receive recorded videos and first information sent by other electronic devices.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面基于上述电子设备,对本申请实施例提供的操作方法进行详细介绍。图6中示出了本申请实施例第一电子设备和第二电子设备交互的流程,如图6所示,操作方法包括:Based on the above-mentioned electronic device, the operation method provided by the embodiment of the present application is introduced in detail below. Figure 6 shows the interaction process between the first electronic device and the second electronic device according to the embodiment of the present application. As shown in Figure 6, the operation method includes:
601:第一电子设备检测到录制触发操作,开始屏幕录制。601: The first electronic device detects the recording trigger operation and starts screen recording.
可以理解,如图4a所示,录制触发操作可以为用户在手机100中点击了操作录制控件4011的操作。It can be understood that, as shown in FIG. 4a , the recording triggering operation may be an operation in which the user clicks on the recording control 4011 on the mobile phone 100 .
可以理解,当第一电子设备开始屏幕录制后,在录制过程中,可以在显示界面上显示录制框以提示用户正在录制过程中,且提示用户录制时间。在一些实施例中,录制框中还可以存在录制停止控件。It can be understood that after the first electronic device starts screen recording, during the recording process, a recording box can be displayed on the display interface to remind the user that the recording is in progress and to prompt the user for the recording time. In some embodiments, a recording stop control may also be present in the recording box.
例如,如图4b所示,在手机100的显示界面可以显示录制框400,录制框400中可以包括录制时间和录制停止控件4001。For example, as shown in Figure 4b, a recording box 400 may be displayed on the display interface of the mobile phone 100, and the recording box 400 may include a recording time and a recording stop control 4001.
602:第一电子设备获取录制视频和第一信息。602: The first electronic device obtains the recorded video and the first information.
可以理解,录制视频可以包括录制过程中,用户操作引起的屏幕显示的变化过程视频。It can be understood that the recorded video may include a video of changes in the screen display caused by user operations during the recording process.
其中,第一信息可以包括屏幕录制过程中录制的每个界面的界面信息和用户在每个界面的操作信息。The first information may include interface information of each interface recorded during the screen recording process and user operation information on each interface.
其中,每个界面的界面信息可以包括界面的包名、应用名称、activity名称等。Among them, the interface information of each interface may include the package name, application name, activity name, etc. of the interface.
用户在每个界面的操作信息可以包括用户的操作样式(例如点击、键入、填充信息、滑动、选择、键入等)、操作目标、操作目标的布局ID等。其中,每个操作目标的布局ID是唯一的。例如,设置界面的WIFI控件的布局ID是“12345”,则在任意设备上,WIFI控件的布局ID均是“12345”。如此,即使第二电子设备与第一电子设备的界面设置有所不同,但电子设备仍然可以根据目标控件的布局ID精确找到对应的控件,并执行对应操作。The user's operation information on each interface may include the user's operation style (such as clicking, typing, filling information, sliding, selecting, typing, etc.), operation target, layout ID of the operation target, etc. Among them, the layout ID of each operation target is unique. For example, if the layout ID of the WIFI control in the settings interface is "12345", then on any device, the layout ID of the WIFI control will be "12345". In this way, even if the interface settings of the second electronic device and the first electronic device are different, the electronic device can still accurately find the corresponding control according to the layout ID of the target control and perform the corresponding operation.
例如,在录制过程中,用户在第一电子设备的设置界面进行了点击WIFI控件的操作,第一电子设 备将会记录设置界面的界面信息,例如包括应用名“设置”,包名“com.setting”以及activity名称“设置界面”,并可以记录用户在设置界面的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“WIFI控件”,“WIFI控件”的布局ID“12345”。For example, during the recording process, the user clicked the WIFI control on the setting interface of the first electronic device, and the first electronic device The device will record the interface information of the setting interface, such as the application name "Settings", the package name "com.setting" and the activity name "Settings Interface", and can record the user's operation information in the setting interface, for example, it can include: the user's The operation style is "click", the operation target is "WIFI control", and the layout ID of "WIFI control" is "12345".
可以理解,当一些操作样式为滑动、键入等具有多种状态的操作时,操作信息还可以包括操作样式对应的辅助信息。例如,当操作样式为键入操作时,键入内容可以有多种,因此键入辅助信息还可以包括键入内容;当操作样式为滑动时,滑动位置有多种,因此滑动的辅助信息还可以包括滑动位置、或进度条调节位置等。It can be understood that when some operation styles are operations with multiple states such as sliding and typing, the operation information may also include auxiliary information corresponding to the operation style. For example, when the operation style is a typing operation, there can be multiple types of typing content, so the typing auxiliary information can also include the typing content; when the operation style is a sliding operation, there are many types of sliding positions, so the sliding auxiliary information can also include the sliding position. , or adjust the position of the progress bar, etc.
例如,如图2b所示,在录制过程中,用户在手机100的快捷界面101上滑动了亮度调节控件1001,本申请实施例中除了记录用户的操作样式“滑动”,操作目标“亮度调节控件”,亮度调节控件1001的布局ID“12347”之外,还可以记录亮度调节程度,即亮度条的调节位置,例如为整体亮度条的百分之三十的位置。如此,第二电子设备在基于操作信息执行亮度调节操作时,可以根据亮度条的调节位置精确调整亮度。For example, as shown in Figure 2b, during the recording process, the user slid the brightness adjustment control 1001 on the shortcut interface 101 of the mobile phone 100. In the embodiment of the present application, in addition to recording the user's operation style "sliding", the operation target "brightness adjustment control" ", in addition to the layout ID "12347" of the brightness adjustment control 1001, the brightness adjustment degree can also be recorded, that is, the adjustment position of the brightness bar, for example, the position of 30% of the overall brightness bar. In this way, when the second electronic device performs a brightness adjustment operation based on the operation information, the brightness can be accurately adjusted according to the adjustment position of the brightness bar.
基于上述方案,第二电子设备在进行操作样式为滑动、键入等具有多种状态的操作时,可以根据辅助信息精确获取对目标控件应该执行的操作,提高操作的准确性。Based on the above solution, when the second electronic device performs operations with multiple states such as sliding and typing, it can accurately obtain the operation that should be performed on the target control based on the auxiliary information, thereby improving the accuracy of the operation.
可以理解,在一些实施例中,操作目标是表格等列表形式中的内容时,可以采用列表中内容对应位置的索引ID代替布局ID。It can be understood that in some embodiments, when the operation target is content in a list form such as a table, the index ID of the corresponding position of the content in the list can be used instead of the layout ID.
可以理解,第一电子设备可以存储录制视频和第一信息。其中,录制视频和第一信息的在第一电子设备中的存储形式有多种。It can be understood that the first electronic device can store the recorded video and the first information. There are various storage forms of the recorded video and the first information in the first electronic device.
在一些实施例中,录制视频和第一信息将可以进行捆绑并以压缩包文件格式保存在第一端电子设备的相册应用或其他文件夹中。In some embodiments, the recorded video and the first information may be bundled and saved in a compressed package file format in a photo album application or other folder of the first-end electronic device.
例如,在一些实施例中,该包含有录制视频和第一信息的压缩包文件可以以视频加操作标记的样式展示在相册应用中。例如,压缩包文件的展现形式可以为如图7a所示的视频样式,并增加边框标亮操作标记501,压缩包文件的展现形式还可以为如图7b所示的为视频样式,并增加角标操作标记502,压缩包文件的展现形式还可以为如图7c所示的为视频样式,并增加蒙层提示操作标记503。For example, in some embodiments, the compressed package file containing the recorded video and the first information may be displayed in the photo album application in the form of a video plus an operation mark. For example, the presentation form of the compressed package file can be a video style as shown in Figure 7a, and a border highlighting operation mark 501 is added. The presentation form of the compressed package file can also be a video style as shown in Figure 7b, and a corner mark is added. Mark operation mark 502, the presentation form of the compressed package file can also be a video style as shown in Figure 7c, and add a masking layer prompt operation mark 503.
在一些实施例中,录制视频和第一信息将可以以MP4格式保存在第一电子设备的相册应用中或其他文件夹中。In some embodiments, the recorded video and the first information may be saved in the photo album application of the first electronic device or in other folders in MP4 format.
在一些实施例中,录制视频和第一信息所对应的整体文件还可以以多轨道格式进行存储,例如可交换图像文件格式(Exchangeable image file format,EXIF)或者MOV格式。In some embodiments, the entire file corresponding to the recorded video and the first information can also be stored in a multi-track format, such as an exchangeable image file format (EXIF) or MOV format.
其中,当录制视频和第一信息通过EXIF格式保存在电子设备的相册或其他文件夹中。则录制视频可以以动态图像的形式通过视频轨道存储于第一电子设备的相册或其他文件夹中,第一信息以文本形式通过数据轨道存储于第一电子设备的相册或其他文件夹中。可以理解,EXIF格式的文件不支持裁剪和剪辑等操作。Wherein, when the video is recorded and the first information is saved in the photo album or other folder of the electronic device through EXIF format. Then the recorded video can be stored in the photo album or other folders of the first electronic device in the form of dynamic images through the video track, and the first information can be stored in the photo album or other folders of the first electronic device through the data track in the form of text. It is understandable that files in EXIF format do not support operations such as cropping and editing.
如图7d所示,当录制视频和第一信息通过如图7d所示的MOV格式保存在电子设备的相册或其他文件夹中。录制视频可以按照视频的格式,例如MP4格式,通过视频轨道进行存储。第一信息中的每个界面信息可以通过命令行输出为对应的文本文件,每个界面的操作信息也可以通过命令行输出为对应的文本文件,界面信息和每个界面的操作信息所对应的文本文件均可以通过数据轨道以文本的形式存储。As shown in Figure 7d, when the recorded video and the first information are saved in the photo album or other folder of the electronic device through the MOV format as shown in Figure 7d. The recorded video can be stored in the video format, such as MP4 format, through the video track. Each interface information in the first information can be output as a corresponding text file through the command line, and the operation information of each interface can also be output as a corresponding text file through the command line. The interface information and the operation information of each interface correspond to Text files can be stored as text via data tracks.
可以理解,本申请实施例中,MOV格式的视频支持任意的裁剪和剪辑操作,因此采用MOV格式存储录制视频和第一信息能够使得录制视频为可编辑形式,便于后期处理。It can be understood that in the embodiment of the present application, the video in MOV format supports arbitrary cropping and editing operations. Therefore, using the MOV format to store the recorded video and the first information can make the recorded video in an editable form, which facilitates post-processing.
603:第一电子设备发送录制视频和对应的第一信息至第二电子设备。603: The first electronic device sends the recorded video and the corresponding first information to the second electronic device.
在一些实施例中,第一电子设备可以将录制视频和对应的第一信息对应的文件,例如压缩包文件通过通讯软件,并通过网络发送至第二电子设备。In some embodiments, the first electronic device can send the recorded video and the file corresponding to the corresponding first information, such as a compressed package file, to the second electronic device through the communication software through the network.
在一些实施例中,第一电子设备可以将录制视频和对应的第一信息对应的文件通过蓝牙传输的方式发送至第二电子设备。In some embodiments, the first electronic device may send the recorded video and the file corresponding to the corresponding first information to the second electronic device through Bluetooth transmission.
在一些实施例中,第一电子设备还可以通过将录制视频和对应的第一信息对应的文件上传至云空间,第二电子设备可以从云空间下载录制视频和对应的第一信息对应的文件。In some embodiments, the first electronic device can also upload files corresponding to the recorded video and the corresponding first information to the cloud space, and the second electronic device can download the files corresponding to the recorded video and the corresponding first information from the cloud space. .
在一些实施例中,第一电子设备将录制视频和对应的第一信息对应的文件以链接、口令分享等方式 分享至第二电子设备,第二电子设备通过打开分享链接或输入口令获取录制视频和对应的第一信息。In some embodiments, the first electronic device will share the recorded video and the file corresponding to the corresponding first information through a link, password, etc. Share to the second electronic device, and the second electronic device obtains the recorded video and the corresponding first information by opening the sharing link or entering a password.
可以理解,上述几种第一电子设备传输录制视频和对应的第一信息至第二电子设备的方式只是举例说明,本申请实施例中,第一电子设备传输录制视频和对应的第一信息至第二电子设备的方式可以为任意可实施的方式。It can be understood that the above-mentioned ways in which the first electronic device transmits the recorded video and the corresponding first information to the second electronic device are just examples. In the embodiment of the present application, the first electronic device transmits the recorded video and the corresponding first information to the second electronic device. The mode of the second electronic device may be any implementable mode.
例如,如图4f所示,若用户A想要将此录制视频500发给用户B的手机200上时,可以如图4f所示,通过网络和通讯软件将该录制视频500发送至用户B的手机200。可以理解,在录制视频发送的同时,第一信息也会同时被发送到用户B的手机200上。For example, as shown in Figure 4f, if user A wants to send the recorded video 500 to user B's mobile phone 200, the recorded video 500 can be sent to user B's mobile phone through the network and communication software as shown in Figure 4f. 200 for mobile phone. It can be understood that while the recorded video is being sent, the first information will also be sent to user B's mobile phone 200 at the same time.
604:第二电子设备接收录制视频和对应的第一信息。604: The second electronic device receives the recorded video and the corresponding first information.
可以理解,第二电子设备在接收录制视频的同时,也会同时接收第一信息。It can be understood that while receiving the recorded video, the second electronic device will also receive the first information at the same time.
如图4g所示,用户B可以通过通讯软件接收录制视频500,并以视频样式展示录制视频。As shown in Figure 4g, user B can receive the recorded video 500 through communication software and display the recorded video in a video style.
可以理解,第二电子设备接收录制视频和对应的第一信息后,可以对录制视频和对应的第一信息进行存储。It can be understood that after receiving the recorded video and the corresponding first information, the second electronic device can store the recorded video and the corresponding first information.
录制视频和第一信息可以存储在第二电子设备中的存储形式有多种。在一些实施例中,录制视频和第一信息将可以进行捆绑并以压缩包文件格式保存在第二电子设备的相册应用或其他文件夹中。The recorded video and the first information may be stored in the second electronic device in a variety of storage forms. In some embodiments, the recorded video and the first information may be bundled and saved in a compressed package file format in a photo album application or other folder of the second electronic device.
例如,在一些实施例中,该包含有录制视频和第一信息的压缩包文件可以以视频加操作标记的样式展示在相册应用中。例如,压缩包文件的展现形式可以为如前述图7a所示的视频样式,并增加边框标亮操作标记501,压缩包文件的展现形式还可以为如图7b所示的为视频样式,并增加角标操作标记502,压缩包文件的展现形式还可以为如图7c所示的为视频样式,并增加蒙层提示操作标记503。For example, in some embodiments, the compressed package file containing the recorded video and the first information may be displayed in the photo album application in the form of a video plus an operation mark. For example, the presentation form of the compressed package file can be a video style as shown in the aforementioned Figure 7a, and a border highlighting operation mark 501 is added. The presentation form of the compressed package file can also be a video style as shown in Figure 7b, with the addition The corner mark operation mark 502, the presentation form of the compressed package file can also be a video style as shown in Figure 7c, and a masking layer prompt operation mark 503 is added.
在一些实施例中,录制视频和第一信息将可以进行捆绑并以MP4格式保存在第二电子设备的相册应用中或其他文件夹中。In some embodiments, the recorded video and the first information may be bundled and saved in MP4 format in a photo album application of the second electronic device or in other folders.
在一些实施例中,录制视频和第一信息将可以进行捆绑并以MP4格式保存在第二电子设备的相册应用中或其他文件夹中。In some embodiments, the recorded video and the first information may be bundled and saved in MP4 format in a photo album application of the second electronic device or in other folders.
在一些实施例中,录制视频和第一信息所对应的整体文件还可以以多轨道格式进行存储,例如可交换图像文件格式(Exchangeable image file format,EXIF)或者MOV格式。In some embodiments, the entire file corresponding to the recorded video and the first information can also be stored in a multi-track format, such as an exchangeable image file format (EXIF) or MOV format.
其中,当录制视频和第一信息通过EXIF格式保存在电子设备的相册或其他文件夹中。则录制视频可以以动态图像的形式通过视频轨道存储于第一电子设备的相册或其他文件夹中,第一信息以文本形式通过数据轨道存储于第一电子设备的相册或其他文件夹中。可以理解,EXIF格式的文件不支持裁剪和剪辑等操作。Wherein, when the video is recorded and the first information is saved in the photo album or other folder of the electronic device through EXIF format. Then the recorded video can be stored in the photo album or other folders of the first electronic device in the form of dynamic images through the video track, and the first information can be stored in the photo album or other folders of the first electronic device through the data track in the form of text. It is understandable that files in EXIF format do not support operations such as cropping and editing.
如图7d所示,当录制视频和第一信息通过如图7d所示的MOV格式保存在电子设备的相册或其他文件夹中。录制视频可以按照视频的格式,例如MP4格式,通过视频轨道进行存储。第一信息中的每个界面信息可以通过命令行输出为对应的文本文件,每个界面的操作信息也可以通过命令行输出为对应的文本文件,界面信息和每个界面的操作信息所对应的文本文件均可以通过数据轨道以文本的形式存储。As shown in Figure 7d, when the recorded video and the first information are saved in the photo album or other folder of the electronic device through the MOV format as shown in Figure 7d. The recorded video can be stored in the video format, such as MP4 format, through the video track. Each interface information in the first information can be output as a corresponding text file through the command line, and the operation information of each interface can also be output as a corresponding text file through the command line. The interface information and the operation information of each interface correspond to Text files can be stored as text via data tracks.
可以理解,本申请实施例中,MOV格式的视频支持任意的裁剪和剪辑操作,因此采用MOV格式存储录制视频和第一信息能够使得录制视频为可编辑形式,便于后期处理。It can be understood that in the embodiment of the present application, the video in MOV format supports arbitrary cropping and editing operations. Therefore, using the MOV format to store the recorded video and the first information can make the recorded video in an editable form, which facilitates post-processing.
605:第二电子设备响应于用户的播放操作,基于第一信息执行对应操作。605: The second electronic device responds to the user's playback operation and performs a corresponding operation based on the first information.
可以理解,本申请实施例中第二电子设备基于第一信息执行的操作与录制视频中用户在显示界面的操作一致。It can be understood that in the embodiment of the present application, the operation performed by the second electronic device based on the first information is consistent with the user's operation on the display interface in the recorded video.
可以理解,本申请实施例中,第二电子设备基于第一信息执行对应操作的方式可以为:It can be understood that in this embodiment of the present application, the way in which the second electronic device performs the corresponding operation based on the first information may be:
第二电子设备获取接收到的第一信息中第一个界面的信息和用户操作信息,根据界面信息进入到待操作的界面,根据用户的操作信息中对应控件的布局ID,在待操作界面对所有控件的布局ID进行遍历,以寻找与接收到的第一个界面的操作信息中操作目标的布局ID一致的目标控件,根据操作信息中的操作样式对目标控件进行相应操作。当第一个界面上的操作执行完成后,获取下一个界面的界面信息和用户操作信息,并执行上述步骤,以实现完成下一个界面上的对应操作。The second electronic device obtains the information of the first interface and user operation information in the received first information, enters the interface to be operated according to the interface information, and displays the interface to be operated according to the layout ID of the corresponding control in the user's operation information. The layout IDs of all controls are traversed to find the target control that is consistent with the layout ID of the operation target in the operation information of the first interface received, and corresponding operations are performed on the target control according to the operation style in the operation information. After the operation on the first interface is completed, the interface information and user operation information of the next interface are obtained, and the above steps are performed to complete the corresponding operation on the next interface.
例如,以第二电子设备为手机200,录制视频中的内容为图4中所示的开启WIFI功能的操作过程为例,说明第二电子设备在播放视频的过程中基于第一信息对第二电子设备进行对应操作的方式:For example, taking the second electronic device as the mobile phone 200 and the content in the recorded video as the operation process of turning on the WIFI function shown in Figure 4, it is explained that the second electronic device performs the second electronic device on the second electronic device based on the first information during the video playback process. How electronic equipment performs corresponding operations:
手机200首先获取第一信息中主界面的402的界面信息,例如包括activity名称“主界面”,并 获取用户在主界面402的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“设置应用”,设置应用4021的布局ID“1234”。The mobile phone 200 first obtains the interface information 402 of the main interface in the first information, including, for example, the activity name "main interface", and Obtaining the user's operation information on the main interface 402 may include, for example: the user's operation style "click", the operation target "setting application", and the layout ID "1234" of the setting application 4021.
然后根据主界面的402的界面信息找到手机200的主界面作为待操作界面。根据用户的操作信息中对应设置应用4021的布局ID“1234”,在手机200的主界面对所有控件的布局ID进行遍历,以寻找与设置应用4021的布局ID“1234”一致的目标控件,根据第一信息中的操作样式“点击”对目标控件进行点击操作。当对目标控件进行点击操作完成后,获取设置界面403的界面信息和用户操作信息,并执行上述步骤,以实现完成在手机200的设置界面上的对应操作。Then, according to the interface information of 402 of the main interface, the main interface of the mobile phone 200 is found as the interface to be operated. According to the layout ID "1234" corresponding to the setting application 4021 in the user's operation information, the layout IDs of all controls are traversed on the main interface of the mobile phone 200 to find the target control consistent with the layout ID "1234" of the setting application 4021. According to The operation style "click" in the first information performs a click operation on the target control. After the click operation on the target control is completed, the interface information and user operation information of the setting interface 403 are obtained, and the above steps are performed to complete the corresponding operation on the setting interface of the mobile phone 200 .
在一些实施例中,如图8所示,响应于用户的播放操作,第二电子设备可以在对录制视频进行全屏播放或者大窗口播放,并在后台执行操作,操作过程不进行展示。In some embodiments, as shown in Figure 8, in response to the user's playback operation, the second electronic device can play the recorded video in full screen or in a large window, and perform the operation in the background without displaying the operation process.
在一些实施例中,响应于用户的播放操作,第二电子设备可以在对录制视频进行全屏播放或者大窗口播放,并在操作悬浮窗口中展示操作过程。In some embodiments, in response to the user's play operation, the second electronic device can play the recorded video in full screen or in a large window, and display the operation process in the operation floating window.
例如,如图4h所示,当用户点击手机200接收到的录制视频500,以进行视频播放时,如图4h所示,可以在手机200的主界面全屏播放录制视频,在操作悬浮窗口405中展示操作过程。For example, as shown in Figure 4h, when the user clicks on the recorded video 500 received by the mobile phone 200 for video playback, as shown in Figure 4h, the recorded video can be played in full screen on the main interface of the mobile phone 200, and in the operation floating window 405 Show the operation process.
在一些实施例中,响应于用户的播放操作,第二电子设备可以在视频操作悬浮窗口中展示录制视频,并将操作过程放置于大窗口中进行播放。In some embodiments, in response to the user's playback operation, the second electronic device can display the recorded video in a video operation floating window, and place the operation process in a large window for playback.
例如,如图9a所示,当用户点击手机200接收到的录制视频500,以进行视频播放时,可以在手机200的主界面展示操作过程,在视频悬浮窗口406中播放录制视频。For example, as shown in Figure 9a, when the user clicks on the recorded video 500 received by the mobile phone 200 to play the video, the operation process can be displayed on the main interface of the mobile phone 200, and the recorded video can be played in the video floating window 406.
在一些实施例中,如图9b所示,第二电子设备可以包括第一显示区域和第二显示区域,第一显示区域显示录制视频,第二显示区域显示操作过程,即录制视频和操作过程分屏显示。In some embodiments, as shown in Figure 9b, the second electronic device may include a first display area and a second display area. The first display area displays the recorded video, and the second display area displays the operation process, that is, the recorded video and the operation process. Split screen display.
在一些实施例中,第二电子设备可以存在进行相互连接的任意数量个其他设备。则可以通过相互连接的多个设备中任意设备进行视频播放,其他设备中的任意设备实现控制第二电子设备执行第一信息对应的操作。其中,上述相互连接的方式可以为蓝牙连接、手机NFC功能配对连接、扫码连接、有线连接、等任意方式。In some embodiments, the second electronic device may have any number of other devices connected to each other. Then, the video can be played through any device among the multiple devices connected to each other, and any device among the other devices can control the second electronic device to perform the operation corresponding to the first information. Among them, the above-mentioned mutual connection method can be any method such as Bluetooth connection, mobile phone NFC function pairing connection, scan code connection, wired connection, etc.
例如,如图10所示,第三电子设备为平板300,第二电子设备为手机200,则平板300与手机200通过手机NFC功能配对连接,则第三电子设备可以用于播放录制视频500,第二电子设备可以用于根据第一信息执行对应操作。For example, as shown in Figure 10, the third electronic device is a tablet 300, and the second electronic device is a mobile phone 200. Then the tablet 300 and the mobile phone 200 are paired and connected through the NFC function of the mobile phone, and the third electronic device can be used to play the recorded video 500, The second electronic device may be used to perform corresponding operations according to the first information.
再例如,如图11所示,手机200可以用于播放录制视频500,平板300可以用于根据第一信息控制第二设备进行对应操作,并展示操作过程。For another example, as shown in Figure 11, the mobile phone 200 can be used to play the recorded video 500, and the tablet 300 can be used to control the second device to perform corresponding operations based on the first information, and display the operation process.
在一些实施例中,如图12所示,平板300可以展示手机200对应的虚拟界面302,手机200可以在手机200的主界面展示操作过程,平板300的虚拟界面302中可以与手机保持一致,展示操作过程。且平板300的播放窗口301可以同时播放录制视频。In some embodiments, as shown in Figure 12, the tablet 300 can display the virtual interface 302 corresponding to the mobile phone 200. The mobile phone 200 can display the operation process on the main interface of the mobile phone 200. The virtual interface 302 of the tablet 300 can be consistent with the mobile phone. Show the operation process. And the play window 301 of the tablet 300 can play the recorded video at the same time.
在一些实施例中,当用户退出播放时,若第二电子设备还有未完成的操作,则可以以弹窗形式或者其他形式提醒用户。In some embodiments, when the user exits playback, if the second electronic device still has unfinished operations, the user may be reminded in the form of a pop-up window or other forms.
例如,如图13所示,当用户退出播放时,可以在提示框600中提示“操作并未完成,是否继续”。当用户点击了提示框600中的是控件601,则会继续播放视频,当用户点击了提示框600中的否控件602,将会停止视频播放。For example, as shown in FIG. 13, when the user exits playback, a prompt box 600 may be prompted that "the operation is not completed, do you want to continue?" When the user clicks the Yes control 601 in the prompt box 600, the video will continue to be played. When the user clicks the No control 602 in the prompt box 600, the video playback will be stopped.
可以理解,在一些实施例中,录制视频可以保持常规视频的快进、快退、窗口大小调节和暂停等任意功能。且录制视频可以重复多次播放。It can be understood that in some embodiments, the recorded video can maintain any functions of conventional video such as fast forward, rewind, window size adjustment, and pause. And the recorded video can be played multiple times.
可以理解,在一些实施例中,第一电子设备可以在录制的视频中标记多个时刻点。例如,在一些实施例中,可以在录制过程中,每一个界面上的全部操作完成后,显示下一个界面之前,标记一个时刻点。It can be understood that in some embodiments, the first electronic device can mark multiple time points in the recorded video. For example, in some embodiments, during the recording process, after all operations on each interface are completed, a time point can be marked before the next interface is displayed.
下面以第一电子设备为手机100,手机100录制用户A开启WIFI功能的操作过程为例进行本申请实施例中获取录制信息和第一信息的说明。如图4b中所示,用户在手机100上进行WIFI开启操作的录制,用户首先在主界面402点击了设置应用4021,手机100在录制视频的同时记录主界面402的界面信息,例如包括activity名称“主界面”,并可以记录用户在主界面402的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“设置应用”,设置应用4021的布局ID“1234”。在用户点击设置控件4021后,手机100可以在录制视频中标记第一个时刻点。 The following description takes the first electronic device as a mobile phone 100 and the mobile phone 100 recording the operation process of user A turning on the WIFI function as an example to describe the acquisition of the recorded information and the first information in the embodiment of the present application. As shown in Figure 4b, the user records the WIFI opening operation on the mobile phone 100. The user first clicks the settings application 4021 on the main interface 402. The mobile phone 100 records the interface information of the main interface 402 while recording the video, such as the activity name. "Main interface", and can record the user's operation information on the main interface 402, which may include, for example: the user's operation style "click", the operation target "setting application", and the layout ID "1234" of the setting application 4021. After the user clicks the setting control 4021, the mobile phone 100 can mark the first time point in the recorded video.
在用户点击设置控件4021后,如图4c中所示,手机100可以显示设置界面403,用户此时在设置界面403点击了WIFI控件401,手机100可以同时记录设置界面403的界面信息,例如包括应用名“设置”,包名“com.setting”以及activity名称“设置界面”,以及用户在设置界面403的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“WIFI控件”,WIFI控件401的布局ID“12345”在用户点击WIFI控件401后,手机100可以在录制视频中标记第二个时刻点。After the user clicks on the setting control 4021, as shown in Figure 4c, the mobile phone 100 can display the setting interface 403. The user clicks the WIFI control 401 on the setting interface 403. The mobile phone 100 can also record the interface information of the setting interface 403, for example, including The application name "Settings", the package name "com.setting" and the activity name "Settings Interface", as well as the user's operation information on the settings interface 403, may include, for example: the user's operation style "click", the operation target "WIFI control", After the user clicks the layout ID "12345" of the WIFI control 401, the mobile phone 100 can mark the second time point in the recorded video.
在用户点击WIFI控件401后,如图4d中所示,手机100可以显示WIFI界面404,用户此时在WIFI点击了开关控件4041,手机100可以同时记录WIFI界面404的界面信息,例如包括应用名“设置”,包名“com.setting”以及activity名称“WIFI界面”,以及用户在WIFI界面404的操作信息,例如可以包括:用户的操作样式“点击”,操作目标“开关控件”,开关控件4041的布局ID“12346”。在用户点击开关控件4041后,如图4e中所示,手机100的WIFI界面404可以显示可用WLAN列表。当用户结束操作后,可以点击录制框400中的录制停止控件4001停止录制,此时手机100标记第三个时刻点,即结束时刻点。手机100获取整个操作过程的录制视频和对应的第一信息并存储。After the user clicks the WIFI control 401, as shown in Figure 4d, the mobile phone 100 can display the WIFI interface 404. The user clicks the switch control 4041 on the WIFI at this time, and the mobile phone 100 can simultaneously record the interface information of the WIFI interface 404, including the application name. "Settings", the package name "com.setting" and the activity name "WIFI interface", as well as the user's operation information on the WIFI interface 404, for example, may include: the user's operation style "click", the operation target "switch control", switch control 4041 has layout ID "12346". After the user clicks the switch control 4041, as shown in Figure 4e, the WIFI interface 404 of the mobile phone 100 can display a list of available WLANs. After the user finishes the operation, he can click the recording stop control 4001 in the recording box 400 to stop recording. At this time, the mobile phone 100 marks the third time point, which is the end time point. The mobile phone 100 obtains and stores the recorded video of the entire operation process and the corresponding first information.
例如,获取到的录制视频500可以如图14所示,包括三个时刻点,其中每个时刻点可以对应WIFI开启功能任务中的一个子任务。For example, the obtained recorded video 500 may include three time points as shown in FIG. 14 , where each time point may correspond to a subtask in the WIFI activation function task.
可以理解,在一些实施例中,多个时刻点中的若干具有关联的时间点可以相互固定,可以理解,具有关联的时间点可以为执行任一功能的操作过程中的时间点,例如执行上述开启WIFI功能的操作过程中的多个时间点。如此可以使得第一电子设备或者第二电子设备在将播放视频时,不能前后拖动具有关联的时间点之间的进度条,避免在录制视频中包括多个功能的执行过程时,用户拖动进度条到执行了某一功能的中间过程进行后续观看,造成电子设备执行多余部分操作或者少执行了部分操作的问题发生。It can be understood that in some embodiments, several associated time points among multiple time points can be fixed to each other. It can be understood that the associated time points can be time points during the operation of performing any function, such as performing the above Multiple time points during the operation of turning on the WIFI function. This prevents the first electronic device or the second electronic device from dragging the progress bar between associated time points back and forth when playing a video, thereby preventing the user from dragging the video when the video includes the execution of multiple functions. The progress bar is followed up until the execution of a certain function, causing the problem that the electronic device performs unnecessary operations or performs less operations.
例如,在一些场景中,用户除了开启WIFI过程的录制,还进行了转账过程的录制。例如,如图15所示,录制视频500中的第一个时刻点为上述图4所示的场景中,用户点击WIFI控件401后的时刻点,第二个时刻点为在用户点击WIFI控件401后标记的时刻点,第三个时刻点为用户点击开关控件4041后的时刻点,第三个时刻点和第四个时刻点之间的操作为返回主界面的操作,第五个时刻点、第六个时刻点和第七个时刻点分别为用户进行了转账功能的录制过程中时刻点,则此时第一电子设备可以将第一个时刻点、第二个时刻点和第三个时刻点进行关联固定。将第五个时刻点、第六个时刻点和第七个时刻点也进行关联固定。即使得第一电子设备或第二电子设备在播放视频时,不能前后拖动起始时刻之间的第三时刻点之前的进度条。For example, in some scenarios, in addition to recording the WIFI process, users also record the transfer process. For example, as shown in Figure 15, the first time point in the recorded video 500 is the time point after the user clicks on the WIFI control 401 in the scene shown in Figure 4, and the second time point is after the user clicks on the WIFI control 401. The third time point is the time point after the user clicks the switch control 4041. The operation between the third time point and the fourth time point is the operation of returning to the main interface. The fifth time point, The sixth time point and the seventh time point are respectively the time points in the recording process when the user performs the transfer function. At this time, the first electronic device can transfer the first time point, the second time point and the third time point. Click to fix the association. The fifth time point, the sixth time point and the seventh time point are also related and fixed. That is, when playing a video, the first electronic device or the second electronic device cannot drag the progress bar back and forth before the third time point between the starting times.
可以理解,被固定的时刻点与前一个时刻点之间的内容为被固定的时刻点对应的操作内容,因此当任意时刻点被固定时,被固定的时刻点与前一个时刻点之间的内容也被固定。因为对于图15中所示的录制视频,第二电子设备或者第一电子设备在进行录制视频500的播放时,用户无法拖动起始时刻与第三时刻点之间的进度条。也不能前后拖动第四时刻点至第七时刻点之间的进度条。即若用户想要拖动进度条,则只能从初始时刻点直接拖动至第三时刻点,直接进行第三时刻点之后视频的播放,不能从初始时刻点直接拖动至第一时刻点或第二时刻点。如此,能够有效避免若用户若想执行开启WIFI功能的操作,则电子设备会少执行了部分功能,若用户是想执行转账功能的操作,则电子设备多执行了开启WIFI功能的部分操作。It can be understood that the content between the fixed time point and the previous time point is the operation content corresponding to the fixed time point. Therefore, when any time point is fixed, the content between the fixed time point and the previous time point will The content is also fixed. Because for the recorded video shown in Figure 15, when the second electronic device or the first electronic device plays the recorded video 500, the user cannot drag the progress bar between the starting time and the third time point. Nor can you drag the progress bar between the fourth time point and the seventh time point back and forth. That is, if the user wants to drag the progress bar, he can only drag it directly from the initial time point to the third time point, and directly play the video after the third time point. He cannot drag directly from the initial time point to the first time point. Or the second point in time. In this way, it can be effectively avoided that if the user wants to perform the operation of turning on the WIFI function, the electronic device will perform less functions. If the user wants to perform the operation of the transfer function, the electronic device will perform more operations of turning on the WIFI function.
在一些实施例中,第二电子设备可以在开始播放视频的同时,即基于第一信息对第二电子设备进行对应操作。第二电子设备在播放视频的过程中,在播放到任意时刻点时,若该时刻点之前的操作并未成,则可以自动暂停播放,以等待该时刻点之前的操作完成后再进行播放。In some embodiments, the second electronic device can perform corresponding operations on the second electronic device based on the first information while starting to play the video. In the process of playing the video, when the second electronic device reaches any point in time, if the operation before the point in time is not completed, it can automatically pause the playback to wait for the operation before the point in time to be completed before playing.
例如,第二电子设备在播放录制视频500的过程中,若录制视频500已经播放到第二个时间点,但是第二电子设备并未完成在设置界面点击WIFI控件的操作,则第二电子设备会停止播放视频,等待第二电子设备完成在设置界面点击WIFI控件的操作后再进行播放。For example, while the second electronic device is playing the recorded video 500, if the recorded video 500 has been played to the second time point, but the second electronic device has not completed the operation of clicking the WIFI control on the setting interface, the second electronic device Video playback will stop and the video will be played again after the second electronic device completes the operation of clicking the WIFI control on the setting interface.
在一些实施例中,第二电子设备可以不在开始播放视频的同时即触发执行操作,而是在播放到每个时刻点时,触发执行该时刻点之前的操作任务,且可以将各操作任务添加到任务队列中,第二设备按照操作任务加入的顺序依次执行上述操作任务。即第二电子设备在播放到第一时刻点时,触发执行操作。In some embodiments, the second electronic device may not trigger the execution of the operation when starting to play the video. Instead, when the video is played to each time point, the second electronic device may trigger the execution of the operation task before that time point, and each operation task may be added. into the task queue, and the second device sequentially executes the above operation tasks in the order in which the operation tasks are added. That is, the second electronic device triggers the execution of the operation when the playback reaches the first time point.
例如,如图16所示,当接收到的视频为图4中所示的开启WIFI功能的操作过程,当第二电子设备播放到第一个时刻点时,则触发第一操作任务,即第一时刻点之前的操作,例如为实现在主界面点击设 置应用的操作,并将第一操作任务加入到任务队列中;当第二电子设备播放到第二个时刻点时,则触发第二任务,即第二时刻点之前的操作,例如为实现在设置界面点击WIFI控件的操作,并将第二操作任务添加到任务队列中。For example, as shown in Figure 16, when the received video is the operation process of turning on the WIFI function shown in Figure 4, when the second electronic device plays to the first time point, the first operation task is triggered, that is, the first operation task is triggered. Operations performed before a certain point in time, such as clicking settings on the main interface Set the operation of the application and add the first operation task to the task queue; when the second electronic device plays to the second point in time, the second task is triggered, that is, the operation before the second point in time, for example, to implement the Click the operation of the WIFI control on the setting interface, and add the second operation task to the task queue.
可以理解,在图16所示的实施方案中,允许存在录制视频已经播放到第二时刻点,第一时刻点对应的操作任务还没有执行完成的情况,此时,视频可以继续播放,后台继续按照上述任务队列依次执行各操作任务。It can be understood that in the implementation shown in Figure 16, it is allowed that the recorded video has been played to the second point in time, but the operation task corresponding to the first point in time has not been completed. At this time, the video can continue to play and continue in the background. Execute each operation task in sequence according to the above task queue.
在一些实施例中,第一电子设备和第二电子设备均可以对录制视频还可以进行编辑,例如错误操作裁剪、对操作拆分以获取多个视频文件等。如此,能够有效避免录制过程中操作有误、或者存在多余操作的情况。可以理解,在电子设备对录制视频进行编辑的过程中,第一信息也会被对应调整。In some embodiments, both the first electronic device and the second electronic device can edit the recorded video, such as cropping by mistake, splitting the operation to obtain multiple video files, etc. In this way, incorrect operations or redundant operations during the recording process can be effectively avoided. It can be understood that during the editing process of the recorded video by the electronic device, the first information will also be adjusted accordingly.
例如,如图17a中所示的录制视频,电子设备执行了在设置界面点击WIFI控件操作后,标记了第二时刻点,然后不小心按压了音量键,电子设备标记了第三时刻点,所以第三时刻点对应的操作为多余操作,此时,用户可以如图17b中所示裁剪掉第二时刻点和第三时刻点之间的视频内容,同时,电子设备会自动删除第二时刻点和第三时刻点之间的视频对应的第一信息。For example, in the video recording shown in Figure 17a, after the electronic device performed the operation of clicking the WIFI control on the setting interface, it marked the second time point, and then accidentally pressed the volume button, the electronic device marked the third time point, so The operation corresponding to the third time point is a redundant operation. At this time, the user can crop out the video content between the second time point and the third time point as shown in Figure 17b. At the same time, the electronic device will automatically delete the second time point. and the first information corresponding to the video between the third time point.
下面以手机10为例对本申请实施例提供的电子设备的硬件结构进行说明。The following describes the hardware structure of the electronic device provided by the embodiment of the present application, taking the mobile phone 10 as an example.
如图18所示,手机10可以包括处理器110、电源模块140、存储器180,移动通信模块130、无线通信模块120、传感器模块190、音频模块150、摄像头170、接口模块160、按键101以及显示屏102等。As shown in Figure 18, the mobile phone 10 may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 101 and a display. Screen 102 etc.
可以理解的是,本发明实施例示意的结构并不构成对手机10的具体限定。在本申请另一些实施例中,手机10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 10 . In other embodiments of the present application, the mobile phone 10 may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如,可以包括中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、数字信号处理器DSP、微处理器(Micro-programmed Control Unit,MCU)、人工智能(Artificial Intelligence,AI)处理器或可编程逻辑器件(Field Programmable Gate Array,FPGA)等的处理模块或处理电路。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中可以设置存储单元,用于存储指令和数据。在一些实施例中,处理器110中的存储单元为高速缓冲存储器180,高速缓冲存储器180可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。The processor 110 may include one or more processing units, for example, may include a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a digital signal processor DSP, a microprocessor (Micro- Processing modules or processing circuits such as programmed Control Unit (MCU), artificial intelligence (Artificial Intelligence, AI) processor or programmable logic device (Field Programmable Gate Array, FPGA). Among them, different processing units can be independent devices or integrated in one or more processors. A storage unit may be provided in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory 180, and the cache memory 180 can save instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instructions or data again, it can be called directly from the memory.
可以理解,本申请实施例中的操作方法可以由对应的电子设备的处理器110执行。It can be understood that the operation methods in the embodiments of the present application can be executed by the processor 110 of the corresponding electronic device.
电源模块140可以包括电源、电源管理部件等。电源可以为电池。电源管理部件用于管理电源的充电和电源向其他模块的供电。在一些实施例中,电源管理部件包括充电管理模块和电源管理模块。充电管理模块用于从充电器接收充电输入;电源管理模块用于连接电源,充电管理模块与处理器110。电源管理模块接收电源和/或充电管理模块的输入,为处理器110,显示屏102,摄像头170,及无线通信模块120等供电。Power module 140 may include a power supply, power management components, and the like. The power source can be a battery. The power management component is used to manage the charging of the power supply and the power supply from the power supply to other modules. In some embodiments, the power management component includes a charge management module and a power management module. The charging management module is used to receive charging input from the charger; the power management module is used to connect the power supply, the charging management module and the processor 110 . The power management module receives input from the power supply and/or charging management module and supplies power to the processor 110, the display screen 102, the camera 170, the wireless communication module 120, etc.
移动通信模块130可以包括但不限于天线、功率放大器、滤波器、LNA(Low noise amplify,低噪声放大器)等。移动通信模块130可以提供应用在手机10上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块130可以由天线接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块130还可以对经调制解调处理器调制后的信号放大,经天线转为电磁波辐射出去。在一些实施例中,移动通信模块130的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块130至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 130 may include, but is not limited to, an antenna, a power amplifier, a filter, an LNA (Low noise amplifier), etc. The mobile communication module 130 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone 10 . The mobile communication module 130 can receive electromagnetic waves through an antenna, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 130 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 130 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏102显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理 器110,与移动通信模块130或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 102 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processing The processor 110 is provided in the same device as the mobile communication module 130 or other functional modules.
无线通信模块120可以包括天线,并经由天线实现对电磁波的收发。无线通信模块120可以提供应用在手机10上的包括无线局域网(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)等无线通信的解决方案。手机10可以通过无线通信技术与网络以及其他设备进行通信。The wireless communication module 120 may include an antenna, and implements the transmission and reception of electromagnetic waves via the antenna. The wireless communication module 120 can provide applications on the mobile phone 10 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The mobile phone 10 can communicate with the network and other devices through wireless communication technology.
在一些实施例中,手机10的移动通信模块130和无线通信模块120也可以位于同一模块中。In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the mobile phone 10 may also be located in the same module.
显示屏102用于显示人机交互界面、图像、视频等。显示屏102包括显示面板。显示面板可以采用液晶显示屏(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)等。The display screen 102 is used to display human-computer interaction interfaces, images, videos, etc. Display 102 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 (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
传感器模块190可以包括接近光传感器、压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 190 may include a proximity light sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
音频模块150用于将数字音频信息转换成模拟音频信号输出,或者将模拟音频输入转换为数字音频信号。音频模块150还可以用于对音频信号编码和解码。在一些实施例中,音频模块150可以设置于处理器110中,或将音频模块150的部分功能模块设置于处理器110中。在一些实施例中,音频模块150可以包括扬声器、听筒、麦克风以及耳机接口。The audio module 150 is used to convert digital audio information into an analog audio signal output, or convert an analog audio input into a digital audio signal. Audio module 150 may also be used to encode and decode audio signals. In some embodiments, the audio module 150 may be disposed in the processor 110 , or some functional modules of the audio module 150 may be disposed in the processor 110 . In some embodiments, audio module 150 may include speakers, earpieces, microphones, and headphone jacks.
扬声器,也称“喇叭”,用于将音频电信号转换为声音信号。Speakers, also called "horns," are used to convert audio electrical signals into sound signals.
听筒,也称“受话器”用于将音频电信号转换成声音信号。A handset, also called a "receiver," is used to convert audio electrical signals into sound signals.
麦克风,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风发声,将声音信号输入到麦克风。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机10还可以设置三个,四个或更多麦克风,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone, 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 through the mouth close to the microphone and input the sound signal into the microphone. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 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 mobile phone 10 can also be equipped with three, four or more microphones to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
耳机接口用于连接有线耳机。耳机接口可以是USB接口,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone jack is used to connect wired headphones. The headphone interface can be a USB interface, or it can be a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
摄像头170用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件把光信号转换成电信号,之后将电信号传递给ISP(Image Signal Processing,图像信号处理)转换成数字图像信号。手机10可以通过ISP,摄像头170,视频编解码器,GPU(Graphic Processing Unit,图形处理器),显示屏102以及应用处理器等实现拍摄功能。Camera 170 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to ISP (Image Signal Processing) to convert it into a digital image signal. The mobile phone 10 can realize the shooting function through the ISP, camera 170, video codec, GPU (Graphic Processing Unit, graphics processor), display screen 102 and application processor.
具体的,ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。Specifically, the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(MOVing picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: MOVing picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
接口模块160包括外部存储器接口、通用串行总线(universal serial bus,USB)接口及用户标识模块(subscriber identification module,SIM)卡接口等。其中外部存储器接口可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机10的存储能力。外部存储卡通过外部存储器接口与处理器110通信,实现数据存储功能。通用串行总线接口用于手机10和其他电子设备进行通信。用户标识模块卡接口用于与安装至手机1010的SIM卡进行通信,例如读取SIM卡中存储的电话号码,或将电话号码写入SIM卡中。 The interface module 160 includes an external memory interface, a universal serial bus (universal serial bus, USB) interface, a subscriber identification module (subscriber identification module, SIM) card interface, and so on. The external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 10. The external memory card communicates with the processor 110 through the external memory interface to implement data storage functions. The Universal Serial Bus interface is used by mobile phones 10 and other electronic devices to communicate. The user identity module card interface is used to communicate with the SIM card installed in the mobile phone 1010, such as reading the phone number stored in the SIM card, or writing the phone number into the SIM card.
在一些实施例中,手机10还包括按键101、马达以及指示器等。其中,按键101可以包括音量键、开/关机键等。马达可以产生振动提示。马达可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏102不同区域的触摸操作,马达也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。指示器可以包括激光指示器、射频指示器、LED指示器等。In some embodiments, the mobile phone 10 also includes buttons 101, motors, indicators, etc. Among them, the keys 101 may include volume keys, on/off keys, etc. The motor can produce vibration cues. The motor can be used to vibrate for incoming calls or for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor can also respond to different vibration feedback effects for touch operations in different areas of the display screen 102 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized. Indicators may include laser pointers, radio frequency indicators, LED indicators, etc.
本申请实施例提供一种电子设备,包括:存储器,用于存储电子设备的一个或多个处理器执行的指令,以及处理器,是电子设备的一个或多个处理器之一,用于执行上述操作方法。Embodiments of the present application provide an electronic device, including: a memory, used to store instructions executed by one or more processors of the electronic device; and a processor, which is one of the one or more processors of the electronic device, used to execute The above operation method.
本申请实施例提供一种可读存储介质,,可读存储介质上存储有指令,指令在电子设备上执行时使得电子设备执行上述操作方法。Embodiments of the present application provide a readable storage medium, in which instructions are stored on the readable storage medium. When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the above operation method.
本申请实施例提供一种计算机程序产品,包括:执行指令,执行指令存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取执行指令,至少一个处理器执行执行指令使得电子设备实现上述操作方法。Embodiments of the present application provide a computer program product, including: execution instructions. The execution instructions are stored in a readable storage medium. At least one processor of an electronic device can read the execution instructions from the readable storage medium. The at least one processor executes the execution instructions. The instructions enable the electronic device to implement the above operation method.
本申请公开的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。Various embodiments disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of the present application may be implemented as a computer program or program code executing on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device and at least one output device.
可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(DSP)、微控制器、专用集成电路(ASIC)或微处理器之类的处理器的任何系统。Program code may be applied to input instructions to perform the functions described herein and to generate output information. Output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。Program code may be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. When necessary, assembly language or machine language can also be used to implement program code. In fact, the mechanisms described in this application are not limited to the scope of any particular programming language. In either case, the language may be a compiled or interpreted language.
在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个或多个处理器读取和执行。例如,指令可以通过网络或通过其他计算机可读介质分发。因此,机器可读介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、只读存储器(CD-ROMs)、磁光盘、只读存储器(ROM)、随机存取存储器(RAM)、可擦除可编程只读存储器(EPROM)、电可擦除可编程只读存储器(EEPROM)、磁卡或光卡、闪存、或用于利用因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读介质包括适合于以机器(例如,计算机)可读的形式存储或传输电子指令或信息的任何类型的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried on or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be operated by one or more processors Read and execute. For example, instructions may be distributed over a network or through other computer-readable media. Thus, machine-readable media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic Optical disk, read-only memory (ROM), random-access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical card, flash memory, or Tangible machine-readable storage used to transmit information (e.g., carrier waves, infrared signals, digital signals, etc.) using electrical, optical, acoustic, or other forms of propagated signals over the Internet. Thus, machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, computer).
在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the drawings, some structural or methodological features may be shown in specific arrangements and/or orders. However, it should be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different than that shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments these features may not be included or may be combined with other features.
需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that each unit/module mentioned in each device embodiment of this application is a logical unit/module. Physically, a logical unit/module can be a physical unit/module, or it can be a physical unit/module. Part of the module can also be implemented as a combination of multiple physical units/modules. The physical implementation of these logical units/modules is not the most important. The combination of functions implemented by these logical units/modules is what solves the problem of this application. Key technical issues raised. In addition, in order to highlight the innovative part of this application, the above-mentioned equipment embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems raised by this application. This does not mean that the above-mentioned equipment embodiments do not exist. Other units/modules.
需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由 语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and descriptions of this patent, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply There is no such actual relationship or sequence between these entities or operations. Furthermore, the terms "comprises,""comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, by The statement "comprises a" a qualified element does not exclude the presence of additional identical elements in a process, method, article, or device that includes the stated element.
虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的范围。 Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes may be made in form and detail without departing from the present invention. Scope of application.

Claims (27)

  1. 一种操作方法,应用于第一电子设备,其特征在于,包括:An operating method, applied to a first electronic device, characterized by including:
    获取第一视频和与所述第一视频关联的第一信息,其中,所述第一信息包括屏幕录制过程中录制的至少一个显示界面的界面信息以及用户在所述至少一个显示界面操作的目标控件的标识信息;Obtain a first video and first information associated with the first video, wherein the first information includes interface information of at least one display interface recorded during the screen recording process and the target of the user's operation on the at least one display interface. The identification information of the control;
    播放所述第一视频,并在播放所述第一视频的过程中,基于所述第一信息执行操作。The first video is played, and during the playing of the first video, an operation is performed based on the first information.
  2. 根据权利要求1所述的方法,其特征在于,所述操作与所述第一视频中用户在所述至少一个显示界面的操作一致。The method of claim 1, wherein the operation is consistent with the user's operation on the at least one display interface in the first video.
  3. 根据权利要求1所述的方法,其特征在于,所述第一视频和所述第一信息作为同一个文件进行存储,或,所述第一视频和所述第一信息作为不同文件进行存储。The method of claim 1, wherein the first video and the first information are stored as the same file, or the first video and the first information are stored as different files.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一信息还包括用户在所述至少一个显示界面对所述目标控件的操作方式。The method according to any one of claims 1 to 3, characterized in that the first information also includes a user's operation mode of the target control on the at least one display interface.
  5. 根据权利要求4所述的方法,其特征在于,所述基于所述第一信息执行操作,包括:The method of claim 4, wherein the performing an operation based on the first information includes:
    获取所述第一信息中第一显示界面的界面信息,基于所述第一显示界面的界面信息确定所述第一电子设备的第一待操作界面;Obtain the interface information of the first display interface in the first information, and determine the first to-be-operated interface of the first electronic device based on the interface information of the first display interface;
    获取用户在所述第一显示界面操作的目标控件的标识信息,基于所述用户在所述第一显示界面操作的目标控件的标识信息,确定所述第一待操作界面的待操作控件;Obtain the identification information of the target control operated by the user on the first display interface, and determine the control to be operated on the first interface to be operated based on the identification information of the target control operated by the user on the first display interface;
    获取用户在所述第一显示界面对所述目标控件的操作方式,基于所述用户在所述第一显示界面对所述目标控件的操作方式对所述待操作控件进行对应操作;Obtain the user's operation mode on the target control on the first display interface, and perform corresponding operations on the to-be-operated control based on the user's operation mode on the target control on the first display interface;
    获取所述第一信息中第二显示界面的界面信息,基于所述第二显示界面的界面信息确定所述第一电子设备的第二待操作界面。Obtain the interface information of the second display interface in the first information, and determine the second to-be-operated interface of the first electronic device based on the interface information of the second display interface.
  6. 根据权利要求5所述的方法,其特征在于,在所述目标控件的操作方式为多状态操作方式的情况下,所述第一信息还包括所述操作方式对应的辅助信息。The method of claim 5, wherein when the operation mode of the target control is a multi-state operation mode, the first information further includes auxiliary information corresponding to the operation mode.
  7. 根据权利要求6所述的方法,其特征在于,所述多状态操作方式包括键入操作和调节操作,所述键入操作对应的辅助信息包括键入内容,所述调节操作对应的辅助信息包括调节状态。The method according to claim 6, wherein the multi-state operation mode includes a typing operation and an adjustment operation, the auxiliary information corresponding to the typing operation includes input content, and the auxiliary information corresponding to the adjustment operation includes an adjustment state.
  8. 根据权利要求1所述的方法,其特征在于,所述界面信息包括界面包名、界面应用名和界面activity名称。The method according to claim 1, characterized in that the interface information includes interface package name, interface application name and interface activity name.
  9. 根据权利要求1-3,6-8任一项所述的方法,其特征在于,所述第一电子设备包括第一显示区域和第二显示区域;The method according to any one of claims 1-3, 6-8, wherein the first electronic device includes a first display area and a second display area;
    所述第一电子设备播放所述第一视频的过程中,所述第一显示区域显示所述第一视频的播放画面,所述第二显示区域显示所述第一电子设备执行所述操作的操作过程。When the first electronic device plays the first video, the first display area displays the playback screen of the first video, and the second display area displays the first electronic device performing the operation. Operation process.
  10. 根据权利要求9所述的方法,其特征在于,所述第一显示区域重叠于所述第二显示区域的部分区域,或,所述第二显示区域重叠于所述第一显示区域的部分区域。The method of claim 9, wherein the first display area overlaps a partial area of the second display area, or the second display area overlaps a partial area of the first display area. .
  11. 根据权利要求9所述的方法,其特征在于,所述第二显示区域与所述第一显示区域分屏显示。The method according to claim 9, characterized in that the second display area and the first display area are displayed in separate screens.
  12. 根据权利要求1-3,6-8,10-11任一项所述的方法,其特征在于,第三电子设备与所述第一电子设备连接,所述第三电子设备显示所述第一视频的播放画面,所述第一电子设备显示所述第一电子设备执行所述操作的操作过程。The method according to any one of claims 1-3, 6-8, 10-11, characterized in that a third electronic device is connected to the first electronic device, and the third electronic device displays the first In the playback screen of the video, the first electronic device displays the operation process of the first electronic device performing the operation.
  13. 根据权利要求1-3,6-8,10-11任一项所述的方法,其特征在于,第三电子设备与所述第一电子设备连接,所述第三电子设备显示所述第一电子设备执行所述操作的操作过程,所述第一电子设备显示所述第一视频的播放画面。The method according to any one of claims 1-3, 6-8, 10-11, characterized in that a third electronic device is connected to the first electronic device, and the third electronic device displays the first The electronic device performs the operation process of the operation, and the first electronic device displays the playback screen of the first video.
  14. 根据权利要求1-3,6-8,10-11任一项所述的方法,其特征在于,第三电子设备与所述第一电子设备连接,所述第一电子设备显示所述第一电子设备执行所述操作的操作过程和/或第一视频的播放画面;The method according to any one of claims 1-3, 6-8, 10-11, characterized in that a third electronic device is connected to the first electronic device, and the first electronic device displays the first The electronic device performs the operation process of the operation and/or the playback screen of the first video;
    所述第三电子设备包括第三显示区域和第四显示区域,所述第三显示区域显示所述第一电子设备的显示内容,所述第四显示区域显示所述操作过程或所述第一视频的播放画面。 The third electronic device includes a third display area and a fourth display area, the third display area displays the display content of the first electronic device, and the fourth display area displays the operation process or the first The video playback screen.
  15. 根据权利要求1-3,6-8,10-11任一项所述的方法,其特征在于,还包括:在接收到退出播放指令,且检测所述操作未完成的情况下,发送提示信息至所述第一电子设备的显示界面。The method according to any one of claims 1-3, 6-8, 10-11, further comprising: sending prompt information when receiving an exit playback instruction and detecting that the operation is not completed. to the display interface of the first electronic device.
  16. 根据权利要求1-3,6-8,10-11任一项所述的方法,其特征在于,所述第一视频中标记有多个时刻点,每个所述时刻点对应所述屏幕录制过程中用户的部分操作。The method according to any one of claims 1-3, 6-8, 10-11, characterized in that the first video is marked with multiple time points, and each of the time points corresponds to the screen recording. Part of the user's operations during the process.
  17. 根据权利要求16所述的方法,其特征在于,还包括:固定所述多个时刻点中的具有关联的部分时刻点,以使得所述具有关联的部分时刻点所对应的视频连续播放。The method according to claim 16, further comprising: fixing associated partial time points among the plurality of time points, so that videos corresponding to the associated partial time points are played continuously.
  18. 根据权利要求17所述的方法,其特征在于,在所述第一视频播放到目标时刻点时,在所述目标时刻点所对应的操作未完成的情况下,停止所述第一视频的播放;The method according to claim 17, characterized in that when the first video is played to a target time point and the operation corresponding to the target time point is not completed, the playback of the first video is stopped. ;
    在所述目标时刻点所对应的操作完成后,继续播放所述第一视频。After the operation corresponding to the target time point is completed, the first video continues to be played.
  19. 根据权利要求1-3,6-8,10-11,17-18任一项所述的方法,其特征在于,还包括:对所述第一视频进行剪辑处理,以获取第二视频。The method according to any one of claims 1-3, 6-8, 10-11, 17-18, further comprising: editing the first video to obtain a second video.
  20. 根据权利要求19所述的方法,其特征在于,所述剪辑处理包括剪切处理和/或拆分处理和/或重组等处理。The method according to claim 19, characterized in that the editing processing includes cutting processing and/or splitting processing and/or reorganization processing.
  21. 根据权利要求1-3,6-8,10-11,17-18任一项所述的方法,其特征在于,所述第一电子设备以MOV格式、EXIF格式或压缩包格式存储所述第一视频和所述第一信息。The method according to any one of claims 1-3, 6-8, 10-11, 17-18, wherein the first electronic device stores the first electronic device in MOV format, EXIF format or compressed package format. a video and said first message.
  22. 根据权利要求1所述的方法,其特征在于,所述在播放所述第一视频的过程中,基于所述第一信息执行操作;包括:The method according to claim 1, characterized in that, during the process of playing the first video, performing an operation based on the first information includes:
    检测到播放指令,播放所述第一视频,并在所述第一视频播放到第一个时刻点时,将所述第一个时刻点对应的操作加入任务队列,并基于所述第一信息执行所述任务队列中的操作;Detect the play instruction, play the first video, and when the first video is played to the first time point, add the operation corresponding to the first time point to the task queue, and based on the first information Perform operations in the task queue;
    在所述第一视频播放到第二个时刻点时,将所述第二个时刻点对应的操作加入所述任务队列。When the first video is played to a second time point, the operation corresponding to the second time point is added to the task queue.
  23. 一种操作方法,应用于第二电子设备,其特征在于,包括:An operating method, applied to a second electronic device, characterized by including:
    检测到屏幕录制指令;Screen recording command detected;
    开启屏幕录制,生成第一视频和第一信息,所述第一信息包括屏幕录制过程中录制的至少一个显示界面的界面信息以及用户在所述至少一个显示界面的操作的目标控件的标识信息,其中,所述第一信息能够用于:电子设备在播放所述第一视频的过程中,基于所述第一信息执行对应操作。Turn on screen recording and generate a first video and first information, where the first information includes interface information of at least one display interface recorded during the screen recording process and identification information of target controls operated by the user on the at least one display interface, Wherein, the first information can be used for the electronic device to perform corresponding operations based on the first information during the process of playing the first video.
  24. 根据权利要求23所述的方法,其特征在于,所述第二电子设备将所述第一视频和所述第一信息发送至所述第一电子设备。The method of claim 23, wherein the second electronic device sends the first video and the first information to the first electronic device.
  25. 一种电子设备,其特征在于,包括:存储器,用于存储所述电子设备的一个或多个处理器执行的指令,以及所述处理器,是所述电子设备的一个或多个处理器之一,用于执行权利要求1至24中任一项所述的操作方法。An electronic device, characterized in that it includes: a memory for storing instructions executed by one or more processors of the electronic device, and the processor is one of the one or more processors of the electronic device. 1. Used to perform the operating method described in any one of claims 1 to 24.
  26. 一种可读存储介质,其特征在于,所述可读介质上存储有指令,所述指令在电子设备上执行时使得所述电子设备执行权利要求1-24中任一项所述的操作方法。A readable storage medium, characterized in that instructions are stored on the readable medium, and when the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the operation method described in any one of claims 1-24. .
  27. 一种计算机程序产品,包括:执行指令,所述执行指令存储在可读存储介质中,电子设备的至少一个处理器可以从所述可读存储介质读取所述执行指令,所述至少一个处理器执行所述执行指令使得所述电子设备实现权利要求1-24中任一项所述的操作方法。 A computer program product comprising: execution instructions stored in a readable storage medium from which at least one processor of an electronic device can read the execution instructions, the at least one process The processor executes the execution instructions so that the electronic device implements the operating method described in any one of claims 1-24.
PCT/CN2023/112297 2022-08-18 2023-08-10 Operation method, electronic device, and medium WO2024037421A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210995317.8A CN117631919A (en) 2022-08-18 2022-08-18 Operation method, electronic equipment and medium
CN202210995317.8 2022-08-18

Publications (1)

Publication Number Publication Date
WO2024037421A1 true WO2024037421A1 (en) 2024-02-22

Family

ID=89940716

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/112297 WO2024037421A1 (en) 2022-08-18 2023-08-10 Operation method, electronic device, and medium

Country Status (2)

Country Link
CN (1) CN117631919A (en)
WO (1) WO2024037421A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111903A (en) * 2018-01-17 2018-06-01 广东欧珀移动通信有限公司 Record screen document play-back method, device and terminal
CN109561271A (en) * 2018-11-19 2019-04-02 维沃移动通信有限公司 A kind of guidance method of terminal operation, first terminal and second terminal
CN112286617A (en) * 2020-10-30 2021-01-29 维沃移动通信有限公司 Operation guidance method and device and electronic equipment
EP3796318A1 (en) * 2019-09-19 2021-03-24 Baidu Online Network Technology (Beijing) Co., Ltd. Video playing method and device, electronic device, and readable storage medium
CN113923461A (en) * 2020-07-10 2022-01-11 华为技术有限公司 Screen recording method and screen recording system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111903A (en) * 2018-01-17 2018-06-01 广东欧珀移动通信有限公司 Record screen document play-back method, device and terminal
CN109561271A (en) * 2018-11-19 2019-04-02 维沃移动通信有限公司 A kind of guidance method of terminal operation, first terminal and second terminal
EP3796318A1 (en) * 2019-09-19 2021-03-24 Baidu Online Network Technology (Beijing) Co., Ltd. Video playing method and device, electronic device, and readable storage medium
CN113923461A (en) * 2020-07-10 2022-01-11 华为技术有限公司 Screen recording method and screen recording system
CN112286617A (en) * 2020-10-30 2021-01-29 维沃移动通信有限公司 Operation guidance method and device and electronic equipment

Also Published As

Publication number Publication date
CN117631919A (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN110377250B (en) Touch method in screen projection scene and electronic equipment
US11922005B2 (en) Screen capture method and related device
JP7414842B2 (en) How to add comments and electronic devices
JP7142783B2 (en) Voice control method and electronic device
US11722449B2 (en) Notification message preview method and electronic device
WO2021036571A1 (en) Desktop editing method and electronic device
CN107087101B (en) Apparatus and method for providing dynamic panorama function
JP2022549157A (en) DATA TRANSMISSION METHOD AND RELATED DEVICE
CN104967801B (en) A kind of video data handling procedure and device
CN112703478B (en) Data sharing method, graphical user interface, electronic device and system
JP2023506936A (en) MULTI-SCREEN COOPERATION METHOD AND SYSTEM AND ELECTRONIC DEVICE
WO2022057852A1 (en) Method for interaction between multiple applications
WO2022152024A1 (en) Widget display method and electronic device
KR102193704B1 (en) Lock screen display method of electronic apparatus and electronic appparatus thereof
WO2022042769A2 (en) Multi-screen interaction system and method, apparatus, and medium
WO2023236794A1 (en) Audio track marking method and electronic device
CN111176766A (en) Communication terminal and component display method
CN115002336A (en) Video information generation method, electronic device and medium
CN113163394B (en) Information sharing method and related device for context intelligent service
WO2024037421A1 (en) Operation method, electronic device, and medium
US20240244017A1 (en) Service Sharing Method and System, and Electronic Device
CN112328135A (en) Mobile terminal and application interface display method thereof
US10924602B2 (en) Electronic device and method for controlling same
CN111324255A (en) Application processing method based on double-screen terminal and communication terminal
WO2024103894A1 (en) Screen recording method and electronic device

Legal Events

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

Ref document number: 23854322

Country of ref document: EP

Kind code of ref document: A1