WO2021104268A1 - Content sharing method, and electronic apparatus - Google Patents

Content sharing method, and electronic apparatus Download PDF

Info

Publication number
WO2021104268A1
WO2021104268A1 PCT/CN2020/131168 CN2020131168W WO2021104268A1 WO 2021104268 A1 WO2021104268 A1 WO 2021104268A1 CN 2020131168 W CN2020131168 W CN 2020131168W WO 2021104268 A1 WO2021104268 A1 WO 2021104268A1
Authority
WO
WIPO (PCT)
Prior art keywords
type
objects
electronic device
input
video
Prior art date
Application number
PCT/CN2020/131168
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 WO2021104268A1 publication Critical patent/WO2021104268A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to a content sharing method and electronic equipment.
  • APP Application Programs
  • electronic devices such as mobile phones and tablet computers can provide people with a large amount of rich and colorful information in the form of text, pictures, audio, and video.
  • users may need to forward content in one application (ie, application) to other applications.
  • applications ie, application
  • users may need to forward content such as text, pictures, or videos in a news application to an instant messaging application.
  • current electronic devices usually forward the content in the sending-side application in the form of a link in the receiving-side application.
  • the electronic device receives and displays the corresponding link through the receiving-side application, it needs to receive the user's input on the link, and then open the webpage or application indicated by the link, that is, open the entire page to which the forwarded content belongs, before the The user shows the reposted content.
  • the process for the user to view the content shared between different applications is cumbersome and time-consuming.
  • the embodiments of the present invention provide a content sharing method and an electronic device, so as to solve the problem of cumbersome and time-consuming processes for users to view content shared between different applications.
  • an embodiment of the present invention provides a content sharing method.
  • the method includes: receiving a first input to a first object in an interface of a first application; in response to the first input, obtaining a second object based on the first object ; Receive a second input; In response to the second input, send a second object through the second application; wherein the object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the second object
  • the object type of each object in is text type, picture type, audio type or video type.
  • an embodiment of the present invention also provides an electronic device, the electronic device includes: a receiving module, a processing module, and a sending module; the receiving module is configured to receive the first object in the interface of the first application. Input; a processing module for obtaining a second object according to the first object in response to the first input received by the receiving module;
  • the receiving module is also used to receive the second input; the sending module is used to send the second object obtained by the processing module through the second application in response to the second input received by the receiving module; wherein, the value of each object in the first object
  • the object type is a text type, a picture type, an audio type or a video type
  • the object type of each object in the second object is a text type, a picture type, an audio type or a video type.
  • an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor.
  • the computer program is executed by the processor to achieve the following The steps of the content sharing method described in one aspect.
  • an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the content sharing method as described in the first aspect are implemented. .
  • the first input to the first object in the interface of the first application can be used to trigger the acquisition of the second object based on the first object.
  • the object type of each object in the first object is a text type, a picture type, an audio type, or a video type
  • the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type.
  • Types of. the electronic device can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links.
  • the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object.
  • the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link.
  • the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention .
  • the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
  • FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention
  • FIG. 3 is a second schematic flowchart of a content sharing method provided by an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a possible electronic device provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
  • first and second in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects.
  • first object and the second object are used to distinguish different objects, rather than to describe the specific order of the objects.
  • the first input to the first object in the interface of the first application can trigger the acquisition of the second object based on the first object.
  • the object type of each object in the first object is a text type, a picture type, an audio type, or a video type
  • the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type.
  • Types of. electronic devices can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links.
  • the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object.
  • the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link.
  • the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention .
  • the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
  • the electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device.
  • Mobile electronic devices can be mobile phones, tablet computers, notebook computers, handheld computers, vehicle terminals, wearable devices, ultra-mobile personal computers (UMPC), netbooks, or personal digital assistants (personal digital assistants, PDAs), etc.
  • the non-mobile electronic device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc.; the embodiment of the present invention does not specifically limit it.
  • the execution subject may be an electronic device, or the central processing unit (CPU) of the electronic device, or the electronic device for performing content sharing The control module of the method.
  • the content sharing method executed by the electronic device is taken as an example to illustrate the content sharing method provided in the embodiment of the present invention.
  • the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • the following takes the Android operating system as an example to introduce the software environment to which the content sharing method provided by the embodiment of the present invention is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework. For example, applications such as system setting applications, system chat applications, and system camera applications. Applications such as third-party settings applications, third-party camera applications, and third-party chat applications.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • a developer can develop a software program that implements the content sharing method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG.
  • the sharing method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the content sharing method provided by the embodiment of the present invention by running the software program in the Android operating system.
  • the content sharing method provided by the embodiment of the present invention will be described in detail below with reference to the flowchart of the content sharing method shown in FIG. 2.
  • the logical sequence of the content sharing method provided by the embodiment of the present invention is shown in the content sharing method flowchart, in some cases, the steps shown or described may be performed in a different order than here.
  • the content sharing method shown in FIG. 2 may include S201-S204:
  • the electronic device receives a first input of a first object in the interface of the first application.
  • the object type of the object can be a text (such as text) type, a picture type, an audio type, or a video type, that is, the object is a text, a picture, an audio, or a video.
  • the object type of each object in the first object is a text type, a picture type, an audio type, or a video type.
  • the first object belongs to the content indicated by the target link in the first application.
  • the first input may be an input of the user selecting the first object from the content of the first application.
  • the screen of the electronic device may be a touch screen, and the touch screen may be used to receive input from a user and display content corresponding to the input to the user in response to the input.
  • the above-mentioned first input may be touch screen input, fingerprint input, gravity input, key input, etc.
  • the touch screen input is the user's input on the touch screen of the electronic device such as pressing input, long-pressing input, sliding input, clicking input, floating input (input by the user near the touch screen).
  • Fingerprint input is the user's input such as swiping fingerprints, long-pressing fingerprints, single-clicking fingerprints, and double-clicking fingerprints on the fingerprint reader of the electronic device.
  • Gravity input is the user's input of shaking the electronic device in a specific direction or a certain number of times.
  • the key input corresponds to the user's input such as single-click input, double-click input, long-press input, and combination key input of the power button, volume button, and home button of the electronic device.
  • the embodiment of the present invention does not specifically limit the first input manner, and may be any achievable manner.
  • the content sharing method provided by the embodiment of the present invention can be applied to an electronic device to share objects between two or more applications, so as to realize content sharing between different applications.
  • at least two applications may be installed in the electronic device to support the electronic device to share objects between different applications.
  • the electronic device shares objects between the first application and the second application.
  • the electronic device In response to the first input, the electronic device obtains a second object according to the first object.
  • the content in the first object is the same as the content in the second object, and the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type.
  • the number of objects of the first object is the same as or different from the number of objects of the second object.
  • the object type of the object in the second object may be determined by the object type of the object in the first object.
  • the object type of one object in the second object is the same as the object type of the corresponding object in the first object.
  • the electronic device receives the second input.
  • the second input may be used to trigger the electronic device to share the second object through the second application, for example, to trigger the electronic device to determine which application is the second application.
  • the electronic device In response to the second input, the electronic device sends the second object through the second application.
  • the electronic device sends the second object through the second application, specifically sending the second object to a certain communication contact, favorite or folder in the second application.
  • the application type of the application may include a news type, a social type, a game type, a video type, and an instant messaging type, etc., which is not specifically limited in the embodiment of the present invention.
  • the application type of the first application is the same as or different from the application type of the second application.
  • the application type of the first application is a news type
  • the application type of the second application is an instant messaging type.
  • the first application is a sending-side application
  • the second application is a receiving-side application
  • current electronic devices usually share content between different applications in the form of links.
  • the user usually inputs the forwarding control in the application on the sending side (that is, the forwarding control only for the application) to trigger the electronic device to send the current entire page (such as a web page) in the form of a link, or include the information of the application (such as the name or representation of the application).
  • the forwarding control in the application on the sending side that is, the forwarding control only for the application
  • the electronic device to send the current entire page (such as a web page) in the form of a link, or include the information of the application (such as the name or representation of the application).
  • what users actually need to share is only part of the content of a page, such as a certain text, a certain picture, or a certain video clip on the page. In this way, what the electronic device receives in the application on the receiving side is not the text, picture, or video itself, but a link.
  • the second object shared by the electronic device is text, picture, audio, or video, rather than a link.
  • the second object received by the electronic device on the receiving side is the content itself, rather than the entire page in the first application or the message body containing the information of the first application.
  • the electronic device (denoted as electronic device 1) that shares the second object through the second application, and the electronic device (denoted as electronic device 2) that receives the second object through the second application are the same or different.
  • the second application is installed in the electronic device 1 and the electronic device 2, for example, a certain instant messaging application (denoted as the instant messaging application 1) is installed in both.
  • the electronic device 1 and the electronic device 2 can interact with the communication server corresponding to the instant messaging application 1 to realize that the electronic device 1 and the electronic device 2 forward objects through their respective instant messaging applications 1.
  • the electronic device may execute the content sharing method provided in the embodiment of the present invention when the fast forwarding function is enabled.
  • the foregoing S201 may be implemented by "the electronic device receives the first input of the first object in the first application when the fast forwarding function is enabled.”
  • a shortcut for starting the fast forwarding function can be set in the electronic device, for example, the physical key combination of the electronic device, gestures, etc., so that the user can quickly turn on/out the shortcut conversion function.
  • the fast forwarding function in the electronic device may be a system-level function of the electronic device, that is, a function based on a global application of the electronic device, rather than a function based on a certain application in the electronic device.
  • the fast forwarding function can be used to support electronic devices to share content (ie, sharing objects) between different applications.
  • the fast forwarding function can provide forwarding controls based on global applications to support electronic devices to share content among different applications.
  • the user's first input to the first object in the first application can trigger the electronic device to obtain the second object according to the first object, and then trigger the use of the second application Share the second object.
  • the electronic device can also share the second object through the second application through the system-level forwarding control provided by the fast forwarding function. In this way, it is beneficial to improve the controllability and flexibility of the electronic device sharing content between different applications.
  • the electronic device may turn off the fast forwarding function.
  • the user can trigger the electronic device to turn off the fast forwarding function through a preset physical key combination.
  • the content sharing method provided by the embodiment of the present invention can trigger the acquisition of the second object based on the first object by the first input to the first object in the first application.
  • the object type of each object in the first object is a text type, a picture type, an audio type, or a video type
  • the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type.
  • Types of. the electronic device can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links.
  • the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object.
  • the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link.
  • the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention .
  • the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
  • the first input includes a first sub-input and a second sub-input.
  • S202 may be implemented through S202a and S202b:
  • the electronic device acquires the first object.
  • the first sub-input is an input to the first object, for example, the first sub-input is an input in which the user long presses and selects a text, picture, audio, or video in the first application.
  • the first sub-input may include the user's sliding input on the text, that is, the input of selecting the text that you want to share.
  • the electronic device can display the text in a specific manner, such as highlighting the background of the control text.
  • the first sub-input may include the user's long-press input on the picture, that is, the input of selecting the picture that you want to share.
  • the electronic device can display the text in a specific way, such as controlling the frame of the picture to be highlighted.
  • the electronic device may display a forwarding selection box to support the user to select an application as the second application, thereby triggering the sharing of the second object obtained from the first object through the second application .
  • the user can activate the fast forwarding function of the electronic device through a shortcut key or other methods.
  • the electronic device can automatically select and copy the text, and then pop up the forwarding selection box. After the user selects the second application to be forwarded to through the forwarding selection box, the electronic device shares the copied text through the second application.
  • the electronic device can automatically select the picture, and a forwarding selection box will pop up.
  • the user selects the second application to be forwarded to through the forwarding selection box, the one that is forwarded through the second application is selected picture of.
  • the electronic device can automatically start recording. When the user releases it, the recording stops, and a forwarding selection box pops up. When the user selects the second application to be forwarded to through the forwarding selection box, in the first The second application forwarded was the video that was recorded.
  • the electronic device In response to the second sub-input, the electronic device processes the first object into the second object according to the target information.
  • the electronic device may provide a rule selection control to support the user's electronic device to determine the target information.
  • the second sub-input may be an input to the rule selection control. That is, the user can control at least one of the number of objects and the object types of the second objects processed by the electronic device. For example, the user can choose whether to merge multiple objects of different types in the first object into a certain type of second object.
  • the content sharing method provided in the embodiment of the present invention may further include S205:
  • the electronic device In response to the first sub-input, displays at least one application identifier.
  • the second sub-input is an input of an application identifier in at least one application identifier, one application identifier is used to indicate one application, and the target identifier is used to indicate a second application.
  • the electronic device may use a forwarding selection box to display at least one application identifier.
  • the content sharing method provided by the embodiment of the present invention can support the user to select the first object to be shared according to his own needs through the first sub-input.
  • the user is supported to trigger the electronic device to process the second object according to the target information selected by the user through the second sub-input. In this way, it is beneficial to improve the controllability of the object processed by the electronic device, so that the object shared by the electronic device among different applications is the object that the user actually needs to share.
  • the "processing the first object into the second object according to the target information" in the above embodiment can be implemented through S1 or S2:
  • the electronic device regards the first object as the second object, and the object input quantity of the first object is the same as the quantity of the second object.
  • the number of objects of the first object in S1 is greater than or equal to one.
  • the mode in S1 above can be denoted as mode 1.
  • the target information is used to indicate that the electronic device does not merge multiple first objects.
  • the electronic device merges the objects in the first object into the second object, the number of objects of the first object is greater than one, and the number of objects of the second object is equal to one.
  • the mode in S2 above can be denoted as mode 2.
  • the target information is used to instruct the electronic device to merge multiple objects in the first object.
  • the content sharing method provided by the embodiment of the present invention can support the electronic device to process the second object through different target information. In this way, it is beneficial to improve the controllability and flexibility of the processing object of the electronic device.
  • the electronic device merges the objects in the first object into the second object according to the object type of each object in the first object.
  • the target information is used to instruct the electronic device to obtain the second object by performing S2a processing.
  • the object type of the second object is the same as that of the first object type. Same or different.
  • the object types of the second objects processed by the electronic device may be text types or picture types, that is, multiple pieces of text of the electronic device are combined into one Pictures.
  • the object type of the second object processed by the electronic device may be a picture type, that is, the electronic device synthesizes multiple pictures into one picture.
  • the object type of the second object processed by the electronic device may be an audio type, that is, the electronic device synthesizes multiple pieces of audio into one piece of audio.
  • the object type of all objects in the first object is video
  • the object type of the second object processed by the electronic device may be a video type, that is, the electronic device synthesizes multiple pieces of audio into one piece of video.
  • the object type of the second object is the second object type; wherein, the second object The type is the object type of one of the first objects.
  • application scenario 2 may include the following sub-scenarios:
  • Sub-scene 1 In the case where the first object includes text and pictures, the second object type is a picture type. That is, the electronic device first processes the text into a picture, and then synthesizes multiple pictures into one picture.
  • Sub-scene 2 In the case where the first object includes text and audio, the second object type is an audio type.
  • Sub-scene 3 In the case where the first object includes pictures and audio, the second object type is an audio type.
  • Sub-scene 4 In the case where the first object includes text, picture, and audio, the second object type is an audio type.
  • an object in the first object whose object type is text/picture is processed as a thumbnail of the second object or a content part in the second object.
  • the first object of the text is processed as the lyrics of the second object
  • the first object of the picture is processed as the playback background picture of the second object.
  • Sub-scene 5 In the case where the first object includes text and video, the second object type is a video type.
  • Sub-scene 6 In the case where the first object includes pictures and videos, the second object type is a video type.
  • Sub-scene 7 In the case where the first object includes text, picture, and video, the second object type is a video type.
  • Sub-scene 8 In the case where the first object includes text, picture, audio, and video, the second object type is a video type.
  • the second object type is the video type; when the first objects of different object types include audio but not video, the second object The type is an audio type; when the first object of different object types includes pictures but not audio and video, the second object type is a picture type.
  • the second object type is a video
  • an object of the third object type in the first object is used as the first frame image of the second object.
  • the three object types are text type or picture type.
  • the first object when the second object type is a video type, the first object includes an object whose object type is a video type, that is, the first object includes a video (denoted as an original video).
  • the electronic device may first process an object whose object type is a text type in the first object as a picture, and then use the picture as the first frame image of the second object, that is, insert the picture into the original video to obtain the second object .
  • the electronic device may directly use an object whose object type is a picture type in the first object as the first frame image of the second object.
  • the electronic device may insert a picture obtained by processing an object whose object type is a text type in the first object, and an object whose object type is a picture type in the first object into different positions in the original video, respectively, to obtain the second Object.
  • the electronic device may synthesize a picture obtained by processing an object whose object type is a text type in the first object, and an object whose object type is a picture type in the first object, into a picture, and then insert the picture into The second object is obtained in the original video.
  • the objects in the first object are arranged according to a target layout, and the target layout includes at least one of a target arrangement sequence and a target arrangement layout.
  • the target arrangement layout may include superimposed arrangement, arrangement from left to right, arrangement from top to bottom, arrangement in the shape of a product, arrangement in the shape of a field, and arrangement in an M ⁇ N matrix.
  • M and N are preset positive integers.
  • the target information selection control provided by the electronic device can not only support the user to select whether to merge multiple first objects and which object type to merge into, but also support the user to select the target of merging multiple first objects. format. That is, the user can select whether to merge the objects in the first object and the target layout of the objects in the first object through the second sub-input. In this way, after the electronic device shares the object between different applications, the format of the object displayed to the user is a format that meets the needs of the user, which improves the human-computer interaction performance.
  • the user can edit the first object while selecting the first object through the first sub-input.
  • the clip object type is an object of the picture type, or the clip object type is an object of the audio type or video type.
  • the electronic device may select the corresponding text and highlight the background of the text.
  • the multiple texts can be automatically spliced into a text.
  • function keys may be displayed around the text to support the user to choose to share in the form of text or convert the text into a picture before sharing. Subsequently, the user can select the application identifier of the second application in the forwarding selection box to trigger the electronic device to share the processed text or picture through the second application.
  • the electronic device turns on the fast forwarding function
  • a highlighted rectangular frame appears around the picture.
  • the user drags a corner of the rectangular box to zoom the picture; press the middle part of the rectangular box and slide to move the position of the rectangular box. In this way, any part of the picture can be intercepted and shared, or the entire picture can be shared.
  • the electronic device can share the multiple pictures through the second application, and each picture in the multiple pictures can be edited by the user.
  • the user triggers the electronic device to select multiple pictures
  • the electronic device can display function keys around the multiple pictures, so that the user can choose to trigger the electronic device to directly share multiple pictures, or choose to splice all the pictures into one long picture. Share again.
  • the target arrangement layout and the target arrangement order of the pictures can be set by the user.
  • the user can select the application identifier of the second application in the forwarding selection box to trigger the electronic device to share the processed picture through the second application.
  • S202a may be implemented through S202a-1 or S202a-2:
  • the electronic device obtains a third object by recording the target video in the first application, and obtains objects other than the third object in the first object.
  • the electronic device intercepts the target video according to the video time axis to obtain a third object, and obtains objects other than the third object in the first object.
  • the electronic device may display a highlighted rectangle around the video to display a recording function key.
  • the user only wants to forward a part of the video, he can click the recording function key to trigger the electronic device to start recording the video clip in the video.
  • the user clicks the recording function key for the first time to trigger the electronic device to start recording, and clicks the recording function key for the second time to trigger the electronic device to stop recording.
  • the user can trigger the electronic device to record multiple video clips, and automatically stitch the multiple video clips into one video clip.
  • the user wants to forward the entire video he can trigger the electronic device to forward the original video directly without operating the recording function key.
  • the user can adjust the video timeline of the video (such as the target video) in the first application to trigger the electronic device to select the start and end positions of the video clip to be intercepted, so that the system of the electronic device automatically intercepts this video to select the object
  • the type is the first object of the video.
  • the user can set a rectangular frame area in the video in the first application to select the start position and end position of the video clip to be recorded, so as to trigger the electronic device to quickly capture the video clip within a specific time period in the area. This method is faster than recording.
  • the user can select the application identifier of the second application in the forwarding selection box to trigger the electronic device to share the processed video clip through the second application.
  • the content sharing method provided by the embodiment of the present invention can support the electronic device to quickly obtain the object to be shared, and improve the human-computer interaction performance of the electronic device to share content.
  • FIG. 4 it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • the electronic device 40 shown in FIG. 4 includes: a receiving module 41, a processing module 42, and a sending module 43; a receiving module 41 for receiving a first input to a first object in an interface of a first application; a processing module 42, Used to respond to the first input received by the receiving module 41 to obtain the second object according to the first object; the receiving module 41 is also used to receive the second input; the sending module 42 is used to respond to the second input received by the receiving module 41 , Send the second object obtained by the processing module 42 through the second application; wherein the object type of each object in the first object is text type, picture type, audio type or video type, and the object type of each object in the second object The object type is text type, picture type, audio type or video type.
  • the first input includes a first sub-input and a second sub-input; the processing module 42 is specifically configured to obtain the first object in response to the first sub-input; An object is processed as a second object; where the target information is used to indicate at least one of the following: the object type of each object in the second object, and the number of objects of the second object.
  • the processing module 42 is specifically configured to use the first object as the second object, and the number of objects of the first object is equal to the number of objects of the second object; or, to merge the objects in the first object into the second object, The number of objects of the first object is greater than one, and the number of objects of the second object is one.
  • processing module 42 is specifically configured to merge the objects in the first object into the second object according to the object type of each object in the first object.
  • the object type of the second object is the same as or different from the first object type; the first object includes different object types
  • the object type of the second object is the second object type; wherein, the second object type is the object type of one of the first objects.
  • an object of the third object type in the first object is taken as the first frame image of the second object, and the third object type is a text type or a picture type.
  • the objects in the first object are arranged according to a target layout, and the target layout includes at least one of a target arrangement sequence and a target arrangement layout.
  • the first object includes a third object of a video type; the processing module 42 is specifically configured to obtain the third object by recording the target video in the first application, and obtain the third object in the first object except the third object Other objects; or, intercept the target video according to the video timeline to obtain the third object, and obtain other objects in the first object except the third object.
  • the electronic device provided by the embodiment of the present invention can trigger the acquisition of the second object according to the first object through the first input to the first object in the interface of the first application.
  • the object type of each object in the first object is a text type, a picture type, an audio type, or a video type
  • the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type.
  • Types of. the electronic device can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links.
  • the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object.
  • the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link.
  • the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention .
  • the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
  • the electronic device 40 provided in the embodiment of the present invention can implement the various processes implemented by the electronic device in the above-mentioned content sharing method embodiment. To avoid repetition, details are not described herein again.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components.
  • a radio frequency unit 101 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
  • the processor 110 is configured to control the user input unit 107 to receive the first input of the first object in the interface of the first application; the processor 110 is also configured to respond to the first input received by the user input unit 107, according to The first object obtains the second object; the processor 110 is further configured to control the user input unit 107 to receive the second input; the processor 110 is further configured to respond to the second input received by the user input unit 107, and share the second input through the second application Two objects; among them, the object type of each object in the first object is text type, picture type, audio type or video type, and the object type of each object in the second object is text type, picture type, audio type or Video type.
  • the electronic device provided by the embodiment of the present invention can trigger the acquisition of the second object according to the first object through the first input to the first object in the interface of the first application.
  • the object type of each object in the first object is a text type, a picture type, an audio type, or a video type
  • the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type.
  • Types of. the electronic device can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links.
  • the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object.
  • the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link.
  • the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention .
  • the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • Electronic devices provide users with wireless broadband Internet access through the network module 102, such as helping users to send and receive e-mails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042.
  • the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention further provides an electronic device, including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and the computer program is executed by the processor 110
  • an electronic device including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and the computer program is executed by the processor 110
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned content sharing method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
  • the content sharing method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be achieved by hardware, but in many cases the former is Better implementation.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions for making an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the content sharing method described in each embodiment of the present application.

Abstract

A content sharing method, and an electronic apparatus. The method comprises: receiving a first input performed with respect to first objects on an interface of a first application (S201); in response to the first input, obtaining second objects according to the first objects (S202); receiving a second input (S203); and in response to the second input, sending the second objects by means of a second application (S204), wherein a type of each of the first objects is a text type, an image type, an audio type or a video type, and a type of each of the second objects is a text type, an image type, an audio type or a video type.

Description

内容分享方法及电子设备Content sharing method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年11月29日在中国提交的中国专利申请号201911204952.4的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911204952.4 filed in China on November 29, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种内容分享方法及电子设备。The embodiments of the present invention relate to the field of communication technologies, and in particular, to a content sharing method and electronic equipment.
背景技术Background technique
手机和平板电脑等电子设备中的应用程序(Application Program,APP)可以以文字、图片、音频和视频等形式,向人们提供了大量丰富多彩的信息。具体的,用户可能需求将一个应用(即应用程序)中的内容转发至其他应用中。例如,用户可能需求将新闻应用中的文字、图片或视频等内容转发至即时通讯应用中。Application Programs (APP) in electronic devices such as mobile phones and tablet computers can provide people with a large amount of rich and colorful information in the form of text, pictures, audio, and video. Specifically, users may need to forward content in one application (ie, application) to other applications. For example, users may need to forward content such as text, pictures, or videos in a news application to an instant messaging application.
具体的,当前电子设备通常将发送侧应用中的内容,以链接的形式在接收侧应用中转发。如此,在电子设备通过接收侧应用接收并显示相应链接的情况下,需要接收用户对该链接的输入,再打开该链接指示的网页或者应用,即打开转发的内容所属的整个页面,才可以向用户展示转发的内容。从而,导致用户查看不同应用间分享的内容的过程繁琐且耗时。Specifically, current electronic devices usually forward the content in the sending-side application in the form of a link in the receiving-side application. In this way, when the electronic device receives and displays the corresponding link through the receiving-side application, it needs to receive the user's input on the link, and then open the webpage or application indicated by the link, that is, open the entire page to which the forwarded content belongs, before the The user shows the reposted content. As a result, the process for the user to view the content shared between different applications is cumbersome and time-consuming.
发明内容Summary of the invention
本发明实施例提供一种内容分享方法及电子设备,以解决用户查看不同应用间分享的内容的过程繁琐且耗时的问题。The embodiments of the present invention provide a content sharing method and an electronic device, so as to solve the problem of cumbersome and time-consuming processes for users to view content shared between different applications.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供一种内容分享方法,该方法包括:接收对第一应用的界面中的第一对象的第一输入;响应于第一输入,根据第一对象得到第二对象;接收第二输入;响应于第二输入,通过第二应用发送第二对象;其中,第一对象中的每 个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型。In a first aspect, an embodiment of the present invention provides a content sharing method. The method includes: receiving a first input to a first object in an interface of a first application; in response to the first input, obtaining a second object based on the first object ; Receive a second input; In response to the second input, send a second object through the second application; wherein the object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the second object The object type of each object in is text type, picture type, audio type or video type.
第二方面,本发明实施例还提供了一种电子设备,该电子设备包括:接收模块、处理模块和发送模块;接收模块,用于接收对第一应用的界面中的第一对象的第一输入;处理模块,用于响应于接收模块接收的第一输入,根据第一对象得到第二对象;In a second aspect, an embodiment of the present invention also provides an electronic device, the electronic device includes: a receiving module, a processing module, and a sending module; the receiving module is configured to receive the first object in the interface of the first application. Input; a processing module for obtaining a second object according to the first object in response to the first input received by the receiving module;
接收模块,还用于接收第二输入;发送模块,用于响应于接收模块接收的第二输入,通过第二应用发送处理模块得到的第二对象;其中,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型。The receiving module is also used to receive the second input; the sending module is used to send the second object obtained by the processing module through the second application in response to the second input received by the receiving module; wherein, the value of each object in the first object The object type is a text type, a picture type, an audio type or a video type, and the object type of each object in the second object is a text type, a picture type, an audio type or a video type.
第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的内容分享方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. The computer program is executed by the processor to achieve the following The steps of the content sharing method described in one aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的内容分享方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the content sharing method as described in the first aspect are implemented. .
在本发明实施例中,可以通过对第一应用的界面中的第一对象的第一输入,触发根据第一对象得到第二对象。其中,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型与可以为文本类型、图片类型、音频类型或视频类型。也就是说,电子设备可以在不同应用中分享对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是将对象以链接的形式分享。如此,电子设备可以通过第二应用展示对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是展示包括该对象的链接。如此,使得用户可以直接查看或者操作不同应用间分享的对象,而不需要点击链接再在链接查找相应对象。进而,使得分享内容的发送用户可以聚焦在自己想要分享的信息部分,忽略掉其他无用信息;并且,接收用户通过电子设备接收到的就是发送用户想分享的信息本身,直观体现发送用户的意图。从而,提高了电子设备在不同应用间分享内容的准确性,并提高了用户查看不同应用间分享的内容的便捷性。In the embodiment of the present invention, the first input to the first object in the interface of the first application can be used to trigger the acquisition of the second object based on the first object. Among them, the object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type. Types of. In other words, the electronic device can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links. In this way, the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object. In this way, the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link. Furthermore, the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention . Thus, the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
附图说明Description of the drawings
图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的内容分享方法的流程示意图之一;2 is one of the schematic flowcharts of the content sharing method provided by the embodiment of the present invention;
图3为本发明实施例提供的内容分享方法的流程示意图之二;FIG. 3 is a second schematic flowchart of a content sharing method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种可能的电子设备的结构示意图;4 is a schematic structural diagram of a possible electronic device provided by an embodiment of the present invention;
图5为本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“多个”是指两个或多于两个。It should be noted that "/" in this article means or, for example, A/B can mean A or B; "and/or" in this article is only an association relationship describing associated objects, which means that there may be three A relationship, for example, A and/or B, can mean that: A alone exists, A and B exist at the same time, and B exists alone. "Multiple" means two or more than two.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that in the embodiments of the present invention, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一对象和第二对象等是用于区别不同的对象,而不是用于描述对象的特定顺序。The terms "first" and "second" in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first object and the second object are used to distinguish different objects, rather than to describe the specific order of the objects.
本发明实施例提供的内容分享方法,可以通过对第一应用的界面中的第一对象的第一输入,触发根据第一对象得到第二对象。其中,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型与可以为文本类型、图片类型、音频类型或视频类型。也就是说,电子设备可以在不同应用中分享对象 类型为文本类型、图片类型、音频类型或视频类型的对象,而不是将对象以链接的形式分享。如此,电子设备可以通过第二应用展示对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是展示包括该对象的链接。如此,使得用户可以直接查看或者操作不同应用间分享的对象,而不需要点击链接再在链接查找相应对象。进而,使得分享内容的发送用户可以聚焦在自己想要分享的信息部分,忽略掉其他无用信息;并且,接收用户通过电子设备接收到的就是发送用户想分享的信息本身,直观体现发送用户的意图。从而,提高了电子设备在不同应用间分享内容的准确性,并提高了用户查看不同应用间分享的内容的便捷性。In the content sharing method provided by the embodiment of the present invention, the first input to the first object in the interface of the first application can trigger the acquisition of the second object based on the first object. Among them, the object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type. Types of. In other words, electronic devices can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links. In this way, the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object. In this way, the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link. Furthermore, the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention . Thus, the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
本发明实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device. Mobile electronic devices can be mobile phones, tablet computers, notebook computers, handheld computers, vehicle terminals, wearable devices, ultra-mobile personal computers (UMPC), netbooks, or personal digital assistants (personal digital assistants, PDAs), etc. ; The non-mobile electronic device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc.; the embodiment of the present invention does not specifically limit it.
需要说明的是,本发明实施例提供的内容分享方法,执行主体可以为电子设备,或者,该电子设备的中央处理器(Central Processing Unit,CPU),或者该电子设备中的用于执行内容分享方法的控制模块。本发明实施例中以电子设备执行内容分享方法为例,说明本发明实施例提供的内容分享方法。It should be noted that, in the content sharing method provided by the embodiment of the present invention, the execution subject may be an electronic device, or the central processing unit (CPU) of the electronic device, or the electronic device for performing content sharing The control module of the method. In the embodiment of the present invention, the content sharing method executed by the electronic device is taken as an example to illustrate the content sharing method provided in the embodiment of the present invention.
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的内容分享方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the content sharing method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In Figure 1, the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。例如,系统设置应用、系统聊天应用和系统相机应用等应用程序。第三方设置应用、第三方相机应用和第三方聊天应用等应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework. For example, applications such as system setting applications, system chat applications, and system camera applications. Applications such as third-party settings applications, third-party camera applications, and third-party chat applications.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的内容分享方法的软件程序,从而使得该内容分享方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的内容分享方法。Taking the Android operating system as an example, in the embodiment of the present invention, a developer can develop a software program that implements the content sharing method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The sharing method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the content sharing method provided by the embodiment of the present invention by running the software program in the Android operating system.
下面结合图2所示的内容分享方法的流程图对本发明实施例提供的内容分享方法进行详细描述。其中,虽然在内容分享方法流程图中示出了本发明实施例提供的内容分享方法的逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。例如,图2中示出的内容分享方法可以包括S201-S204:The content sharing method provided by the embodiment of the present invention will be described in detail below with reference to the flowchart of the content sharing method shown in FIG. 2. Wherein, although the logical sequence of the content sharing method provided by the embodiment of the present invention is shown in the content sharing method flowchart, in some cases, the steps shown or described may be performed in a different order than here. For example, the content sharing method shown in FIG. 2 may include S201-S204:
S201、电子设备接收对第一应用的界面中的第一对象的第一输入。S201. The electronic device receives a first input of a first object in the interface of the first application.
本发明实施例中,对象的对象类型可以为文本(如文字)类型、图片类型、音频类型或视频类型,即对象为文本、图片、音频或视频。具体的,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型。In the embodiment of the present invention, the object type of the object can be a text (such as text) type, a picture type, an audio type, or a video type, that is, the object is a text, a picture, an audio, or a video. Specifically, the object type of each object in the first object is a text type, a picture type, an audio type, or a video type.
可选地,本发明实施例中,第一对象属于第一应用中的目标链接指示的内容。Optionally, in this embodiment of the present invention, the first object belongs to the content indicated by the target link in the first application.
示例性的,第一输入可以为用户从第一应用的内容中选择第一对象的输入。Exemplarily, the first input may be an input of the user selecting the first object from the content of the first application.
需要说明的是,本发明实施例提供的电子设备的屏幕可以为触控屏,该触控屏可以用于接收用户的输入,并响应于该输入向该用户显示该输入对应的内容。其中,上述第一输入可以为触屏输入、指纹输入、重力输入、按键输入等。其中,触屏输入为用户对电子设备的触控屏的按压输入、长按输入、滑动输入、点击输入、悬浮输入(用户在触控屏附近的输入)等输入。指纹输入为用户对电子设备的指纹识别器的滑动指纹、长按指纹、单击 指纹和双击指纹等输入。重力输入为用户对电子设备特定方向的晃动、特定次数的晃动等输入。按键输入对应于用户对电子设备的电源键、音量键、Home键等按键的单击输入、双击输入、长按输入、组合按键输入等输入。具体的,本发明实施例对第一输入的方式不作具体限定,可以为任一可实现的方式。It should be noted that the screen of the electronic device provided by the embodiment of the present invention may be a touch screen, and the touch screen may be used to receive input from a user and display content corresponding to the input to the user in response to the input. Wherein, the above-mentioned first input may be touch screen input, fingerprint input, gravity input, key input, etc. Among them, the touch screen input is the user's input on the touch screen of the electronic device such as pressing input, long-pressing input, sliding input, clicking input, floating input (input by the user near the touch screen). Fingerprint input is the user's input such as swiping fingerprints, long-pressing fingerprints, single-clicking fingerprints, and double-clicking fingerprints on the fingerprint reader of the electronic device. Gravity input is the user's input of shaking the electronic device in a specific direction or a certain number of times. The key input corresponds to the user's input such as single-click input, double-click input, long-press input, and combination key input of the power button, volume button, and home button of the electronic device. Specifically, the embodiment of the present invention does not specifically limit the first input manner, and may be any achievable manner.
本发明实施例提供的内容分享方法,可以应用于电子设备在两个及以上的应用之间分享对象,以实现不同应用间分享内容。具体的,电子设备中可以安装有至少两个应用,以支持电子设备在不同应用之间分享对象。例如,电子设备在第一应用和第二应用之间分享对象。The content sharing method provided by the embodiment of the present invention can be applied to an electronic device to share objects between two or more applications, so as to realize content sharing between different applications. Specifically, at least two applications may be installed in the electronic device to support the electronic device to share objects between different applications. For example, the electronic device shares objects between the first application and the second application.
S202、响应于第一输入,电子设备根据第一对象得到第二对象。S202. In response to the first input, the electronic device obtains a second object according to the first object.
其中,第一对象中的内容与第二对象中的内容相同,第二对象中每个对象的对象类型可以为文本类型、图片类型、音频类型或视频类型。The content in the first object is the same as the content in the second object, and the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type.
具体的,第一对象的对象数量与第二对象的对象数量相同或不同。Specifically, the number of objects of the first object is the same as or different from the number of objects of the second object.
可选地,第二对象中对象的对象类型,可以由第一对象中对象的对象类型确定。例如,第二对象中一个对象的对象类型与第一对象中相应对象的对象类型相同。Optionally, the object type of the object in the second object may be determined by the object type of the object in the first object. For example, the object type of one object in the second object is the same as the object type of the corresponding object in the first object.
S203、电子设备接收第二输入。S203. The electronic device receives the second input.
其中,第二输入可以用于触发电子设备通过第二应用分享第二对象,如用于触发电子设备确定哪个应用为第二应用。The second input may be used to trigger the electronic device to share the second object through the second application, for example, to trigger the electronic device to determine which application is the second application.
类似的,对第二输入的输入方式的描述可以参照上述实施例中对第一输入的输入方式的相关描述,本发明实施例对此不再赘述。Similarly, for the description of the input mode of the second input, reference may be made to the related description of the input mode of the first input in the foregoing embodiment, which is not repeated in this embodiment of the present invention.
S204、响应于第二输入,电子设备通过第二应用发送第二对象。S204. In response to the second input, the electronic device sends the second object through the second application.
可选地,电子设备通过第二应用发送第二对象,具体为向第二应用中的某个通信联系人、收藏夹或文件夹中发送第二对象。Optionally, the electronic device sends the second object through the second application, specifically sending the second object to a certain communication contact, favorite or folder in the second application.
可选地,本发明实施例中,应用的应用类型可以包括新闻类型、社交类型、游戏类型、视频类型、和即时通讯类型等,本发明实施例对此不作具体限定。Optionally, in the embodiment of the present invention, the application type of the application may include a news type, a social type, a game type, a video type, and an instant messaging type, etc., which is not specifically limited in the embodiment of the present invention.
示例性的,第一应用的应用类型与第二应用的应用类型相同或不同。例如,第一应用的应用类型为新闻类型,第二应用的应用类型为即时通讯类型。Exemplarily, the application type of the first application is the same as or different from the application type of the second application. For example, the application type of the first application is a news type, and the application type of the second application is an instant messaging type.
可以理解的是,本发明实施例中,第一应用为发送侧应用,第二应用为接收侧应用。It can be understood that, in this embodiment of the present invention, the first application is a sending-side application, and the second application is a receiving-side application.
需要说明的是,当前电子设备通常以链接的形式在不同应用间分享内容。其中,用户通常对发送侧的应用中的转发控件(即仅针对该应用的转发控件)进行输入,以触发电子设备以链接的形式发送当前整个页面(如网页),或包括该应用的信息(如该应用的名称或表示)的消息体。然而,通常用户实际需求分享的仅仅是一个页面中的部分内容,如该页面中的某段文字、某张图片或某个视频片段。这样一来,电子设备在接收侧的应用中接收到的不是文字、图片或视频本身,而是链接,用户需要点击该链接获取该链接指示的整个页面,才能获取实际需求分享的内容。如此一来,在这个信息泛滥的时代,人们越来越懒于去点开过多的链接,选择忽视链接成为新的趋势。显然,当前电子设备展示不同应用间分享内容的过程不够灵活,使得用户查看不同应用间分享的内容的过程繁琐且耗时。It should be noted that current electronic devices usually share content between different applications in the form of links. Among them, the user usually inputs the forwarding control in the application on the sending side (that is, the forwarding control only for the application) to trigger the electronic device to send the current entire page (such as a web page) in the form of a link, or include the information of the application ( Such as the name or representation of the application). However, usually, what users actually need to share is only part of the content of a page, such as a certain text, a certain picture, or a certain video clip on the page. In this way, what the electronic device receives in the application on the receiving side is not the text, picture, or video itself, but a link. The user needs to click the link to obtain the entire page indicated by the link in order to obtain the content that is actually required to be shared. As a result, in this era of information flooding, people are becoming more and more lazy to click on too many links, and choosing to ignore links has become a new trend. Obviously, the current process of displaying shared content between different applications on electronic devices is not flexible enough, which makes the process of viewing content shared between different applications cumbersome and time-consuming for users.
可以理解的是,本发明实施例中,电子设备分享的第二对象为文本、图片、音频或视频,而不是链接。这样一来,接收侧的电子设备接收到的第二对象为内容本身,而不是第一应用中的整个页面或者包含第一应用的信息的消息体。It can be understood that, in the embodiment of the present invention, the second object shared by the electronic device is text, picture, audio, or video, rather than a link. In this way, the second object received by the electronic device on the receiving side is the content itself, rather than the entire page in the first application or the message body containing the information of the first application.
可选地,通过第二应用分享第二对象的电子设备(记为电子设备1),通过第二应用中接收第二对象的电子设备(记为电子设备2)相同或不同。Optionally, the electronic device (denoted as electronic device 1) that shares the second object through the second application, and the electronic device (denoted as electronic device 2) that receives the second object through the second application are the same or different.
其中,在电子设备1与电子设备2不同的情况下,电子设备1与电子设备2中均安装有第二应用,如均按安装有某个即时通讯应用(记为即时通讯应用1)。具体的,电子设备1和电子设备2可以与即时通讯应用1对应的通信服务器交互,以实现电子设备1与电子设备2中通过各自的即时通讯应用1转发对象。Wherein, when the electronic device 1 and the electronic device 2 are different, the second application is installed in the electronic device 1 and the electronic device 2, for example, a certain instant messaging application (denoted as the instant messaging application 1) is installed in both. Specifically, the electronic device 1 and the electronic device 2 can interact with the communication server corresponding to the instant messaging application 1 to realize that the electronic device 1 and the electronic device 2 forward objects through their respective instant messaging applications 1.
进一步的,可选地,电子设备可以在开启快速转发功能的情况下,执行本发明实施例提供的内容分享方法。例如,上述S201可以通过“电子设备在开启快速转发功能的情况下,接收对第一应用中的第一对象的第一输入”实现。Further, optionally, the electronic device may execute the content sharing method provided in the embodiment of the present invention when the fast forwarding function is enabled. For example, the foregoing S201 may be implemented by "the electronic device receives the first input of the first object in the first application when the fast forwarding function is enabled."
本发明实施例中,电子设备中可以设置启动快速转发功能的快捷方式,比如,电子设备的物理键组合、手势等,方便用户快速地开启/退出快捷转换功能。In the embodiment of the present invention, a shortcut for starting the fast forwarding function can be set in the electronic device, for example, the physical key combination of the electronic device, gestures, etc., so that the user can quickly turn on/out the shortcut conversion function.
可选地,本发明实施例中,电子设备中的快速转发功能可以为电子设备的系统级别的功能,即基于电子设备的全局应用的功能,而不是基于电子设备中的某一个应用的功能。其中,快速转发功能可以用于支持电子设备在不同应用间分享内容(即分享对象)。例如,快速转发功能可以提供基于全局应用的转发控件,以支持电子设备在不同应用间分享内 容。Optionally, in the embodiment of the present invention, the fast forwarding function in the electronic device may be a system-level function of the electronic device, that is, a function based on a global application of the electronic device, rather than a function based on a certain application in the electronic device. Among them, the fast forwarding function can be used to support electronic devices to share content (ie, sharing objects) between different applications. For example, the fast forwarding function can provide forwarding controls based on global applications to support electronic devices to share content among different applications.
需要说明的是,在电子设备的快速转发功能开启的情况下,用户对第一应用中第一对象的第一输入便可以触发电子设备根据第一对象得到第二对象,进而触发通过第二应用分享第二对象。此时,即使第一应用中没有设置单独的转发控件,电子设备也可以通过快速转发功能提供的系统级别的转发控件,通过第二应用分享第二对象。如此,有利于提高电子设备在不同应用间分享内容的可控性和灵活性。It should be noted that when the fast forwarding function of the electronic device is enabled, the user's first input to the first object in the first application can trigger the electronic device to obtain the second object according to the first object, and then trigger the use of the second application Share the second object. At this time, even if a separate forwarding control is not set in the first application, the electronic device can also share the second object through the second application through the system-level forwarding control provided by the fast forwarding function. In this way, it is beneficial to improve the controllability and flexibility of the electronic device sharing content between different applications.
进一步,可选地,在用户触发电子设备通过第二应用分享第二对象之后,电子设备可以关闭快速转发功能。例如,用户可以通过预设的物理键组合触发电子设备关闭快速转发功能。Further, optionally, after the user triggers the electronic device to share the second object through the second application, the electronic device may turn off the fast forwarding function. For example, the user can trigger the electronic device to turn off the fast forwarding function through a preset physical key combination.
需要说明的是,本发明实施例提供的内容分享方法,可以通过对第一应用中的第一对象的第一输入,触发根据第一对象得到第二对象。其中,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型与可以为文本类型、图片类型、音频类型或视频类型。也就是说,电子设备可以在不同应用中分享对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是将对象以链接的形式分享。如此,电子设备可以通过第二应用展示对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是展示包括该对象的链接。如此,使得用户可以直接查看或者操作不同应用间分享的对象,而不需要点击链接再在链接查找相应对象。进而,使得分享内容的发送用户可以聚焦在自己想要分享的信息部分,忽略掉其他无用信息;并且,接收用户通过电子设备接收到的就是发送用户想分享的信息本身,直观体现发送用户的意图。从而,提高了电子设备在不同应用间分享内容的准确性,并提高了用户查看不同应用间分享的内容的便捷性。It should be noted that the content sharing method provided by the embodiment of the present invention can trigger the acquisition of the second object based on the first object by the first input to the first object in the first application. Among them, the object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type. Types of. In other words, the electronic device can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links. In this way, the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object. In this way, the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link. Furthermore, the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention . Thus, the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
可选地,本发明实施例中,第一输入包括第一子输入和第二子输入。示例性的,如图3所示,上述S202可以通过S202a和S202b实现:Optionally, in this embodiment of the present invention, the first input includes a first sub-input and a second sub-input. Exemplarily, as shown in FIG. 3, the foregoing S202 may be implemented through S202a and S202b:
S202a、响应于第一子输入,电子设备获取第一对象。S202a. In response to the first sub-input, the electronic device acquires the first object.
示例性的,第一子输入为对第一对象的输入,如第一子输入为用户对第一应用中的文字、图片、音频或视频的长按并选择的输入。Exemplarily, the first sub-input is an input to the first object, for example, the first sub-input is an input in which the user long presses and selects a text, picture, audio, or video in the first application.
例如,在第一对象中的一个对象为文本的情况下,第一子输入可以包括用户在文字上 的滑动输入,即选中想要分享的文字的输入。此时,电子设备可以以特定的方式显示文本,如控制文字的背景高亮显示。For example, when one of the first objects is text, the first sub-input may include the user's sliding input on the text, that is, the input of selecting the text that you want to share. At this time, the electronic device can display the text in a specific manner, such as highlighting the background of the control text.
例如,在第一对象中的一个对象为图片的情况下,第一子输入可以包括用户对图片的长按输入,即选中想要分享的图片的输入。此时,电子设备可以以特定的方式显示文本,如控制图片的边框高亮显示。For example, in the case where one of the first objects is a picture, the first sub-input may include the user's long-press input on the picture, that is, the input of selecting the picture that you want to share. At this time, the electronic device can display the text in a specific way, such as controlling the frame of the picture to be highlighted.
并且,在用户对第一对象进行第一输入之后,电子设备可以展示转发选择框,以支持用户选择某个应用为第二应用,进而触发通过第二应用分享由第一对象得到的第二对象。In addition, after the user performs the first input to the first object, the electronic device may display a forwarding selection box to support the user to select an application as the second application, thereby triggering the sharing of the second object obtained from the first object through the second application .
也就是说,用户可以通过快捷键或其他方式激活电子设备的快速转发功能。In other words, the user can activate the fast forwarding function of the electronic device through a shortcut key or other methods.
具体的,对于文本(如文字),当用户对文本进行选择输入时,电子设备可以自动选中并复制该文本,再弹出转发选择框。当用户通过转发选择框选择要转发到的第二应用之后,电子设备通过第二应用分享的是复制的文本。Specifically, for text (such as text), when the user selects and inputs the text, the electronic device can automatically select and copy the text, and then pop up the forwarding selection box. After the user selects the second application to be forwarded to through the forwarding selection box, the electronic device shares the copied text through the second application.
对于图片,当用户长按某个图片,电子设备可以自动选中该图片,并弹出转发选择框,当用户通过转发选择框选择要转发到的第二应用之后,通过第二应用中转发的是选中的图片。For a picture, when the user long presses a picture, the electronic device can automatically select the picture, and a forwarding selection box will pop up. When the user selects the second application to be forwarded to through the forwarding selection box, the one that is forwarded through the second application is selected picture of.
对于视频,当用户长按某个视频,电子设备可以自动开始录制,当用户松开,录制停止,并弹出转发选择框,当用户通过转发选择框选择要转发到的第二应用之后,在第二应用中转发的是录制了那段视频。For video, when the user long presses a certain video, the electronic device can automatically start recording. When the user releases it, the recording stops, and a forwarding selection box pops up. When the user selects the second application to be forwarded to through the forwarding selection box, in the first The second application forwarded was the video that was recorded.
S202b、响应于第二子输入,电子设备依据目标信息,将第一对象处理为第二对象。S202b. In response to the second sub-input, the electronic device processes the first object into the second object according to the target information.
可选地,电子设备可以提供规则选择控件,用于支持用户电子设备确定目标信息。Optionally, the electronic device may provide a rule selection control to support the user's electronic device to determine the target information.
其中,第二子输入可以为对规则选择控件的输入。即,用户可以控制电子设备处理得到的第二对象的对象数量和对象类型中的至少一项。例如,用户可以选择是否将第一对象中多个不同类型的对象合并为某种类型的第二对象。Wherein, the second sub-input may be an input to the rule selection control. That is, the user can control at least one of the number of objects and the object types of the second objects processed by the electronic device. For example, the user can choose whether to merge multiple objects of different types in the first object into a certain type of second object.
进一步,可选地,本发明实施例中提供的内容分享方法还可以包括S205:Further, optionally, the content sharing method provided in the embodiment of the present invention may further include S205:
S205、响应于第一子输入,电子设备显示至少一个应用标识。S205. In response to the first sub-input, the electronic device displays at least one application identifier.
其中,第二子输入为对至少一个应用标识中的应用标识的输入,一个应用标识用于指示一个应用,目标标识用于指示第二应用。Wherein, the second sub-input is an input of an application identifier in at least one application identifier, one application identifier is used to indicate one application, and the target identifier is used to indicate a second application.
可选地,电子设备可以采用一个转发选择框,显示至少一个应用标识。Optionally, the electronic device may use a forwarding selection box to display at least one application identifier.
本发明实施例提供的内容分享方法,可以支持用户通过第一子输入根据自身需求选择待分享的第一对象。并且,支持用户通过第二子输入触发电子设备按照用户选择的目标信息处理得到第二对象。如此,有利于提高电子设备处理对象的可控性,使得电子设备在不同应用间分享的对象为用户实际需求分享的对象。The content sharing method provided by the embodiment of the present invention can support the user to select the first object to be shared according to his own needs through the first sub-input. In addition, the user is supported to trigger the electronic device to process the second object according to the target information selected by the user through the second sub-input. In this way, it is beneficial to improve the controllability of the object processed by the electronic device, so that the object shared by the electronic device among different applications is the object that the user actually needs to share.
在一种可能的实现方式中,本发明实施例提供的内容分享方法,上述实施例中的“依据目标信息,将所述第一对象处理为第二对象”可以通过S1或S2实现:In a possible implementation manner, in the content sharing method provided by the embodiment of the present invention, the "processing the first object into the second object according to the target information" in the above embodiment can be implemented through S1 or S2:
S1、电子设备将第一对象作为第二对象,第一对象的对象输入量与第二对象的数量相同。S1. The electronic device regards the first object as the second object, and the object input quantity of the first object is the same as the quantity of the second object.
具体的,在S1中第一对象的对象数量大于或等于1。Specifically, the number of objects of the first object in S1 is greater than or equal to one.
其中,上述S1中的方式可以记为方式1。方式1中,目标信息用于指示电子设备不合并多个第一对象。Among them, the mode in S1 above can be denoted as mode 1. In Manner 1, the target information is used to indicate that the electronic device does not merge multiple first objects.
S2、电子设备将第一对象中的对象合并为第二对象,第一对象的对象数量大于1,第二对象的对象数量等于1。S2. The electronic device merges the objects in the first object into the second object, the number of objects of the first object is greater than one, and the number of objects of the second object is equal to one.
其中,上述S2中的方式可以记为方式2。方式2中,目标信息用于指示电子设备合并第一对象中的多个对象。Among them, the mode in S2 above can be denoted as mode 2. In Manner 2, the target information is used to instruct the electronic device to merge multiple objects in the first object.
其中,本发明实施例提供的内容分享方法,可以支持电子设备通过不同的目标信息处理第二对象。如此,有利于提高电子设备处理对象的可控性和灵活性。Among them, the content sharing method provided by the embodiment of the present invention can support the electronic device to process the second object through different target information. In this way, it is beneficial to improve the controllability and flexibility of the processing object of the electronic device.
可选地,上述S2可以通过S2a实现:Optionally, the above S2 can be implemented through S2a:
S2a、电子设备根据第一对象中的每个对象的对象类型,将第一对象中的对象合并为第二对象。S2a. The electronic device merges the objects in the first object into the second object according to the object type of each object in the first object.
具体的,目标信息用于指示电子设备通过执行S2a处理得到第二对象。Specifically, the target information is used to instruct the electronic device to obtain the second object by performing S2a processing.
进一步,可选地,在本发明实施例提供的应用场景1中,在第一对象中的所有对象的对象类型均为第一对象类型的情况下,第二对象的对象类型与第一对象类型相同或不同。Further, optionally, in the application scenario 1 provided by the embodiment of the present invention, when the object types of all the objects in the first object are the first object type, the object type of the second object is the same as that of the first object type. Same or different.
示例性的,在第一对象中的所有对象的对象类型均为文本类型的情况下,电子设备处理得到的第二对象的对象类型可以为文本类型或图片类型,即电子设备多段文本合成为一张图片。在第一对象中的所有对象的对象类型均为图片的情况下,电子设备处理得到的第二对象的对象类型可以为图片类型,即电子设备将多张图片合成为一张图片。在第一对象 中的所有对象的对象类型均为音频的情况下,电子设备处理得到的第二对象的对象类型可以为音频类型,即电子设备将多段音频合成为一段音频。在第一对象中的所有对象的对象类型均为视频的情况下,电子设备处理得到的第二对象的对象类型可以为视频类型,即电子设备将多段音频合成为一段视频。Exemplarily, when the object types of all the objects in the first object are text types, the object types of the second objects processed by the electronic device may be text types or picture types, that is, multiple pieces of text of the electronic device are combined into one Pictures. In the case where the object types of all objects in the first object are pictures, the object type of the second object processed by the electronic device may be a picture type, that is, the electronic device synthesizes multiple pictures into one picture. In the case where the object types of all objects in the first object are audio, the object type of the second object processed by the electronic device may be an audio type, that is, the electronic device synthesizes multiple pieces of audio into one piece of audio. When the object type of all objects in the first object is video, the object type of the second object processed by the electronic device may be a video type, that is, the electronic device synthesizes multiple pieces of audio into one piece of video.
进一步,可选地,在本发明实施例提供的应用场景2中,在第一对象中包括不同对象类型的对象的情况下,第二对象的对象类型为第二对象类型;其中,第二对象类型为第一对象中的一个对象的对象类型。Further, optionally, in the application scenario 2 provided by the embodiment of the present invention, when the first object includes objects of different object types, the object type of the second object is the second object type; wherein, the second object The type is the object type of one of the first objects.
可选地,本发明实施例中,应用场景2可以包括以下子场景:Optionally, in this embodiment of the present invention, application scenario 2 may include the following sub-scenarios:
子场景1:在第一对象中包括文本和图片的情况下,第二对象类型为图片类型。即电子设备将文本先处理为图片,再合成多张图片为一张图片。Sub-scene 1: In the case where the first object includes text and pictures, the second object type is a picture type. That is, the electronic device first processes the text into a picture, and then synthesizes multiple pictures into one picture.
子场景2:在第一对象中包括文本和音频的情况下,第二对象类型为音频类型。Sub-scene 2: In the case where the first object includes text and audio, the second object type is an audio type.
子场景3:在第一对象中包括图片和音频的情况下,第二对象类型为音频类型。Sub-scene 3: In the case where the first object includes pictures and audio, the second object type is an audio type.
子场景4:在第一对象中包括文本、图片和音频的情况下,第二对象类型为音频类型。Sub-scene 4: In the case where the first object includes text, picture, and audio, the second object type is an audio type.
可选地,在第二对象类型为视频类型的情况下,第一对象中对象类型为文本/图片的对象被处理为第二对象的缩略图或第二对象中的内容部分。例如,在第二对象为一首歌曲的情况下,文本的第一对象被处理为第二对象的歌词,图片的第一对象被处理为第二对象的播放背景图片。Optionally, when the second object type is a video type, an object in the first object whose object type is text/picture is processed as a thumbnail of the second object or a content part in the second object. For example, when the second object is a song, the first object of the text is processed as the lyrics of the second object, and the first object of the picture is processed as the playback background picture of the second object.
子场景5:在第一对象中包括文本和视频的情况下,第二对象类型为视频类型。Sub-scene 5: In the case where the first object includes text and video, the second object type is a video type.
子场景6:在第一对象中包括图片和视频的情况下,第二对象类型为视频类型。Sub-scene 6: In the case where the first object includes pictures and videos, the second object type is a video type.
子场景7:在第一对象中包括文本、图片和视频的情况下,第二对象类型为视频类型。Sub-scene 7: In the case where the first object includes text, picture, and video, the second object type is a video type.
子场景8:在第一对象中包括文本、图片、音频和视频的情况下,第二对象类型为视频类型。Sub-scene 8: In the case where the first object includes text, picture, audio, and video, the second object type is a video type.
可以理解的是,在不同对象类型的第一对象中包括视频的情况下,第二对象类型为视频类型;在不同对象类型的第一对象中包括音频而不包括视频的情况下,第二对象类型为音频类型;在不同对象类型的第一对象中包括图片而不包括音频和视频的情况下,第二对象类型为图片类型。It is understandable that when the first objects of different object types include video, the second object type is the video type; when the first objects of different object types include audio but not video, the second object The type is an audio type; when the first object of different object types includes pictures but not audio and video, the second object type is a picture type.
可选地,在第二对象类型为视频的情况下,在第二对象类型为视频类型的情况下,将 第一对象中第三对象类型的一个对象作为第二对象的第一帧图像,第三对象类型为文本类型或图片类型。Optionally, when the second object type is a video, and when the second object type is a video type, an object of the third object type in the first object is used as the first frame image of the second object. The three object types are text type or picture type.
具体的,在第二对象类型为视频类型的情况下,第一对象中包括对象类型为视频类型的对象,即第一对象中包括视频(记为原始视频)。Specifically, when the second object type is a video type, the first object includes an object whose object type is a video type, that is, the first object includes a video (denoted as an original video).
其中,电子设备可以将第一对象中对象类型为文本类型的对象,先处理为一张图片,再将该图片作为第二对象的第一帧图像,即将该图片插入至原始视频得到第二对象。或者,电子设备可以将第一对象中对象类型为图片类型的对象,直接作为第二对象的第一帧图像。Wherein, the electronic device may first process an object whose object type is a text type in the first object as a picture, and then use the picture as the first frame image of the second object, that is, insert the picture into the original video to obtain the second object . Alternatively, the electronic device may directly use an object whose object type is a picture type in the first object as the first frame image of the second object.
可选地,电子设备可以将第一对象中对象类型为文本类型的对象处理得到的图片,以及将第一对象中对象类型为图片类型的对象分别插入至原始视频中的不同位置,得到第二对象。Optionally, the electronic device may insert a picture obtained by processing an object whose object type is a text type in the first object, and an object whose object type is a picture type in the first object into different positions in the original video, respectively, to obtain the second Object.
可选地,电子设备可以将第一对象中对象类型为文本类型的对象处理得到的图片,以及第一对象中对象类型为图片类型的对象先合成为一张图片,再将这张图片插入至原始视频中得到第二对象。Optionally, the electronic device may synthesize a picture obtained by processing an object whose object type is a text type in the first object, and an object whose object type is a picture type in the first object, into a picture, and then insert the picture into The second object is obtained in the original video.
可选地,在第一对象的对象数量大于1的情况下,第一对象中的对象按照目标版式排列,目标版式包括目标排列顺序和目标排列布局中的至少一项。Optionally, when the number of objects of the first object is greater than 1, the objects in the first object are arranged according to a target layout, and the target layout includes at least one of a target arrangement sequence and a target arrangement layout.
可选地,目标排列布局可以包括叠加排列、从左到右排列、从上到下排列、按照品字形排列、按照田字形排列、以及按照M×N的矩阵排列等,本发明实施例对此不作具体限定,可以根据用户的实际需求确定,M和N均为预设的正整数。Optionally, the target arrangement layout may include superimposed arrangement, arrangement from left to right, arrangement from top to bottom, arrangement in the shape of a product, arrangement in the shape of a field, and arrangement in an M×N matrix. There is no specific limitation, and it can be determined according to the actual needs of the user. Both M and N are preset positive integers.
可选地,电子设备提供的目标信息选择控件,不仅可以用户支持用户选择是否合并多个第一对象以及合并为哪种对象类型的对象,还用于支持用户选择合并多个第一对象的目标版式。即用户可以通过第二子输入选择是否合并第一对象中的对象以及合并第一对象中的对象的目标版式。如此,可以使得电子设备在不同应用间分享对象之后,向用户展示的对象的版式为符合用户需求的版式,提高了人机交互性能。Optionally, the target information selection control provided by the electronic device can not only support the user to select whether to merge multiple first objects and which object type to merge into, but also support the user to select the target of merging multiple first objects. format. That is, the user can select whether to merge the objects in the first object and the target layout of the objects in the first object through the second sub-input. In this way, after the electronic device shares the object between different applications, the format of the object displayed to the user is a format that meets the needs of the user, which improves the human-computer interaction performance.
可选地,用户通过第一子输入选中第一对象的同时,可以编辑第一对象。如,剪裁对象类型为图片类型的对象,或剪接对象类型为音频类型或视频类型的对象。Optionally, the user can edit the first object while selecting the first object through the first sub-input. For example, the clip object type is an object of the picture type, or the clip object type is an object of the audio type or video type.
示例性的,电子设备在开启快速转发功能之后,若用户在第一应用中通过在文字上滑 动,选择文本之后,电子设备可以选中相应文本并将该文本背景高亮显示。在用户触发电子设备多段文本的情况下,可以该多段文本自动拼接成一段文本。另外,电子设备在选中文本之后,可以该文本周围显示功能键,以支持用户选择以文本形式分享,还是将文本先转换成图片再分享。随后,用户可以在转发选择框中选中第二应用的应用标识,触发电子设备通过第二应用中分享处理后的文字或图片。Exemplarily, after the electronic device turns on the fast forwarding function, if the user selects the text by sliding on the text in the first application, the electronic device may select the corresponding text and highlight the background of the text. In the case that the user triggers the electronic device with multiple texts, the multiple texts can be automatically spliced into a text. In addition, after the electronic device selects the text, function keys may be displayed around the text to support the user to choose to share in the form of text or convert the text into a picture before sharing. Subsequently, the user can select the application identifier of the second application in the forwarding selection box to trigger the electronic device to share the processed text or picture through the second application.
示例性的,电子设备在开启快速转发功能之后,若用户在第一应用中点击图片,则该图片四周出现一个高亮的矩形框。用户拖动矩形框的一角,可以缩放该图片;按着矩形框的中间部分,滑动可以移动矩形框的位置。如此,可以截取该图片的任一部分分享,也可以分享整个图片。若用户在第一应用中点击多张图片,则电子设备可以通过第二应用分享该多张图片,该多张图片中的每张图片都可以由用户编辑。具体的,用户触发电子设备选中多个图片,电子设备在这多张图片的周围可以显示功能键,以支持用户可以选择触发电子设备直接分享多张图片,或选择将所有图片拼接成一个长图再分享。其中,图片的目标排列布局和目标排列顺序可以由用户设定。随后,用户可以在转发选择框中选中第二应用的应用标识,触发电子设备通过第二应用分享处理后的图片。Exemplarily, after the electronic device turns on the fast forwarding function, if the user clicks on a picture in the first application, a highlighted rectangular frame appears around the picture. The user drags a corner of the rectangular box to zoom the picture; press the middle part of the rectangular box and slide to move the position of the rectangular box. In this way, any part of the picture can be intercepted and shared, or the entire picture can be shared. If the user clicks on multiple pictures in the first application, the electronic device can share the multiple pictures through the second application, and each picture in the multiple pictures can be edited by the user. Specifically, the user triggers the electronic device to select multiple pictures, and the electronic device can display function keys around the multiple pictures, so that the user can choose to trigger the electronic device to directly share multiple pictures, or choose to splice all the pictures into one long picture. Share again. Among them, the target arrangement layout and the target arrangement order of the pictures can be set by the user. Subsequently, the user can select the application identifier of the second application in the forwarding selection box to trigger the electronic device to share the processed picture through the second application.
可选地,本发明实施例中,上述S202a可以通过S202a-1或S202a-2实现:Optionally, in this embodiment of the present invention, the foregoing S202a may be implemented through S202a-1 or S202a-2:
S202a-1、电子设备通过录制第一应用中的目标视频得到第三对象,并获取第一对象中除第三对象之外的其他对象。S202a-1. The electronic device obtains a third object by recording the target video in the first application, and obtains objects other than the third object in the first object.
S202a-2、电子设备根据视频时间轴截取目标视频得到第三对象,并获取第一对象中除第三对象之外的其他对象。S202a-2. The electronic device intercepts the target video according to the video time axis to obtain a third object, and obtains objects other than the third object in the first object.
示例性的,电子设备在开启快速转发功能之后,若用户在第一应用中点击选中某个视频(如目标视频),则电子设备可以在该视频四周出现一个高亮矩形框,显示一个录制功能键。如果用户只想转发该视频的一部分,则可以点录制功能键,触发电子设备开始录制该视频中的视频片段。具体的,用户第一次点击录制功能键,触发电子设备开始录制,第二次点击录制功能键,触发电子设备开始停止录制。其中,用户可以触发电子设备录制多个视频片段,并将该多个视频片段自动拼接成一个视频片段。或者,用户如果想转发整个视频,可以触发电子设备直接转发原始的视频,而不用操作录制功能键。Exemplarily, after the electronic device turns on the fast forwarding function, if the user clicks to select a certain video (such as a target video) in the first application, the electronic device may display a highlighted rectangle around the video to display a recording function key. If the user only wants to forward a part of the video, he can click the recording function key to trigger the electronic device to start recording the video clip in the video. Specifically, the user clicks the recording function key for the first time to trigger the electronic device to start recording, and clicks the recording function key for the second time to trigger the electronic device to stop recording. Among them, the user can trigger the electronic device to record multiple video clips, and automatically stitch the multiple video clips into one video clip. Or, if the user wants to forward the entire video, he can trigger the electronic device to forward the original video directly without operating the recording function key.
另外,用户可以通过调节第一应用中的视频(如目标视频)的视频时间轴,触发电子 设备选择要截取视频片段的开始和结束位置,使得电子设备的系统自动截取这段视频,以选中对象类型为视频的第一对象。或者,用户可以在第一应用中的视频中设置矩形框区域,以选择需要录制的视频片段的开始位置和结束位置,以触发电子设备对该区域内特定时间段内的视频片段进行快速截取,这种方式比录制要快。In addition, the user can adjust the video timeline of the video (such as the target video) in the first application to trigger the electronic device to select the start and end positions of the video clip to be intercepted, so that the system of the electronic device automatically intercepts this video to select the object The type is the first object of the video. Alternatively, the user can set a rectangular frame area in the video in the first application to select the start position and end position of the video clip to be recorded, so as to trigger the electronic device to quickly capture the video clip within a specific time period in the area. This method is faster than recording.
随后,用户可以在转发选择框中选中第二应用的应用标识,触发电子设备通过第二应用分享处理后的视频片段。Subsequently, the user can select the application identifier of the second application in the forwarding selection box to trigger the electronic device to share the processed video clip through the second application.
其中,本发明实施例提供的内容分享方法,可以支持电子设备快捷地获取待分享的对象,提高了电子设备分享内容的人机交互性能。Among them, the content sharing method provided by the embodiment of the present invention can support the electronic device to quickly obtain the object to be shared, and improve the human-computer interaction performance of the electronic device to share content.
如图4所示,为本发明实施例提供的一种电子设备的结构示意图。图4中示出的电子设备40包括:接收模块41、处理模块42和发送模块43;接收模块41,用于接收对第一应用的界面中的第一对象的第一输入;处理模块42,用于响应于接收模块41接收的第一输入,根据第一对象得到第二对象;接收模块41,还用于接收第二输入;发送模块42,用于响应于接收模块41接收的第二输入,通过第二应用发送处理模块42得到的第二对象;其中,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型。As shown in FIG. 4, it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device 40 shown in FIG. 4 includes: a receiving module 41, a processing module 42, and a sending module 43; a receiving module 41 for receiving a first input to a first object in an interface of a first application; a processing module 42, Used to respond to the first input received by the receiving module 41 to obtain the second object according to the first object; the receiving module 41 is also used to receive the second input; the sending module 42 is used to respond to the second input received by the receiving module 41 , Send the second object obtained by the processing module 42 through the second application; wherein the object type of each object in the first object is text type, picture type, audio type or video type, and the object type of each object in the second object The object type is text type, picture type, audio type or video type.
可选地,第一输入包括第一子输入和第二子输入;处理模块42,具体用于响应于第一子输入,获取第一对象;响应于第二子输入,依据目标信息,将第一对象处理为第二对象;其中,目标信息用于指示以下至少一项:第二对象中的每个对象的对象类型,第二对象的对象数量。Optionally, the first input includes a first sub-input and a second sub-input; the processing module 42 is specifically configured to obtain the first object in response to the first sub-input; An object is processed as a second object; where the target information is used to indicate at least one of the following: the object type of each object in the second object, and the number of objects of the second object.
可选地,处理模块42,具体用于将第一对象作为第二对象,第一对象的对象数量与第二对象的对象数量相等;或者,将第一对象中的对象合并为第二对象,第一对象的对象数量大于1,第二对象的对象数量为1。Optionally, the processing module 42 is specifically configured to use the first object as the second object, and the number of objects of the first object is equal to the number of objects of the second object; or, to merge the objects in the first object into the second object, The number of objects of the first object is greater than one, and the number of objects of the second object is one.
可选地,处理模块42,具体用于根据第一对象中的每个对象的对象类型,将第一对象中的对象合并为第二对象。Optionally, the processing module 42 is specifically configured to merge the objects in the first object into the second object according to the object type of each object in the first object.
可选地,在第一对象中的所有对象的对象类型均为第一对象类型的情况下,第二对象的对象类型与第一对象类型相同或不同;在第一对象中包括不同对象类型的对象的情况下,第二对象的对象类型为第二对象类型;其中,第二对象类型为第一对象中的一个对象 的对象类型。Optionally, when the object types of all objects in the first object are the first object type, the object type of the second object is the same as or different from the first object type; the first object includes different object types In the case of an object, the object type of the second object is the second object type; wherein, the second object type is the object type of one of the first objects.
可选地,在第二对象类型为视频类型的情况下,将第一对象中第三对象类型的一个对象作为第二对象的第一帧图像,第三对象类型为文本类型或图片类型。Optionally, when the second object type is a video type, an object of the third object type in the first object is taken as the first frame image of the second object, and the third object type is a text type or a picture type.
可选地,在第一对象的对象数量大于1的情况下,第一对象中的对象按照目标版式排列,目标版式包括目标排列顺序和目标排列布局中的至少一项。Optionally, when the number of objects of the first object is greater than 1, the objects in the first object are arranged according to a target layout, and the target layout includes at least one of a target arrangement sequence and a target arrangement layout.
可选地,第一对象中包括视频类型的第三对象;处理模块42,具体用于通过录制第一应用中的目标视频得到第三对象,并获取第一对象中除第三对象之外的其他对象;或者,根据视频时间轴截取目标视频得到第三对象,并获取第一对象中除第三对象之外的其他对象。Optionally, the first object includes a third object of a video type; the processing module 42 is specifically configured to obtain the third object by recording the target video in the first application, and obtain the third object in the first object except the third object Other objects; or, intercept the target video according to the video timeline to obtain the third object, and obtain other objects in the first object except the third object.
本发明实施例提供的电子设备,可以通过对第一应用的界面中的第一对象的第一输入,触发根据第一对象得到第二对象。其中,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型与可以为文本类型、图片类型、音频类型或视频类型。也就是说,电子设备可以在不同应用中分享对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是将对象以链接的形式分享。如此,电子设备可以通过第二应用展示对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是展示包括该对象的链接。如此,使得用户可以直接查看或者操作不同应用间分享的对象,而不需要点击链接再在链接查找相应对象。进而,使得分享内容的发送用户可以聚焦在自己想要分享的信息部分,忽略掉其他无用信息;并且,接收用户通过电子设备接收到的就是发送用户想分享的信息本身,直观体现发送用户的意图。从而,提高了电子设备在不同应用间分享内容的准确性,并提高了用户查看不同应用间分享的内容的便捷性。The electronic device provided by the embodiment of the present invention can trigger the acquisition of the second object according to the first object through the first input to the first object in the interface of the first application. Among them, the object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type. Types of. In other words, the electronic device can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links. In this way, the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object. In this way, the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link. Furthermore, the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention . Thus, the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
本发明实施例提供的电子设备40能够实现上述内容分享方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device 40 provided in the embodiment of the present invention can implement the various processes implemented by the electronic device in the above-mentioned content sharing method embodiment. To avoid repetition, details are not described herein again.
图5为本发明实施例提供的一种电子设备的硬件结构示意图,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图5中示出的电子设备结构并不构成对电子设备的限 定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。5 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
其中,处理器110,用于控制用户输入单元107接收对第一应用的界面中的第一对象的第一输入;处理器110,还用于响应于用户输入单元107接收的第一输入,根据第一对象得到第二对象;处理器110,还用于控制用户输入单元107接收第二输入;处理器110,还用于响应于用户输入单元107接收的第二输入,通过第二应用分享第二对象;其中,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型。The processor 110 is configured to control the user input unit 107 to receive the first input of the first object in the interface of the first application; the processor 110 is also configured to respond to the first input received by the user input unit 107, according to The first object obtains the second object; the processor 110 is further configured to control the user input unit 107 to receive the second input; the processor 110 is further configured to respond to the second input received by the user input unit 107, and share the second input through the second application Two objects; among them, the object type of each object in the first object is text type, picture type, audio type or video type, and the object type of each object in the second object is text type, picture type, audio type or Video type.
本发明实施例提供的电子设备,可以通过对第一应用的界面中的第一对象的第一输入,触发根据第一对象得到第二对象。其中,第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,第二对象中的每个对象的对象类型与可以为文本类型、图片类型、音频类型或视频类型。也就是说,电子设备可以在不同应用中分享对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是将对象以链接的形式分享。如此,电子设备可以通过第二应用展示对象类型为文本类型、图片类型、音频类型或视频类型的对象,而不是展示包括该对象的链接。如此,使得用户可以直接查看或者操作不同应用间分享的对象,而不需要点击链接再在链接查找相应对象。进而,使得分享内容的发送用户可以聚焦在自己想要分享的信息部分,忽略掉其他无用信息;并且,接收用户通过电子设备接收到的就是发送用户想分享的信息本身,直观体现发送用户的意图。从而,提高了电子设备在不同应用间分享内容的准确性,并提高了用户查看不同应用间分享的内容的便捷性。The electronic device provided by the embodiment of the present invention can trigger the acquisition of the second object according to the first object through the first input to the first object in the interface of the first application. Among them, the object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the object type of each object in the second object can be a text type, a picture type, an audio type, or a video type. Types of. In other words, the electronic device can share objects of text type, picture type, audio type, or video type in different applications, instead of sharing the objects in the form of links. In this way, the electronic device may display an object whose object type is a text type, a picture type, an audio type, or a video type through the second application, instead of displaying a link including the object. In this way, the user can directly view or manipulate the objects shared between different applications without having to click the link and then search for the corresponding object in the link. Furthermore, the sending user of shared content can focus on the part of the information they want to share, ignoring other useless information; and what the receiving user receives through the electronic device is the information itself that the sending user wants to share, which intuitively reflects the sending user’s intention . Thus, the accuracy of sharing content between different applications by the electronic device is improved, and the convenience for users to view the content shared between different applications is improved.
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电 子邮件、浏览网页和访问流式媒体等。Electronic devices provide users with wireless broadband Internet access through the network module 102, such as helping users to send and receive e-mails, browse web pages, and access streaming media.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板 1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图5中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 5, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device with the electronic device 100. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处 理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
电子设备100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components. Preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 100 includes some functional modules not shown, which will not be repeated here.
可选地,本发明实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述内容分享方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides an electronic device, including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and the computer program is executed by the processor 110 Each process of the above-mentioned content sharing method embodiment can be realized at a time, and the same technical effect can be achieved. In order to avoid repetition, it will not be repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述内容分享方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned content sharing method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、内容分享方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、内容分享方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、内容分享方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, content sharing method, article or device including a series of elements not only includes those Elements, but also include other elements that are not explicitly listed, or elements inherent to this process, content sharing method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, content sharing method, article or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例内容分享方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机, 计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的内容分享方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the content sharing method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be achieved by hardware, but in many cases the former is Better implementation. Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions for making an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the content sharing method described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (18)

  1. 一种内容分享方法,所述方法包括:A content sharing method, the method includes:
    接收对第一应用的界面中的第一对象的第一输入;Receiving the first input of the first object in the interface of the first application;
    响应于所述第一输入,根据所述第一对象得到第二对象;In response to the first input, obtaining a second object according to the first object;
    接收第二输入;Receive the second input;
    响应于所述第二输入,通过第二应用发送所述第二对象;In response to the second input, sending the second object through a second application;
    其中,所述第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,所述第二对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型。The object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the object type of each object in the second object is a text type, a picture type, and an audio type. Or video type.
  2. 根据权利要求1所述的方法,其中,所述第一输入包括第一子输入和第二子输入;The method of claim 1, wherein the first input includes a first sub-input and a second sub-input;
    所述响应于所述第一输入,根据所述第一对象得到第二对象,包括:The obtaining a second object according to the first object in response to the first input includes:
    响应于所述第一子输入,获取所述第一对象;Obtaining the first object in response to the first sub-input;
    响应于所述第二子输入,依据目标信息,将所述第一对象处理为所述第二对象;In response to the second sub-input, processing the first object as the second object according to target information;
    其中,所述目标信息用于指示以下至少一项:所述第二对象中的每个对象的对象类型,所述第二对象的对象数量。Wherein, the target information is used to indicate at least one of the following: the object type of each of the second objects, and the number of objects of the second objects.
  3. 根据权利要求2所述的方法,其中,所述依据目标信息,将所述第一对象处理为所述第二对象,包括:The method according to claim 2, wherein the processing the first object into the second object according to the target information comprises:
    将所述第一对象作为所述第二对象,所述第一对象的对象数量与所述第二对象的对象数量相等;Taking the first object as the second object, and the number of objects of the first object is equal to the number of objects of the second object;
    或者,or,
    将所述第一对象中的对象合并为所述第二对象,所述第一对象的对象数量大于1,所述第二对象的对象数量为1。The objects in the first object are merged into the second object, the number of objects of the first object is greater than one, and the number of objects of the second object is one.
  4. 根据权利要求3所述的方法,其中,所述将所述第一对象中的对象合并为所述第二对象,包括:The method according to claim 3, wherein said merging objects in said first object into said second object comprises:
    根据所述第一对象中的每个对象的对象类型,将所述第一对象中的对象合并为所述第二对象。According to the object type of each object in the first object, the objects in the first object are merged into the second object.
  5. 根据权利要求4所述的方法,其中,The method of claim 4, wherein:
    在所述第一对象中的所有对象的对象类型均为第一对象类型的情况下,所述第二对象的对象类型与所述第一对象类型相同或不同;In a case where the object types of all objects in the first object are the first object type, the object type of the second object is the same as or different from the first object type;
    在所述第一对象中包括不同对象类型的对象的情况下,所述第二对象的对象类型为第二对象类型;In the case that the first object includes objects of different object types, the object type of the second object is a second object type;
    其中,所述第二对象类型为所述第一对象中的一个对象的对象类型。Wherein, the second object type is an object type of one of the first objects.
  6. 根据权利要求5所述的方法,其中,在所述第二对象类型为视频类型的情况下,将所述第一对象中第三对象类型的一个对象作为所述第二对象的第一帧图像,所述第三对象类型为文本类型或图片类型。The method according to claim 5, wherein when the second object type is a video type, an object of a third object type in the first object is used as the first frame image of the second object , The third object type is a text type or a picture type.
  7. 根据权利要求3所述的方法,其中,在所述第一对象的对象数量大于1的情况下,所述第一对象中的对象按照目标版式排列,所述目标版式包括目标排列顺序和目标排列布局中的至少一项。The method according to claim 3, wherein, in the case that the number of objects of the first object is greater than 1, the objects in the first object are arranged according to a target format, and the target format includes a target arrangement order and a target arrangement At least one item in the layout.
  8. 根据权利要求2所述的方法,其中,所述第一对象中包括视频类型的第三对象;The method according to claim 2, wherein the first object includes a third object of a video type;
    所述获取所述第一对象,包括:The obtaining the first object includes:
    通过录制所述第一应用中的目标视频得到所述第三对象,并获取所述第一对象中除所述第三对象之外的其他对象;Obtain the third object by recording the target video in the first application, and obtain objects other than the third object in the first object;
    或者,根据视频时间轴截取所述目标视频得到所述第三对象,并获取所述第一对象中除所述第三对象之外的其他对象。Alternatively, the target video is intercepted according to the video time axis to obtain the third object, and other objects other than the third object in the first object are obtained.
  9. 一种电子设备,所述电子设备包括:接收模块、处理模块和发送模块;An electronic device, the electronic device comprising: a receiving module, a processing module, and a sending module;
    所述接收模块,用于接收对第一应用的界面中的第一对象的第一输入;The receiving module is configured to receive a first input to a first object in the interface of the first application;
    所述处理模块,用于响应于所述接收模块接收的所述第一输入,根据所述第一对象得到第二对象;The processing module is configured to obtain a second object according to the first object in response to the first input received by the receiving module;
    所述接收模块,还用于接收第二输入;The receiving module is also used to receive a second input;
    所述发送模块,用于响应于所述接收模块接收的所述第二输入,通过第二应用发送所述处理模块得到的所述第二对象;The sending module is configured to send the second object obtained by the processing module through a second application in response to the second input received by the receiving module;
    其中,所述第一对象中的每个对象的对象类型为文本类型、图片类型、音频类型或视频类型,所述第二对象中的每个对象的对象类型为文本类型、图片类型、音频类 型或视频类型。The object type of each object in the first object is a text type, a picture type, an audio type, or a video type, and the object type of each object in the second object is a text type, a picture type, and an audio type. Or video type.
  10. 根据权利要求9所述的电子设备,其中,所述第一输入包括第一子输入和第二子输入;The electronic device according to claim 9, wherein the first input includes a first sub-input and a second sub-input;
    所述处理模块,具体用于响应于所述第一子输入,获取所述第一对象;响应于所述第二子输入,依据目标信息,将所述第一对象处理为所述第二对象;The processing module is specifically configured to obtain the first object in response to the first sub-input; in response to the second sub-input, process the first object into the second object according to target information ;
    其中,所述目标信息用于指示以下至少一项:所述第二对象中的每个对象的对象类型,所述第二对象的对象数量。Wherein, the target information is used to indicate at least one of the following: the object type of each of the second objects, and the number of objects of the second objects.
  11. 根据权利要求10所述的电子设备,其中,所述处理模块,具体用于将所述第一对象作为所述第二对象,所述第一对象的对象数量与所述第二对象的对象数量相等;The electronic device according to claim 10, wherein the processing module is specifically configured to use the first object as the second object, and the number of objects of the first object is equal to the number of objects of the second object. equal;
    或者,or,
    将所述第一对象中的对象合并为所述第二对象,所述第一对象的对象数量大于1,所述第二对象的对象数量为1。The objects in the first object are merged into the second object, the number of objects of the first object is greater than one, and the number of objects of the second object is one.
  12. 根据权利要求11所述的电子设备,其中,所述处理模块,具体用于根据所述第一对象中的每个对象的对象类型,将所述第一对象中的对象合并为所述第二对象。The electronic device according to claim 11, wherein the processing module is specifically configured to merge the objects in the first object into the second object according to the object type of each object in the first object. Object.
  13. 根据权利要求12所述的电子设备,其中,The electronic device according to claim 12, wherein:
    在所述第一对象中的所有对象的对象类型均为第一对象类型的情况下,所述第二对象的对象类型与所述第一对象类型相同或不同;In a case where the object types of all objects in the first object are the first object type, the object type of the second object is the same as or different from the first object type;
    在所述第一对象中包括不同对象类型的对象的情况下,所述第二对象的对象类型为第二对象类型;In the case that the first object includes objects of different object types, the object type of the second object is a second object type;
    其中,所述第二对象类型为所述第一对象中的一个对象的对象类型。Wherein, the second object type is an object type of one of the first objects.
  14. 根据权利要求13所述的电子设备,其中,在所述第二对象类型为视频类型的情况下,将所述第一对象中第三对象类型的一个对象作为所述第二对象的第一帧图像,所述第三对象类型为文本类型或图片类型。The electronic device according to claim 13, wherein when the second object type is a video type, an object of a third object type in the first object is used as the first frame of the second object Image, the third object type is a text type or a picture type.
  15. 根据权利要求11所述的电子设备,其中,在所述第一对象的对象数量大于1的情况下,所述第一对象中的对象按照目标版式排列,所述目标版式包括目标排列顺序和目标排列布局中的至少一项。11. The electronic device according to claim 11, wherein, in a case where the number of objects of the first object is greater than 1, the objects in the first object are arranged according to a target format, and the target format includes a target arrangement order and a target Arrange at least one item in the layout.
  16. 根据权利要求10所述的电子设备,其中,所述第一对象中包括视频类型的第三对象;The electronic device according to claim 10, wherein the first object includes a third object of a video type;
    所述处理模块,具体用于通过录制所述第一应用中的目标视频得到所述第三对象,并获取所述第一对象中除所述第三对象之外的其他对象;或者,根据视频时间轴截取所述目标视频得到所述第三对象,并获取所述第一对象中除所述第三对象之外的其他对象。The processing module is specifically configured to obtain the third object by recording the target video in the first application, and obtain objects other than the third object in the first object; or, according to the video The time axis intercepts the target video to obtain the third object, and obtains objects other than the third object in the first object.
  17. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至8中任一项所述的内容分享方法的步骤。An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The computer program is executed by the processor to implement any of claims 1 to 8. One of the steps of the content sharing method.
  18. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的内容分享方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the content sharing method according to any one of claims 1 to 8 are realized.
