CN108196756B - Method and device for switching input of instant messaging interface, storage medium and terminal equipment - Google Patents

Method and device for switching input of instant messaging interface, storage medium and terminal equipment Download PDF

Info

Publication number
CN108196756B
CN108196756B CN201810090341.0A CN201810090341A CN108196756B CN 108196756 B CN108196756 B CN 108196756B CN 201810090341 A CN201810090341 A CN 201810090341A CN 108196756 B CN108196756 B CN 108196756B
Authority
CN
China
Prior art keywords
button
information
text
input
instant messaging
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
CN201810090341.0A
Other languages
Chinese (zh)
Other versions
CN108196756A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810090341.0A priority Critical patent/CN108196756B/en
Publication of CN108196756A publication Critical patent/CN108196756A/en
Application granted granted Critical
Publication of CN108196756B publication Critical patent/CN108196756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Abstract

The invention provides a method, a device, a storage medium and a terminal device for switching input of an instant messaging interface, wherein the method comprises the following steps: detecting a click on an instant messaging interface of a user terminal; the instant messaging interface comprises a main interactive interface and an input field, wherein the main interactive interface is used for displaying streaming media information; the input field comprises an information submission button and a text input box; when the click is located in the area of the information submission button and the information submission button is a praise button, sending praise information of the user terminal to a server; when the click is located in the area of the text input box, displaying the information submission button as a sending button and receiving text information input by a user; and detecting a click within a region of the send button to send the text information typed to the text input box to the server. By adopting the invention, the praise button and the send button share one interface area, and the occupation of the interface space is reduced.

Description

