CN108388671B - Information sharing method and device, mobile terminal and computer readable medium - Google Patents

Information sharing method and device, mobile terminal and computer readable medium Download PDF

Info

Publication number
CN108388671B
CN108388671B CN201810235274.7A CN201810235274A CN108388671B CN 108388671 B CN108388671 B CN 108388671B CN 201810235274 A CN201810235274 A CN 201810235274A CN 108388671 B CN108388671 B CN 108388671B
Authority
CN
China
Prior art keywords
picture
pictures
sharing
target
target page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810235274.7A
Other languages
Chinese (zh)
Other versions
CN108388671A (en
Inventor
陈崇勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810235274.7A priority Critical patent/CN108388671B/en
Publication of CN108388671A publication Critical patent/CN108388671A/en
Application granted granted Critical
Publication of CN108388671B publication Critical patent/CN108388671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations

Abstract

The application discloses an information sharing method and device, a mobile terminal and a computer readable medium, and belongs to the technical field of information processing. The method comprises the following steps: the method comprises the steps of obtaining a sharing request, wherein the sharing request is used for sharing a target page to a third-party application; taking pictures meeting preset conditions in all pictures in the target page as target pictures; and generating a sharing link corresponding to the target page according to the target picture, and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture. Therefore, one picture is selected from all pictures in the target page to serve as the thumbnail of the sharing link, the thumbnail of the sharing link can be closer to the content of the target page, and the user experience degree is improved.

Description

Information sharing method and device, mobile terminal and computer readable medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to an information sharing method and apparatus, a mobile terminal, and a computer-readable medium.
Background
Currently, a browser or other clients have a function of sharing pages, and can share the pages in third-party applications, for example, application programs such as facebook and tweet. The sharing link that the client shares to the interface of the third party application typically includes a title and a thumbnail. However, the thumbnail of the current sharing link is too low related to the page content, for example, only the client icon is used as the thumbnail of the sharing link, which results in too low user experience.
Disclosure of Invention
The application provides an information sharing method, an information sharing device, a mobile terminal and a computer readable medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides an information sharing method, including: the method comprises the steps of obtaining a sharing request, wherein the sharing request is used for sharing a target page to a third-party application; taking pictures meeting preset conditions in all pictures in the target page as target pictures; and generating a sharing link corresponding to the target page according to the target picture, and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture.
In a second aspect, an embodiment of the present application further provides an information sharing apparatus, including: the device comprises a request acquisition unit, a confirmation unit and a sharing unit. The device comprises a request acquisition unit used for acquiring a sharing request, wherein the sharing request is used for sharing a target page to a third-party application. And the confirming unit is used for taking pictures meeting preset conditions in all pictures in the target page as target pictures. And the sharing unit is used for generating a sharing link corresponding to the target page according to the target picture and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture.
In a third aspect, an embodiment of the present application further provides a mobile terminal, including a memory and a processor, where the memory is coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to: the method comprises the steps of obtaining a sharing request, wherein the sharing request is used for sharing a target page to a third-party application; taking pictures meeting preset conditions in all pictures in the target page as target pictures; and generating a sharing link corresponding to the target page according to the target picture, and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture.
In a fourth aspect, the present application also provides a computer-readable medium having program code executable by a processor, where the program code causes the processor to execute the above method.
The embodiment of the application provides an information sharing method and device, a mobile terminal and a computer readable medium, when a sharing request for sharing a target page to a third-party application is acquired, a picture meeting a preset condition in all pictures in the target page is taken as a target picture, the target picture is taken as a thumbnail corresponding to a sharing link, so that the sharing link corresponding to the target page is generated, and the sharing link is displayed in a preset interface of the third-party application. Because the matching picture related to the content of the target page is generally arranged in the target page, one picture is selected from all pictures in the target page to serve as the thumbnail of the sharing link, the thumbnail of the sharing link can be closer to the content of the target page, and the user experience degree is improved.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a target page provided by an embodiment of the present application;
FIG. 2 is a diagram illustrating a collection dialog provided by an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a sharing editing interface provided by an embodiment of the present application;
fig. 4 shows a flowchart of a method of an information sharing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a destination page provided by another embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a destination page provided by yet another embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a sharing editing interface according to another embodiment of the present application;
fig. 8 is a flowchart illustrating a method of sharing information according to another embodiment of the present application;
fig. 9 is a schematic diagram illustrating a pop-up window for a picture to be selected according to an embodiment of the present application;
FIG. 10 is a schematic diagram illustrating a sharing editing interface provided by yet another embodiment of the present application;
fig. 11 is a flowchart illustrating a method of sharing information according to another embodiment of the present application;
fig. 12 shows a block diagram of an information sharing apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application;
fig. 14 shows a block diagram of a mobile terminal according to an embodiment of the present application for executing the method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a target page of a client according to an embodiment of the present disclosure. The target page has page content t1, a client identifier n1 and a sharing key f1, wherein the client identifier n1 is "client" displayed on the top of the screen in fig. 1, and the sharing key f1 is "…" displayed on the top of the screen in fig. 1. The user clicks the sharing button f1 to share the target page with a third-party application. Specifically, clicking the share button f1 can display a collection dialog box, as shown in fig. 2, which shows a schematic diagram of a collection dialog box k1, in which the identifications and icons of different third party applications are displayed within the collection dialog box k1, as shown in fig. 2, identification app1 and corresponding icon1, identification app2 and corresponding icon2, identification app3 and corresponding icon3, identification app4 and corresponding icon 4. If the user selects one of the third-party applications based on the set dialog box k1, the sharing link corresponding to the target page can be generated, and the sharing link is displayed in the sharing editing interface of the third-party application, as shown in fig. 3, the user can click the "publish" button in the sharing editing interface, and then the sharing link can be displayed in the information display list of the third-party application.
Specifically, a sharing component of the third-party application may be embedded in the client, for example, the sharing component may be an SDK component, the sharing component may be embedded in the browser client, or may be an application program independent from the browser client, and the browser client and the sharing component may invoke each other and transmit and access data. The sharing component is internally provided with a sharing link generation rule corresponding to the third-party application, and the generation rule can define display content displayed in the third-party application by the sharing link, specifically, the display content of the sharing link includes a title and a thumbnail, further, the title may further include a main title and a subtitle, and the subtitle is used as an abstract of the content of the target page to describe the content of the target page.
However, at present, thumbnails sharing links mostly adopt icons of clients, and thumbnails are icons of clients, and although the thumbnails can be used for popularizing the clients, the relevance between the thumbnails and the content of a target page is too low, and thus the user experience is not high.
Therefore, in order to overcome the above defect, an embodiment of the present application provides an information sharing method, which is used to improve the relevancy between the thumbnail corresponding to the sharing link displayed when the target page is shared and the target page, and further improve the user experience. In the following, a client is taken as an execution subject to describe a specific implementation process of the method, and specifically, for example, the client is taken as a browser client, please refer to fig. 4, where the method includes: s401 to S403.
S401: and acquiring a sharing request, wherein the sharing request is used for sharing the target page to the third-party application.
Specifically, a sharing key is arranged in the target page, and when the user clicks the sharing key, the client can detect an operation action of the user, that is, determine to acquire the sharing request. For example, as shown in fig. 2, when the user selects one of the buttons in the collection dialog box k1, for example, the user clicks an icon1 corresponding to the app1, the client obtains a sharing request for the app1, which is input by the user, and the sharing request is used for sharing the target page to a third-party application, that is, the app 1.
S402: and taking pictures meeting preset conditions in all pictures in the target page as target pictures.
And when the target page is loaded, the client acquires and stores all the pictures loaded in the target page. Specifically, the client is a browser client, and when a target page is loaded, the browser kernel renders the target page, so that all pictures in the page are obtained and stored. And the client reads the storage space corresponding to the target page to acquire all the pictures corresponding to the target page.
The client searches for a picture meeting a preset condition from all the pictures corresponding to the obtained target page, wherein the preset condition is a search strategy defined by a user, and the preset condition can be that a first loaded picture or a last loaded picture in all the pictures corresponding to the target page is taken as a target picture, or that a picture with a picture size meeting a certain standard is taken as a target picture.
As an embodiment, a specific implementation manner of taking a picture meeting a preset condition among all pictures in the target page as a target picture is as follows:
and acquiring the loading time of each picture in the target page, and taking the picture of which the loading time meets a preset standard as the target picture.
And when the client loads the target page, recording the loading time of each picture in the target page and storing the loading time. Specifically, the client is a browser client, and when a target page is loaded, the browser kernel renders the target page, so as to obtain data information of each picture in the target page, where the data information includes information such as loading time and size parameters. The browser client needs to acquire the loading time of each picture in the target page, and reads the loading time of each picture in the target page from the data information of each picture in the target page stored by the browser kernel.
And taking the picture with the loading moment meeting the preset standard as a target picture, wherein the preset standard is a screening condition set by a user according to actual needs, for example, the picture with the earliest loading moment is selected as the target picture. In particular, all the load moments are ordered to obtain a load order, which may be a sequence of a plurality of load moments and is organized in an order from early to late, i.e. the earlier in the load order the earlier in the load moment the earlier in the load order the earlier.
After the loading sequence is acquired, taking the picture which is the most front in the loading sequence and is loaded at the moment as a target picture. The picture with the earliest loading time indicates that the loading time of the picture is earliest, and the target page is loaded from top to bottom, so that the loading time of the picture at the upper part is earlier than the loading time of the picture at the lower part, and the picture at the upper part is firstly seen by the user and is mostly closest to the content of the web page, for example, picture 1 in fig. 1. Therefore, the picture closest to the loading time is selected as the target picture, and pictures related to the page content can be obtained as much as possible.
As another embodiment, one of the pictures with the size parameter larger than the preset value in all the pictures corresponding to the target page may be selected as the target picture, and specifically, described in the following embodiments.
It should be noted that there may be not only pictures but also videos within the target page, and even there may be only videos without pictures, for example, as shown in fig. 5, a video playing box S1 is included in the target page, a video image is displayed in the video playing box S1, if the video is not played yet, that is, the video is not loaded yet, the video image within the video playing box S1 is a preview image when the video is not played, and if the video is played already, the video image within the video playing box S1 is a video image corresponding to the video frame played at the current time.
Therefore, the content of the video is also related to the content of the page, and for some pages with only video, pictures need to be extracted from the video as target pictures. Therefore, an implementation manner of taking a picture meeting a preset condition in all pictures in the target page as a target picture may be to determine whether the loaded video data corresponds to the target page; if yes, taking a frame of image in the loaded video data as a video image; all pictures in the target page and the acquired video image are used as alternative pictures; and taking the picture meeting the preset condition in the alternative pictures as a target picture.
Specifically, when the user clicks a play button in the video play box S1 or when the user defines that a video in the target page is automatically played when the user loads the target page, the browser client sends a request for obtaining video data to the server corresponding to the video, that is, performs an operation of loading the video, so that the loaded data of the video can be obtained by the client and stored in the data storage space corresponding to the target page, where all data corresponding to the target page, including data information of each picture, are stored in the data storage space. The client can judge whether the page is loaded with the video data or not by reading the data corresponding to the target page, and if the loaded video data exists in the page, a preset frame image is acquired from the video data to serve as a video image. The preset frame may be a first frame of a video, or may be a video frame corresponding to a time point at which a video corresponding to the time at which the sharing request is obtained is played by the client at the time at which the sharing request is obtained, as shown in fig. 6, a video in the video playing frame S1 in fig. 5 and a video in the video playing frame S1' in fig. 6 belong to the same video, and the displayed video images correspond to video frames of the video at different time points, and the video image in fig. 6 is just the video image when the sharing request is obtained. Then, all pictures in the target page and the acquired video image are taken as alternative pictures.
If the loaded video data does not exist in the page, it indicates that no video exists in the page or the video is not played, and the page is in an initial state to be played, that is, the video shown in fig. 5 is not yet loaded, at this time, all pictures in the page are obtained as the alternative pictures, where the obtained pictures further include thumbnails of the video in the state that the video is not yet loaded, that is, images in the video playing box S1 in fig. 5. Therefore, all pictures in the target page can be acquired as far as possible.
And after the alternative pictures are acquired, taking the pictures meeting preset conditions in the alternative pictures as target pictures. When it needs to be explained, the subsequent operations of obtaining the target picture through the loading time and the size parameter of the picture may be corresponding to the alternative picture, that is, a picture meeting at least one requirement of the loading time or the size parameter or other requirements is searched in the alternative picture as the target picture.
S403: and generating a sharing link corresponding to the target page according to the target picture, and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture.
The method includes the steps that a strategy is generated according to a preset sharing link of a third-party application, a sharing link corresponding to a target page is generated according to the target page, wherein display content of the sharing link comprises a title and a thumbnail, the summary information is used as the title of the sharing link, specifically, as an implementation mode, the title comprises a main title and a subtitle, the main title is generally consistent with a title of text content in the target page, the subtitle is generally used for simply describing the content of the target page, and the thumbnail is displayed together with the main title and the subtitle and is used for displaying the content corresponding to the sharing link in a picture mode.
Specifically, the client sends the summary information to a sharing component corresponding to the third-party application. A specific implementation manner may be that a plurality of access interfaces exist between the sharing component and the client, where the access interfaces include a picture interface, and the sharing component acquires a picture of the target page through the picture interface. By default, the description content of the target page acquired by the sharing component through the picture interface is a default picture as a thumbnail of the sharing link, for example, an icon of the client. When the client can acquire the picture in the target page and acquire the target picture according to the picture in the target page, the client stores the picture and writes the storage path of the target picture into the picture interface, and when a user initiates a sharing request, the sharing component reads the picture interface and can acquire the target picture.
After the sharing component acquires the target picture, a sharing link is generated according to the target picture, a third-party application is called up, and the target picture is displayed in a preset interface of the third-party application. As shown in fig. 7, a sharing link is displayed in the interface, and a thumbnail of the sharing link is the video image in fig. 6, that is, the target picture selected this time is the video image in fig. 6.
Therefore, one picture is selected from all pictures in the target page to serve as the thumbnail of the sharing link, the thumbnail of the sharing link can be closer to the content of the target page, and the user experience degree is improved.
In addition, considering that the picture of the target page not only has the matching picture of the related content, but also the head portrait of the user or some expression pictures, if the head portrait of the user or the expression pictures are used as the thumbnail of the sharing link, the user experience degree is affected. Therefore, in order to overcome the defect, please refer to fig. 8, which illustrates an information sharing method provided in another embodiment of the present application, which is used to improve the relevance between the thumbnail corresponding to the sharing link displayed when the target page is shared and the target page, so as to improve the user experience. In the following, a client is taken as an execution subject to describe a specific implementation process of the method, specifically, taking the client as a browser client as an example, please refer to fig. 8, where the method includes: s801 to S804.
S801: and acquiring a sharing request, wherein the sharing request is used for sharing the target page to the third-party application.
S802: and acquiring the size parameter of each picture in the target page.
When the client loads the target page, the size parameters of all pictures in the target page can be acquired. Specifically, the client is a browser client, and when a target page is loaded, the browser kernel renders the target page, so as to obtain data information of each picture in the target page, where the data information includes information such as loading time and size parameters. And when the client needs to acquire the size of each picture, acquiring the size parameter of each picture in the data information of each picture in the target page.
S803: and determining a target picture according to all pictures with the size parameters larger than a preset value.
After the size of each picture is obtained, the pictures with the size parameters larger than a preset value are screened out, and a target picture is obtained according to the screening result. Specifically, the preset value is a value set by the user according to actual needs, and specifically, may be set according to the size of the accompanying map related to the page content, so that the preset value can be larger than the size of the current expression picture and the size of the avatar of the user, for example, the size parameter is the product of the length and the height of the picture, that is, the size parameter is the length multiplied by the width, that is, L1W 1, for example, 300 × 100. The preset value is the preset length multiplied by the preset width, i.e., L2W 2, e.g., 100W 100.
If the size parameter is larger than the preset value, the length of the picture is larger than the preset length, and the width is larger than the preset width. Specifically, the size parameter of each picture may be obtained from the candidate pictures, then all the pictures with the size parameters larger than a preset value are used as the pictures to be selected, and one of the pictures to be selected is selected as the target picture.
Specifically, the target picture is determined according to all pictures with the size parameters larger than the preset value in a manner that all pictures with the size parameters larger than the preset value are obtained and serve as pictures to be selected; displaying the picture to be selected; acquiring a picture selected by a user based on the displayed picture to be selected; and taking the selected picture as a target picture.
After the picture to be selected is obtained, the picture to be selected is displayed, as an implementation manner, after the user selects one third-party application in the set dialog box in fig. 2, a pop-up window for the picture to be selected, such as the pop-up window for the picture to be selected K11 shown in fig. 9, the to-be-selected picture popup K11 includes a plurality of pictures, a confirmation button, and a selection frame corresponding to each picture, such as two pictures in the to-be-selected picture popup K11 shown in fig. 9, and the picture popup K11 to be selected is further provided with a scroll bar, the scroll bar can be moved up and down to display and look up more pictures, the user can view the pictures in the picture popup K11 to be selected, select one of the pictures, specifically, click the selection frame corresponding to the picture, and accordingly, the selection box may show that the selection box is selected by displaying a check or circle. After a user selects one picture, clicking a confirmation key, and then the client acquires the picture selected by the user and takes the selected picture as a target picture.
S804: and generating a sharing link corresponding to the target page according to the target picture, and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture.
Assuming that a picture selected by the user in the to-be-selected picture popup K11 shown in fig. 9 is F2, a thumbnail corresponding to the sharing link displayed in the sharing editing interface of the third-party application is F2, as shown in fig. 10.
It should be noted that, the above steps are parts of detailed description, and reference may be made to the foregoing embodiments, which are not repeated herein.
Referring to fig. 11, an information sharing method provided in another embodiment of the present application is shown, which is used to improve the relevance between a thumbnail corresponding to a sharing link displayed when a target page is shared and the target page, so as to improve user experience. In the following, a client is taken as an execution subject to describe a specific implementation process of the method, specifically, taking the client as a browser client as an example, please refer to fig. 11, where the method includes:
s1101: and acquiring a sharing request, wherein the sharing request is used for sharing the target page to the third-party application.
S1102: and acquiring the size parameter of each picture in the target page.
S1103: and taking all pictures with the size parameters larger than a preset value as pictures to be selected.
Specifically, the candidate pictures may be obtained, the size parameter of each picture in the candidate pictures may be obtained, and all pictures in the candidate pictures whose size parameters are greater than a preset value are taken as the pictures to be selected. That is, it is determined whether the loaded video data corresponds to the target page; if yes, taking a frame of image in the loaded video data as a video image; all pictures in the target page and the acquired video image are used as alternative pictures; and acquiring the size parameter of each picture in the alternative pictures, and taking all pictures with the size parameters larger than a preset value as pictures to be selected.
S1104: and acquiring the loading time of each picture in the pictures to be selected.
S1105: all the loading moments are sorted to obtain a loading order.
S1106: and taking the picture which is most front in the loading sequence as a target picture.
S1107: and generating a sharing link corresponding to the target page according to the target picture, and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture.
Therefore, in the pictures with all size parameters larger than the preset value in the target page, the first loaded picture is taken as the target picture and is taken as the thumbnail of the sharing link, so that the thumbnail of the sharing link can be more related to the content of the target page, the user experience degree is improved, and meanwhile, the expression pictures or the head portrait of the user can be prevented from being taken as the thumbnail.
It should be noted that, the above steps are parts of detailed description, and reference may be made to the foregoing embodiments, which are not repeated herein.
Referring to fig. 12, an information sharing apparatus 1200 according to another embodiment of the present disclosure is shown, configured to improve the relevance between a thumbnail corresponding to a sharing link displayed when a target page is shared and the target page, so as to improve user experience. Specifically, the apparatus includes: a request acquisition unit 1201, a confirmation unit 1202, and a sharing unit 1203.
The request obtaining unit 1201 is configured to obtain a sharing request, where the sharing request is used to share a target page to a third-party application.
A confirming unit 1202, configured to take a picture meeting a preset condition among all pictures in the target page as a target picture.
The sharing unit 1203 is configured to generate a sharing link corresponding to the target page according to the target picture, and display the sharing link in a preset interface of the third-party application, where a thumbnail corresponding to the sharing link is the target picture.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 13, based on the method and apparatus, the embodiment of the present application further provides a mobile terminal 100, which includes an electronic body 10, where the electronic body 10 includes a housing 12 and a main display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the main display 120 generally includes a display panel 111, and may also include a circuit or the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 14, in an actual application scenario, the mobile terminal 100 may be used as a smart phone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in fig. 14 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body section 10 may also include more or fewer components than shown in FIG. 14, or have a different configuration than shown in FIG. 13.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic body portion 10 or the primary display 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE 802.10A, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (internet for Microwave Access, Wi-Max), and any other suitable protocols for instant messaging, including, but not limited to, short-range messaging protocols, and may even include those protocols that have not yet been developed.
The audio circuitry 110, earpiece 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic body portion 10 or the main display 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101. The earpiece 101 converts the electrical signal into sound waves that can be heard by the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106.
The sensor 114 is disposed in the electronic body portion 10 or the main display 120, examples of the sensor 114 include, but are not limited to: light sensors, operational sensors, pressure sensors, acceleration sensors 114F, proximity sensors 114J, and other sensors.
In particular, the light sensor may comprise a light sensor, a pressure sensor. Among them, the pressure sensor may detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor detects pressure generated by contact or pressing between the user and the mobile terminal, for example, contact or pressing between the user's ear and the mobile terminal. Accordingly, the pressure sensor may be used to determine whether contact or pressing has occurred between the user and the mobile terminal 100, and the magnitude of the pressure.
Referring to fig. 13 again, in the embodiment shown in fig. 13, the light sensor and the pressure sensor are disposed adjacent to the display panel 111. The light sensor may turn off the display output by the processor 102 when an object is near the main display 120, for example, when the electronic body portion 10 is moved to the ear.
As one of the motion sensors, the acceleration sensor 114F can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping) and the like for recognizing the attitude of the mobile terminal 100. In addition, the electronic body 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein,
in this embodiment, the input module 118 may include the touch screen 109 disposed on the main display 120, and the touch screen 109 may collect touch operations of the user (for example, operations of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
The main display 120 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 109 may be provided on the display panel 111 so as to be integrated with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronic body portion 10 or the primary display 120.
The mobile terminal 100 further comprises a locator 119, the locator 119 being configured to determine an actual location of the mobile terminal 100. In this embodiment, the locator 119 implements the positioning of the mobile terminal 100 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the mobile terminal 100 by using a specific positioning technology and marking the position of the positioned object on an electronic map.
It should be understood that the mobile terminal 100 described above is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobility. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
To sum up, the embodiment of the application provides an information sharing method, an information sharing device, a mobile terminal and a computer readable medium, when a sharing request for sharing a target page to a third-party application is acquired, a picture meeting a preset condition in all pictures in the target page is taken as a target picture, the target picture is taken as a thumbnail corresponding to a sharing link, so that the sharing link corresponding to the target page is generated, and the sharing link is displayed in a preset interface of the third-party application. Because the matching picture related to the content of the target page is generally arranged in the target page, one picture is selected from all pictures in the target page to serve as the thumbnail of the sharing link, the thumbnail of the sharing link can be closer to the content of the target page, and the user experience degree is improved.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (9)

1. An information sharing method, comprising:
the method comprises the steps of obtaining a sharing request, wherein the sharing request is used for sharing a target page to a third-party application;
judging whether the loaded video data corresponds to the target page or not;
if the video image exists, taking a video frame corresponding to the moment of acquiring the sharing request in the loaded video data as a video image;
all pictures in the target page and the acquired video image are used as alternative pictures;
taking a picture meeting a preset condition in the alternative pictures as a target picture;
and generating a sharing link corresponding to the target page according to the target picture, and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture.
2. The method according to claim 1, wherein the taking pictures meeting preset conditions among all pictures in the target page as target pictures comprises:
acquiring the loading time of each picture in the target page;
and taking the picture of which the loading moment meets the preset standard as a target picture.
3. The method according to claim 2, wherein the taking the picture whose loading time meets the preset criterion as the target picture comprises:
sequencing all the loading moments to obtain a loading sequence;
and taking the picture which is most front in the loading sequence as a target picture.
4. The method of claim 2, wherein the obtaining the loading time of each picture in the target page comprises:
acquiring the size parameter of each picture in the target page;
all pictures with the size parameters larger than a preset value are taken as pictures to be selected;
and acquiring the loading time of each picture in the pictures to be selected.
5. The method according to claim 1, wherein the taking pictures meeting preset conditions among all pictures in the target page as target pictures comprises:
acquiring the size parameter of each picture in the target page;
and determining a target picture according to all pictures with the size parameters larger than a preset value.
6. The method according to claim 5, wherein the determining the target picture according to all the pictures with the size parameter larger than the preset value comprises:
acquiring all pictures with the size parameters larger than a preset value as pictures to be selected;
displaying the picture to be selected;
acquiring a picture selected by a user based on the displayed picture to be selected;
and taking the selected picture as a target picture.
7. An information sharing apparatus, comprising:
the device comprises a request acquisition unit, a sharing unit and a processing unit, wherein the request acquisition unit is used for acquiring a sharing request which is used for sharing a target page to a third-party application;
the confirming unit is used for judging whether the loaded video data corresponds to the target page or not; if the video image exists, taking a video frame corresponding to the moment of acquiring the sharing request in the loaded video data as a video image; all pictures in the target page and the acquired video image are used as alternative pictures; taking a picture meeting a preset condition in the alternative pictures as a target picture;
and the sharing unit is used for generating a sharing link corresponding to the target page according to the target picture and displaying the sharing link in a preset interface of the third-party application, wherein a thumbnail corresponding to the sharing link is the target picture.
8. A mobile terminal comprising a memory and a processor, the memory coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-6.
9. A computer-readable medium having program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-6.
CN201810235274.7A 2018-03-21 2018-03-21 Information sharing method and device, mobile terminal and computer readable medium Active CN108388671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810235274.7A CN108388671B (en) 2018-03-21 2018-03-21 Information sharing method and device, mobile terminal and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810235274.7A CN108388671B (en) 2018-03-21 2018-03-21 Information sharing method and device, mobile terminal and computer readable medium

Publications (2)

Publication Number Publication Date
CN108388671A CN108388671A (en) 2018-08-10
CN108388671B true CN108388671B (en) 2020-08-25

Family

ID=63068307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810235274.7A Active CN108388671B (en) 2018-03-21 2018-03-21 Information sharing method and device, mobile terminal and computer readable medium

Country Status (1)

Country Link
CN (1) CN108388671B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866796A (en) * 2018-08-28 2020-03-06 阿里巴巴集团控股有限公司 Information display method, information acquisition method, system and equipment
CN109491632A (en) * 2018-10-30 2019-03-19 维沃移动通信有限公司 A kind of resource sharing method and terminal
CN110196673B (en) * 2019-06-04 2020-10-30 北京达佳互联信息技术有限公司 Picture interaction method, device, terminal and storage medium
CN110334352B (en) * 2019-07-08 2023-07-07 腾讯科技(深圳)有限公司 Guide information display method, device, terminal and storage medium
CN112799552A (en) * 2019-10-28 2021-05-14 腾讯科技(深圳)有限公司 Method and device for sharing promotion pictures and storage medium
CN111290692B (en) * 2020-01-20 2021-04-09 北京无限光场科技有限公司 Picture display method and device, electronic equipment and computer readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658200A (en) * 2016-12-30 2017-05-10 乐蜜科技有限公司 Live video sharing and obtaining methods and devices, and terminal equipment thereof
CN107682540A (en) * 2017-09-27 2018-02-09 努比亚技术有限公司 Image processing method, terminal and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140223275A1 (en) * 2013-02-07 2014-08-07 Infopower Corporation Method of File Sharing for Portable Mobile Devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658200A (en) * 2016-12-30 2017-05-10 乐蜜科技有限公司 Live video sharing and obtaining methods and devices, and terminal equipment thereof
CN107682540A (en) * 2017-09-27 2018-02-09 努比亚技术有限公司 Image processing method, terminal and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
微信分享链接时怎样才能带上带缩略图和简介;rhymebus;《百度经验,https://jingyan.baidu.com/article/86112f1382071e27379787b8.html》;20171213;第1-5页 *

Also Published As

Publication number Publication date
CN108388671A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN108388671B (en) Information sharing method and device, mobile terminal and computer readable medium
CN108496150B (en) Screen capture and reading method and terminal
WO2019233212A1 (en) Text identification method and device, mobile terminal, and storage medium
US8468469B1 (en) Zooming user interface interactions
AU2014201716B2 (en) Apparatus and method for providing additional information by using caller phone number
US11237703B2 (en) Method for user-operation mode selection and terminals
CN108024019B (en) Message display method and device
CN108762859B (en) Wallpaper display method and device, mobile terminal and storage medium
CN106375179B (en) Method and device for displaying instant communication message
AU2014288039A1 (en) Remote operation of applications using received data
CN108197264B (en) Webpage acceleration display method and device, mobile terminal and storage medium
CN108769506B (en) Image acquisition method and device, mobile terminal and computer readable medium
CN107766548B (en) Information display method and device, mobile terminal and readable storage medium
CN108932102B (en) Data processing method and device and mobile terminal
CN108536509B (en) Application body-splitting method and mobile terminal
CN108646994B (en) Information processing method and device, mobile terminal and storage medium
CN110020293B (en) Multimedia data display method, device and storage medium
CN108536415B (en) Application volume control method and device, mobile terminal and computer readable medium
CN108958634A (en) Express delivery information acquisition method, device, mobile terminal and storage medium
CN108881979B (en) Information processing method and device, mobile terminal and storage medium
US9977661B2 (en) Method and system for generating a user interface
CN112749074B (en) Test case recommending method and device
CN105653112B (en) Method and device for displaying floating layer
CN108803972B (en) Information display method, device, mobile terminal and storage medium
CN106708390B (en) Screen capturing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant