A kind of live streaming room information methods of exhibiting and system
Technical field
The present invention relates to net cast technical fields, more particularly, to a kind of live streaming room information methods of exhibiting and are
System.
Background technique
Net cast is as a kind of Novel Internet social activity mode, known to more people, it is intended that user
The conveniently video sharing service whenever and wherever possible of offer.Each net cast room is searched engine as a url
It is included, the quantity that the searched engine in a net cast website includes url is more, and the time included is faster, it was demonstrated that this website
It is more friendly to search engine, so that the user that the net cast website is easier searched engine is searched, improve
User's clicking rate of the net cast website, and then improve website promotion and publicity.
In most of net cast websites, each net cast room belongs to the room classes of different stage, respectively
Room and the room classes at different levels belonging to it all include the text informations field such as respective title, keyword and description information.
However, the related keyword information field majority that room is broadcast live in the prior art is initial setting up, it is initial that room key message is broadcast live
The setting of field is unfavorable for the searched engine in each room and is included, and then is unfavorable for the popularization and publicity of webcast website.
Summary of the invention
The present invention in order to overcome the problems referred above or at least is partially solved the above problem, provides a kind of live streaming room information exhibition
Show method and system.
According to an aspect of the present invention, a kind of live streaming room information methods of exhibiting is provided, based on the live streaming room page
Dynamic refresh mechanism is broadcast live room information displaying, comprising the following steps:
Step 1, room classes numbers at different levels belonging to the live streaming room are obtained based on live streaming room number;
Step 2, it is numbered based on room classes at different levels belonging to the live streaming room number and the live streaming room, obtains institute
State all kinds of text informations corresponding to room classes at different levels belonging to live streaming room and the live streaming room;
Step 3, based on all kinds of texts corresponding to room classes at different levels belonging to the live streaming room and the live streaming room
Word information shows rule using live streaming room information, selects all kinds of text informations in the live streaming room and is shown.
Further, before the step 1 further include: by rooms at different levels belonging to the live streaming room number, the live streaming room
Between all kinds of text informations corresponding to room classes at different levels described in classification number, the live streaming room and the live streaming room close
It is stored in the server after connection.
Further, text information corresponding to room classes at different levels belonging to the live streaming room and the live streaming room is extremely
It less include: caption text information, keyword text information and descriptive text information.
Further, the live streaming room information shows that rule further comprises:
There are non-empty caption text information in the room classes at different levels belonging to the live streaming room and the live streaming room
When, select any one of non-empty caption text information as the caption text information in the live streaming room;
There are non-empty keyword text letters in the room classes at different levels belonging to the live streaming room and the live streaming room
When breath, select any one of non-empty keyword text information as the keyword text information in the live streaming room;
There are non-empty descriptive text information in the room classes at different levels belonging to the live streaming room and the live streaming room
When, select any one of non-empty descriptive text information as the descriptive text information in the live streaming room.
Further, the live streaming room information shows that rule further comprises:
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
It whether there is non-empty caption text information in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room;
If there is non-empty caption text information, using first non-empty heading message as the caption text information in the live streaming room;
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
Believe in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room with the presence or absence of non-empty keyword text
Breath;If there is non-empty keyword text information, using first non-empty key word information as the keyword in the live streaming room
Text information;
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
It whether there is non-empty descriptive text information in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room;
If there is non-empty descriptive text information, using first non-empty description information as the descriptive text information in the live streaming room.
Further, after the step 3 further include: do not include in the classification at different levels belonging to the live streaming room and the live streaming
When caption text information, keyword text information and/or descriptive text information, the caption text information, keyword text are selected
Caption text information, keyword text information of the preset value of word information and/or descriptive text information as the live streaming room
And/or descriptive text information.
Further, the step 2 further comprises: based on each belonging to the live streaming room number and the live streaming room
Grade room classes number, finds heading-text corresponding to room classes at different levels belonging to the live streaming room and the live streaming room
Word information, keyword text information and descriptive text information.
Further, room classes number associated storage at different levels belonging to the live streaming room number and the live streaming room exists
Step in database further comprises: room classes at different levels belonging to the live streaming room number, the live streaming room are compiled
Number, all kinds of text informations corresponding to room classes at different levels described in the live streaming room and the live streaming room are with Redis
The form of hash mapping table stores after being associated.
Further, the dynamic refresh mechanism of the live streaming room page further comprises: the live streaming room page changes
For flush mechanism and/or the live streaming flush mechanism of the room page based on user request information.
According to a further aspect of the present invention, a kind of live streaming room information display systems are provided, based on the live streaming room page
Dynamic refresh mechanism is broadcast live room information displaying, including classification number obtains module, text information obtains module and selection
Display module:
The classification number obtains module and is connected with text information acquisition module, for being obtained based on live streaming room number
Take room classes numbers at different levels belonging to the live streaming room;
The text information obtains module and obtains module with the number respectively, display module is selected to be connected, for being based on
The number of room classes at different levels belonging to the live streaming room number and the live streaming room, obtain the live streaming room and it is described directly
Broadcast all kinds of text informations corresponding to room classes at different levels belonging to room;
The selection display module and the text information obtain module and are connected, for being based on the live streaming room and described
All kinds of text informations corresponding to room classes at different levels belonging to room are broadcast live, live streaming room information is utilized to show rule, selection
All kinds of text informations in the live streaming room are simultaneously shown.
The application proposes a kind of live streaming room information methods of exhibiting and system, and the present invention has increases live streaming room text in real time
Word information diversity, and then increase net cast website can be searched the quantity that engine is included, so that belonging to it
Net cast website is preferably expanded and publicizes.
Detailed description of the invention
Fig. 1 is according to a kind of overall procedure schematic diagram that room information methods of exhibiting is broadcast live of the embodiment of the present invention;
Fig. 2 is according to a kind of overall framework schematic diagram that room information display systems are broadcast live of the embodiment of the present invention;
Fig. 3 is according to a kind of structural framing schematic diagram for the equipment that room information methods of exhibiting is broadcast live of the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below
Example is not intended to limit the scope of the invention for illustrating the present invention.
It in Fig. 1, shows in a specific embodiment of the invention, a kind of live streaming room information methods of exhibiting overall flow signal
Figure.Generally, the dynamic refresh mechanism based on the live streaming room page is broadcast live room information displaying, comprising the following steps:
Step 1, room classes numbers at different levels belonging to the live streaming room are obtained based on live streaming room number;
Step 2, it is numbered based on room classes at different levels belonging to the live streaming room number and the live streaming room, obtains institute
State all kinds of text informations corresponding to room classes at different levels belonging to live streaming room and the live streaming room;
Step 3, based on all kinds of texts corresponding to room classes at different levels belonging to the live streaming room and the live streaming room
Word information shows rule using live streaming room information, selects all kinds of text informations in the live streaming room and is shown.
In another of the invention specific embodiment, a kind of live streaming room information methods of exhibiting is also wrapped before the step 1
Include: by room classes at different levels belonging to the live streaming room number, the live streaming room number, the live streaming room and it is described directly
It is stored in the server after broadcasting all kinds of text informations associations corresponding to room classes at different levels described in room.In this specific implementation
In example, by the number of room classes at different levels belonging to the live streaming room number, the live streaming room, the live streaming room and institute
It states all kinds of text informations corresponding to room classes at different levels described in live streaming room and facilitates mutual lookup, it is necessary to establish above-mentioned
The mutual incidence relation of information stores in the server quickly to search.
In another of the invention specific embodiment, a kind of live streaming room information methods of exhibiting, the live streaming room and institute
It states text information corresponding to room classes at different levels belonging to live streaming room to include at least: caption text information, keyword text
Information and descriptive text information.In the specific embodiment of the invention, above-mentioned three kinds of text informations are given, and current major straight
The text information that the overwhelming majority includes in each live streaming room in website is broadcast, but is not limited in the specific embodiment of the invention using upper
Three kinds of text informations are stated to believe as text corresponding to room classes at different levels belonging to the live streaming room and the live streaming room
The refinement of breath.
In another specific embodiment of the invention, a kind of live streaming room information methods of exhibiting, the live streaming room information
Show that rule further comprises:
There are non-empty caption text information in the room classes at different levels belonging to the live streaming room and the live streaming room
When, select any one of non-empty caption text information as the caption text information in the live streaming room;
There are non-empty keyword text letters in the room classes at different levels belonging to the live streaming room and the live streaming room
When breath, select any one of non-empty keyword text information as the keyword text information in the live streaming room;
There are non-empty descriptive text information in the room classes at different levels belonging to the live streaming room and the live streaming room
When, select any one of non-empty descriptive text information as the descriptive text information in the live streaming room.
In the specific embodiment of the invention, first to above-mentioned three kinds present in the live streaming room and room classes at different levels
Whether text information is that null value is judged, and three judgment steps of the present embodiment do not have the successive requirement in timing, such as
When fruit confirms text informations all kinds of comprising non-empty, one is respectively randomly selected from all kinds of non-empty text informations as described straight
Broadcast the correspondence text information in room.Judgment rule in the specific embodiment of the invention can effectively make the live streaming room text
The displaying of word information is more diversified, to play the beneficial effect that searched engine is grabbed well.
In another specific embodiment of the invention, a kind of live streaming room information methods of exhibiting, the live streaming room information
Show that rule further comprises:
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
It whether there is non-empty caption text information in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room;
If there is non-empty caption text information, using first non-empty heading message as the caption text information in the live streaming room;
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
Believe in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room with the presence or absence of non-empty keyword text
Breath;If there is non-empty keyword text information, using first non-empty key word information as the keyword in the live streaming room
Text information;
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
It whether there is non-empty descriptive text information in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room;
If there is non-empty descriptive text information, using first non-empty description information as the descriptive text information in the live streaming room.
In this specific embodiment of the invention, gives a kind of different from rule given by a upper specific embodiment: pressing
The various text letters are judged from low to high according to the rank of room classes at different levels described in the live streaming room, the live streaming room
Breath whether non-empty, due to the lower text information of category level more refine can react it is described be broadcast live room true content, institute
Using the correspondence text information for taking first non-empty text information as the live streaming room according to above-mentioned judgement sequence be it is a kind of very
Good selection.
In another of the invention specific embodiment, a kind of live streaming room information methods of exhibiting is also wrapped after the step 3
Include: do not include in the classification at different levels belonging to the live streaming room and the live streaming caption text information, keyword text information and/
Or when descriptive text information, the preset value of the caption text information, keyword text information and/or descriptive text information is selected
Caption text information, keyword text information and/or descriptive text information as the live streaming room.
This specific embodiment gives after above-mentioned various selection rules have judged, finally found that in the text information
It is one or more and when non-empty content is not present, need to call preset analog value as the corresponding text in the live streaming room
Content.
In another specific embodiment of the invention, a kind of live streaming room information methods of exhibiting, the step 2 is further wrapped
It includes: being numbered based on room classes at different levels belonging to the live streaming room number and the live streaming room, find the live streaming room
With caption text information, keyword text information and descriptive text corresponding to room classes at different levels belonging to the live streaming room
Information.
In another specific embodiment of the invention, a kind of live streaming room information methods of exhibiting, the live streaming room number
The step of with room classes number associated storage at different levels belonging to the live streaming room in the database, further comprises: will be described
Room classes number, the live streaming room and the live streaming room institutes at different levels belonging to room number, the live streaming room are broadcast live
All kinds of text informations corresponding to the room classes at different levels stated store after being associated in the form of Redis hash mapping table.
In the present invention specific embodiment, Redis-hash is the mapping of the field and value of a string type
Table is the mode of one of redis storage organization, he can be asked on demand for field.Pass through redis's
Hash structure can disposably obtain out all desired all kinds of text informations, reduce the number of network request.
In another of the invention specific embodiment, a kind of live streaming room information methods of exhibiting selects institute in the step 3
It states live streaming room to need the keyword shown and further comprise the step of being shown: in the case where php develops environment, utilizing echo
() function needs the keyword shown to be shown in the live streaming room.Echo is that one kind included in php LISP program LISP is defeated
Method out, the function performance are to export one or more character strings.
In another specific embodiment of the invention, a kind of live streaming room information methods of exhibiting, the live streaming room page
Dynamic refresh mechanism further comprise: it is described live streaming the room page iteration flush mechanism and/or the live streaming room page
Flush mechanism based on user request information.
Live streaming the room page iteration flush mechanism refer to it is described live streaming room where web page or the software page in,
The page with live video play and customer interaction information repeat feedback procedure activity, purpose be usually be in time more
The information of the new live page.Primary " iteration " is known as to the process that live page updates each time, and iteration obtains each time
The result arrived can be as the initial value of page iteration next time.
The live streaming room page is referred to based on the flush mechanism of user request information, during the live streaming room is shown, institute
Solicited message of the live page based on user is stated, the mechanism of part or all of refresh page is carried out to the live page.
In another specific embodiment of the invention, a kind of live streaming room information methods of exhibiting.The live streaming room information
Methods of exhibiting is as follows in detail:
Net cast website web terminal is needed in an iterative process to title, the keywords in each room page,
The text informations such as description are configured, and need the dynamically affiliated first-level class according to room, secondary classification, and three
Grade classification is to be adjusted, if the title that background server is classified for room, first-level class, secondary classification, three-level,
Keywords, description are configured, it then follows room > three-level classification > secondary classification > first-level class principle shows
Title, keywords, description.
Institute roomed title, keywords, description is identical in the prior art, is unfavorable for search and draws
That holds up includes.
This specific embodiment, it is a kind of be broadcast live the dynamic configuration room of room information methods of exhibiting title, keywords,
The text informations such as description avoid unicity, the consistency that room text information is broadcast live in original scheme, Jin Erti
The high diversity of website title, keywords and description, can better including conducive to search engine,
Increase the general light rate of website.
In this specific embodiment, after user enters room, server can be obtained out according to room number room one, two,
The id, abbreviation cid1, cid2, cid3 below of three-level classification.Server is selected to show by customized a set of process and be needed
Title, keywords, the description to be shown.
Due to the function point of demand be can be by configuring the interface display of front end from the background.If background server is directed to
The title that room, first-level class, secondary classification, three-level are classified, keywords, description are configured, it then follows and room >
Three-level classification > secondary classification > first-level class principle shows title, keywords, description.If do not matched
It sets, then needs to show title, keywords, description of default
In order to support the control of backstage dynamic configuration, and can according to classification come oneself selection title,
Keywords and description, customized a set of selection process in this programme, being capable of dynamic configuration page by the process
Title, keywords and the description in face.When user enters direct broadcasting room, server can obtain out according to room number
The id, abbreviation cid1, cid2, cid3 below of one, two, three classification in room.Server passes through customized a set of process
To select to show title, keywords, description for needing to show.
Technical solution is in this specific embodiment in order to allowing the more friendly discrimination room of background server to need to show
Title, keywords, description, customized a set of process, controlled for specially room title,
keywords,description.This agreement includes 3 parts in total, and the specific implementation steps are as follows:
Firstly, obtaining cid1, cid2, the cid3 in room;
Specifically, cid1, the cid2 in room are obtained by customizing method getRoomInfo ($ field, $ roomId),
The information of cid3, wherein $ field is the field name set for needing to take, and $ roomId is room number.
GetRoomInfo: being a kind of customized method in a program, for obtaining the data in room, room information is
It is stored in redis, this method is in order to take out and go and a kind of customized method from redis by room data, only
It is used in present procedure, $ field is the set for needing the field name gone, and $ roomId is room number.
Above-mentioned steps dynamic acquisition room information, reducing the output of flow, can fast and effectively to obtain out room corresponding
Information (mainly obtains cid1, cid2, cid3) here.
Secondly, the corresponding title, keywords of cid1, cid2, cid3 in acquisition room itself and room,
description;
Specifically, obtaining out room, according to each corresponding key value, room by the redis-hash structure set
Key value be room_ $ roomid, classify corresponding key value of level-one, second level, three-level is respectively one_ $ id, two_ $ id,
Three_ $ id, method hMget () is carried by redis come obtain the corresponding title of room cid1, cid2, cid3,
keywords、description。
Redis-hash:Redis hash is the mapping table of the field and value of a string type, is in redis
A kind of storage organization mode, he can be asked on demand for field
Example room number is 401, cid1 10, and cid2 11, cid3 14, then corresponding key value is respectively as follows: room_
401,one_10,two_11,three_14,hMget(array(‘room_401’,’one_10’,’tw o_11’,’three_
14’))。
Above-mentioned steps by the hash structure of redis, can disposably obtain out all desired title,
Keywords, description reduce the number of network request.
Again, according to sequencing room > cid3 > cid2 > cid1 standard, therefrom match the title for needing to show,
keywords、description。
Specifically, default value is carried out to title, keywords, description respectively first, then according to room
The priority of rank dynamically distributes title, keywords, description to judge.
Above-mentioned steps returned data is simple, title, keywords, description required for direct back page,
Other extra title, keywords, description are abandoned, it is ensured that the legitimacy of data.
Finally, the output at interface:
Specifically, by available title, the keywords being shown in above the page to the end of previous step,
description。
The included output work echo of caller can export title, keywords, description on the page.
Echo is a kind of output method carried in php LISP program LISP, which is to export one or more characters
String.
Above-mentioned steps 1 obtain result and directly export, and do not have to any Asynchronous Request, reduce the pressure of server;2, it is tied
Fruit directly exports, and renders the page faster, withouts waiting for;3, it is more advantageous to the caching of the page.
It is dynamic to obtain in a kind of live streaming room information methods of exhibiting specific embodiment in still another embodiment of the present invention
It is illustrated for state configuration title, the acquisition modes of the dynamic configuration of keywords, description are similar.
Realization process in above-mentioned specific implementation is customized for getRoomTdk ($ roomid), when the page initializes, this
Three customizing methods are called to obtain last display title, keywords, description in method respectively, they are respectively
GetLastTitle, getLastKeys (), getLastDes (), title, keywords required for then directly returning,
Description is returned the result such as:
{
Title:’1111’,
Keywords:’22222’,
Description:’333333’
}
Example: room number 401, when calling (401) getRoomTdk, according to available in the process of Protocol Design in 1
Room title, keywords, description;
By taking title as an example: setting room title as roomtitle, the title of cid1 is title1, and the title of cid2 is
The title of title2, Cid3 are title3, then process judgement are carried out to title, according to customizing method getLastTitle
(roomtitle, title1, title2, title3) judges to need the title that shows.
Next the function implementation method of analysis getLastTitle.
The function of getLastTitle function: the function major function is to obtain finally to need to be shown on the page
title。
Judge process analysis:
1, pass through if (roomtitle!=") come judge roomtitle whether be it is empty, if be not it is empty if return
Otherwise roomtitle enters 2 as the title being finally shown in above the page;
2, pass through if (title1!=") come judge title1 whether be it is empty, if be not it is empty if return to title1 conduct
Otherwise the title being finally shown in above the page enters 3;
3, pass through if (title3!=") come judge title3 whether be it is empty, if be not it is empty if return to title3 conduct
Otherwise the title being finally shown in above the page enters 4;
4, pass through if (title3!=") come judge title3 whether be it is empty, if be not it is empty if return to title3 conduct
Otherwise the title being finally shown in above the page terminates to judge, to default title as being finally shown on the page
title;
With above-mentioned process, when obtaining keywords, description customizing method getLastKeys (),
GetLastDes () finally shows keywords and description on the page to obtain.
Above-mentioned specific embodiment: 1, initialization definitions default title, after judgement if roomtitle, title1,
Title2, title3 all in the absence of do not need the process that program is saved to title again assignment.2, the step at most only needs
4 judgements are carried out, it can be with the number of the reduction judgement of high degree in the case where title meets.3, pass through the envelope of function
Dress, it is later simple call getRoomTdk () can be rapidly obtained need to be shown in title above the page,
keywords,description.4, return the result clear, obtained result can directly be used without secondary operation,
The time of program output is saved.
Such as Fig. 2, in another specific embodiment of the invention, a kind of live streaming room information display systems, based on live streaming room
Between the page dynamic refresh mechanism, be broadcast live room information displaying, including classification number obtain modules A 1, text information obtain
Modules A 2 and selection display module A3:
The classification number obtains modules A 1 and is connected with text information acquisition modules A 2, for being compiled based on live streaming room
Room classes at different levels belonging to the live streaming room number are obtained to number;
The text information obtains modules A 2 and obtains modules A 1 with the number respectively, display module A3 is selected to be connected, and uses
Numbered in based on room classes at different levels belonging to the live streaming room number and the live streaming room, obtain the live streaming room with
All kinds of text informations corresponding to room classes at different levels belonging to the live streaming room;
The selection display module A3 and the text information obtain modules A 2 and are connected, for based on the live streaming room with
All kinds of text informations corresponding to room classes at different levels belonging to the live streaming room show rule using live streaming room information,
It selects all kinds of text informations in the live streaming room and is shown.
In another specific embodiment of the invention, a kind of live streaming room information display systems, further include memory module, are used
In by room classes at different levels belonging to the live streaming room number, the live streaming room number, the live streaming room and it is described directly
It is stored in the server after broadcasting all kinds of text informations associations corresponding to room classes at different levels described in room.
In another of the invention specific embodiment, a kind of live streaming room information display systems, the live streaming room and institute
It states text information corresponding to room classes at different levels belonging to live streaming room to include at least: caption text information, keyword text
Information and descriptive text information.
In another specific embodiment of the invention, a kind of live streaming room information display systems, the live streaming room information
Show that rule further comprises:
There are non-empty caption text information in the room classes at different levels belonging to the live streaming room and the live streaming room
When, select any one of non-empty caption text information as the caption text information in the live streaming room;
There are non-empty keyword text letters in the room classes at different levels belonging to the live streaming room and the live streaming room
When breath, select any one of non-empty keyword text information as the keyword text information in the live streaming room;
There are non-empty descriptive text information in the room classes at different levels belonging to the live streaming room and the live streaming room
When, select any one of non-empty descriptive text information as the descriptive text information in the live streaming room.
The above three judgment step that embodiment is embodied in the present invention does not have the successive requirement in timing.
In another specific embodiment of the invention, a kind of live streaming room information display systems, the live streaming room information
Show that rule further comprises:
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
It whether there is non-empty caption text information in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room;
If there is non-empty caption text information, using first non-empty heading message as the caption text information in the live streaming room;
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
Believe in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room with the presence or absence of non-empty keyword text
Breath;If there is non-empty keyword text information, using first non-empty key word information as the keyword in the live streaming room
Text information;
According to the sequence of room classes rank at different levels from low to high belonging to current live room, the live streaming room, according to
It whether there is non-empty descriptive text information in room classes at different levels belonging to the secondary judgement live streaming room and the live streaming room;
If there is non-empty descriptive text information, using first non-empty description information as the descriptive text information in the live streaming room.
In another specific embodiment of the invention, a kind of live streaming room information display systems, further include presetting module, are used
In the classification at different levels belonging to the live streaming room and the live streaming not comprising caption text information, keyword text information and/
Or when descriptive text information, the preset value of the caption text information, keyword text information and/or descriptive text information is selected
Caption text information, keyword text information and/or descriptive text information as the live streaming room.
In another specific embodiment of the invention, a kind of live streaming room information display systems, the text information is obtained
Module is also used to number based on room classes at different levels belonging to the live streaming room number and the live streaming room, finds described straight
It broadcasts caption text information, keyword text information corresponding to room classes at different levels belonging to room and the live streaming room and retouches
State text information.
In another specific embodiment of the invention, a kind of live streaming room information display systems, the memory module is also used
In by room classes at different levels belonging to the live streaming room number, the live streaming room number, the live streaming room and it is described directly
All kinds of text informations corresponding to room classes at different levels described in room are broadcast to be associated in the form of Redis hash mapping table
After store.In another specific embodiment of the invention, a kind of live streaming room information display systems,
In another specific embodiment of the invention, a kind of live streaming room information display systems, the selection display module
It is also used in the case where php develops environment, needs the keyword shown to be shown in the live streaming room using echo () function.
In another specific embodiment of the invention, a kind of live streaming room information display systems, the live streaming room page
Dynamic refresh mechanism further comprise: it is described live streaming the room page iteration flush mechanism and/or the live streaming room page
Flush mechanism based on user request information.
Live streaming the room page iteration flush mechanism refer to it is described live streaming room where web page or the software page in,
The page with live video play and customer interaction information repeat feedback procedure activity, purpose be usually be in time more
The information of the new live page.Primary " iteration " is known as to the process that live page updates each time, and iteration obtains each time
The result arrived can be as the initial value of page iteration next time.
The live streaming room page is referred to based on the flush mechanism of user request information, during the live streaming room is shown, institute
Solicited message of the live page based on user is stated, the mechanism of part or all of refresh page is carried out to the live page.
Fig. 3 shows the structural block diagram of the equipment of the live streaming room information methods of exhibiting of the embodiment of the present application.
Referring to Fig. 3, the equipment of the live streaming room information methods of exhibiting, comprising: processor (processor) 301, storage
Device (memory) 302, communication interface (Communications Interface) 303 and bus 304;
Wherein,
The processor 301, memory 302, communication interface 303 complete mutual communication by the bus 304;
Information of the communication interface 303 between the equipment and the communication equipment of live streaming room information methods of exhibiting passes
It is defeated;
The processor 301 is used to call the program instruction in the memory 302, to execute above-mentioned each method embodiment
Provided method, for example, step 1, rooms point at different levels belonging to the live streaming room are obtained based on live streaming room number
Class number;Step 2, it is numbered based on room classes at different levels belonging to the live streaming room number and the live streaming room, obtains institute
State all kinds of text informations corresponding to room classes at different levels belonging to live streaming room and the live streaming room;Step 3, based on described
All kinds of text informations corresponding to room classes at different levels belonging to room and the live streaming room are broadcast live, utilizes and room information is broadcast live
It shows rule, select all kinds of text informations in the live streaming room and is shown.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, such as based on the dynamic of the live streaming room page
State flush mechanism is broadcast live room information displaying, comprising the following steps: step 1, is obtained based on live streaming room number described straight
Broadcast room classes numbers at different levels belonging to room;Step 2, based on each belonging to the live streaming room number and the live streaming room
Grade room classes number obtains all kinds of texts corresponding to room classes at different levels belonging to the live streaming room and the live streaming room
Word information;Step 3, based on all kinds of texts corresponding to room classes at different levels belonging to the live streaming room and the live streaming room
Information shows rule using live streaming room information, selects all kinds of text informations in the live streaming room and is shown.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example
Dynamic refresh mechanism such as based on the live streaming room page is broadcast live room information displaying, comprising the following steps: step 1, be based on
Live streaming room number obtains room classes numbers at different levels belonging to the live streaming room;Step 2, it is based on the live streaming room number
It numbers, obtains at different levels belonging to the live streaming room and the live streaming room with room classes at different levels belonging to the live streaming room
All kinds of text informations corresponding to room classes;Step 3, based on rooms at different levels belonging to the live streaming room and the live streaming room
Between classify corresponding all kinds of text informations, utilize live streaming room information to show rule, select all kinds of texts in the live streaming room
Word information is simultaneously shown.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light
The various media that can store program code such as disk.
The embodiments such as the equipment of live streaming room information methods of exhibiting described above are only schematical, wherein described
Unit may or may not be physically separated as illustrated by the separation member, and component shown as a unit can be with
It is or may not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can
It is achieved the purpose of the solution of this embodiment with selecting some or all of the modules therein according to the actual needs.This field is common
Technical staff is without paying creative labor, it can understands and implements.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, the present processes are only preferable embodiment, it is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention
Within the scope of.