PCT/CN2020/131168 2019-11-29 2020-11-24 Content sharing method, and electronic apparatus WO2021104268A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911204952.4 2019-11-29
CN201911204952.4A CN110888854A (en) 2019-11-29 2019-11-29 Content sharing method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021104268A1 true WO2021104268A1 (en) 2021-06-03

Family

ID=69749636

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131168 WO2021104268A1 (en) 2019-11-29 2020-11-24 Content sharing method, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN110888854A (en)
WO (1) WO2021104268A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888854A (en) * 2019-11-29 2020-03-17 维沃移动通信有限公司 Content sharing method and electronic equipment
CN114419527B (en) * 2022-04-01 2022-06-14 腾讯科技(深圳)有限公司 Data processing method, equipment and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955607A (en) * 2016-04-22 2016-09-21 北京小米移动软件有限公司 Content sharing method and apparatus
CN106489129A (en) * 2016-09-29 2017-03-08 北京小米移动软件有限公司 The method and device that a kind of content is shared
CN108012197A (en) * 2017-12-15 2018-05-08 广州酷狗计算机科技有限公司 The method, apparatus and storage medium of sharing video frequency file
CN109491632A (en) * 2018-10-30 2019-03-19 维沃移动通信有限公司 A kind of resource sharing method and terminal
CN109933259A (en) * 2019-02-28 2019-06-25 维沃移动通信有限公司 A kind of content share method and mobile terminal
CN109948102A (en) * 2019-03-27 2019-06-28 维沃移动通信有限公司 Content of pages edit methods and terminal
CN110233929A (en) * 2019-04-25 2019-09-13 维沃移动通信有限公司 A kind of display control method and terminal device
CN110471895A (en) * 2019-07-29 2019-11-19 维沃移动通信有限公司 Sharing method and terminal device
CN110489031A (en) * 2019-07-26 2019-11-22 维沃移动通信有限公司 Content display method and terminal device
CN110888854A (en) * 2019-11-29 2020-03-17 维沃移动通信有限公司 Content sharing method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9055269B2 (en) * 2008-06-06 2015-06-09 Disney Enterprises, Inc. Messaging with user generated content related to video object timecode
CN102546835B (en) * 2012-03-08 2014-07-02 腾讯科技(深圳)有限公司 Method for sharing contents, terminal, server and system
CN103294748A (en) * 2013-01-22 2013-09-11 北京旭宁信息技术有限公司 Method for excerpting and editing Internet contents

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955607A (en) * 2016-04-22 2016-09-21 北京小米移动软件有限公司 Content sharing method and apparatus
CN106489129A (en) * 2016-09-29 2017-03-08 北京小米移动软件有限公司 The method and device that a kind of content is shared
CN108012197A (en) * 2017-12-15 2018-05-08 广州酷狗计算机科技有限公司 The method, apparatus and storage medium of sharing video frequency file
CN109491632A (en) * 2018-10-30 2019-03-19 维沃移动通信有限公司 A kind of resource sharing method and terminal
CN109933259A (en) * 2019-02-28 2019-06-25 维沃移动通信有限公司 A kind of content share method and mobile terminal
CN109948102A (en) * 2019-03-27 2019-06-28 维沃移动通信有限公司 Content of pages edit methods and terminal
CN110233929A (en) * 2019-04-25 2019-09-13 维沃移动通信有限公司 A kind of display control method and terminal device
CN110489031A (en) * 2019-07-26 2019-11-22 维沃移动通信有限公司 Content display method and terminal device
CN110471895A (en) * 2019-07-29 2019-11-19 维沃移动通信有限公司 Sharing method and terminal device
CN110888854A (en) * 2019-11-29 2020-03-17 维沃移动通信有限公司 Content sharing method and electronic equipment