Method and device for switching input of instant messaging interface, storage medium and terminal equipment
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for switching input of an instant messaging interface, a storage medium and terminal equipment.
Background
Live broadcasting is a broadcasting mode in which the later synthesis and broadcasting of a broadcast television program are performed simultaneously. The network video live broadcast is live broadcast service which is carried out by utilizing network resources, and the live video is shot and synchronously uploaded to the network, so that a user can see the live consultation at the first time on the network at the same time. The live broadcast service of the network is widely applied to live broadcast services such as news conferences, exhibitions, product releases, product recommendations, sales site displays, network concerts, company concerts, business meetings, celebration ceremonies, program performances, movie and television shooting, sports competitions, security analysis, remote education and the like which are developed in real time.
With the development of the live broadcast mode of the video, the user can live broadcast a video which the user wants to live broadcast to other users of the live broadcast application through the live broadcast application, and can also watch videos of other users, listen to the sound of the videos and interact with other users or users playing the video, so that how to improve the interactive experience effect in the interaction process becomes a technical problem to be solved by the live broadcast application technology.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a storage medium, and a terminal device for switching an instant messaging interface input, so as to solve or alleviate the above technical problems in the prior art.
In a first aspect, an embodiment of the present invention provides a method for switching input of an instant messaging interface, including:
detecting a click on an instant messaging interface of a user terminal; the instant messaging interface comprises a main interactive interface and an input field, wherein the main interactive interface is used for displaying streaming media information; the input field comprises an information submission button and a text input box; the initial state of the information submission button is a praise button;
when the click is located in the area of the information submission button and the information submission button is in an initial state, sending approval information of the user terminal to a server; and
when the click is located in the area of the text input box, displaying the information submission button as a sending button and receiving text information input by a user; and detecting a click within a region of the send button to send the text information typed to the text input box to the server.
With reference to the first aspect, in a first implementation manner of the first aspect, the method further includes:
when the information submission button is displayed as a sending button, detecting whether text information input by a user is received;
when receiving text information input by a user, setting the state of the sending button to be an inoperable state; and
and when the text information input by the user is not received, setting the state of the sending button to be an operable state.
With reference to the first aspect, in a second implementation manner of the first aspect, the method further includes:
receiving the popularity information sent by the server; the popularity information of the praise is obtained by the server through calculation according to the received praise information;
displaying the received praise popularity information on the main interactive interface;
receiving text information sent by a server; the text information is the text information obtained after the server verifies the received text information; and
and displaying the received text information on the main interactive interface.
With reference to the first aspect, in a third implementation of the first aspect, the method further includes:
when the click is located in the area of the main interactive interface, detecting whether the information submission button is displayed as the sending button; and
and if so, switching the currently displayed sending button to the praise button.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the method further includes:
when the click in the area of the sending button is detected, judging whether the click mode is a keyboard triggering mode or not; and
and if so, switching the currently displayed sending button to the praise button.
With reference to any one of the first to fourth embodiments of the first aspect, in a fifth embodiment of the first aspect, the method further includes:
when the click is located in the area of the text input box, displaying a border of the text input box as a square border; and
and when the sending button is switched to the like button, displaying the frame of the text input box as an oval frame for prompting a user to input comment text.
In a second aspect, an embodiment of the present invention provides an apparatus for switching input of an instant messaging interface, including:
the click detection module is used for detecting the click on the instant messaging interface of the user terminal; the instant messaging interface comprises a main interactive interface and an input field, wherein the main interactive interface is used for displaying streaming media information; the input field comprises an information submission button and a text input box; the initial state of the information submission button is a praise button;
a praise sending module, configured to send praise information of the user terminal to a server when the click is located in the area of the information submission button and the information submission button is in an initial state; and
the text sending module is used for displaying the information submitting button as a sending button and receiving text information input by a user when the click is positioned in the area of the text input box; and detecting a click within a region of the send button to send the text information typed into the text input box to the server.
With reference to the second aspect, in a first implementation manner of the second aspect, the apparatus further includes:
the text input detection module is used for detecting whether text information input by a user is received or not when the information submission button is displayed as a sending button;
the first state setting module is used for setting the state of the sending button to be an inoperable state when text information input by a user is not received; and
and the second state setting module is used for setting the state of the sending button to be an operable state when text information input by a user is received.
With reference to the second aspect, in a second implementation manner of the second aspect, the apparatus further includes:
the approval information receiving module is used for receiving the approval popularity information sent by the server; the popularity information of the praise is obtained by the server through calculation according to the received praise information;
the praise information display module is used for displaying the received praise popularity information on the main interactive interface;
the comment text receiving module is used for receiving text information sent by the server; the text information is the text information obtained after the server verifies the received text information; and
and the comment text display module is used for displaying the received text information on the main interactive interface.
With reference to the second aspect, in a third embodiment of the second aspect, the apparatus further comprises:
a sending button detection module, configured to detect whether the information submitting button is displayed as the sending button when the click is located in the area of the main interactive interface; and
and the sending button switching module is used for switching the currently displayed sending button into the like button if the sending button is currently displayed.
The functions of the device can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In a possible design, the structure for input switching of the instant messaging interface includes a processor and a memory, the memory is used for storing a program of the device supporting input switching of the instant messaging interface for executing the method for input switching of the instant messaging interface in the first aspect, and the processor is configured to execute the program stored in the memory. The device for switching the input of the instant messaging interface can also comprise a communication interface, and the device for switching the input of the instant messaging interface is used for communicating with other equipment or a communication network.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, which is used for computer software instructions for an apparatus for instant messaging interface input switching, and includes a program for executing the method for instant messaging interface input switching in the first aspect to the apparatus for instant messaging interface input switching.
Any one of the above technical solutions has the following advantages or beneficial effects:
the embodiment of the invention sets a main interactive interface and an input field on an instant messaging interface, and sets a praise button and a text input box in the input field; when the click is detected in the area of the clicking praise button, displaying the clicking praise information to increase the popularity of the interactive interface; when the click is detected in the text input box, the approval button is switched to be a sending button, and when the click is detected in the area of the sending button later, the comment text which is typed into the text input box is conveniently sent to the server subsequently, so that other user terminals can receive the comment text; therefore, the approval and the comment are realized in the interface, the approval button and the sending button share one interface area, and the occupation of the interface space is reduced.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present invention will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
FIG. 1 is a flowchart illustrating an embodiment of a method for switching input of an instant messaging interface according to the present invention;
FIG. 2 is a diagram illustrating one embodiment of an initial default interface of an instant messaging interface provided by the present invention;
FIG. 3 is a schematic diagram of another embodiment of an instant messaging interface provided by the present invention;
FIG. 4 is a schematic structural diagram of an embodiment of an instant messaging interface input switching apparatus according to the present invention;
fig. 5 is a schematic structural diagram of an embodiment of a terminal device provided by the present invention.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
Embodiments of the present invention are directed to providing an instant messaging interface, which can simultaneously implement functions of praise and comment, and the technical solution of the present invention will be described in detail in the following embodiments:
example one
Referring to fig. 1, an embodiment of the present invention provides a method for switching input of an instant messaging interface, which can be executed by a user terminal, for example, an electronic device such as a mobile phone, a tablet, a computer, etc., and includes steps S10 to S30, as follows:
and S10, detecting the click on the instant messaging interface of the user terminal. As shown in fig. 2, the interface is an initial default interface of an instant messaging interface, and the instant messaging interface includes a main interactive interface for displaying streaming media information and an input field; the input field comprises an information submission button and a text input box; in the initial default interface, the initial state of the information submission button is a praise button. The streaming media information can be live video or replay video, and text information displayed in a sliding manner in the video, wherein the text information is used for comment, and is usually a barrage, which can be only text or text with expression.
And S20, when the area located in the information submission button is clicked and the information submission button is in the initial state, sending the approval information of the user terminal to the server.
In embodiments of the present invention, the thumbs and thumbs may be shaped. And adding a cool and popular animation to the live video or the replay video of the main interactive interface so as to increase the interactive heat.
And the server calculates and obtains the like popularity information according to the received like information, and sends the like popularity information to all the user terminals displaying the same streaming media information, and the user terminals display the received like popularity information on the main interactive interface.
S30, when clicking the area in the text input box, displaying the information submitting button as a sending button and receiving the text information input by the user; and detecting a click within a region of the send button to send the text information typed into the text input box to the server.
As shown in fig. 3, when it is detected that a click is located in an area of a text input box, the approval button in the initial state is switched to a sending button, at this time, a user can enter text information in the text input box, the user terminal displays the entered information in the text input box, when a subsequent click in the area of the sending button is detected, the server sends the text information entered in the text input box to the server, the server performs corresponding audit, returns the audited text information to all user terminals displaying the same streaming media information, and the user terminal displays the text information returned by the server on the main interactive interface. Therefore, the interaction of praise and comment between the user terminal and the user terminal is realized.
In the first specific example, in the execution process of step S30, the following operations may also be performed:
detecting whether text information input by a user is received or not when an information submission button is displayed as a sending button; when receiving text information input by a user, setting the state of a sending button to be in an inoperable state, for example, displaying the sending button to be in a grey state; and setting the state of the send button to an operable state when the text information entered by the user is not received, for example, the send button displays a bluish state.
In a second specific example, when the user does not click the input field but clicks the main interactive interface, the information submission button is restored to the initial state, specifically as follows:
when the area located in the main interactive interface is clicked, whether an information submitting button is displayed as a sending button or not is detected; if yes, switching the currently displayed sending button to a praise button; if not, the current state is maintained.
In the embodiment of the invention, the click can be triggered by a mouse or a keyboard, and can be triggered by a touch click to be released when the display device is a touch display device, so that when the click in the region of the sending button is detected, whether the click mode is a keyboard triggering mode or not is judged; and if so, restoring the input sample information submission button to the initial state, namely switching the currently displayed sending button to a praise button.
In a third specific example, when the information submit button is displayed in the initial state, that is, when the information submit button is displayed as a thumbs-up button, the frame of the text input box is an oval frame for prompting the user to input comment text. On the other hand, when the click is located in the area of the text input box, the border of the text input box is displayed as a square border, thus prompting the user of the current status of the text to be input.
Example two
Referring to fig. 4, an embodiment of the present invention provides an apparatus for switching input of an instant messaging interface, including:
a click detection module 10, configured to detect a click on an instant messaging interface of a user terminal; the instant messaging interface comprises a main interactive interface and an input field, wherein the main interactive interface is used for displaying streaming media information; the input field comprises an information submission button and a text input box; the initial state of the information submission button is a praise button;
an approval sending module 20, configured to send approval information of the user terminal to the server when the click is located in the area of the information submission button and the information submission button is in the initial state; and
a text sending module 30, configured to display the information submission button as a send button and receive text information entered by a user when the click is located in the area of the text input box; and detecting a click within a region of the send button to send the text information typed to the text input box to the server.
Further, the apparatus further comprises:
the text input detection module is used for detecting whether text information input by a user is received or not when the information submission button is displayed as a sending button;
the first state setting module is used for setting the state of the sending button to be an inoperable state when text information input by a user is not received; and
and the second state setting module is used for setting the state of the sending button to be an operable state when text information input by a user is received.
Further, the apparatus further comprises:
the approval information receiving module is used for receiving the approval popularity information sent by the server; the popularity information of the praise is obtained by the server through calculation according to the received praise information;
the praise information display module is used for displaying the received praise popularity information on the main interactive interface;
the comment text receiving module is used for receiving text information sent by the server; the text information is the text information obtained after the server verifies the received text information; and
and the comment text display module is used for displaying the received text information on the main interactive interface.
Further, the apparatus further comprises:
a sending button detection module, configured to detect whether the information submitting button is displayed as the sending button when the click is located in the area of the main interactive interface; and
and the sending button switching module is used for switching the currently displayed sending button to a like button if the sending button is currently displayed.
The functions of the device can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In a possible design, the structure for input switching of the instant messaging interface includes a processor and a memory, the memory is used for storing a program of the device supporting input switching of the instant messaging interface for executing the method for input switching of the instant messaging interface in the first aspect, and the processor is configured to execute the program stored in the memory. The device for switching the input of the instant messaging interface can also comprise a communication interface, and the device for switching the input of the instant messaging interface is used for communicating with other equipment or a communication network.
EXAMPLE III
An embodiment of the present invention further provides a terminal device, as shown in fig. 5, where the terminal device includes: a memory 21 and a processor 22, the memory 21 having stored therein a computer program operable on the processor 22. The processor 22 implements the method for switching the input of the instant messaging interface in the above embodiments when executing the computer program. The number of the memory 21 and the processor 22 may be one or more.
The apparatus further comprises:
a communication interface 23 for communication between the processor 22 and an external device.
The memory 21 may comprise a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 21, the processor 22 and the communication interface 23 are implemented independently, the memory 21, the processor 22 and the communication interface 23 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Optionally, in a specific implementation, if the memory 21, the processor 22 and the communication interface 23 are integrated on a chip, the memory 21, the processor 22 and the communication interface 23 may complete mutual communication through an internal interface.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 invention. 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 invention, "a plurality" means two or more unless specifically defined 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 alternate implementations are included within the scope of the preferred embodiment of the present invention 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 invention.
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.
The computer readable media of embodiments of the present invention may be computer readable signal media or computer readable storage media or any combination of the two. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection (electronic device) 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 read-only memory (CDROM). Additionally, the computer-readable storage medium may 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.
In embodiments of the present invention, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, input method, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the preceding.
It should be understood that portions of the present invention 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 that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when 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 invention 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 separate product, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A method for switching input of an instant messaging interface is characterized by comprising the following steps:
detecting a click on an instant messaging interface of a user terminal; the instant messaging interface comprises a main interactive interface and an input field, wherein the main interactive interface is used for displaying streaming media information; the input field comprises an information submission button and a text input box; the initial state of the information submission button is a praise button;
when the click is located in the area of the information submission button and the information submission button is in an initial state, sending approval information of the user terminal to a server; and
when the click is located in the area of the text input box, displaying the information submission button as a sending button and receiving text information input by a user; and detecting a click within a region of the send button to send the text information typed to the text input box to the server.
2. The method for instant messaging interface input switching according to claim 1, wherein the method further comprises:
when the information submission button is displayed as a sending button, detecting whether text information input by a user is received;
when receiving text information input by a user, setting the state of the sending button to be an inoperable state; and
and when the text information input by the user is not received, setting the state of the sending button to be an operable state.
3. The method for instant messaging interface input switching according to claim 1, wherein the method further comprises:
receiving the popularity information sent by the server; the popularity information of the praise is obtained by the server through calculation according to the received praise information;
displaying the received praise popularity information on the main interactive interface;
receiving text information sent by a server; the text information is the text information obtained after the server verifies the received text information; and
and displaying the received text information on the main interactive interface.
4. The method for instant messaging interface input switching according to claim 1, wherein the method further comprises:
when the click is located in the area of the main interactive interface, detecting whether the information submission button is displayed as the sending button; and
and if so, switching the currently displayed sending button to the praise button.
5. The method for instant messaging interface input switching according to claim 1, further comprising:
when the click in the area of the sending button is detected, judging whether the click mode is a keyboard triggering mode or not; and
and if so, switching the currently displayed sending button to the praise button.
6. The method for switching input of an instant messaging interface of any one of claims 1 to 5, further comprising:
when the click is located in the area of the text input box, displaying a border of the text input box as a square border; and
and when the information submission button is displayed as the like button, displaying the frame of the text input box as an oval frame for prompting the user to input comment text.
7. An instant messaging interface input switching device, comprising:
the click detection module is used for detecting the click on the instant messaging interface of the user terminal; the instant messaging interface comprises a main interactive interface and an input field, wherein the main interactive interface is used for displaying streaming media information; the input field comprises an information submission button and a text input box; the initial state of the information submission button is a praise button;
a praise sending module, configured to send praise information of the user terminal to a server when the click is located in the area of the information submission button and the information submission button is in an initial state; and
the text sending module is used for displaying the information submitting button as a sending button and receiving text information input by a user when the click is positioned in the area of the text input box; and detecting a click within a region of the send button to send the text information typed into the text input box to the server.
8. The device for instant messaging interface input switching according to claim 7, wherein the device further comprises:
the text input detection module is used for detecting whether text information input by a user is received or not when the information submission button is displayed as a sending button;
the first state setting module is used for setting the state of the sending button to be an inoperable state when text information input by a user is not received; and
and the second state setting module is used for setting the state of the sending button to be an operable state when text information input by a user is received.
9. The device for instant messaging interface input switching according to claim 7, wherein the device further comprises:
the approval information receiving module is used for receiving the approval popularity information sent by the server; the popularity information of the praise is obtained by the server through calculation according to the received praise information;
the praise information display module is used for displaying the received praise popularity information on the main interactive interface;
the comment text receiving module is used for receiving text information sent by the server; the text information is the text information obtained after the server verifies the received text information; and
and the comment text display module is used for displaying the received text information on the main interactive interface.
10. The device for instant messaging interface input switching according to claim 7, wherein the device further comprises:
a sending button detection module, configured to detect whether the information submitting button is displayed as the sending button when the click is located in the area of the main interactive interface; and
and the sending button switching module is used for switching the currently displayed sending button into the like button if the sending button is currently displayed.
11. A terminal device for realizing input switching of an instant messaging interface is characterized by comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for instant messaging interface input switching as recited in any of claims 1-6.
12. A computer-readable storage medium storing a computer program, wherein the program, when executed by a processor, implements the method for instant messaging interface input switching according to any one of claims 1-6.
CN201810090341.0A 2018-01-30 2018-01-30 Method and device for switching input of instant messaging interface, storage medium and terminal equipment Active CN108196756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810090341.0A CN108196756B (en) 2018-01-30 2018-01-30 Method and device for switching input of instant messaging interface, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810090341.0A CN108196756B (en) 2018-01-30 2018-01-30 Method and device for switching input of instant messaging interface, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN108196756A CN108196756A (en) 2018-06-22
CN108196756B true CN108196756B (en) 2020-04-24

Family

ID=62591965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810090341.0A Active CN108196756B (en) 2018-01-30 2018-01-30 Method and device for switching input of instant messaging interface, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN108196756B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660875B (en) * 2018-12-29 2021-05-25 咪咕文化科技有限公司 Bullet screen display time determining method, terminal and computer readable storage medium
CN110389809B (en) * 2019-07-26 2023-04-07 上海掌门科技有限公司 Method and apparatus for displaying information
CN114398122B (en) * 2021-12-27 2023-08-29 北京百度网讯科技有限公司 Input method, input device, electronic equipment, storage medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681914A (en) * 2016-03-23 2016-06-15 中青冠岳科技(北京)有限公司 Method and device of processing video announcement based on instant messaging software
CN106375864A (en) * 2016-08-25 2017-02-01 广州华多网络科技有限公司 Virtual good distribution control method and apparatus, and mobile terminal
CN107181978A (en) * 2017-06-19 2017-09-19 武汉斗鱼网络科技有限公司 A kind of barrage processing method and processing device
CN107332991A (en) * 2017-06-28 2017-11-07 北京金山安全软件有限公司 Screen locking interface information processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681914A (en) * 2016-03-23 2016-06-15 中青冠岳科技(北京)有限公司 Method and device of processing video announcement based on instant messaging software
CN106375864A (en) * 2016-08-25 2017-02-01 广州华多网络科技有限公司 Virtual good distribution control method and apparatus, and mobile terminal
CN107181978A (en) * 2017-06-19 2017-09-19 武汉斗鱼网络科技有限公司 A kind of barrage processing method and processing device
CN107332991A (en) * 2017-06-28 2017-11-07 北京金山安全软件有限公司 Screen locking interface information processing method and device

