Text content processing method, device and electronic device

By displaying the first interface and the second interface in the interface of the electronic device, and obtaining and processing the selected text content, the problem of cumbersome user operations is solved and the user experience is improved.

CN119759249APending Publication Date: 2025-04-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411927581.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the interface of an electronic device, when users perform operations related to text content, the operation is more cumbersome and the user experience is not high.

Method used

By displaying the first interface and the second interface, the text content selected by the first interface is obtained, and in response to the component corresponding to the text content being dragged to the second interface, the processing operations corresponding to the second interface are performed.

Benefits of technology

It simplifies user operation steps and improves user operation experience, allowing users to directly trigger corresponding processing operations by dragging text content to the second interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759249A_ABST
    Figure CN119759249A_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a text content processing method, device and electronic device. The method includes: displaying a first interface and a second interface, the second interface is used to play a video; obtaining text content selected from the first interface; in response to the text content being dragged to the second interface, sending the text content as a bullet screen corresponding to the video. Therefore, by selecting and dragging the text content in the first interface to the second interface, the processing operation corresponding to the second interface can be directly triggered to be performed on the text content, which simplifies the steps that the user needs to operate and improves the user's operating experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a text content processing method, device and electronic device. Background Art

[0002] In the interface of electronic devices, users usually perform some operations related to text content. For example, in the video interface, you can send bullet comments, in the chat interface, you can send messages, in the news browsing interface, you can make comments, etc. However, in the process of performing operations related to text content, there are still problems such as cumbersome operations and low user experience. Summary of the invention

[0003] In view of the above problems, the present application proposes a text content processing method, device and electronic device to improve the above problems.

[0004] In a first aspect, the present application provides a text content processing method, which is applied to an electronic device, and the method includes: displaying a first interface and a second interface; determining the text content selected in the first interface; in response to a component corresponding to the text content being dragged to the second interface, performing a processing operation corresponding to the second interface according to the text content.

[0005] In a second aspect, the present application provides a device for sending barrages, which runs on an electronic device, and the device includes: an interface display unit, used to display a first interface and a second interface; a text content selection unit, used to determine the text content selected in the first interface; a barrage sending unit, used to respond to a component corresponding to the text content being dragged to the second interface, and perform processing operations corresponding to the second interface according to the text content.

[0006] In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0007] In a fourth aspect, the present application provides a computer-readable storage medium storing a program code executable by a processor, wherein the computer-readable storage medium includes the stored program code, wherein the above method is executed when the program code is run.

[0008] The present application provides a text content processing method, device and electronic device. When displaying a first interface and a second interface, after obtaining the text content selected from the first interface, in response to the component corresponding to the text content being dragged to the second interface, the processing operation corresponding to the second interface is performed according to the text content. Thus, by selecting and dragging the text content in the first interface to the second interface, the processing operation corresponding to the second interface can be directly triggered, which simplifies the steps that the user needs to operate and improves the user's operating experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram of an application scenario of a text content processing method proposed in an embodiment of the present application is shown;

[0011] Figure 2 A schematic diagram showing another application scenario of a text content processing method proposed in an embodiment of the present application is shown;

[0012] Figure 3 A flowchart of a text content processing method proposed in an embodiment of the present application is shown;

[0013] Figure 4 A schematic diagram showing a video link displayed in an embodiment of the present application is shown;

[0014] Figure 5 A schematic diagram showing a first interface and a second interface in an embodiment of the present application is shown;

[0015] Figure 6 A schematic diagram of selecting text content from a first interface in an embodiment of the present application is shown;

[0016] Figure 7 A schematic diagram showing another method of selecting text content from a first interface in an embodiment of the present application is shown;

[0017] Figure 8 A schematic diagram of a suspended display of selected text content in an embodiment of the present application is shown;

[0018] Fig. 9 A schematic diagram of dragging selected text content to a second interface in an embodiment of the present application is shown;

[0019] Fig.10 A schematic diagram showing a bullet screen being sent in an embodiment of the present application is shown;

[0020] Fig.11 A flowchart of a text content processing method proposed in another embodiment of the present application is shown;

[0021] Fig.12 A schematic diagram showing the correspondence between the position and the dragged text content in an embodiment of the present application;

[0022] Fig.13 A schematic diagram showing a non-display area between two display areas in an embodiment of the present application is shown;

[0023] Fig.14 A flowchart of a text content processing method proposed in yet another embodiment of the present application is shown;

[0024] Fig.15 A flowchart of a text content processing method proposed in another embodiment of the present application is shown;

[0025] Fig.16 A structural block diagram of a text content processing device proposed in an embodiment of the present application is shown;

[0026] Fig.17 A structural block diagram of an electronic device for executing a text content processing method according to an embodiment of the present application is shown;

[0027] Fig.18 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the text content processing method according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] In the interface of an electronic device, users usually perform some operations related to text content. For example, bullet screens can be sent in the video interface, but messages can be sent in the chat interface, and comments can be made in the news browsing interface. In the relevant bullet screen sending process, in the relevant operation process related to text content, there are still problems such as cumbersome operation and low user experience. For example, in the process of sending bullet screens, the user needs to first call out the bullet screen input area configured in the video interface by operating the video interface, and then input and send the bullet screen in the bullet screen input area. Therefore, in the relevant bullet screen sending process, the user needs to perform more manual operations to complete the sending of the bullet screen. For another example, when the user is browsing the news, if the user wants to comment on the news, the user needs to slide the operation interface first to display the comment window, and then enter the comment text content in the comment window. Therefore, in the relevant comment posting process, the user needs to perform more manual operations to complete the sending of the comment.

[0030] Therefore, the inventor proposes a text content processing method, device and electronic device in the present application. When the first interface and the second interface are displayed, after obtaining the text content selected from the first interface, in response to the component corresponding to the text content being dragged to the second interface, the processing operation corresponding to the second interface is performed according to the text content. Thus, by selecting the text content in the first interface and dragging it to the second interface, the processing operation corresponding to the second interface can be directly triggered, which simplifies the steps that the user needs to operate and improves the user's operating experience.

[0031] The following first introduces the application scenarios involved in the embodiments of the present application.

[0032] In the embodiments of the present application, the text content processing method provided can be executed by an electronic device including one display area (for example, one display screen), or by an electronic device including multiple display areas that can be folded with each other (for example, an electronic device including a folding screen). Figure 1 As shown, taking an electronic device including a display area as an example, an application interface 10 and an application interface 11 may be displayed on the display screen of the electronic device, wherein the application interface 10 and the application interface 11 may be displayed in a split-screen display manner. In this case, the application interface 10 may be used as the first interface in the embodiment of the present application, and the application interface 11 may be used as the second interface in the embodiment of the present application.

[0033] In an embodiment of the present application, split-screen display of multiple interfaces can also be understood as displaying the interfaces based on a multi-window mode. In the case of displaying the interfaces based on a multi-window mode, each window is displayed side by side on the screen, and each window is used to display an interface. For example, in the case of displaying application interface 10 and application interface 11 based on a multi-window mode, application interface 10 and application interface 11 can be displayed in different windows respectively. Optionally, when the operating system of the electronic device is an Android system, each of the windows can be generated by an Activity component.

[0034] For example, Figure 2 As shown, in Figure 2 The electronic device shown in the figure may include a display area 20 and a display area 30, and the display area 20 and the display area 30 can be folded relative to each other. Figure 2 In the state shown, the display area 20 and the display area 30 can be in the same plane. The display area 20 displays the application interface 21, and the display area 30 displays the application interface 31, wherein the application interface 21 can be used as the first interface in the embodiment of the present application, and the application interface 31 can be used as the second interface in the embodiment of the present application.

[0035] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0036] See also Figure 3 The present application provides a text content processing method, which is applied to an electronic device, and the method includes:

[0037] S110: Displaying the first interface and the second interface.

[0038] In the embodiment of the present application, the first interface and the second interface can be understood as application interfaces, and the application interface can be an interface for displaying information included in the application. Among them, the displayed information can include information of types such as text content type, video type or picture type. Information of text content type can include chat content, novel content, news content, etc. Among them, the first interface and the second interface can be understood as two different application interfaces. In the embodiment of the present application, different application interfaces can be understood as different displayed contents, or they can be understood as different applications to which they belong. For example, the first interface and the second interface can belong to the same application, wherein the first interface is used to display chat content, and the second interface is used to play videos. For another example, the applications to which the first interface and the second interface belong can be different, but the first interface and the second interface can both be used to play videos. In addition, in the case where the first interface and the second interface do not belong to the same application, the first interface is used to display chat content, and the second interface is used to play videos.

[0039] It should be noted that in the embodiments of the present application, the content displayed in the first interface and the second interface is not specifically limited. For example, the first interface may be a chat interface, and the second interface may be a video playback interface. For another example, the first interface may be a chat interface, and the second interface may be a news browsing interface, etc.

[0040] In the embodiment of the present application, the first interface and the second interface can be displayed synchronously, or the first interface can be displayed first and then the second interface, or the second interface can be displayed first and then the first interface. Furthermore, the electronic device can also have multiple ways to trigger the display of the first interface and the second interface.

[0041] As a method, when the first interface is already displayed in the first display area of ​​the screen of the electronic device, in response to the split-screen display operation corresponding to the second interface, the second interface is displayed in the second display area of ​​the screen, and the first display area and the second display area are different. Among them, the split-screen display operation corresponding to the second interface can be understood as the split-screen display operation triggering the display of the second interface in an area outside the first interface. Optionally, the first interface can be a chat dialogue interface. In this way, the electronic device can respond to a click operation on the video link in the first interface (a split-screen display operation corresponding to the second interface), and display the first interface and the second interface based on the split-screen display mode, wherein the second interface is used to play the video corresponding to the video link.

[0042] For example, Figure 4 As shown, in Figure 4 In the chat interface 40 shown, a video link 41 is displayed. If a click operation on the video link 41 is detected, the electronic device can be triggered to switch to the video link 41. Figure 5 The display status shown is Figure 4 The chat interface 41 shown in the figure will reduce the display area to switch to Figure 5 The status shown in the figure is displayed, and the video playing interface 42 is displayed in split screen next to the chat interface 41.

[0043] As another way, the electronic device can trigger the synchronous display of the first interface and the second interface. In this way, an application interface relationship pair can be established, and the synchronous display of the first interface and the second interface can be triggered by the application interface relationship pair. It should be noted that the application interface relationship pair represents a pair of application interfaces with an associated relationship. For a pair of application interfaces with an associated relationship, if one of the application interfaces is triggered to be displayed, the application interface with the associated relationship can be synchronously triggered to be displayed. Exemplarily, if the application interface relationship pair stored in the electronic device includes: application interface A is associated with application interface B, application interface C is associated with application interface D, and application interface E is associated with application interface F. In this case, if the electronic device detects that application interface A is triggered to be displayed, it will synchronously trigger application interface B to be displayed. Correspondingly, if the electronic device detects that application interface B is triggered to be displayed, it will synchronously trigger application interface A to be displayed.

[0044] Optionally, the application interface relationship pairs stored in the electronic device can be pre-configured by the developer of the electronic device, or can be configured by the user of the electronic device according to their own needs. For example, some users want to watch videos while chatting with friends, so the user can configure the chat interface and the interface for playing videos as an application interface relationship pair. For another example, some users want to simultaneously search for the geographical location of the attractions introduced in the video introduction of the tourist attractions on a map while watching the video introduction of the tourist attractions, so the user can configure the application interface for playing the video introduction of the tourist attractions and the application interface for displaying the map as an application interface relationship pair.

[0045] S120: Determine the text content selected in the first interface.

[0046] In the embodiment of the present application, the text content selected in the first interface can be understood as the text content used to perform the processing operation corresponding to the second interface in the second interface. In the embodiment of the present application, the content displayed in the first interface can include multiple types, and there can also be multiple ways to select text content from the first interface.

[0047] As a method, the user can long press the text content that the user wants to select so that the electronic device can use the text content long pressed by the user as the text content selected from the first interface. Among them, the user long pressing the text content can be understood as the user long pressing the display area where the text content to be selected is located, so that the text content in the display area is used as the text content selected from the first interface. For example, in the case where the first interface is a chat interface, the area where each chat message is located is a display area. If a long press on the area where the chat message is located is detected, the text content included in the area where the long pressed chat message is located can be used as the text content selected from the first interface.

[0048] For example, Figure 6 As shown, if a long press operation is detected in the display area 43, the text content included in the display area 43 can be used as the text content selected from the first interface. That is, "This is so interesting, haha!" included in the display area 43 is used as the text content selected from the first interface.

[0049] As another method, the user can first select the text content to be selected using the text content selection tool in the first interface to obtain the selected text content. Then, if a long press operation acting on at least part of the selected text content is detected, the selected text content can be used as the text content selected from the first interface. For example, Figure 7 As shown, in Figure 7 In the first interface 50 shown, a text content paragraph is displayed ( Figure 7 If the electronic device selects the first line of text content (the line marked by the dotted box 51) in response to the user's operation on the text content selection tool, the first line of text content can be used as the selected text content. If the electronic device detects a long press operation on any text content in the line area marked by the dotted box 51, all text content in the area marked by the dotted box 51 can be used as the text content selected from the first interface.

[0050] After the text content selected from the first interface is acquired, the selected text content may be displayed in a suspended manner. In the embodiment of the present application, there may be multiple ways to display the selected text content in a suspended manner.

[0051] As a suspension mode, the selected text content can be suspended and displayed at a specified position. In this mode, no matter where the user's long press operation is applied, the position of the suspended display of the selected text content is fixed, that is, the specified position. For example, the specified position can be Figure 8In this way, the user can drag the text content 44 displayed in suspension.

[0052] As another suspension mode, the electronic device can suspend and display the selected text content at the location where the user triggers a long press operation. In this mode, after the user triggers a long press operation with a touch object (for example, a finger or a stylus) to determine the selected text content, if the user continues to keep the touch object in contact with the screen, the suspended displayed selected text content can move directly with the movement of the touch object, so as to realize dragging of the selected text content.

[0053] S130: In response to a component corresponding to the text content being dragged to the second interface, executing a processing operation corresponding to the second interface according to the text content.

[0054] Among them, the component corresponding to the text content can be understood as a component for displaying the text content. Correspondingly, in the embodiment of the present application, the text content is dragged to a certain place, which can correspond to the component corresponding to the text content being dragged to a certain place. Executing the processing operation corresponding to the second interface according to the text content can be connected to using the text content to execute the processing operation corresponding to the second interface.

[0055] As a method, when a component corresponding to a text content selected in the first interface is dragged to the second interface, it can be determined that a processing operation corresponding to the second interface needs to be performed on the text content. Among them, the processing operation corresponding to the second interface can be understood as a processing operation related to the content displayed in the second interface. Moreover, when the content displayed in the second interface is different, the processing operation corresponding to the second interface will also be different.

[0056] Optionally, when the second interface is used to play a video, performing a processing operation corresponding to the second interface on the text content can be understood as sending a bullet screen with the same content as the selected text content in the video played on the second interface. Fig. 9 As shown, when the selected text content is dragged to the second interface 42, the Fig.10 As shown, the selected text content is sent as the bullet screen corresponding to the video played in the second interface. Optionally, when the second interface is used to display articles (for example, news articles, blog articles, public account articles, etc.), performing a processing operation corresponding to the second interface on the text content can be understood as sending a comment corresponding to the displayed article in the second interface. Optionally, when the second interface is a chat interface, performing a processing operation corresponding to the second interface on the text content can be understood as sending the text content as a message in the second interface.

[0057] As a method, in an embodiment of the present application, a correspondence between the content displayed on the second interface and the corresponding processing operation can be established in advance, so that when the electronic device detects that the text content selected in the first interface is dragged to the second interface, it can determine the processing operation to be performed based on the correspondence.

[0058] It should be noted that in the embodiment of the present application, the text content being dragged to the second interface can be understood as that during the process of dragging the text content, part of the dragged text content enters the scope of the second interface, or it can also be understood as that during the process of dragging the text content, all of the dragged text content enters the scope of the second interface.

[0059] As a method, in response to the component corresponding to the text content being dragged to the second interface and the drag operation being canceled, the text content can be sent as the bullet screen corresponding to the video. The cancellation of the drag operation can be understood as the touch object (finger or stylus) used to drag the text content ending the touch with the display screen.

[0060] The text content processing method provided in this embodiment can, when the first interface and the second interface are displayed, after obtaining the text content selected from the first interface, respond to the component corresponding to the text content being dragged to the second interface, and perform the processing operation corresponding to the second interface according to the text content. In this way, by selecting and dragging the text content in the first interface to the second interface, the processing operation corresponding to the second interface can be directly triggered, which simplifies the steps that the user needs to operate and improves the user's operating experience.

[0061] See also Fig.11 The present application provides a text content processing method, which is applied to an electronic device, and the method includes:

[0062] S210: Displaying the first interface and the second interface.

[0063] S220: Determine the text content selected in the first interface.

[0064] It should be noted that in an embodiment of the present application, when selecting text content for sending a barrage from the first interface, in addition to selecting text content from the text content displayed on the first interface, text content can also be selected from other content displayed on the first interface. For example, text content can also be selected from a picture displayed on the first interface or a played video. In this way, the user can trigger a specified acquisition operation on the first interface so that the electronic device can take a screenshot of the content displayed on the first interface when the specified acquisition operation is touched to obtain an image to be identified. Then, the electronic device can perform graphic recognition on the image to be identified, and then display an interface in the first interface for displaying the results of the graphic recognition. Among them, the results of the graphic recognition may include the results obtained by identifying the text content, pictures and videos in the first interface.

[0065] For example, when both the first interface and the second interface are playing videos, if the user wants to directly send the barrage in the video played in the first interface to the second interface, the user can trigger a specified acquisition operation on the first interface, so that the results of graphic and text recognition displayed in the first interface can include the barrage of the video played in the first interface, and the user can drag the required content from the displayed graphic and text recognition results.

[0066] S230: In response to a component corresponding to the text content being dragged to a designated area in the second interface, executing a processing operation corresponding to the second interface according to the text content.

[0067] Among them, in the embodiment of the present application, the designated area can be understood as an area for triggering the execution of the processing operation corresponding to the second interface. And the designated area included in different second interfaces will be different. Optionally, when the second interface is a chat interface, the designated area can be a text content input box in the second interface. When the second interface is an interface for displaying articles, the designated area can be an area in the second interface where the article content is displayed.

[0068] In the case where the second interface is used to play a video, the designated area includes a video screen area. In this way, the electronic device can respond to the component corresponding to the text content being dragged to the video screen area in the second interface, and send the text content as the barrage corresponding to the video. Among them, the text content being dragged to the video screen area in the second interface can be understood as at least part of the text content being dragged to the video screen area in the second interface during the dragging process, and it can also be understood as all the content included in the text content being dragged to the video screen area in the second interface.

[0069] In some cases, the barrage sent in the video may carry a specified type of barrage with the avatar of the video character to increase the fun of the barrage. Among them, the specified type of barrage includes the barrage avatar and the barrage content. In this way, in order to facilitate the user to send a specified type of barrage, optionally, the electronic device can respond to the text content being dragged to the video screen area in the second interface, obtain the video character displayed at the position where the text content is dragged; send the text content as the specified type of barrage corresponding to the video, wherein the avatar is the avatar of the video character. Among them, the video character at the text content ranked first in the text content can be used as the video character at the text content being dragged. For example, if the content of the dragged text content includes "This is too interesting haha!", then the text content ranked first is "this", so the electronic device can use the video character corresponding to the position of "this" as the video character at the text content being dragged.

[0070] As a method, the electronic device can establish a coordinate system with a certain point in the second interface as the origin. In this way, the coordinates of the text content dragged to the second interface can be obtained, and correspondingly, the coordinates of the text content ranked first in the dragged text content can also be obtained. After obtaining the coordinates of the text content ranked first, the video image corresponding to the position and the coordinates can be compared from the video played by the second application based on the coordinates of the text content ranked first. If a face can be recognized from the video image, the person corresponding to the recognized face can be used as the video person where the text content is dragged. Among them, the electronic device can divide the area where the video is displayed in the second interface into multiple sub-display areas. If it is detected that the coordinates of the text content ranked first fall into a sub-display area, the sub-display area where the coordinates fall is used as the target area, and then the video image displayed in the target area is used as the video image corresponding to the coordinates of the first text content. Exemplary, such as Fig.12 As shown, in Fig.12 The area where the video is displayed is divided into multiple small grids by dotted lines, wherein each small grid represents a sub-display area. Among them, there is no human face in the value display area where the coordinates of the first-ranked text content (i.e., "this") fall, so it will not trigger the display of the specified type of bullet comment.

[0071] It should be noted that in one way, when the electronic device sends the bullet screen, the electronic device can first send the bullet screen content to be sent to the video server (for example, when the second interface is used to play the video, the server that provides the content played by the second interface), and then the video server sends the received bullet screen content to the bullet screen data interface provided by the program to which the second interface belongs, so that the program to which the second interface belongs receives the text content sent by the video server through the bullet screen data interface to send it as a bullet screen, and then the bullet screen sent by the video server can be displayed in the video. Correspondingly, in an embodiment of the present application, after the electronic device responds to the text content being dragged to the specified area in the second interface, the dragged text content can be sent to the server corresponding to the second interface to instruct the server corresponding to the second interface to send the received text content as a bullet screen so that it can be displayed in the video played by the second application. In addition, in the case of sending a specified type of bullet screen, the electronic device will send the text content as a bullet screen to the server corresponding to the second interface, and will also send the character identification of the video character where the text content is dragged, so that the server corresponding to the second interface sends the specified type of bullet screen.

[0072] It should be noted that for different folding screens, the configuration of multiple display areas may be different. For example, in some folding screens, multiple display areas belong to the same display screen, but the display screen is a flexible display screen, so the middle position can be folded. For example, please refer to Figure 2 , Figure 2 The middle dotted line is the center of the display. Figure 2 In the case shown, because the multiple display areas belong to the same display screen, the user can slide between the multiple display areas without interruption. In other folding screens, the multiple display areas belong to different display screens, for example, Fig.13 As shown, the electronic device may include a display screen 60 and a display screen 61, wherein the display screen 60 is a display area, and the display screen 61 is a display area. Fig.12 In the case shown, there is a non-display area between display screen 60 and display screen 61, so the user cannot slide between multiple display areas without interruption. For example, if the user slides from display screen 61 in the direction indicated by the arrow, during the sliding process, Fig.12 The dotted line is not a display area, so sliding to the dotted line is not possible, which results in interrupted sliding. However, in the embodiment of the present application, when the selected text content is dragged from one application interface to another, it may be dragged across the display area, in order to make the method provided in the embodiment of the present application more adaptable.

[0073] As a mode, in the method provided in the embodiment of the present application, after determining the text content selected in the first interface, it also includes: in response to the drag operation of the text content selected from the first interface, dragging the text content, and obtaining the display screen folding configuration mode of the electronic device. If the display screen folding configuration mode indicates that multiple display areas of the electronic device are located in the same display screen (that is, the user can directly drag the text content from one application interface to another application interface), in response to the component corresponding to the text content being dragged to the second interface, the processing operation corresponding to the second interface is performed according to the text content. If the display screen folding configuration mode indicates that multiple display areas of the electronic device are located in different display screens (that is, when the first interface and the second interface are detected to be displayed on different display screens), after detecting that the text content is dragged in the direction of the display screen where the second interface is located and dragged to the boundary of the display screen where the first interface is located, it is detected that the dragging operation is still continuing, then a prompt message is displayed whether the dragged text content is sent as a bullet screen, and if it is detected that the user selects yes, the text content is sent as a bullet screen corresponding to the video played on the second interface, and the dragged text content is canceled in the second interface.

[0074] The corresponding relationship between the model of the electronic device and the display screen folding configuration mode can be stored in the electronic device, so that the electronic device can obtain the corresponding display screen folding configuration mode according to the model.

[0075] The present embodiment provides a method for processing text content, so that when it is necessary to send a bullet screen, the text content in other interfaces (first interface) can be directly dragged to the application interface of the video playing, and the dragged text content can be triggered to be sent as a bullet screen, so that the user can send the bullet screen more conveniently, improving the user operation experience. In addition, in the present embodiment, the designated area for triggering the sending of the bullet screen includes the video screen area, so that when the text content is dragged into the video screen area, the video screen can be identified to obtain the avatar of the video task at the position where the text content is dragged as the avatar of the bullet screen and send it, thereby further improving the intelligence and fun of sending the bullet screen.

[0076] See also Fig.14 The present application provides a text content processing method, which is applied to an electronic device, and the method includes:

[0077] S310: Displaying the first interface and the second interface.

[0078] S320: Determine the text content selected in the first interface, and display a text content display component in a floating manner on the first interface, wherein the text content selected from the first interface is displayed in the text content display component.

[0079] Wherein, in the embodiment of the present application, the text content display component can be a component that can be used to display text content in the operating system of the electronic device. Optionally, the text content display component can have a variety of implementation methods. As a way, the text content display component can be displayed by means of a pop-up window. In this way, after the text content selected in the first interface, the text content display component that is suspended and displayed is a pop-up window, and the text content selected from the first interface is displayed in the pop-up window. Optionally, the pop-up window for displaying the text content selected from the first interface can be generated and displayed in real time when the text content selected in the first interface is determined, or it can be generated and hidden in advance, and then the hidden pop-up window is switched to a display state when the text content selected in the first interface is determined, and the text content selected from the first interface is displayed in the pop-up window. As a way, in the case where the operating system of the electronic device is an Android operating system, the text content display component can be implemented by a PopupWindow pop-up window. As another way, when the operating system of the electronic device is the Android operating system, the text content display component can also be implemented through the Activity component. In this way, the displayed text content display component can be understood as an Activity, and the text content selected from the first interface is displayed in the Activity.

[0080] In an embodiment of the present application, when the first interface and the second interface belong to different applications, the text content display component may be a component of the application to which the first interface belongs, or the text content display component may be a component of the operating system of the electronic device.

[0081] S330: In response to the text content display component being dragged to the second interface, executing a processing operation corresponding to the second interface according to the text content.

[0082] During the process of dragging the text content display component, the electronic device can obtain the position of the text content display component in real time. If it is detected that the position of the text content display component is within the coverage of the second interface, it can be determined that the text content display component is dragged to the second interface.

[0083] The present embodiment provides a method for processing text content, so that when it is necessary to send a bullet screen, the text content in other interfaces (first interface) can be directly dragged to the application interface of the video playback through the above method, which can trigger the dragged text content to be sent as a bullet screen, so that the user can send the bullet screen more conveniently, improving the user operation experience. In addition, in the embodiment of the present application, the acquired text content will be displayed in the text content display component displayed in suspension, so that the text content dragging across applications can be achieved by dragging the text content display component, so that the dragged text content can be sent as a bullet screen. In addition, in the case where the text content display component is a system-level component, the method provided by the embodiment of the present application can be implemented without making many changes to the application to which the second interface belongs.

[0084] See also Fig.15 The present application provides a text content processing method, which is applied to an electronic device, and the method includes:

[0085] S410: Displaying a first interface and a second interface, where the second interface is used to play a video, and the first interface and the second interface belong to different applications.

[0086] S420: Determine the text content selected in the first interface.

[0087] S430: In response to a component corresponding to the text content being dragged to the second interface, detecting whether the application to which the second interface belongs supports dragging and sending bullet comments.

[0088] In one case, when the application to which the second interface belongs needs to support dragging and sending barrage, when text content is dragged to the second interface, the dragged text content can be identified as text content for sending barrage. As a way, a list of applications that support dragging and sending barrage can be stored in the electronic device. In this way, the electronic device can detect whether the application to which the second interface belongs is in the list in response to the component corresponding to the text content being dragged to the second interface; if it is detected that the application to which the second interface belongs is in the list, it is determined that the application to which the second interface belongs supports dragging and sending barrage, otherwise, it is determined that the application to which the second interface belongs does not support dragging and sending barrage.

[0089] S440: If dragging and dropping to send barrages is supported, the text content is sent as the barrages corresponding to the video.

[0090] S450: If dragging and dropping to send bullet screen is not supported, triggering the second interface to display a bullet screen input control.

[0091] S460: Input the text content into the bullet screen input control, so as to send the text content input into the bullet screen input control as a bullet screen.

[0092] Furthermore, as another method, in this embodiment, when the text content is dragged to the second interface, the second interface can be directly triggered to display the barrage input control, and the text content can be input into the barrage input control to send the text content input into the barrage input control as a barrage.

[0093] This embodiment provides a text content processing method, so that when it is necessary to send a bullet screen, the text content in the other interface (first interface) can be directly dragged to the application interface of the video playing, which can trigger the dragged text content to be sent as a bullet screen, so that the user can send the bullet screen more conveniently, improving the user operation experience. In addition, in this embodiment, it will detect whether the application to which the second interface belongs supports dragging and sending bullet screens, so that different ways of sending bullet screens can be used according to whether the application used to play the video supports dragging and sending bullet screens, thereby improving the adaptability and flexibility of the text content processing method.

[0094] See also Fig.16 The present application provides a device 500 for sending a bullet screen, which runs on an electronic device. The device 500 includes:

[0095] The interface display unit 510 is used to display the first interface and the second interface.

[0096] As a mode, the interface display unit 510 is specifically used to display the first interface and the second interface based on the split-screen display mode in response to the split-screen display operation corresponding to the second interface when displaying the first interface. Optionally, the first interface is a chat dialogue interface. The interface display unit 510 is specifically used to display the first interface and the second interface based on the split-screen display mode in response to a click operation on a video link in the first interface, wherein the second interface is used to play the video corresponding to the video link.

[0097] The text content selection unit 520 is used to determine the text content selected in the first interface.

[0098] The bullet screen sending unit 530 is used to respond to the component corresponding to the text content being dragged to the second interface and perform a processing operation corresponding to the second interface according to the text content.

[0099] As a method, the barrage sending unit 530 is specifically used to send the text content as the barrage corresponding to the video in response to the component corresponding to the text content being dragged to the designated area in the second interface.

[0100] Optionally, the designated area includes a video screen area. The bullet screen sending unit 530 is specifically configured to send the text content as a bullet screen corresponding to the video in response to a component corresponding to the text content being dragged to the video screen area in the second interface.

[0101] Optionally, the barrage sending unit 530 is specifically used to respond to the component corresponding to the text content being dragged to the video screen area in the second interface, obtain the video character displayed at the position where the text content is dragged; and send the text content as a specified type of barrage corresponding to the video, wherein the avatar is the avatar of the video character.

[0102] As a method, the text content selection unit 520 is specifically used to determine the text content selected in the first interface, and to suspend and display the text content display component in the first interface, wherein the text content selected from the first interface is displayed in the text content display component. The barrage sending unit 530 is specifically used to send the text content as the barrage corresponding to the video in response to the text content display component being dragged to the second interface.

[0103] As a method, the first interface and the second interface belong to different applications. The barrage sending unit 530 is specifically used to detect whether the application to which the second interface belongs supports dragging and sending barrages in response to the component corresponding to the text content being dragged to the second interface; if dragging and sending barrages is supported, the text content is sent as the barrage corresponding to the video. If dragging and sending barrages is not supported, the second interface is triggered to display a barrage input control based on a simulated click; the text content is input into the barrage input control based on a simulated click to trigger the sending of the text content as a barrage.

[0104] The device for sending bullet comments provided in this embodiment can, when displaying the first interface and the second interface, after obtaining the text content selected from the first interface, respond to the component corresponding to the text content being dragged to the second interface, and perform the processing operation corresponding to the second interface according to the text content. Thus, by selecting the text content in the first interface and dragging it to the second interface, the processing operation corresponding to the second interface can be directly triggered, which simplifies the steps that the user needs to operate and improves the user's operating experience.

[0105] It should be noted that the device embodiments in the present application correspond to the aforementioned method embodiments, and the specific implementation principles of each unit in the device embodiments are similar to the principles in the aforementioned method embodiments. The specific contents in the device embodiments can be found in the method embodiments, and will not be repeated in the device embodiments.

[0106] The following will be combined Fig.17 An electronic device provided by the present application is described.

[0107] See also Fig.17 Based on the above-mentioned storage box positioning method and device, the embodiment of the present application also provides an electronic device 1000 that can execute the above-mentioned storage box positioning method. The electronic device 1000 includes one or more (only one is shown in the figure) processors 105, a memory 104, an audio playback module 106, and an audio acquisition device 108 that are coupled to each other. Among them, the memory 104 stores a program that can execute the content of the above-mentioned embodiment, and the processor 105 can execute the program stored in the memory 104.

[0108] Among them, the processor 105 may include one or more processing cores. The processor 105 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Optionally, the processor 105 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 105 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 105, but may be implemented separately through a communication chip.

[0109] The memory 104 may include a random access memory (RAM) or a read-only memory (ROM). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.

[0110] Furthermore, in addition to the aforementioned components, the electronic device 1000 may further include a network module 110 and a sensor module 112 .

[0111] The network module 110 is used to realize information interaction between the electronic device 1000 and other devices. For example, a connection can be established with other audio playback devices or other electronic devices, and information interaction is performed based on the established connection. As a way, the network module 110 of the electronic device 1000 is a radio frequency module, which is used to receive and send electromagnetic waves, realize the mutual conversion of electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The radio frequency module may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. For example, the radio frequency module can interact with external devices through electromagnetic waves sent or received.

[0112] The sensor module 112 may include at least one sensor. Specifically, the sensor module 112 may include but is not limited to: a pressure sensor, a motion sensor, an acceleration sensor, and other sensors.

[0113] Among them, the pressure sensor may be a sensor that detects the pressure generated by pressing on the electronic device 1000. That is, the pressure sensor detects the pressure generated by contact or pressing between the user and the electronic device 1000, for example, the pressure generated by contact or pressing between the user's ear and the electronic device 1000. Therefore, the pressure sensor can be used to determine whether contact or pressing occurs between the user and the electronic device 1000, and the magnitude of the pressure.

[0114] Among them, the acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of the electronic device 1000 (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device 1000 can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, etc., which will not be repeated here.

[0115] The audio collection device 110 is used to collect audio signals. Optionally, the audio collection device 110 includes a plurality of audio collection devices, which may be microphones.

[0116] Please refer to Fig.18 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 1100 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0117] The computer readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 1110 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1110 can be compressed, for example, in an appropriate form.

[0118] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0119] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0120] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0121] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.

[0122] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0123] In summary, the present application provides a text content processing method, device, and electronic device. When displaying the first interface and the second interface, after obtaining the text content selected from the first interface, in response to the component corresponding to the text content being dragged to the second interface, the processing operation corresponding to the second interface is performed according to the text content. Thus, by selecting and dragging the text content in the first interface to the second interface, the processing operation corresponding to the second interface can be directly triggered, which simplifies the steps that the user needs to operate and improves the user's operating experience.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical feature diagrams therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A text content processing method, characterized in that: Applied to electronic equipment, the method comprises: Display the first interface and the second interface; Determine the text content selected in the first interface; In response to a component corresponding to the text content being dragged to the second interface, a processing operation corresponding to the second interface is performed according to the text content.

2. The method according to claim 1, characterized in that In response to a component corresponding to the text content being dragged to the second interface, performing a processing operation corresponding to the second interface according to the text content includes: In response to a component corresponding to the text content being dragged to a designated area in the second interface, a processing operation corresponding to the second interface is performed according to the text content.

3. The method according to claim 1, characterized in that Determining the text content selected in the first interface includes: In response to a long press operation on text content in the first interface, the text content acted upon by the long press operation is used as selected text content, and the selected text content is placed in a draggable state.

4. The method according to claim 1, characterized in that Determining the text content selected in the first interface includes: Obtain the text content in the first interface through a text content selection tool; In response to a long press operation on at least a portion of the text content, the portion of the text content is used as the text content selected from the first interface.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: Floating display of selected text content; Wherein, when the touch object that triggers the long press operation keeps in contact with the screen after triggering the long press operation, the selected text content can move along with the touch object.