Also Published As

Publication number Publication date
CN110888854A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
WO2021104365A1 (en) Object sharing method and electronic device
WO2020063091A1 (en) Picture processing method and terminal device
WO2021218902A1 (en) Display control method and apparatus, and electronic device
KR102064952B1 (en) Electronic device for operating application using received data
WO2020258929A1 (en) Folder interface switching method and terminal device
WO2021083132A1 (en) Icon moving method and electronic device
WO2021197263A1 (en) Content sharing method and electronic device
WO2020181942A1 (en) Icon control method and terminal device
WO2020215957A1 (en) Interface displaying method and terminal device
WO2021115278A1 (en) Group management method and electronic device
JP2021525430A (en) Display control method and terminal
WO2021012931A1 (en) Icon management method and terminal
WO2020151460A1 (en) Object processing method and terminal device
WO2021129536A1 (en) Icon moving method and electronic device
WO2021083087A1 (en) Screen capturing method and terminal device
WO2020181955A1 (en) Interface control method and terminal device
WO2021109961A1 (en) Method for generating shortcut icon, electronic apparatus, and medium
WO2021004327A1 (en) Method for setting application permission, and terminal device
WO2020181945A1 (en) Identifier displaying method and terminal device
WO2021057301A1 (en) File control method and electronic device
WO2020199783A1 (en) Interface display method and terminal device
WO2021057290A1 (en) Information control method and electronic device
WO2020192299A1 (en) Information display method and terminal device
WO2020215969A1 (en) Content input method and terminal device
WO2021169954A1 (en) Search 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: 20893881

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20893881

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20893881

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 16/02/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20893881

Country of ref document: EP

Kind code of ref document: A1