Also Published As

Publication number Publication date
CN108196756A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN109413483B (en) Live content preview method, device, equipment and medium
WO2020133373A1 (en) Video processing method, apparatus, and electronic device, and computer readable storage medium
CN111338537B (en) Method, apparatus, electronic device, and medium for displaying video
US20170163580A1 (en) Interactive method and device for playback of multimedia
US9565146B2 (en) Apparatus and method for controlling messenger in terminal
CN104066009B (en) program identification method, device, terminal, server and system
CN114003326B (en) Message processing method, device, equipment and storage medium
CN108196756B (en) Method and device for switching input of instant messaging interface, storage medium and terminal equipment
WO2021218556A1 (en) Information display method and apparatus, and electronic device
CN109547335B (en) Session message processing method and device
US20170300225A1 (en) Displaying application page of mobile terminal
CN112423009A (en) Method and equipment for controlling live broadcast audio
CN115190366B (en) Information display method, device, electronic equipment and computer readable medium
CN112312222A (en) Video sending method and device and electronic equipment
CN112083853A (en) Account reporting method, account checking device, electronic equipment and storage medium
CN114302208A (en) Video distribution method, video distribution device, electronic equipment, storage medium and program product
TW201924288A (en) Method and apparatus for forwarding chat information, and electronic device
CN105872573A (en) Video playing method and apparatus
US20170171266A1 (en) Method and electronic device based on android platform for multimedia resource play
CN105187644B (en) A kind of method and terminal of play operation
CN104408051A (en) Song recommendation method and device
US20230276079A1 (en) Live streaming room page jump method and apparatus, live streaming room page return method and apparatus, and electronic device
CN114866793B (en) Data processing method, device, electronic equipment and storage medium
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN104735130B (en) A kind of method and apparatus that multimedia file is downloaded

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
GR01 Patent grant
GR01 Patent grant