6. The method according to claim 1, characterized in that Determining the text content selected in the first interface includes: In response to a designated collection operation triggered on the first interface; Performing image and text recognition on the content displayed on the first interface, and displaying the result of the image and text recognition on the first interface; The selected text content is determined from the result of the image-text recognition.

7. The method according to claim 1, characterized in that The determining the text content selected in the first interface includes: Determine the text content selected on the first interface, and suspend and display a text content display component on the first interface, wherein the text content selected from the first interface is displayed in the text content display component; In response to a component corresponding to the text content being dragged to the second interface, performing a processing operation corresponding to the second interface according to the text content includes: In response to the text content display component being dragged to the second interface, a processing operation corresponding to the second interface is performed according to the text content.

8. The method according to claim 7, characterized in that In response to the text content display component being dragged to the second interface, performing a processing operation corresponding to the second interface according to the text content, including: In the video played on the second interface, in response to a barrage sending instruction, the text content is sent as the barrage corresponding to the video played on the second interface.

9. The method according to claim 1, characterized in that: The second interface is used to play the video, and in response to a component corresponding to the text content being dragged to the second interface, a processing operation corresponding to the second interface is performed according to the text content, including: In response to the component corresponding to the text content being dragged to the second interface, the second interface is triggered to display a barrage input control, and the text content is input into the barrage input control to send the text content input into the barrage input control as a barrage.

