CN109901836A - Display methods, device and the client device of information flow - Google Patents

Display methods, device and the client device of information flow Download PDF

Info

Publication number
CN109901836A
CN109901836A CN201910147558.5A CN201910147558A CN109901836A CN 109901836 A CN109901836 A CN 109901836A CN 201910147558 A CN201910147558 A CN 201910147558A CN 109901836 A CN109901836 A CN 109901836A
Authority
CN
China
Prior art keywords
control
information
media
type
current
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.)
Granted
Application number
CN201910147558.5A
Other languages
Chinese (zh)
Other versions
CN109901836B (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910147558.5A priority Critical patent/CN109901836B/en
Publication of CN109901836A publication Critical patent/CN109901836A/en
Application granted granted Critical
Publication of CN109901836B publication Critical patent/CN109901836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The display methods of information flow provided in an embodiment of the present invention, it may be implemented when receiving the information to be displayed stream of server transmission, control is called to manage class, according to preset flow type and the basic corresponding relationship of control and the corresponding relationship of media information type and media elements control, it determines and the corresponding current basal control of current information stream type and current media element control corresponding with current media information type, generates control combination;From information flow content, content corresponding with current basal control and current media element control is obtained respectively, fills control combination;Preset dynamic class is called, draws the control combination in opening the page.Realize the display of information flow.This class of class is only managed by control, is achieved that the function that the prior art is realized during showing information flow by a base class and multiple subclasses, therefore, size of code is greatly reduced compared with the prior art.

Description

Display methods, device and the client device of information flow
Technical field
The present invention relates to page info stream field of display technology, display methods, device more particularly to a kind of information flow And client device.
Background technique
The display of multidate information in the APP page is referred to as information flow and shows, such as: referring to Fig. 1, certain interaction APP's In the page, it is shown that a multidate information exactly shows a kind of information flow.
Currently, the information in information flow is shown by different controls, since there are many kinds of types for information flow, such as: Personal homepage information flow, circle information flow or multidate information information flow, therefore used in the information flow of every kind of flow type Control is also different.Such as: as shown in Figure 1, the information flow is a circle information flow comprising information have: user information, text This information, pictorial information, source-information and toolbar information.Wherein, user information shown by user information view, text Information is shown by text view, pictorial information is shown by picture view, source-information is shown by source view, toolbar Information is shown by toolbar view.Wherein, based on user information view, text view, source view and toolbar view Control, picture view are media elements controls.
For a type of information flow, used basis control is fixed and invariable, and used matchmaker Element of volume control can be varied with the difference of the media information type of media information in information to be displayed stream, such as: such as Media information in fruit information to be displayed stream is picture, i.e., the media information type of the information to be displayed stream is picture type, then Determine the information to be displayed stream, the media elements control that should be used is picture view;If the media in information to be displayed stream Information is video, it is determined that the information to be displayed stream, the media elements control that should be used are video control;If to be shown Media information is picture+text, it is determined that the information to be displayed stream, the media elements control that should be used are picture and text view.
In response to this, the prior art will fix the basic control used and the different media elements controls that may be used Part carries out permutation and combination, establishes multiple for showing the subclasses of information flow, and each subclass includes a kind of media elements control and one Kind or a variety of immobilizing foundation controls.That is, being directed to a type of information flow, need to correspond to the media letter of each type Breath, establishes a subclass.In the information flow that client device needs display server to send, first according to the letter of server transmission The type and media information type for ceasing stream, determine corresponding subclass, obtain the control combination for including in the subclass;Specific to Fig. 1 Shown in circle information flow, the corresponding basic control of the flow type is contained in the control combination, comprising: user information view Figure, text view, source view and toolbar view and picture view this media elements control.Then, according to be shown The above-mentioned control combination of the fills of information flow;Dynamic class is recalled, the control combination for including in the subclass is drawn in the page.
Inventor has found that at least there are the following problems for the prior art in the implementation of the present invention: the letter of each type The all corresponding base class for display of breath stream, the information flow of each type all includes media information type, due to being directed to The media information of each type requires for the corresponding media elements control of the media information and basic control to be combined, often Kind combination one subclass of correspondence establishment, thus each media information type corresponds to a subclass again, this is resulted in, each type It is many to result in category information along with the corresponding class of each control for all corresponding base class of information flow and multiple subclasses.
For interacting APP, flow type refers to personal homepage information flow or circle information flow etc. multiple types Information flow, for the convenience of description, assuming that the flow type of interaction APP only has 2 kinds: personal homepage information flow and circle letter Breath stream.Since the information flow of each type all corresponds to a base class, thus, interaction APP has 2 base class: personal homepage information Flow a corresponding base class and the corresponding base class of circle information flow.And the information flow of each type all includes media letter Type is ceased, the information flow of usual each type all includes 30 media information types;So, the information flow of each type just has A subclass more than 30.In this way, personal homepage information flow has a base class and more than 30 a subclasses, circle letter for interaction APP Breath stream has a base class and more than 30 a subclasses etc..So multiclass information all must be written into program, big so as to cause size of code The problem of.
Summary of the invention
The display methods for being designed to provide a kind of information flow, device and the client device of the embodiment of the present invention, with solution Problem certainly big because of size of code caused by more than category information.Specific technical solution is as follows:
In order to achieve the above object, in a first aspect, being applied to the embodiment of the invention provides a kind of information flow display method Client device, which comprises
Information flow display request is sent to server;It is current comprising information to be displayed stream in the information flow display request Flow type;
Receive the information to be displayed stream that the server is sent;Include: in the information to be displayed stream information flow content and The current media information type of media information in information flow content;
Preset control management class is called, is believed according to the corresponding relationship and media of preset flow type and basic control The corresponding relationship for ceasing type and media elements control, from registered basic control and media elements control, determine with it is described The corresponding current basal control of current information stream type and current media element control corresponding with the current media information type Part generates control combination;
From the information flow content, obtain and the current basal control and the current media element control pair respectively The content answered fills the control combination;
Preset dynamic class is called, draws the control combination in opening the page.
Optionally, before described the step of being requested to server transmission information flow display, further includes:
According to the page info for working as front opening, the current information stream type of information to be displayed stream is determined.
Optionally, the basic control and media elements control are registered in the control management class using following steps:
During loading classes, by the identification information category information corresponding with the basis control of each basic control, with And the identification information of each media control category information corresponding with the media control is registered to the control pipe as registration information It manages in class.
Optionally, the corresponding relationship of the preset flow type and basic control, are as follows: preset flow type with The corresponding relationship of the identification information of basic control;
The corresponding relationship of the media information type and media elements control, are as follows: media information type and media elements control The corresponding relationship of the identification information of part;
It is described that preset control is called to manage class, according to the corresponding relationship and matchmaker of preset flow type and basic control The corresponding relationship of body information type and media elements control, from registered basic control and media elements control, determine with The corresponding current basal control of current information stream type and current media corresponding with current media information type member The step of plain control, generation control combination, comprising:
The control management class is called, according to the corresponding pass of preset flow type and the identification information of basic control System, determines the identification information of the corresponding current basal control of the current information stream type;
According to the corresponding relationship of media information type and the identification information of media elements control, the determining and current media The identification information of the corresponding current media element control of information type;
Using the identification information of the current basal control and the identification information of the current media element control, generate The combination of control mark;
According to the corresponding category information of control in the combination and the registration information of the control of generation mark, set of controls is generated It closes.
Optionally, described from the information flow content, it obtains and the current basal control and the current matchmaker respectively The corresponding content of element of volume control, the step of filling the control combination, comprising:
According to the information flow content of the information to be displayed stream, determine that each control is corresponding to aobvious in the control combination Show content;
The corresponding class of each control in control combination is called, using content to be displayed corresponding with the control, described in filling Each control in control combination.
Optionally, after described the step of calling preset dynamic class, drawing the control combination in opening the page, Further include:
When detecting that user clicks the control in the opening page, preset event handling class is called, is completed default Event corresponding with control is clicked.
Second aspect, the embodiment of the invention provides a kind of information flow display device, described device includes:
Request module, for sending information flow display request to server;Comprising to aobvious in the information flow display request Show the current information stream type of information flow;
Receiving module, the information to be displayed stream sent for receiving the server;Include: in the information to be displayed stream The current media information type of information flow content and the media information in information flow content;
Generation module, for calling preset control management class, according to pair of preset flow type and basic control It should be related to the corresponding relationship with media information type and media elements control, from registered basic control and media elements control In, the corresponding current basal control of determining and described current information stream type and corresponding with the current media information type work as Preceding media elements control generates control combination;
Module is filled, for from the information flow content, is obtained respectively and the current basal control and described current The corresponding content of media elements control, fills the control combination;
Drafting module draws the control combination in opening the page for calling preset dynamic class.
Optionally, described device, further includes:
Determining module, for before the request module sends information flow display request to server, according to currently beating The page info opened determines the current information stream type of information to be displayed stream.
Optionally, described device, further includes:
Registration module is used for during loading classes, by the identification information and the basis control pair of each basic control The identification information of the category information and each media control answered category information corresponding with the media control is as registration information, note Volume is into control management class.
Optionally, the corresponding relationship of the preset flow type and basic control, are as follows: preset flow type with The corresponding relationship of the identification information of basic control;
The corresponding relationship of the media information type and media elements control, are as follows: media information type and media elements control The corresponding relationship of the identification information of part;
The generation module, comprising:
Basic control determines submodule, for calling the control management class, according to preset flow type and basis The corresponding relationship of the identification information of control determines the identification information of the corresponding current basal control of the current information stream type;
Media control determines submodule, for corresponding with the identification information of media elements control according to media information type Relationship determines the identification information of current media element control corresponding with the current media information type;
Control identifier combination generates submodule, for using the identification information of the current basal control and described current The identification information of media elements control generates the combination of control mark;
Combination producing submodule, control is corresponding in the combination and the registration information for being identified according to the control of generation Category information, generate control combination.
Optionally, the filling module, comprising:
It determines submodule, for the information flow content according to the information to be displayed stream, determines every in the control combination The corresponding content to be displayed of one control;
Submodule is filled, for calling the corresponding class of each control in control combination, using corresponding with the control to aobvious Show content, fills each control in the control combination.
Optionally, described device, further includes:
Detection module, for calling at preset event when detecting that user clicks the control in the opening page Class is managed, preset event corresponding with control is clicked is completed.
The third aspect, the embodiment of the invention provides a kind of client devices, including processor, communication interface, memory And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes following steps:
Information flow display request is sent to server;It is current comprising information to be displayed stream in the information flow display request Flow type;
Receive the information to be displayed stream that the server is sent;Include: in the information to be displayed stream information flow content and The current media information type of media information in information flow content;
Preset control management class is called, is believed according to the corresponding relationship and media of preset flow type and basic control The corresponding relationship for ceasing type and media elements control, from registered basic control and media elements control, determine with it is described The corresponding current basal control of current information stream type and current media element control corresponding with the current media information type Part generates control combination;
From the information flow content, obtain and the current basal control and the current media element control pair respectively The content answered fills the control combination;
Preset dynamic class is called, draws the control combination in opening the page.
Present invention implementation additionally provides a kind of computer readable storage medium, storage in the computer readable storage medium There is the step of computer program, the computer program realizes the display methods of any of the above-described information flow when being executed by processor.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers When, so that computer executes the display methods of any of the above-described information flow.
Display methods, device and the client device of a kind of information flow provided in an embodiment of the present invention, may be implemented to clothes Device of being engaged in sends information flow display request, includes the current information stream type of information to be displayed stream in information flow display request; The information to be displayed stream that the server is sent is received, includes: in information flow content and information flow in the information to be displayed stream The current media information type of media information in appearance;Call preset control management class, according to preset flow type with The corresponding relationship of basic control and the corresponding relationship of media information type and media elements control, from registered basic control and In media elements control, determine corresponding with current information stream type current basal control and with the current media information The corresponding current media element control of type generates control combination;From the information flow content, obtain respectively and described current Basic control and the corresponding content of the current media element control, fill the control combination;Preset dynamic class is called, It opens in the page and draws the control combination.To realize the display of information flow.Method provided in an embodiment of the present invention, only This class of class is managed by control, is achieved that the prior art by a base class and multiple subclasses in display information flow process The function of middle realization, therefore, size of code is greatly reduced compared with the prior art, solves that category information in the prior art is more to be caused The big problem of size of code.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the schematic diagram of the multidate information shown in certain interaction APP page;
Fig. 2 a is the method flow signal that information flow display method provided in an embodiment of the present invention is applied to client device Figure;
Fig. 2 b is a kind of method flow schematic diagram that control is generated in information flow display method provided in an embodiment of the present invention;
Fig. 2 c is a kind of idiographic flow schematic diagram of step S203 in Fig. 2 a illustrated embodiment;
Fig. 3 is a kind of interactive schematic diagram of information flow display method provided in an embodiment of the present invention;
Fig. 4 is that information flow display device applications provided in an embodiment of the present invention are shown in a kind of apparatus structure of client device It is intended to;
Fig. 5 is information flow display device applications provided in an embodiment of the present invention in another apparatus structure of client device Schematic diagram;
Fig. 6 is the structural schematic diagram of generation module in embodiment illustrated in fig. 4;
Fig. 7 is a kind of structural schematic diagram of client device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
In order to solve the problems, such as that the prior art is big because of size of code caused by more than category information.The embodiment of the invention provides one kind Display methods, device and the client device of information flow.
A referring to fig. 2, the display methods of information flow provided by the invention are applied to client device, which comprises
S201: information flow display request is sent to server;It include information to be displayed stream in the information flow display request Current information stream type;
Wherein, before sending information flow display request to server, may include:
According to the page info for working as front opening, the current information stream type of information to be displayed stream is determined;
Such as: what user worked as front opening is the circle page of certain interaction APP, then having determined that working as information to be displayed stream Preceding flow type should be circle information flow, thus, the information flow for sending circle information flow to server shows request.Service Device is sent to transmission according to the request received, by the content of the information to be displayed stream of the circle information flow and media information type The client device of request.
S202: the information to be displayed stream that the server is sent is received;It include: in information flow in the information to be displayed stream Hold the current media information type with the media information in information flow content;
S203: calling preset control management class, according to the corresponding relationship of preset flow type and basic control and The corresponding relationship of media information type and media elements control is determined from registered basic control and media elements control And the corresponding current basal control of current information stream type and current media corresponding with the current media information type Element control generates control combination;
S204: it from the information flow content, obtains and the current basal control and the current media element respectively The corresponding content of control, fills the control combination;
It specifically can be, according to the information flow content of the information to be displayed stream, to determine each in the control combination The corresponding content to be displayed of control;
The corresponding class of each control in control combination is called, using content to be displayed corresponding with the control, described in filling Each control in control combination.
S205: calling preset dynamic class, draws the control combination in opening the page.
Optionally, preset dynamic class is being called, after drawing control combination in the page, can also is including:
When detecting that user clicks the control in the opening page, preset event handling class is called, is completed default Event corresponding with control is clicked.
In practical applications, user clicks the control opened in the page, and the event triggered can pass through representative (delegate), the event of triggering is dished out to preset event handling class, user's point is completed by preset event handling class The event that the control in the page is triggered is opened in impact.It is shown in this way, control can be made to be mainly used for content, rather than processing Click its event triggered, can make content display function can Event handling separated, it is clear due to dividing the work, Be conducive to be managed collectively.
For example, can be when detecting that user clicks the picture control in the opening page, it will by delegate It clicks the event that the picture control is triggered to dish out to preset event handling class, that is, informs that preset event handling class is used Family clicks the picture control;By preset event handling class, preset event corresponding with control is clicked is determined, such as Are as follows: amplification shows the picture that the picture control is shown, and completes the picture for showing the picture control, amplifies the movement of display.
In other embodiments, it can also be and detecting that user clicks the picture control in the opening page, and really After fixed preset event corresponding with control is clicked, the specific event which is triggered will click on by delegate It dishes out to preset event handling class, that is, informs that preset event handling class user clicks the picture control, and click The specific time that the picture control is triggered are as follows: amplification shows the picture that the picture control is shown;By preset event handling class, The picture for showing the picture control is completed, the movement of display is amplified.
By Fig. 2 a as it can be seen that a kind of display methods of information flow provided in an embodiment of the present invention, only passes through a control management This class of class is achieved that the function that the prior art is realized during showing information flow by a base class and multiple subclasses Can, therefore, size of code is greatly reduced compared with the prior art, and it is big to solve the more caused size of code of category information in the prior art The problem of.
Specifically, basic control and media elements control can be registered to control using following steps in the embodiment of the present invention Part manages in class:
During loading classes, by the identification information category information corresponding with the basis control of each basic control, with And the identification information of each media control category information corresponding with the media control is registered to control management class as registration information In.
In practical applications, it can be to trigger in user each time and open software instruction, according to the instruction unpack software mistake The stage of loading classes in journey, by the identification information category information corresponding with the basis control of each basic control and each matchmaker The identification information of body control category information corresponding with the media control is registered in control management class as registration information.Referring to Fig. 2 b, by taking certain interacts APP as an example, after user each time clicks the APP, the stage of loading classes of the APP in opening procedure, By each basic control: user information view (userInfoView), toolbar view (toolBar), title view (title), the identification information category information corresponding with the basis control of description view (describe) and each media control Part: picture view (ImageView), video views (videoView), audio perspective (audioView), vindication view The identification information of moodView category information corresponding with the media control manages class as registration information, dynamic registration to control (viewBuilder) in.Identification information category information corresponding with the basis control and each matchmaker due to each basic control The identification information of body control category information corresponding with the media control is opened in the opening software instruction triggered according to user The stage of loading classes during the APP is registered in control management class, therefore, can be considered as registration information By above-mentioned registration information dynamic registration into viewBuilder.
Wherein, the corresponding relationship of preset flow type and basic control, are as follows: preset flow type and basis are controlled The corresponding relationship of the identification information of part.The corresponding relationship of media information type and media elements control, are as follows: media information type with The corresponding relationship of the identification information of media elements control.
Client device is to require when user each time triggers and opens software instruction according to the instruction, soft opening The stage of loading classes during part, that is, by the class stage loaded into memory in program, by the mark of each basic control Know the identification information class corresponding with the media control of information category information corresponding with the basis control and each media control Information is registered in control management class as registration information.This is because, the software is in memory when the software is closed Information can be cleaned, at this point, the registration information being registered in control management class can be also cleaned, so needing not open primary Software requires to re-register above-mentioned registration information in control management class primary.
In this case, the step S203 in c referring to fig. 2, Fig. 2 a can specifically include:
S2031: the control management class is called, according to pair of preset flow type and the identification information of basic control It should be related to, determine the identification information of the corresponding current basal control of the current information stream type;
S2032: according to the corresponding relationship of media information type and the identification information of media elements control, determination is worked as with described The identification information of the corresponding current media element control of preceding media information type;
S2033: believed using the identification information of the current basal control and the mark of the current media element control Breath generates the combination of control mark;
S2034: it according to the corresponding category information of control in the combination and the registration information of the control of generation mark, generates Control combination.
For example, viewBuilder is called for embodiment shown in Fig. 2 b, according to preset flow type and basis The corresponding relationship of the identification information of control determines the identification information of the corresponding current basal control of current information stream type;According to The corresponding relationship of the identification information of media information type and media elements control, determines work as corresponding with current media information type The identification information of preceding media elements control;Believed using the identification information of current basal control and the mark of current media element control Breath generates the combination of control mark, the corresponding category information of control in the combination and registration information identified according to the control of generation, into Mobile state combination producing information flow view (feedview).It is to adjust due to the generation of the corresponding feedview of information to be displayed stream With viewBuilder, according to the current information stream type and media information type of the information to be displayed stream, determining respectively should be to aobvious Show ability combination producing after the corresponding current basal control of information flow and current media element control, therefore, can be considered as Current basal control and current media element control dynamic combined it is corresponding to be generated information to be displayed stream by viewBuilder feedview。
In the present embodiment, first according to the identification information of control and media control basic in registration process, control mark is generated Combination, final control combination is generated further according to registration information, size of code is further reduced relative to existing technologies.
In addition, apple mobile device operation system (IOS) has the information flow (cell) of respectively each type corresponding The function of reusing identifier (ReuseIdentifier) is distributed, so that cell can be multiplexed with classifying type;And it is of the invention The information flow of each type respectively corresponds one group of specific control combination again in the method that embodiment provides, therefore, in IOS system In, method provided in an embodiment of the present invention can be very good to agree with the intrinsic multiplexing function of IOS system.
It is exemplified below a specific embodiment, method provided in an embodiment of the present invention is further described in detail.
When user on a client device, by clicking software icon or issuing phonetic order etc., issue and open software and refer to When enabling, information flow is shown on the client device using information flow display method provided in an embodiment of the present invention referring to Fig. 3 Process include:
S300: the opening software instruction of user's triggering is received;
Wherein, which may is that mobile phone, pad, computer, smart television and smartwatch etc..
S301: corresponding software is opened according to the opening software instruction, wherein loading classes in software opening procedure Stage, by each basic identification information category information corresponding with the basis control of control and the mark of each media control Information category information corresponding with the media control is registered in the control management class as registration information;
Wherein, the corresponding relationship of preset flow type and basic control, are as follows: preset flow type and basis are controlled The corresponding relationship of the identification information of part.
The corresponding relationship of media information type and media elements control, are as follows: media information type and media elements control The corresponding relationship of identification information.
S302: according to the page info for working as front opening, the current information stream type of information to be displayed stream is determined;
Such as: what user opened is the circle page of certain interaction APP, then having determined that the current letter of information to be displayed stream Ceasing stream type should be circle information flow;Or, user's opening is personal homepage, then having determined that working as information to be displayed stream Preceding flow type should be personal homepage letter information stream.
S303: information flow display request is sent to server;It include information to be displayed stream in the information flow display request Current information stream type;
S304: the information to be displayed stream that the server is sent is received;It include: in information flow in the information to be displayed stream Hold the current media information type with the media information in information flow content;
S305: calling preset control management class, according to the corresponding relationship of preset flow type and basic control and The corresponding relationship of media information type and media elements control is determined from registered basic control and media elements control And the corresponding current basal control of current information stream type and current media corresponding with the current media information type Element control generates control combination;
S306: it from the information flow content, obtains and the current basal control and the current media element respectively The corresponding content of control, fills the control combination;
S307: calling preset dynamic class, draws the control combination in opening the page;
S308: when the control in the opening page is clicked at reception family, the event processing instruction of triggering;
S309: according to the event processing instruction, calling preset event handling class, completes preset and is clicked control pair The event answered.
Such as: if setting event corresponding with picture control, for the picture for showing the picture control, amplification display.That , when opening a certain picture control in the page when the user clicks, as receive the event processing instruction of user's triggering;According to The event processing instruction calls event handling class, completes the picture for showing the picture control, amplifies the operation of display.
In a kind of specific application scenarios, by taking certain interacts APP as an example, user opens the interaction on a client device The circle page of APP.Client device determines the current information stream class of information to be displayed stream according to the page info for working as front opening Type is circle information flow, thus, the information flow for sending circle information flow to server shows request.
Server believes the content of the information to be displayed stream of the circle information flow and current media according to the request received Breath type is sent to the client device.The preset control of the client call manages class, according to each information to be displayed stream Current information stream type and basic control identification information corresponding relationship, determine the corresponding current base of current information stream type The identification information of plinth control;Since the current information stream type of information to be displayed stream is circle information flow, accordingly it is determined that aobvious Show the identification information of the current basal control of information flow, for the identification information of basic control corresponding with circle flow type.
According to the corresponding relationship of media information type and the identification information of media elements control, determining and current media information The identification information of the corresponding current media element control of type;By taking current media information type is picture type as an example, according to matchmaker The corresponding relationship of the identification information of body information type and media elements control, it is determined that current media information type is corresponding current The identification information of media elements control is the identification information of picture control.
Using the identification information of current basal control and the identification information of current media element control, control mark is generated Combination;Further according to the corresponding category information of control in the combination and registration information of the control mark of generation, control combination is generated.
Further, according to the information flow content of information to be displayed stream, determine that each control is corresponding to aobvious in control combination Show content;The corresponding class of each control in control combination is called, content to be displayed corresponding with the control is used, fills set of controls Each control in conjunction.
Preset dynamic class is recalled, draws the control combination in the circle page that user opens.In this way, user can To see multidate information in the circle page.
Another scene can be user in the circle composition page of interaction APP, write moving comprising video State information, and send button is clicked, at this point, the content for the multidate information that user writes is sent to service by client device Device.
Server is after the content for receiving above-mentioned multidate information, according to the content of the multidate information, determines that the dynamic is believed Corresponding medium type is ceased, and saves the content and medium type of the multidate information.
User returns to the circle page of interaction APP after writing.At this point, the client device, according to the page for working as front opening Face information determines that the flow type of information to be displayed stream is circle information flow, thus, circle information flow is sent to server Information flow display request.
Server is according to the request received, by the content and media information class of the information to be displayed stream of the circle information flow Type is sent to the client device.
The client device calls preset control to manage class, according to the current information stream class of each information to be displayed stream Type and current media information type, determine the identification information of the corresponding current basal control of current information stream type respectively, and work as The identification information of the corresponding current media element control of preceding media information type, generates the combination of control mark.
Since the current information stream type of information to be displayed stream is circle information flow, accordingly it is determined that information to be displayed stream Current basal control identification information, for the identification information of basic control corresponding with circle flow type.With the user For the multidate information just sent out: since the media information type in the multidate information is video type, accordingly it is determined that this is to aobvious The identification information for showing the corresponding current media element control of information flow is the identification information of video control, and then uses current basal The identification information of control and the identification information of current media element control generate the combination of control mark;Further according to the control of generation The corresponding category information of control in the combination and registration information of part mark, generates control combination.
According to the information flow content of each information to be displayed stream, determine that each control is corresponding to be shown in control combination Content;The corresponding class of each control in control combination is called, content to be displayed corresponding with the control is used, fills control combination In each control.Preset dynamic class is recalled, draws the control combination in the circle page that user opens.With the user For the multidate information just sent out: after dynamic class has drawn the corresponding information flow of multidate information, user can be in the circle page Its multidate information just sent out is seen in face.
In one embodiment, it can be server after the content for receiving above-mentioned multidate information, save dynamic letter Cease the information flow content of corresponding information flow.After server receives the information flow display request of client device transmission, clothes Business device determines the information flow content of information to be displayed stream according to the request received, and according to the information flow of information to be displayed stream Content determines current media information type, then by the information flow content of the information to be displayed stream of the circle information flow and current matchmaker Body information type is sent to the client device.
In other embodiments, it can be user is writing multidate information, and after clicking send button, client device Current media information type, and the dynamic that user is write are determined according to the information flow content of the corresponding information flow of multidate information The information flow content of information and the current media information type determined are sent to server.Server is receiving above-mentioned dynamic letter After the information flow content and current media information type of breath, the information flow content and current media type of the multidate information are saved.
As seen from Figure 3, the display methods of a kind of information flow provided in an embodiment of the present invention only manages class by a control This class is achieved that the function that the prior art is realized during showing information flow by a base class and multiple subclasses, Therefore, size of code is greatly reduced compared with the prior art, solve category information in the prior art it is more caused by size of code it is big Problem.
Corresponding with Fig. 2 a illustrated embodiment, the embodiment of the invention also provides a kind of information flow display devices.
Referring to fig. 4, which includes:
Request module 401, for sending information flow display request to server;In information flow display request comprising to Show the current information stream type of information flow;
Receiving module 402, the information to be displayed stream sent for receiving the server;It is wrapped in the information to be displayed stream It includes: the current media information type of information flow content and the media information in information flow content;
Generation module 403, for calling preset control management class, according to preset flow type and basic control The corresponding relationship of corresponding relationship and media information type and media elements control, from registered basic control and media elements control In part, the corresponding current basal control of determining and described current information stream type and corresponding with the current media information type Current media element control generates control combination;
Module 404 is filled, for from the information flow content, obtains and the current basal control and described works as respectively The corresponding content of preceding media elements control, fills the control combination;
Drafting module 405 draws the control combination in opening the page for calling preset dynamic class.
Optionally, referring to Fig. 5, described device can also include:
Determining module 502, before being used to send information flow display request to server in the request module, according to current The page info of opening determines the current information stream type of information to be displayed stream.
Optionally, described device can also include:
Registration module 501 is used for during loading classes, by the identification information and the basis control of each basic control The identification information of corresponding category information and each media control category information corresponding with the media control as registration information, It is registered in the control management class.
Optionally, referring to Fig. 6, the corresponding relationship of the preset flow type and basic control, are as follows: preset information The corresponding relationship of the identification information of stream type and basic control;
The corresponding relationship of the media information type and media elements control, are as follows: media information type and media elements control The corresponding relationship of the identification information of part;
The generation module 403 may include:
Basic control determines submodule 601, for calling the control management class, according to preset flow type and base The corresponding relationship of the identification information of plinth control determines the mark letter of the corresponding current basal control of the current information stream type Breath;
Media control determines submodule 602, for according to media information type and the identification information of media elements control Corresponding relationship determines the identification information of current media element control corresponding with the current media information type;
Control identifier combination generates submodule 603, for using the identification information of the current basal control and described working as The identification information of preceding media elements control generates the combination of control mark;
Combination producing submodule 604, control pair in the combination and the registration information for being identified according to the control of generation The category information answered generates control combination.
Optionally, the filling module 404 may include:
Determine submodule (being not drawn into figure), for the information flow content according to the information to be displayed stream, determine described in The corresponding content to be displayed of each control in control combination;
Fill submodule (being not drawn into figure), for calling the corresponding class of each control in control combination, using with the control The corresponding content to be displayed of part fills each control in the control combination.
Optionally, referring to Fig. 5, described device can also include:
Detection module 503, for calling preset event when detecting that user clicks the control in the opening page Class is handled, preset event corresponding with control is clicked is completed.
A kind of display device of information flow provided in an embodiment of the present invention only manages this class of class by a control, It is achieved that the function that the prior art is realized during showing information flow by a base class and multiple subclasses, therefore, relatively Prior-art code amount is greatly reduced, and solves the problems, such as that the more caused size of code of category information is big in the prior art.
Corresponding with Fig. 2 a illustrated embodiment, the embodiment of the invention also provides a kind of client devices, such as Fig. 7 institute Show, including processor 701, communication interface 702, memory 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 completes mutual communication by communication bus 704,
Memory 703, for storing computer program;
Processor 701 when for executing the program stored on memory 703, realizes following steps:
Information flow display request is sent to server;It is current comprising information to be displayed stream in the information flow display request Flow type;
Receive the information to be displayed stream that the server is sent;Include: in the information to be displayed stream information flow content and The current media information type of media information in information flow content;
Preset control management class is called, is believed according to the corresponding relationship and media of preset flow type and basic control The corresponding relationship for ceasing type and media elements control, from registered basic control and media elements control, determine with it is described The corresponding current basal control of current information stream type and current media element control corresponding with the current media information type Part generates control combination;
From the information flow content, obtain and the current basal control and the current media element control pair respectively The content answered fills the control combination;
Preset dynamic class is called, draws the control combination in opening the page.
Client device provided in an embodiment of the present invention only manages this class of class by a control, is achieved that existing The function of thering is technology to realize during showing information flow by a base class and multiple subclasses, therefore, generation compared with the prior art Code amount is greatly reduced, and solves the problems, such as that the more caused size of code of category information is big in the prior art.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described information flow when being executed by processor The step of display methods.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes the display methods of any information stream in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (13)

1. a kind of information flow display method, which is characterized in that be applied to client device, which comprises
Information flow display request is sent to server;It include the current information of information to be displayed stream in the information flow display request Stream type;
Receive the information to be displayed stream that the server is sent;It include: information flow content and information in the information to be displayed stream The current media information type of media information in flow content;
Preset control management class is called, according to the corresponding relationship and media information class of preset flow type and basic control The corresponding relationship of type and media elements control, it is determining and described current from registered basic control and media elements control The corresponding current basal control of flow type and current media element control corresponding with the current media information type, it is raw At control combination;
From the information flow content, obtain respectively corresponding with the current basal control and the current media element control Content fills the control combination;
Preset dynamic class is called, draws the control combination in opening the page.
2. the method according to claim 1, wherein in the step for sending information flow display request to server Before rapid, further includes:
According to the page info for working as front opening, the current information stream type of information to be displayed stream is determined.
3. the method according to claim 1, wherein the basis control and media elements control are using following step Suddenly it is registered in the control management class:
During loading classes, by the identification information category information corresponding with the basis control of each basic control, and often The identification information of a media control category information corresponding with the media control is registered to the control management class as registration information In.
4. according to the method described in claim 3, it is characterized in that,
The corresponding relationship of the preset flow type and basic control, are as follows: preset flow type and basic control The corresponding relationship of identification information;
The corresponding relationship of the media information type and media elements control, are as follows: media information type and media elements control The corresponding relationship of identification information;
It is described that preset control is called to manage class, believed according to the corresponding relationship and media of preset flow type and basic control The corresponding relationship for ceasing type and media elements control, from registered basic control and media elements control, determine with it is described The corresponding current basal control of current information stream type and current media element control corresponding with the current media information type The step of part, generation control combination, comprising:
The control management class is called, according to the corresponding relationship of preset flow type and the identification information of basic control, really Determine the identification information of the corresponding current basal control of the current information stream type;
According to the corresponding relationship of media information type and the identification information of media elements control, the determining and current media information The identification information of the corresponding current media element control of type;
Using the identification information of the current basal control and the identification information of the current media element control, control is generated The combination of mark;
According to the corresponding category information of control in the combination and the registration information of the control of generation mark, control combination is generated.
5. according to the method described in claim 4, it is characterized in that, described from the information flow content, obtain respectively and institute The step of stating current basal control and the corresponding content of the current media element control, filling the control combination, comprising:
According to the information flow content of the information to be displayed stream, determine that each control is corresponding to be shown interior in the control combination Hold;
The corresponding class of each control is called in control combination to fill the control using content to be displayed corresponding with the control Each control in combination.
6. the method according to claim 1, wherein preset dynamic class is called described, in opening the page After the step of drawing the control combination, further includes:
When detecting that user clicks the control in the opening page, call preset event handling class, complete it is preset with It is clicked the corresponding event of control.
7. a kind of information flow display device, which is characterized in that described device includes:
Request module, for sending information flow display request to server;It include letter to be shown in the information flow display request Cease the current information stream type of stream;
Receiving module, the information to be displayed stream sent for receiving the server;It include: information in the information to be displayed stream The current media information type of flow content and the media information in information flow content;
Generation module, for calling preset control management class, according to the corresponding pass of preset flow type and basic control The corresponding relationship of system and media information type and media elements control, from registered basic control and media elements control, Determining current basal control corresponding with the current information stream type and it is corresponding with the current media information type currently Media elements control generates control combination;
Module is filled, for being obtained and the current basal control and the current media from the information flow content respectively The corresponding content of element control, fills the control combination;
Drafting module draws the control combination in opening the page for calling preset dynamic class.
8. device according to claim 7, which is characterized in that described device, further includes:
Determining module, before being used to send information flow display request to server in the request module, according to when front opening Page info determines the current information stream type of information to be displayed stream.
9. device according to claim 7, which is characterized in that described device, further includes:
Registration module is used for during loading classes, and the identification information of each basic control is corresponding with the basis control The identification information of category information and each media control category information corresponding with the media control is registered to as registration information In the control management class.
10. device according to claim 9, which is characterized in that
The corresponding relationship of the preset flow type and basic control, are as follows: preset flow type and basic control The corresponding relationship of identification information;
The corresponding relationship of the media information type and media elements control, are as follows: media information type and media elements control The corresponding relationship of identification information;
The generation module, comprising:
Basic control determines submodule, for calling the control management class, according to preset flow type and basic control Identification information corresponding relationship, determine the identification information of the corresponding current basal control of the current information stream type;
Media control determines submodule, for closing according to media information type is corresponding with the identification information of media elements control System determines the identification information of current media element control corresponding with the current media information type;
Control identifier combination generate submodule, for use the current basal control identification information and the current media The identification information of element control generates the combination of control mark;
Combination producing submodule, the corresponding class of control in the combination and the registration information for being identified according to the control of generation Information generates control combination.
11. device according to claim 9, which is characterized in that the filling module, comprising:
It determines submodule, for the information flow content according to the information to be displayed stream, determines each control in the control combination The corresponding content to be displayed of part;
Fill submodule, for calling the corresponding class of each control in control combination, using it is corresponding with the control it is to be shown in Hold, fills each control in the control combination.
12. device according to claim 7, which is characterized in that described device, further includes:
Detection module, for calling preset event handling class when detecting that user clicks the control in the opening page, Complete preset event corresponding with control is clicked.
13. a kind of client device, which is characterized in that including processor, communication interface, memory and communication bus, wherein place Device, communication interface are managed, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-6.
CN201910147558.5A 2019-02-27 2019-02-27 Information flow display method and device and client device Active CN109901836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910147558.5A CN109901836B (en) 2019-02-27 2019-02-27 Information flow display method and device and client device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910147558.5A CN109901836B (en) 2019-02-27 2019-02-27 Information flow display method and device and client device

Publications (2)

Publication Number Publication Date
CN109901836A true CN109901836A (en) 2019-06-18
CN109901836B CN109901836B (en) 2022-07-22

Family

ID=66945774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910147558.5A Active CN109901836B (en) 2019-02-27 2019-02-27 Information flow display method and device and client device

Country Status (1)

Country Link
CN (1) CN109901836B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401707A (en) * 2019-07-22 2019-11-01 北京奇艺世纪科技有限公司 Stream data processing method, device, electronic equipment and storage medium
CN111651691A (en) * 2020-06-01 2020-09-11 腾讯科技(深圳)有限公司 Content display method, device and equipment based on media information stream and storage medium
CN112199090A (en) * 2019-07-08 2021-01-08 腾讯科技(深圳)有限公司 Information flow processing method, device and computer readable storage medium
WO2024022179A1 (en) * 2022-07-26 2024-02-01 北京字跳网络技术有限公司 Media content display method and apparatus, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080288856A1 (en) * 2007-04-17 2008-11-20 Ted Goranson Digital system for organizing diverse information
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN106385438A (en) * 2016-08-30 2017-02-08 北京达佳互联信息技术有限公司 Information flow gathering display method and related devices
CN107423365A (en) * 2017-06-28 2017-12-01 努比亚技术有限公司 Web access method, terminal and computer-readable recording medium
CN108509589A (en) * 2018-03-29 2018-09-07 优视科技(中国)有限公司 Information flow methods of exhibiting and system, computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080288856A1 (en) * 2007-04-17 2008-11-20 Ted Goranson Digital system for organizing diverse information
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN106385438A (en) * 2016-08-30 2017-02-08 北京达佳互联信息技术有限公司 Information flow gathering display method and related devices
CN107423365A (en) * 2017-06-28 2017-12-01 努比亚技术有限公司 Web access method, terminal and computer-readable recording medium
CN108509589A (en) * 2018-03-29 2018-09-07 优视科技(中国)有限公司 Information flow methods of exhibiting and system, computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199090A (en) * 2019-07-08 2021-01-08 腾讯科技(深圳)有限公司 Information flow processing method, device and computer readable storage medium
CN110401707A (en) * 2019-07-22 2019-11-01 北京奇艺世纪科技有限公司 Stream data processing method, device, electronic equipment and storage medium
CN111651691A (en) * 2020-06-01 2020-09-11 腾讯科技(深圳)有限公司 Content display method, device and equipment based on media information stream and storage medium
WO2024022179A1 (en) * 2022-07-26 2024-02-01 北京字跳网络技术有限公司 Media content display method and apparatus, electronic device and storage medium

Also Published As

Publication number Publication date
CN109901836B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
US11269498B2 (en) Dynamic user interface customization
CN109901836A (en) Display methods, device and the client device of information flow
US11204681B2 (en) Program orchestration method and electronic device
US9124551B2 (en) Multi-touch multi-user interactive control system using mobile devices
CN105701122A (en) Log collection method, apparatus and system
KR20150062686A (en) Spam filtering method of electronic apparatus and electronic appparatus thereof
US9535666B2 (en) Dynamic agent delivery
CN111372115B (en) Application program access method and device and communication system
CN110109598A (en) A kind of animation interaction implementation method, device and electronic equipment
CN112055072A (en) Cloud audio input method and device, cloud system, electronic equipment and storage medium
KR102133514B1 (en) Status message service providing method of electronic apparatus and electronic apparatus thereof
CN110928706B (en) Applet interaction method and device, electronic equipment and storage medium
CN107102950A (en) A kind of applied program testing method and device
US20160274736A1 (en) Synchronized multi-window interaction with hierarchical data on thin-client
CN109791444A (en) Call method and apparatus, server and the terminal of input method
CN111382039A (en) Method, device, electronic equipment and storage medium for reporting user behavior event
EP3314408A1 (en) Dynamically managing different versions of a service
CN104066010A (en) Television interface interaction method and device and set top box
CN107743151A (en) Content delivery method, device, mobile terminal and server
US10965631B2 (en) Activity-related relevance processing of electronic message(s)
CN111382038B (en) Method, device, electronic equipment and storage medium for reporting service data
CN111310175A (en) iOS application safety monitoring and protecting method and device based on plug-in
CN106407354B (en) Content-data statistical method, device, electronic equipment, server and system
CN111831530A (en) Test method and device
EP2365434A1 (en) Method for accessing user interface elements of running third party applications on symbian based mobile device

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