CN108256006A - A kind of direct broadcasting room badge picture loading method and system - Google Patents
A kind of direct broadcasting room badge picture loading method and system Download PDFInfo
- Publication number
- CN108256006A CN108256006A CN201810002217.4A CN201810002217A CN108256006A CN 108256006 A CN108256006 A CN 108256006A CN 201810002217 A CN201810002217 A CN 201810002217A CN 108256006 A CN108256006 A CN 108256006A
- Authority
- CN
- China
- Prior art keywords
- badge
- picture
- direct broadcasting
- broadcasting room
- badge picture
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of direct broadcasting room badge picture loading method and system, the method include:When client terminal start-up, configuration information is obtained from server-side, the configuration information includes the badge pictorial information that multiple direct broadcasting rooms needs load;The badge pictorial information that multiple direct broadcasting rooms needs according to being configured in the configuration information load, downloads corresponding badge picture from server-side, is stored in client local;When direct broadcasting room needs to load badge picture, the corresponding badge picture of the direct broadcasting room is locally found from client and is loaded.The present invention is according to server-side to the configuration information of the badge picture of each direct broadcasting room, corresponding badge picture is downloaded from server-side by network, real-time update is realized to the badge picture being locally stored, flexible configuration to the badge picture of direct broadcasting room can be realized by configuration information, no longer stick to the limited badge picture being locally stored in.
Description
Technical field
The present invention relates to picture loading technique field, more particularly, to a kind of direct broadcasting room badge picture loading method and
System.
Background technology
With the fast development of network direct broadcasting, each main broadcaster needs the badge picture that oneself is customized, table in network direct broadcasting
Bright identity, grade of oneself etc., i.e., each direct broadcasting room need to customize the badge picture of itself.The badge figure of each direct broadcasting room customization
Piece has multiple grades, multiple types.
At present, conventional way is that the badge picture that each direct broadcasting room needs customize is stored in client local, nothing
Method realizes the real-time update to badge picture;It is changeless during due to being stored in local badge picture, direct broadcasting room is fixed
It can not be changed when the badge picture of system is within a very long time, can not realize the flexible configuration to direct broadcasting room badge picture.
Invention content
The present invention provides a kind of direct broadcasting room badge picture for overcoming the above problem or solving the above problems at least partly
Loading method and system can overcome the problems, such as that badge picture can not update configuration in the prior art.
According to an aspect of the present invention, a kind of direct broadcasting room badge picture loading method is provided, including:
When client terminal start-up, configuration information is obtained from server-side, the configuration information, which includes multiple direct broadcasting rooms, to be needed to add
The badge pictorial information of load;
The badge pictorial information that multiple direct broadcasting rooms needs according to being configured in the configuration information load, above and below server-side
Corresponding badge picture is carried, is stored in client local;
When direct broadcasting room needs to load badge picture, the corresponding badge picture of the direct broadcasting room is locally found from client and is carried out
Loading.
Based on the above technical solution, the present invention can also improve as follows.
Further, it is described to be specifically included from server-side acquisition configuration information:
When client terminal start-up, the configuration interface in client is called from server-side acquisition request configuration information, and receive
The configuration information that server-side returns, wherein, the configuration information is presented with array form, each array element includes live streaming
Between id, badge photo grade and badge picture/mb-type.
Further, the badge pictorial information loaded according to each direct broadcasting room needs, is downloaded corresponding from server-side
Badge picture is stored in client and locally specifically includes:
Badge photo grade and badge picture/mb-type in each array element, are downloaded corresponding from server-side
Badge picture;
The badge picture of download is named according to the naming rule of direct broadcasting room id, badge photo grade and badge picture/mb-type
After be stored in client local.
Further, the badge photo grade and badge picture/mb-type in each array element, from service
Corresponding badge picture is downloaded on end to specifically include:
Create a queue, the quantity of the array element in the configuration information, establishment and institute in the queue
The downloading task of the identical quantity of array element quantity is stated, and is performed under badge picture according to the sequence of the downloading task in queue
Load task is downloaded badge picture.
Further, the queue is tandem queue or parallel queue;
When the queue is tandem queue, all emblems in queue are performed one by one according to the sequence of the downloading task in queue
Chapter picture downloading task, is downloaded badge picture;
When the queue be parallel queue when, all badge picture downloading tasks in queue are equally divided into it is multigroup, often
One group of badge picture downloading task in secondary execution queue, is downloaded badge picture.
Further, it is described when direct broadcasting room needs to load badge picture, direct broadcasting room correspondence is locally found from client
Badge picture carry out loading specifically include:
Loading parameter is received based on interface function, the loading parameter includes direct broadcasting room id, badge photo grade and badge
Picture/mb-type;
According to the direct broadcasting room id, badge photo grade and badge picture/mb-type, locally found from client corresponding
Badge picture, and the badge picture is loaded onto corresponding direct broadcasting room.
Further, the effective time of direct broadcasting room loading badge picture is further included in the array element, the method is also
Including:
Obtain the current time in system being passed to interface function when loading parameter;
Correspondingly, it is described according to the direct broadcasting room id, badge photo grade and badge picture/mb-type, it is locally looked into from client
Corresponding badge picture is looked for specifically include:
Direct broadcasting room id in the loading parameter with the direct broadcasting room id in each array element is matched, is found
The array element matched;
The effective time of direct broadcasting room loading badge picture in the matched array element is extracted, judges that the system is current
Time whether within the effective time, if so, according to direct broadcasting room id, badge photo grade and badge picture/mb-type, from
Client is locally searched corresponding badge picture and is loaded;If it is not, terminate flow.
Further, it is described according to direct broadcasting room id, badge photo grade and badge picture/mb-type, it is locally searched from client
Corresponding badge picture specifically includes:
The name of badge picture that direct broadcasting room id, badge photo grade and badge picture/mb-type and client are locally stored
It is matched, finds corresponding badge picture, return to the storage address of the badge picture, so that client is according to the badge picture
Storage address loaded to direct broadcasting room.
According to another aspect of the present invention, a kind of direct broadcasting room badge picture loading system is provided, including:
Acquisition module, for when client terminal start-up, obtaining configuration information from server-side, the configuration information includes each
The badge pictorial information that a direct broadcasting room needs load;
Download module, for the badge pictorial information loaded according to each direct broadcasting room needs, above and below server-side
Corresponding badge picture is carried, is stored in client local;
Load-on module, for when direct broadcasting room needs to load badge picture, the direct broadcasting room pair originally to be found on the ground from client
The badge picture answered is loaded.
According to a further aspect of the invention, a kind of non-transient computer readable storage medium storing program for executing is provided, which is characterized in that
The non-transient computer readable storage medium storing program for executing stores computer instruction, and the computer instruction makes the computer perform live streaming
Between badge picture loading method.
A kind of direct broadcasting room badge picture loading method provided by the invention and system, according to server-side to each direct broadcasting room
Badge picture configuration information, download corresponding badge picture from server-side, the badge picture being locally stored realized real-time
Update, can realize the flexible configuration to the badge picture of direct broadcasting room, no longer stick to be locally stored in has by configuration information
The badge picture of limit.
Description of the drawings
Fig. 1 is the direct broadcasting room badge picture loading method flow chart of one embodiment of the invention;
Fig. 2 is that the direct broadcasting room badge picture loading system of one embodiment of the invention connects block diagram;
Fig. 3 is the integrated connection block diagram of the direct broadcasting room badge picture loading system of another embodiment of the present invention;
Fig. 4 is that a kind of electronic equipment of another embodiment of the invention connects block diagram.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the present invention is described in further detail.Implement below
Example is used to illustrate the present invention, but be not limited to the scope of the present invention.
Referring to Fig. 1, a kind of direct broadcasting room badge picture loading method, the update applied to badge picture in direct broadcasting room are provided
Configuration and loading, this method include:When client terminal start-up, configuration information is obtained from server-side, the configuration information includes more
The badge pictorial information that a direct broadcasting room needs load;The emblem that multiple direct broadcasting rooms needs according to being configured in the configuration information load
Chapter pictorial information downloads corresponding badge picture from server-side, is stored in client local;When direct broadcasting room needs to load badge
During picture, the corresponding badge picture of the direct broadcasting room is locally found from client and is loaded.
Field is broadcast live in server-side, each main broadcaster room there can be the badge picture oneself customized, show the body of oneself
Part, many grades of badge picture point, it may have different types.In order to realize the customization to the badge picture of each direct broadcasting room
Management, is configured the badge picture of direct broadcasting room in server-side, forms configuration information.Wherein, in the configuration information of server-side
In, the badge picture load informations of all direct broadcasting rooms can be configured, can also configuration section direct broadcasting room badge picture loading letter
Breath.When client terminal start-up, client obtains configuration information from server-side, and multiple direct broadcasting room needs are included in configuration information and are added
The badge pictorial information of load.
According to the badge pictorial information that direct broadcasting room needs multiple in configuration information load, client downloads institute from server-side
There is the badge picture that direct broadcasting room needs, and the badge picture of download is stored in client local.When needs are broadcast live to some
Between when loading badge picture, corresponding badge picture is found from local, which is loaded onto the direct broadcasting room, is completed pair
The loading of the badge picture of direct broadcasting room.
The present embodiment according to server-side to the configuration information of the badge picture of multiple direct broadcasting rooms, from server-side download by client
Corresponding badge picture is realized real-time update to the badge picture being locally stored, can be realized to direct broadcasting room by configuration information
The flexible configuration of badge picture, no longer stick to the limited badge picture being locally stored in, it can be achieved that ten million direct broadcasting room,
The flexible configuration of multiple badge photo grades and badge picture/mb-type and flexibly loading update.
In one embodiment of the invention, it is described to be specifically included from server-side acquisition configuration information:Work as client terminal start-up
When, the configuration interface in client is called from server-side acquisition request configuration information, and receives the configuration information of server return,
Wherein, the configuration information is presented with array form, each array element includes direct broadcasting room id, badge photo grade and emblem
Chapter picture/mb-type.
When client terminal start-up, client can call emblem by didFinishLaunchingWith-Options functions
The configuration interface of chapter picture, by the way that interface is configured come the configuration information for server-side of going back.Detailed process is to obtain configuration first and connect
The address of mouth, wherein, the address that interface is configured changes with varying environment, in the present embodiment, passes through
The url addresses of interface are configured to get for sharedWebConfDomain functions, access request are built according to url, from server-side
Acquisition request configuration information.Wherein, the configuration information of server-side is preserved with array form, each array member of configuration information
Element includes direct broadcasting room id, the badge photo grade which loads and badge picture/mb-type, i.e. a number constituent element
Element is preserved there are one the information of badge picture that loads of direct broadcasting room needs, including badge photo grade and badge picture/mb-type,
In, badge picture/mb-type refers to that loading small picture either loads big picture.
In another embodiment of the present invention, the badge figure loaded according to direct broadcasting room needs multiple in the configuration information
Piece information downloads corresponding badge picture from server-side, is stored in client and locally specifically includes:According to each array member
Badge photo grade and badge picture/mb-type in element, download corresponding badge picture from server-side;By the badge figure of download
Piece is local according to client is stored in after the naming rule name of direct broadcasting room id, badge photo grade and badge picture/mb-type.
It has been got in configuration information after each array element from server-side, direct broadcasting room is extracted from each array element
Id, badge photo grade and badge picture/mb-type, client download each live streaming being configured in configuration information from server-side
Between need the badge picture loaded, and the badge picture of download is stored in client local, so that direct broadcasting room needs to load emblem
During chapter picture, loaded from locally badge picture is got.It, can be according to direct broadcasting room when badge picture is preserved
The naming rule of id, badge photo grade and badge picture/mb-type are named to corresponding badge picture, according to such side
Formula is named, and is searched when later stage direct broadcasting room being facilitated to need to Load Image.
The present embodiment downloads corresponding badge picture come to right in client terminal start-up, according to configuration information from server-side
The badge picture being locally stored is updated, meanwhile, modification configuration information just can realize the spirit to the badge picture of direct broadcasting room
Configuration living, for example, different brackets, different types of badge picture can be configured for same direct broadcasting room, for different live streamings
Between, the badge picture of same levels, same type can be configured, different brackets, different types of badge picture can also be configured,
Configuration is very flexible.
In one embodiment of the invention, the badge photo grade and badge figure in each array element
Sheet type is downloaded corresponding badge picture from server-side and is specifically included:A queue is created, according in the configuration information
The quantity of array element creates the downloading task of quantity identical with array element quantity, according in queue in the queue
The sequence of downloading task performs the downloading task of badge picture, and badge picture is downloaded.
Badge photo grade and badge picture/mb-type download corresponding emblem from server-side in specific reference to array element
During chapter picture, downloading task is realized by queue.Specifically, a queue is created, according to array in configuration information
The number of element, creates the downloading task of quantity identical with array element number in queue, and a downloading task is responsible for realization
The download of badge picture namely a downloading task realize the download of the badge picture of a direct broadcasting room in one array element.
Downloading task is realized using queue, downloading task can be caused orderly to carry out, is unlikely to chaotic, when performing downloading task,
The downloading task of badge picture is performed according to the sequence of the downloading task in queue, badge picture is downloaded.
In another embodiment of the present invention, the queue is tandem queue or parallel queue;When the queue is
During tandem queue, all badge picture downloading tasks in queue are performed one by one according to the sequence of the downloading task in queue, to emblem
Chapter picture is downloaded;When the queue is parallel queue, all badge picture downloading tasks in queue are equally divided into
It is multigroup, one group of badge picture downloading task in queue is performed every time, and badge picture is downloaded.
Above-mentioned queue can be tandem queue, or parallel queue when queue is tandem queue, that is, is performing
During downloading task in queue, downloading task all in queue can only be performed one by one one by one, can only once be held
One downloading task of row.And when queue is parallel queue, the primary quantity for being performed simultaneously downloading task can be set, is realized more
The parallel execution of a downloading task can accelerate the speed of download of badge picture.As for the execution of downloading task in badge picture
Sequentially, flexible configuration can be carried out, for example, the sequence of corresponding downloading task can be set according to direct broadcasting room id.
In one embodiment of the invention, it is described when direct broadcasting room needs to load badge picture, this is found on the ground from this
The corresponding badge picture of direct broadcasting room carries out loading and specifically includes:Loading parameter, the loading parameter packet are received based on interface function
Include direct broadcasting room id, badge photo grade and badge picture/mb-type;According to the direct broadcasting room id, badge photo grade and badge picture
Type finds corresponding badge picture, and the badge picture is loaded onto corresponding direct broadcasting room from local.
Previous embodiment realizes the download of all badge pictures loaded to all direct broadcasting rooms needs, and stores and arrived visitor
Family end, the process of the present embodiment opposite direction direct broadcasting room loading badge picture are described.Specifically, one is write on the client
When direct broadcasting room needs to load badge picture, loading parameter is passed to interface function for interface function, wherein, it loads and is wrapped in parameter
Include direct broadcasting room id, badge photo grade and badge picture/mb-type.Due to the badge picture stored in client local be according to
What direct broadcasting room id, badge photo grade and badge picture/mb-type were named.Therefore, interface function can be by loading the live streaming in parameter
Between search corresponding badge picture, and will find in id, badge photo grade and badge picture/mb-type to client local
Badge picture be loaded onto the corresponding direct broadcasting rooms of direct broadcasting room id, complete the loading procedure of the badge picture of direct broadcasting room.
In another embodiment of the present invention, further included in the array element badge picture in direct broadcasting room it is effective when
Between, the method further includes:Obtain the current time in system being passed to interface function when loading parameter;Correspondingly, the basis
The direct broadcasting room id, badge photo grade and badge picture/mb-type are specifically included from locally corresponding badge picture is found:It will
Direct broadcasting room id in the loading parameter is matched with the direct broadcasting room id in each array element, finds matched array member
Element;The effective time of the badge picture in the matched array element is extracted, judges the current time in system whether in institute
It states within effective time, if so, according to direct broadcasting room id, badge photo grade and badge picture/mb-type, is found pair from local
The badge picture answered;If it is not, terminate flow.
During loading badge picture is searched, not only include in each array element of the configuration information of server-side
Direct broadcasting room id, badge photo grade and badge picture/mb-type further include the corresponding direct broadcasting rooms of direct broadcasting room id and load the badge figure
The effective time of piece.Therefore, when being passed to loading parameter to interface function, the current time in system is obtained.
The direct broadcasting room id loaded in parameter the and direct broadcasting room id in each array element is subjected to comparison matching first, if
It follows and has badly traversed all array elements, can not find matched direct broadcasting room id, then to the load request of this time without processing.If
Can find matched direct broadcasting room id in array element, then obtain in the matched array element load badge picture it is effective when
Between, and judge whether the current time in system being passed to interface function when loading parameter of aforementioned acquisition is loading badge picture
In effective time, if not existing, illustrate that badge picture is expired or reach the time that needs load not yet, at this time then not
Subsequent processing is carried out, if the current time in system within the effective time of loading badge picture, meets loading badge picture
Condition.Then direct broadcasting room id, badge photo grade and the badge picture/mb-type in loading parameter is searched from local and is corresponded to
Badge picture, loaded to direct broadcasting room.
In one embodiment of the invention, it is described according to direct broadcasting room id, badge photo grade and badge picture/mb-type, from
Locally corresponding badge picture is found to specifically include:By direct broadcasting room id, badge photo grade and badge picture/mb-type and local
The name of the badge picture of storage is matched, and finds corresponding badge picture, returns to the storage address of the badge picture, so that
Client is loaded according to the storage address of the badge picture.
During badge picture loads, since the badge picture being stored in local is according to direct broadcasting room id, badge
The naming rule of photo grade and badge picture/mb-type is come what is named, and therefore, interface function can be according to straight in loading parameter
It broadcasts an id, badge photo grade and badge picture/mb-type to be matched with the name of badge picture being locally stored, finds correspondence
Badge picture, return to the storage address of the badge picture, client can according to the storage address of badge picture, to direct broadcasting room into
Row loading, completes loading procedure.
Referring to Fig. 2, the direct broadcasting room badge picture loading system of one embodiment of the invention is provided, including acquisition module
21st, download module 22 and load-on module 23.
Acquisition module 21, for when client terminal start-up, obtaining configuration information from server-side, the configuration information includes every
The badge pictorial information that one direct broadcasting room needs loads.
Download module 22, for the badge pictorial information loaded according to each direct broadcasting room needs, from server-side
Corresponding badge picture is downloaded, is stored in client local.
Load-on module 23, for when direct broadcasting room needs to load badge picture, the direct broadcasting room originally to be found on the ground from client
Corresponding badge picture is loaded.
Referring to Fig. 3, the direct broadcasting room badge picture loading system of another embodiment of the present invention is provided, including acquisition module
21st, download module 22, load-on module 23, creation module 24, memory module 25, matching module 26, judgment module 27 and lookup mould
Block 28.
Acquisition module 21, for when client terminal start-up, obtaining configuration information from server-side, the configuration information includes every
The badge pictorial information that one direct broadcasting room needs loads.
Download module 22, for the badge pictorial information loaded according to each direct broadcasting room needs, from server-side
Corresponding badge picture is downloaded, is stored in client local.
Load-on module 23, for when direct broadcasting room needs to load badge picture, the direct broadcasting room originally to be found on the ground from client
Corresponding badge picture is loaded.
Wherein, acquisition module 21, specifically for when client terminal start-up, calling the configuration interface in client from server-side
Acquisition request configuration information, wherein, the configuration information is presented with array form, each array element includes direct broadcasting room
Id, badge photo grade and badge picture/mb-type.
Download module 22, specifically for the badge photo grade and badge in each array element according to configuration information
Picture/mb-type downloads corresponding badge picture from server-side;Correspondingly, memory module 25, for by the badge picture downloaded
Naming rule according to direct broadcasting room id, badge photo grade and badge picture/mb-type is stored in local after naming.
Creation module 24, for creating a queue, the quantity of the array element in configuration information is created in queue
Build the downloading task of quantity identical with array element quantity;Correspondingly, download module 22, is additionally operable to appoint according to the download in queue
The sequence of business performs the downloading task of badge picture, and badge picture is downloaded.
Wherein, the queue is tandem queue or parallel queue;Correspondingly, download module 24, for working as the queue
During for tandem queue, all badge picture downloading tasks in queue are performed one by one according to the sequence of the downloading task in queue, it is right
Badge picture is downloaded;It is additionally operable to when the queue is parallel queue, by all badge picture downloading tasks in queue
Be equally divided into it is multigroup, every time perform queue in one group of badge picture downloading task, badge picture is downloaded.
Acquisition module 21 is additionally operable to obtain the current time in system being passed to interface function when loading parameter;Correspondingly,
With module 26, for the direct broadcasting room id loaded in parameter to be matched with the direct broadcasting room id in each array element, find
Matched array element.
Wherein, matching module 26, specifically for direct broadcasting room id, badge photo grade and badge picture/mb-type are deposited with local
The name of the badge picture of storage is matched, and finds corresponding badge picture, and return to the storage address of the badge picture, so that
Load-on module 23 is loaded according to the storage address of the badge picture to direct broadcasting room.
Judgment module 27, for extracting the effective time of the badge picture in the matched array element, described in judgement
Current time in system whether extracted from the matched array element loading badge picture effective time within, if
It is that searching module 28 is then called to search corresponding badge picture from local;If it is not, terminate.
Searching module 28, for the loading parameter being passed to according to the outside that interface function receives, according in loading parameter
Direct broadcasting room id, badge photo grade and badge picture/mb-type find corresponding badge picture from local.
It is a kind of electronic equipment of the present invention referring to Fig. 4, including:Processor (processor) 401, memory (memory)
402 and bus 403;Wherein, the processor 401 and memory 402 complete mutual communication by the bus 403.
The processor 401 is used to call the program instruction in the memory 402, to perform above-mentioned each method embodiment
The method provided, such as including:When client terminal start-up, configuration information is obtained from server-side, the configuration information includes more
The badge pictorial information that a direct broadcasting room needs load;The emblem that multiple direct broadcasting rooms needs according to being configured in the configuration information load
Chapter pictorial information downloads corresponding badge picture from server-side, is stored in client local;When direct broadcasting room needs to load badge
During picture, the corresponding badge picture of the direct broadcasting room is locally found from client and is loaded.
The present invention discloses a kind of computer program product, which can including being stored in non-transient computer
The computer program on storage medium is read, which includes program instruction, when program instruction is computer-executed, meter
Calculation machine is able to carry out the direct broadcasting room badge picture loading method that above-mentioned corresponding embodiment is provided, such as including:When client opens
When dynamic, configuration information is obtained from server-side, the configuration information includes the badge pictorial information that multiple direct broadcasting rooms needs load;Root
According to the badge pictorial information that the multiple direct broadcasting rooms needs being configured in the configuration information load, corresponding emblem is downloaded from server-side
Chapter picture is stored in client local;When direct broadcasting room needs to load badge picture, the direct broadcasting room pair is locally found from client
The badge picture answered is loaded.
The present invention also provides a kind of non-transient computer readable storage medium storing program for executing, which deposits
Computer instruction is stored up, which makes computer perform the direct broadcasting room badge picture loading that above-mentioned corresponding embodiment is provided
Method, such as including:When client terminal start-up, configuration information is obtained from server-side, the configuration information includes multiple direct broadcasting rooms
Need the badge pictorial information loaded;The badge picture that multiple direct broadcasting rooms needs according to being configured in the configuration information load is believed
Breath, downloads corresponding badge picture from server-side, is stored in client local;When direct broadcasting room needs to load badge picture,
The corresponding badge picture of the direct broadcasting room is locally found from client to be loaded.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and aforementioned program can be stored in a computer read/write memory medium, the program
When being executed, step including the steps of the foregoing method embodiments is performed;And aforementioned storage medium includes:ROM, RAM, magnetic disc or light
The various media that can store program code such as disk.
The embodiments such as the equipment of direct broadcasting room badge picture loading method described above are only schematical, wherein making
The unit illustrated for separating component may or may not be physically separate, and the component shown as unit can be
Or it may not be physical unit, you can be located at a place or can also be distributed on multiple service end units.It can
The purpose of this embodiment scheme is realized to select according to the actual needs some or all of module therein.This field is common
Technical staff is not in the case where paying performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
Technical solution is stated substantially in other words to embody the part that the prior art contributes in the form of software product, it should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers
It enables and (can be personal computer, server or server device etc.) so that computer equipment is used to perform each reality
Apply certain Part Methods of example or embodiment.
A kind of direct broadcasting room badge picture loading method provided by the invention and system, according to server-side to the badge of direct broadcasting room
The configuration information of picture, each direct broadcasting room being configured from server-side download configuration information needs to load badge picture, to this
The badge picture of ground storage realizes real-time update, and can realize badge to direct broadcasting room by writing configuration information in server-side
The flexible configuration of picture no longer sticks to the limited badge picture being locally stored in.
Finally, the present processes are only preferable embodiment, are 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 the protection of the present invention
Within the scope of.
Claims (10)
1. a kind of direct broadcasting room badge picture loading method, which is characterized in that including:
When client terminal start-up, configuration information is obtained from server-side, the configuration information includes what multiple direct broadcasting rooms needs loaded
Badge pictorial information;
The badge pictorial information that multiple direct broadcasting rooms needs according to being configured in the configuration information load, the download pair from server-side
The badge picture answered is stored in client local;
When direct broadcasting room needs to load badge picture, the corresponding badge picture of the direct broadcasting room is locally found from client and is added
It carries.
2. direct broadcasting room badge picture loading method as described in claim 1, which is characterized in that described obtained from server-side is configured
Information specifically includes:
When client terminal start-up, the configuration interface in client is called from server-side acquisition request configuration information, and receive service
The configuration information returned is held, wherein, the configuration information is presented with array form, each array element includes direct broadcasting room
Id, badge photo grade and badge picture/mb-type.
3. direct broadcasting room badge picture loading method as claimed in claim 2, which is characterized in that according to each direct broadcasting room needs
The badge pictorial information of loading downloads corresponding badge picture from server-side, is stored in client and locally specifically includes:
Badge photo grade and badge picture/mb-type in each array element, download corresponding badge from server-side
Picture;
It is deposited after the badge picture of download is named according to the naming rule of direct broadcasting room id, badge photo grade and badge picture/mb-type
It is stored in client local.
4. direct broadcasting room badge picture loading method as claimed in claim 3, which is characterized in that described according to each array member
Badge photo grade and badge picture/mb-type in element are downloaded corresponding badge picture from server-side and are specifically included:
A queue is created, the quantity of the array element in the configuration information creates and the number in the queue
The downloading task of the identical quantity of group number of elements, and appoint according to the download of the sequence execution badge picture of the downloading task in queue
Business, is downloaded badge picture.
5. direct broadcasting room badge picture loading method as claimed in claim 4, which is characterized in that the queue for tandem queue or
Person parallel queue;
When the queue is tandem queue, all badge figures in queue are performed one by one according to the sequence of the downloading task in queue
Piece downloading task is downloaded badge picture;
When the queue is parallel queue, all badge picture downloading tasks in queue is equally divided into multigroup, held every time
One group of badge picture downloading task in row queue, is downloaded badge picture.
6. direct broadcasting room badge picture loading method as claimed in claim 3, which is characterized in that described when direct broadcasting room needs to load
During badge picture, locally found from client the corresponding badge picture of the direct broadcasting room carry out loading specifically include:
Loading parameter is received based on interface function, the loading parameter includes direct broadcasting room id, badge photo grade and badge picture
Type;
According to the direct broadcasting room id, badge photo grade and badge picture/mb-type, corresponding badge is locally found from client
Picture, and the badge picture is loaded onto corresponding direct broadcasting room.
7. direct broadcasting room badge picture loading method as claimed in claim 6, which is characterized in that further included in the array element
Direct broadcasting room loads the effective time of badge picture, and the method further includes:
Obtain the current time in system being passed to interface function when loading parameter;
Correspondingly, it is described according to the direct broadcasting room id, badge photo grade and badge picture/mb-type, from client locally lookup pair
The badge picture answered specifically includes:
Direct broadcasting room id in the loading parameter with the direct broadcasting room id in each array element is matched, is found matched
Array element;
The effective time of direct broadcasting room loading badge picture in the matched array element is extracted, judges the current time in system
Whether within the effective time, if so, according to direct broadcasting room id, badge photo grade and badge picture/mb-type, from client
End is local to search corresponding badge picture and is loaded;If it is not, terminate flow.
8. direct broadcasting room badge picture loading method as claimed in claim 6, which is characterized in that described according to direct broadcasting room id, emblem
Chapter photo grade and badge picture/mb-type are locally searched corresponding badge picture from client and are specifically included:
The name for the badge picture that direct broadcasting room id, badge photo grade and badge picture/mb-type and client are locally stored carries out
Matching, finds corresponding badge picture, returns to the storage address of the badge picture, so that client depositing according to the badge picture
Storage address is loaded to direct broadcasting room.
9. a kind of direct broadcasting room badge picture loading system, which is characterized in that including:
Acquisition module, for when client terminal start-up, obtaining configuration information from server-side, it is straight that the configuration information includes each
The badge pictorial information loaded is needed between broadcasting;
Download module, for the badge pictorial information loaded according to each direct broadcasting room needs, the download pair from server-side
The badge picture answered is stored in client local;
Load-on module, for when direct broadcasting room needs to load badge picture, it is corresponding originally to find the direct broadcasting room on the ground from client
Badge picture is loaded.
10. a kind of non-transient computer readable storage medium storing program for executing, which is characterized in that the non-transient computer readable storage medium storing program for executing is deposited
Computer instruction is stored up, the computer instruction makes the computer perform the method as described in claim 1-8 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810002217.4A CN108256006B (en) | 2018-01-02 | 2018-01-02 | Method and system for loading badge pictures in live broadcast room |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810002217.4A CN108256006B (en) | 2018-01-02 | 2018-01-02 | Method and system for loading badge pictures in live broadcast room |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108256006A true CN108256006A (en) | 2018-07-06 |
CN108256006B CN108256006B (en) | 2021-01-01 |
Family
ID=62724818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810002217.4A Active CN108256006B (en) | 2018-01-02 | 2018-01-02 | Method and system for loading badge pictures in live broadcast room |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108256006B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109936476A (en) * | 2019-02-26 | 2019-06-25 | 珠海天燕科技有限公司 | A kind of call method of configuration data, device and its equipment |
CN110413910A (en) * | 2019-07-19 | 2019-11-05 | 广州欢聊网络科技有限公司 | A kind of Picture Generation Method, device and mobile terminal |
CN111107420A (en) * | 2018-10-25 | 2020-05-05 | 武汉斗鱼网络科技有限公司 | Medal loading method, storage medium, electronic device and system of live APP |
CN112615911A (en) * | 2020-12-10 | 2021-04-06 | 北京五八信息技术有限公司 | Picture loading method, picture loading device and electronic equipment |
CN113625911A (en) * | 2021-08-10 | 2021-11-09 | 上海哔哩哔哩科技有限公司 | Information display method and device |
CN113741913A (en) * | 2020-08-03 | 2021-12-03 | 北京沃东天骏信息技术有限公司 | Picture configuration method, device and system and storage medium |
CN114245152A (en) * | 2021-11-03 | 2022-03-25 | 武汉斗鱼鱼乐网络科技有限公司 | Identification picture loading method and device, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160352868A1 (en) * | 2015-05-29 | 2016-12-01 | Coreline Soft Co., Ltd. | Local server system and method of relaying data in the same |
CN106408379A (en) * | 2016-09-07 | 2017-02-15 | 广州华多网络科技有限公司 | Virtual item configuration method, device and mobile terminal |
CN106412667A (en) * | 2016-08-31 | 2017-02-15 | 广州华多网络科技有限公司 | Method and apparatus for transmitting display information |
CN106791898A (en) * | 2016-12-12 | 2017-05-31 | 广州华多网络科技有限公司 | A kind of live video loading method and device |
CN106815370A (en) * | 2017-01-24 | 2017-06-09 | 腾讯科技(深圳)有限公司 | Update the methods, devices and systems of resource file |
-
2018
- 2018-01-02 CN CN201810002217.4A patent/CN108256006B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160352868A1 (en) * | 2015-05-29 | 2016-12-01 | Coreline Soft Co., Ltd. | Local server system and method of relaying data in the same |
CN106412667A (en) * | 2016-08-31 | 2017-02-15 | 广州华多网络科技有限公司 | Method and apparatus for transmitting display information |
CN106408379A (en) * | 2016-09-07 | 2017-02-15 | 广州华多网络科技有限公司 | Virtual item configuration method, device and mobile terminal |
CN106791898A (en) * | 2016-12-12 | 2017-05-31 | 广州华多网络科技有限公司 | A kind of live video loading method and device |
CN106815370A (en) * | 2017-01-24 | 2017-06-09 | 腾讯科技(深圳)有限公司 | Update the methods, devices and systems of resource file |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111107420A (en) * | 2018-10-25 | 2020-05-05 | 武汉斗鱼网络科技有限公司 | Medal loading method, storage medium, electronic device and system of live APP |
CN111107420B (en) * | 2018-10-25 | 2022-08-16 | 武汉斗鱼网络科技有限公司 | Medal loading method, storage medium, electronic device and system of live APP |
CN109936476A (en) * | 2019-02-26 | 2019-06-25 | 珠海天燕科技有限公司 | A kind of call method of configuration data, device and its equipment |
CN110413910A (en) * | 2019-07-19 | 2019-11-05 | 广州欢聊网络科技有限公司 | A kind of Picture Generation Method, device and mobile terminal |
CN113741913A (en) * | 2020-08-03 | 2021-12-03 | 北京沃东天骏信息技术有限公司 | Picture configuration method, device and system and storage medium |
CN112615911A (en) * | 2020-12-10 | 2021-04-06 | 北京五八信息技术有限公司 | Picture loading method, picture loading device and electronic equipment |
CN112615911B (en) * | 2020-12-10 | 2023-06-16 | 北京五八信息技术有限公司 | Picture loading method, picture loading device and electronic equipment |
CN113625911A (en) * | 2021-08-10 | 2021-11-09 | 上海哔哩哔哩科技有限公司 | Information display method and device |
CN114245152A (en) * | 2021-11-03 | 2022-03-25 | 武汉斗鱼鱼乐网络科技有限公司 | Identification picture loading method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108256006B (en) | 2021-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108256006A (en) | A kind of direct broadcasting room badge picture loading method and system | |
CN112118565B (en) | Multi-tenant service gray level publishing method, device, computer equipment and storage medium | |
CN107846465A (en) | Update the method and apparatus of client resource bag | |
CN105204927B (en) | For the application collating unit of terminal device and using aligning method | |
CN104603753B (en) | A kind of recommendation method, system and the server of application | |
CN108845861A (en) | The implementation method and device of Softcam | |
CN106658069A (en) | Method and device for advertisement putting | |
CN105721629B (en) | User identifier matching process and device | |
CN108322502A (en) | Method, gateway system and storage medium for equalization server load | |
CN1838169A (en) | Method and system for providing auxiliary content located on local storage during download/ access of primary content over a network | |
CN108306956A (en) | Information-pushing method, device, server and computer-readable medium | |
CN107483521A (en) | A kind of information displaying method, apparatus and system | |
CN109117172A (en) | A kind of method and device of the terminal versions number identification of target terminal | |
CN109582873A (en) | Method and apparatus for pushed information | |
CN109067931A (en) | A kind of method and system of cloud management platform virtual machine floating IP address setting | |
CN106789170B (en) | Task processing method and device | |
CN105897754A (en) | Data processing system, data pulling method and client | |
CN113609401A (en) | Dynamic display method of book city channel page, electronic equipment and storage medium | |
CN105119944B (en) | Application starting method and related device | |
CN106598662A (en) | Application loading method and device based on android | |
CN105094821A (en) | Method and device used for determining background information of invoked applications | |
CN103457944A (en) | Method and device for pushing information and server | |
CN106899558A (en) | The treating method and apparatus of access request | |
CN107045452A (en) | Dispatching method of virtual machine and device | |
CN109840094B (en) | Database deployment method and device and storage equipment |
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 |