10. The method according to claim 1, characterized in that The first interface and the second interface belong to different applications.

11. The method according to claim 10, characterized in that In response to the application relationship between the first interface and the second interface, the first interface and the second interface are synchronously triggered to be displayed.

12. The method according to claim 1, characterized in that The displaying of the first interface and the second interface comprises: Displaying a first interface in a first display area of ​​a screen of the electronic device; In response to a split-screen display operation on the second interface, the second interface is displayed in a second display area of ​​the screen, and the first display area and the second display area are different.

13. The method according to claim 12, characterized in that The first interface is a chat dialogue interface, and the second interface is used to play videos; The step of displaying the second interface in a second display area of ​​the screen in response to the split-screen display operation on the second interface includes: In response to a click operation on a video link in the first interface, the second interface is displayed in a second display area of ​​the screen, wherein the second interface is used to play the video corresponding to the video link.

14. A device for sending barrage, characterized in that: Running on an electronic device, the device comprises: An interface display unit, used to display a first interface and a second interface; A text content selection unit, used to determine the text content selected in the first interface; A bullet screen sending unit is used to respond to the component corresponding to the text content being dragged to the second interface and perform a processing operation corresponding to the second interface according to the text content.

15. An electronic device, characterized in that: including one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 12.

16. A computer-readable storage medium storing a program code executable by a processor, characterized in that: The computer-readable storage medium includes stored program code, wherein when the program code is executed, the method according to any one of claims 1 to 12 is executed.