CN110290393A - File acquisition method and device, server and storage medium - Google Patents

File acquisition method and device, server and storage medium Download PDF

Info

Publication number
CN110290393A
CN110290393A CN201910666711.5A CN201910666711A CN110290393A CN 110290393 A CN110290393 A CN 110290393A CN 201910666711 A CN201910666711 A CN 201910666711A CN 110290393 A CN110290393 A CN 110290393A
Authority
CN
China
Prior art keywords
live
file
live streaming
picture file
streaming 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.)
Pending
Application number
CN201910666711.5A
Other languages
Chinese (zh)
Inventor
贺向波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910666711.5A priority Critical patent/CN110290393A/en
Publication of CN110290393A publication Critical patent/CN110290393A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is about a kind of file acquisition method and device, server and storage medium.This method comprises: the file acquisition request that parsing CDN is sent, obtains the live stream identification code and time identifier in the file acquisition request;The live stream identification code and the time identifier are sent to the database for being stored with live streaming picture file, extract the corresponding live streaming picture file of the live stream identification code according at least to the live stream identification code by the database;The live streaming picture file is fed back into the CDN, is shown so that the live streaming picture file is distributed on the first electronic equipment by the CDN.The corresponding live streaming picture file of direct broadcasting room can be indicated using live stream identification code in database in the present embodiment and the renewal time of live streaming picture file is indicated using time identifier, in this way, a newest live streaming picture file can be only stored in database, be conducive to the utilization rate for promoting storage resource.

Description

File acquisition method and device, server and storage medium
Technical field
This disclosure relates to which direct seeding technique field more particularly to a kind of file acquisition method and device, server and storage are situated between Matter.
Background technique
Currently, live streaming has become relatively common internet product, and more and more users also assist in live streaming Among.In practical application, to obtain interested content, user needs to be switched to different direct broadcasting rooms and watches, further according to Live content determines whether to continue to watch.For this purpose, in the related technology using live content as live streaming cover, so that user be facilitated to exist Live content can be substantially recognized at the first time.
In the related technology, it to realize that live streaming cover shows live content, needs to store the full dose picture file of live streaming, occupies A large amount of storage resource.Also, the picture file of live streaming has timeliness, once expired will lose its effect, and it is occupied in this way Storage resource will cause significant wastage.
Summary of the invention
The disclosure provides a kind of file acquisition method and device, server and storage medium, at least to solve the relevant technologies Middle the problem of because of full dose storage there is the live streaming screenshot picture of timeliness storage resource to be caused to waste.
The technical solution of the disclosure is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of file acquisition method is provided, server, the method are applied to Include:
The file acquisition request that CDN is sent is parsed, the live stream identification code and time in the file acquisition request are obtained Mark;
The live stream identification code and the time identifier are sent to the database for being stored with live streaming picture file, by institute It states database and extracts the corresponding live streaming picture file of the live stream identification code according at least to the live stream identification code;
The live streaming picture file is fed back into the CDN, so that the live streaming picture file is distributed to by the CDN It is shown on one electronic equipment.
Optionally, the step of the method also includes the live streaming picture files in the update database, specifically includes:
It obtains screenshotss service and the obtained live streaming picture file of screenshotss is carried out to live stream;
The corresponding live streaming picture text of live stream identification code described in the database is covered using the live streaming picture file Part and renewal time mark.
Optionally, before the file acquisition request that parsing CDN is sent, the method also includes:
Obtain the file acquisition request that first electronic equipment is sent;The file acquisition request includes that live stream identifies Code;
It requests in response to the file acquisition, is marked according to the time that the live stream identification code obtains live streaming picture file Know;
The resource address of live streaming picture file is generated based on the live stream identification code and the time identifier;
The resource address that the live streaming picture file is returned to first electronic equipment, so that first electronic equipment Live streaming picture file is accessed according to the resource address.
According to the second aspect of an embodiment of the present disclosure, a kind of file acquisition method is provided, CDN, the method packet are applied to It includes:
The access request that first electronic equipment is sent is obtained, the access request includes that the resource of picture file is broadcast live Address;The resource address includes live stream identification code and time identifier;
The live streaming picture file whether has been cached according to resource address inquiry;
If uncached, the file acquisition request sent to server, to obtain the server according to the file acquisition The live streaming picture file of live stream identification code and time identifier feedback in request, and the live streaming picture file is sent to institute State the first electronic equipment;If having cached, the live streaming picture file is sent to first electronic equipment.
According to the third aspect of an embodiment of the present disclosure, a kind of file acquisition device is provided, server, described device are applied to Include:
File request resolution unit is configured as executing the file acquisition request that parsing CDN is sent, obtains the file and obtain Take the live stream identification code and time identifier in request;
Picture extraction unit is broadcast live, is configured as execution and the live stream identification code and the time identifier is sent to and is deposited The database for containing live streaming picture file, extracts the live stream according at least to the live stream identification code by the database The corresponding live streaming picture file of identification code;
Picture feedback unit is broadcast live, is configured as execution for the live streaming picture file and feeds back to the CDN, so that described The live streaming picture file is distributed on the first electronic equipment and shows by CDN.
Optionally, described device further includes live streaming picture update unit, and the live streaming picture update unit is configured as holding Row updates the live streaming picture file in the database, specifically includes:
Picture is broadcast live and obtains module, is configured as executing acquisition screenshotss service to the live stream progress obtained live streaming of screenshotss Picture file;
Picture update module is broadcast live, is configured as covering live streaming described in the database using the live streaming picture file Flow the corresponding live streaming picture file of identification code and renewal time mark.
Optionally, described device further include:
File request acquiring unit is configured as executing the file acquisition request for obtaining the first electronic equipment transmission; The file acquisition request includes live stream identification code;
Storage address acquiring unit is configured as executing and request in response to the file acquisition, known according to the live stream Other code obtains the time identifier of live streaming picture file;
Resource address generation unit is configured as executing straight based on the live stream identification code and time identifier generation Broadcast the resource address of picture file;
Resource address return unit, is configured as executing to first electronic equipment and returns to the live streaming picture file Resource address, so that first electronic equipment accesses live streaming picture file according to the resource address.
According to a fourth aspect of embodiments of the present disclosure, a kind of file acquisition device is provided, CDN, described device packet are applied to It includes:
Access request acquiring unit is configured as executing the access request for obtaining the first electronic equipment transmission, described Access request includes the resource address that picture file is broadcast live;The resource address includes live stream identification code and time identifier;
Picture query unit is broadcast live, is configured as executing according to whether resource address inquiry has cached the live streaming figure Piece file;
Picture acquiring unit is broadcast live, is configured as executing in the case where the CDN uncached live streaming picture text, File acquisition request is sent to the server, is known with obtaining the server according to the live stream in file acquisition request The live streaming picture file of other code and time identifier feedback, and the live streaming picture file is sent to first electronic equipment; And in the case where the CDN has cached the live streaming picture file, the live streaming picture file is sent to described first Electronic equipment.
According to a fifth aspect of the embodiments of the present disclosure, a kind of server is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;Wherein, the processor is configured to described in executing Executable instruction in memory, with realize as described in relation to the first aspect method the step of.
According to a sixth aspect of an embodiment of the present disclosure, a kind of CDN is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;Wherein, the processor is configured to described in executing Executable instruction in memory, to realize such as the step of second aspect the method.
According to the 7th of the embodiment of the present disclosure the aspect, a kind of storage medium is provided, which is characterized in that when the storage medium In instruction be able to carry out such as the step of first aspect and second aspect the method when being executed by processor.
The technical scheme provided by this disclosed embodiment at least bring it is following the utility model has the advantages that
Stream request is drawn by the file acquisition that parsing CDN is sent in the present embodiment, the file acquisition is obtained and draws stream request In live stream identification code and time identifier;Then, it will be sent to and deposit according to the live stream identification code and the time identifier The database for containing live streaming picture file, extracts the live stream according at least to the live stream identification code by the database The corresponding live streaming picture file of identification code;Newest live streaming picture text is extracted from the database for being stored with live streaming picture file Part;Later, the live streaming picture file is fed back into the CDN, so that the live streaming picture file is distributed to by the CDN It is shown on one electronic equipment.It can indicate that direct broadcasting room is corresponding straight in the present embodiment in database using live stream identification code Broadcast picture file and using time identifier indicate live streaming picture file renewal time, live stream identification code do not change and when Between mark variation in the case where indicate direct broadcasting room work normally and picture file is broadcast live and has changed, in this way, in the present embodiment number According to can only store a newest live streaming picture file in library, without storing the full dose live streaming picture text of each direct broadcasting room Part can greatly reduce the occupied storage resource of live video file, be conducive to the utilization rate for promoting storage resource.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of flow chart of file acquisition method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another file acquisition method shown according to an exemplary embodiment.
Fig. 3 is the flow chart of another file acquisition method shown according to an exemplary embodiment.
Fig. 4 is the flow chart of another file acquisition method shown according to an exemplary embodiment.
Fig. 5 is a kind of application scenario diagram shown according to an exemplary embodiment.
Fig. 6~Fig. 9 is a kind of block diagram of file acquisition device shown according to an exemplary embodiment.
Figure 10 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs The technical solution opened in embodiment is clearly and completely described.
Noun paraphrase, CDN (Content Delivery Network) i.e. content distributing network rely on and are deployed in various regions Edge Server, handled by load balancing, content distribution, scheduling of central platform etc., keep user interior needed for obtaining nearby Hold, network congestion can be reduced, improves user's access response speed and hit rate.
It should be noted that the electronic equipment used by a user for watching live streaming is referred to as first in the embodiment of the present disclosure Electronic equipment, electronic equipment used in main broadcaster are referred to as the second electronic equipment.On first electronic equipment and the second electronic equipment Corresponding client can be installed.Electronic equipment and client's mutual cooperation realization and CDN and server communication, for convenience of saying Client bright, that the first electronic equipment can simultaneously including the first electronic equipment and thereon in subsequent embodiment, the second electronics are set Standby client that can simultaneously including the second electronic equipment and thereon.
Currently, live streaming has become relatively common internet product, and more and more users also assist in live streaming Among.In practical application, to obtain interested content, user needs to be switched to different direct broadcasting rooms and watches, further according to Live content determines whether to continue to watch.For this purpose, in the related technology using live content as live streaming cover, so that user be facilitated to exist Live content can be substantially recognized at the first time.
In the related technology, it to realize that live streaming cover shows live content, needs to store the full dose picture file of live streaming, occupies A large amount of storage resource.Also, the picture file of live streaming has timeliness, once expired will lose its effect, and it is occupied in this way Storage resource will cause significant wastage.
For this purpose, the embodiment of the present disclosure provides a kind of file acquisition method, design is, stores in the database each straight A newest live streaming picture file of stream is broadcast, when CDN has file acquisition request, server can be requested according to file acquisition Middle live stream identification code and time identifier are sent to database, then database extracts the live streaming according at least to live stream identification code The corresponding live streaming picture file of identification code is flowed, and the first electronic equipment is distributed to by CDN, such user can set in the first electronics It is standby above to watch live streaming picture, be conducive to understand live content at the first time.Also, it can store in database in the present embodiment One live streaming picture, it is possible to reduce occupied storage resource promotes the utilization rate of storage resource.
Fig. 1 is a kind of file acquisition method shown according to an exemplary embodiment, can be adapted for server, referring to figure 1, a kind of file acquisition method, comprising:
In a step 101, the file acquisition request that parsing CDN is sent obtains the live stream in the file acquisition request Identification code and time identifier.
In the present embodiment, referring to fig. 2, when the demand that user has viewing to be broadcast live, direct broadcasting room cover can be triggered, at this time the One electronic equipment can send file acquisition request to server in response to the trigger action, wherein acquired file can be The live streaming cover of direct broadcasting room.Wherein, file acquisition request may include live stream identification code and time identifier, and such server can To get the file acquisition request (step 201) in corresponding diagram 2 of the first electronic equipment transmission.Then, server can respond In this document acquisition request, live streaming picture file time identifier (step 202) in corresponding diagram 2 is obtained according to live stream identification code. Wherein time identifier can be timestamp, be also possible to mark related with the screenshotss time, can distinguish live streaming picture text In the case that whether part updates, each scheme each falls within the protection scope of the application.Later, server can be identified based on live stream Code and time identifier generate the resource address (step 203) in corresponding diagram 2 of live streaming picture file.Finally, server can will provide Source address returns to the first electronic equipment, and it is (right that such first electronic equipment can access live streaming picture file according to resource address Answer step 204) in Fig. 2.
In the present embodiment, the first electronic equipment can send access request to CDN according to resource address, with access live streaming figure Piece file.Referring to Fig. 3, the access request that available first electronic equipment of CDN is sent, and access request includes live streaming picture text The resource address of part, and resource address includes live stream identification code and time identifier (step 301) in corresponding diagram 3.Then, CDN Can be inquired according to resource address it is local whether the buffered live streaming picture file (step 302) in corresponding diagram 3.Inquiry mode Whether be cached with live streaming picture file that identification code be resource address in live stream identification code, if not having if may include: that inquiry is local Have and then determines local uncached live streaming picture file.If so, can then continue to judge that the time identifier of the live streaming picture file is It is no consistent with time identifier in resource address, if inconsistent, it is determined that local cache is not newest live streaming picture file, If consistent, it is determined that local buffered newest live streaming picture file.
If CDN inquires the buffered live streaming picture file, live streaming picture file can be sent to the first electronics Equipment;If CDN inquires the uncached live streaming picture file, file acquisition can be sent to server and asked, so that server Feedback live streaming picture file is requested according to file acquisition, and live streaming picture file is sent to the first electronic equipment (in corresponding diagram 3 Step 303).Wherein, after CDN sends file acquisition request to server, the concrete operations of server may refer to step 102 Content is first not illustrated herein.
In a step 102, the live stream identification code and the time identifier are sent to and are stored with live streaming picture file Database, extract the corresponding live streaming of the live stream identification code according at least to the live stream identification code by the database Picture file.
Screenshotss service can be set in the present embodiment, in server.It uploads and is broadcast live to server in the second electronic equipment During stream, which can carry out screenshotss to live stream according to the setting period, to obtain live streaming picture file.Ginseng See Fig. 4, the available screenshotss service of server carries out the obtained live streaming picture file of screenshotss to live stream and (walks in corresponding diagram 4 It is rapid 401), it will be understood that, the live streaming picture file be nearest file.Then, server can use live streaming picture file Covering the corresponding live streaming picture file of live stream identification code and renewal time in database identifies (step 402) in corresponding diagram 4.
In the present embodiment, the correspondence table of live streaming a picture file and live stream identification code, service are set in the database Device can inquire the storage location of live streaming picture file according to live stream identification code, be covered using newest live streaming picture file Old live streaming picture file, while renewal time identifies.The corresponding frame of live stream identification code can be retained in database in this way Picture file is broadcast live, reduces the quantity of storage live streaming picture file, advantageously reduces the storage resource of occupancy.
It certainly, can also be the biggish memory space of live stream identity assignments one in database, which can be with Storage number frame (such as 2-10 frame) live streaming picture file can cover earliest after getting newest live streaming picture file Picture file is broadcast live, thereby may be ensured that the live streaming picture file of databases storage is continuously newest several frames.It is straight obtaining When broadcasting image file, first passes through live stream identification code and determine storage location, corresponding live streaming is then selected according to time identifier Picture file.The present embodiment can equally reduce the quantity of storage live streaming picture file, advantageously reduce the storage resource of occupancy.
In step 103, the live streaming picture file is fed back into the CDN, so that the CDN is by the live streaming picture It is shown in file distributing to the first electronic equipment.
In the present embodiment, the corresponding live streaming picture file of live stream identification code can be fed back to CDN by server, in this way Live streaming picture file can be distributed to the first electronic equipment and shown by CDN, and user can be first on the first electronic equipment Time watches live content.
So far, stream request is drawn by the file acquisition that parsing CDN is sent in the present embodiment, obtains the file acquisition and draws stream Live stream identification code and time identifier in request;Then, it will be sent according to the live stream identification code and the time identifier To the database for being stored with live streaming picture file, extracted by the database according at least to the live stream identification code described straight Broadcast the corresponding live streaming picture file of stream identification code;Newest live streaming picture is extracted from the database for being stored with live streaming picture file File;Later, the live streaming picture file is fed back into the CDN, so that the live streaming picture file is distributed to by the CDN It is shown on first electronic equipment.It can indicate that direct broadcasting room is corresponding using live stream identification code in database in the present embodiment Picture file is broadcast live and indicates the renewal time of live streaming picture file using time identifier, do not change in live stream identification code and Time identifier indicates that direct broadcasting room works normally and picture file is broadcast live and has changed in the case where changing, in this way, in the present embodiment A newest live streaming picture file can be only stored in database, picture is broadcast live in the full dose without storing each direct broadcasting room File can greatly reduce the occupied storage resource of live video file, be conducive to the utilization rate for promoting storage resource.
The embodiment of the present disclosure additionally provides a kind of file acquisition method, is applied to CDN, comprising: obtains first electronics The access request that equipment is sent, the access request includes resource address;Institute whether has been cached according to resource address inquiry State live streaming picture file;If uncached, the drawing stream request sent to server is asked with obtaining the server according to the drawing stream It negates the newest live streaming picture file of feedback, and the live streaming picture file is sent to first electronic equipment;If having delayed It deposits, the live streaming picture file is sent to first electronic equipment.Due to being had been described in description embodiment illustrated in fig. 3 The mode of file acquisition, therefore the content of embodiment illustrated in fig. 3 can be referred to, details are not described herein.
Fig. 5 is a kind of flow chart of file acquisition method shown according to an exemplary embodiment, and wherein live stream can be with From the second electronic equipment, storage service can be can be set for the application program of setting on the server, database in this clothes It is engaged on device or other servers.
Referring to Fig. 5, the second electronic equipment generation live stream is sent to server and (corresponds to step 1), screenshotss clothes on server Business can obtain live streaming picture file to live stream screenshotss;Storage service on server is when detecting live stream, using most New live streaming picture file covers old live streaming picture file and renewal time mark, using live stream identification code as live streaming picture Key value (the corresponding step 2) of file.
With continued reference to Fig. 5, in the demand for thering is viewing to be broadcast live, user can by the client on the first electronic equipment into Enter direct broadcasting room, in this case, the first electronic equipment can send file acquisition request (corresponding step 3) to server.Server Time identifier (the corresponding step 4) of live streaming picture file can be obtained from database according to live stream identification code.Then, it services Device generates resource address (the corresponding step 5) of live streaming picture file according to live stream identification code and time identifier.Later, server Resource address is returned into the first electronic equipment (corresponding step 6).
With continued reference to Fig. 5, the first electronic equipment can send access request, and access request includes resource address (corresponding step It is rapid 7).
With continued reference to Fig. 5, after CDN receives access request, will be inquired after the access request using resource address as key value Whether buffered live streaming picture file first judges the local live streaming picture file for whether caching same live stream identification code, if having Judge whether the time identifier in the time identifier and resource address of the live streaming picture file is consistent again.If uncached, CDN to Server sends file acquisition request (corresponding step 9).It is (right that server parses live stream identification code from file acquisition request Step 10) is answered, newest live streaming picture file is then accessed according to live stream identification code, that is, accesses newest live streaming picture file (corresponding step 11), and the live streaming picture file that will acquire returns to CDN and (corresponds to step 12), picture file will be broadcast live by CDN Return to the first electronic equipment (corresponding step 13).First electronic equipment finally shows live streaming picture.
Fig. 6 is a kind of block diagram of file acquisition device shown according to an exemplary embodiment, can be adapted for server, Referring to Fig. 6, a kind of file acquisition device 600, comprising:
File request resolution unit 601 is configured as executing the file acquisition request that parsing CDN is sent, obtains the text Live stream identification code and time identifier in part acquisition request;
Picture extraction unit 602 is broadcast live, is configured as executing the live stream identification code and time identifier transmission To the database for being stored with live streaming picture file, extracted by the database according at least to the live stream identification code described straight Broadcast the corresponding live streaming picture file of stream identification code;
Picture feedback unit 603 is broadcast live, is configured as execution for the live streaming picture file and feeds back to the CDN, so that The live streaming picture file is distributed on the first electronic equipment and shows by the CDN.
Fig. 7 is the block diagram of another file acquisition device shown according to an exemplary embodiment, one kind shown in Fig. 6 On the basis of the device for obtaining viewing duration, referring to Fig. 6, described device further includes live streaming picture update unit, the live streaming figure Piece updating unit is configured as executing the live streaming picture file updated in the database, specifically includes:
Picture is broadcast live and obtains module 701, it is obtained to live stream progress screenshotss to be configured as execution acquisition screenshotss service Picture file is broadcast live;
Picture update module 702 is broadcast live, is configured as covering described in the database using the live streaming picture file The corresponding live streaming picture file of live stream identification code and renewal time mark.
Fig. 8 is the block diagram of another file acquisition device shown according to an exemplary embodiment, one kind shown in Fig. 6 On the basis of the device for obtaining viewing duration, referring to Fig. 8, described device further include:
File request acquiring unit 801, the file acquisition for being configured as executing acquisition the first electronic equipment transmission are asked It asks;The file acquisition request includes live stream identification code;
Storage address acquiring unit 802 is configured as executing and request in response to the file acquisition, according to the live stream Identification code obtains the time identifier of live streaming picture file;
Resource address generation unit 803 is configured as executing raw based on the live stream identification code and the time identifier At the resource address of live streaming picture file;
Resource address return unit 804 is configured as executing to first electronic equipment return live streaming picture text The resource address of part, so that first electronic equipment accesses live streaming picture file according to the resource address.
Fig. 9 is a kind of block diagram of file acquisition device shown according to an exemplary embodiment, can be adapted for CDN, ginseng See Fig. 9, described device 900 includes:
Access request acquiring unit 901 is configured as executing the access request for obtaining the first electronic equipment transmission, institute Stating access request includes the resource address that picture file is broadcast live;The resource address includes live stream identification code and time identifier;
Picture query unit 902 is broadcast live, is configured as executing according to whether resource address inquiry has cached the live streaming Picture file;
Picture acquiring unit 903 is broadcast live, is configured as executing the CDN uncached live streaming picture text the case where Under, Xiang Suoshu server sends file acquisition request, to obtain the server according to the live streaming in file acquisition request The live streaming picture file of identification code and time identifier feedback is flowed, and the live streaming picture file is sent to first electronics and is set It is standby;And in the case where the CDN has cached the live streaming picture file, the live streaming picture file is sent to described One electronic equipment.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Stream request is drawn by the file acquisition that parsing CDN is sent in the present embodiment, the file acquisition is obtained and draws stream request In live stream identification code and time identifier;Then, it will be sent to and deposit according to the live stream identification code and the time identifier The database for containing live streaming picture file, extracts the live stream according at least to the live stream identification code by the database The corresponding live streaming picture file of identification code;Newest live streaming picture text is extracted from the database for being stored with live streaming picture file Part;Later, the live streaming picture file is fed back into the CDN, so that the live streaming picture file is distributed to by the CDN It is shown on one electronic equipment.It can indicate that direct broadcasting room is corresponding straight in the present embodiment in database using live stream identification code Broadcast picture file and using time identifier indicate live streaming picture file renewal time, live stream identification code do not change and when Between mark variation in the case where indicate direct broadcasting room work normally and picture file is broadcast live and has changed, in this way, in the present embodiment number According to can only store a newest live streaming picture file in library, without storing the full dose live streaming picture text of each direct broadcasting room Part can greatly reduce the occupied storage resource of live video file, be conducive to the utilization rate for promoting storage resource.
Figure 10 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.For example, electronic equipment 1000 can To be server, mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig.1 0, electronic equipment 1000 may include following one or more components: processing component 1002, memory 1004, power supply module 1006, multimedia component 1008, audio component 1100, the interface 1012 of input/output (I/O), sensor Component 1014 and communication component 1016.
The integrated operation of the usual controlling electronic devices 1000 of processing component 1002, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 1002 may include one or more processors 1020 It executes instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1002 may include one or more Module, convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 may include multimedia mould Block, to facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in electronic equipment 1000.These numbers According to example include any application or method for being operated on electronic equipment 1000 instruction, contact data, electricity Talk about book data, message, picture, video etc..Memory 1004 can be by any kind of volatibility or non-volatile memory device Or their combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of electronic equipment 1000.Power supply module 1006 may include power supply Management system, one or more power supplys and other with for electronic equipment 1000 generate, manage, and distribute associated group of electric power Part.
Multimedia component 1008 includes the screen of one output interface of offer between electronic equipment 1000 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1008 includes a front camera and/or rear camera.When electronic equipment 1000 is in operation mode, as clapped When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1100 is configured as output and/or input audio signal.For example, audio component 1100 includes a wheat Gram wind (MIC), when electronic equipment 1000 is in operation mode, when such as call mode, recording mode, and voice recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 1004 or via Communication component 1016 is sent.In some embodiments, audio component 1100 further includes a loudspeaker, for exporting audio letter Number.
I/O interface 1012 provides interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, for providing the shape of various aspects for electronic equipment 1000 State assessment.For example, sensor module 1014 can detecte the state that opens/closes of electronic equipment 1000, component it is relatively fixed Position, such as the component are the display and keypad of electronic equipment 1000, and sensor module 1014 can also detect electronics and set For 1000 or the position change of 1,000 1 components of electronic equipment, the existence or non-existence that user contacts with electronic equipment 1000, The temperature change in 1000 orientation of electronic equipment or acceleration/deceleration and electronic equipment 1000.Sensor module 1014 may include connecing Nearly sensor is configured to detect the presence of nearby objects without any physical contact.Sensor module 1014 is also It may include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, should Sensor module 1014 can also include acceleration transducer, and gyro sensor, Magnetic Sensor, pressure sensor or temperature pass Sensor.
Communication component 1016 is configured to facilitate the logical of wired or wireless way between electronic equipment 1000 and other equipment Letter.Electronic equipment 1000 can access the wireless network based on communication standard, such as WiFi, carrier network (such as 2G, 3G, 4G or 5G) or their combination.In one exemplary embodiment, communication component 1016 is received via broadcast channel from external wide The broadcast singal or broadcast related information of broadcast management system.In one exemplary embodiment, the communication component 1016 also wraps Near-field communication (NFC) module is included, to promote short range communication.For example, it can be based on radio frequency identification (RFID) technology in NFC module, it is red Outer data association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In one embodiment of the disclosure, electronic equipment 1000 can be by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), scene can It programs gate array (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, for executing the above method.
In one embodiment of the disclosure, a kind of non-transitorycomputer readable storage medium including instruction is additionally provided, Memory 1004 for example including instruction, above-metioned instruction can be executed by the processor 1020 of electronic equipment 1000 to complete above-mentioned side The step of method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD- ROM, tape, floppy disk and optical data storage devices etc..
In one embodiment of the disclosure, a kind of server is additionally provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;Wherein, the processor is configured to described in executing Executable instruction in memory, the step of to realize method as shown in FIG. 1 to 3.
In one embodiment of the disclosure, a kind of CDN is additionally provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;Wherein, the processor is configured to described in executing Executable instruction in memory, the step of to realize method as shown in Figure 4.
In one embodiment of the disclosure, a kind of application program is additionally provided, when the application program is by the processing of electronic equipment When device executes, so that the step of electronic equipment is able to carry out the above method, to obtain identical technical effect.
In one embodiment of the disclosure, a kind of computer program product is additionally provided, when the computer program product is by electricity When the processor of sub- equipment executes, so that the step of electronic equipment is able to carry out the above method, to obtain identical technology Effect.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device/ For electronic equipment/storage medium embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, phase Place is closed to illustrate referring to the part of embodiment of the method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of file acquisition method, which is characterized in that be applied to server, which comprises
The file acquisition request that CDN is sent is parsed, the live stream identification code and time identifier in the file acquisition request are obtained;
The live stream identification code and the time identifier are sent to the database for being stored with live streaming picture file, by the number The corresponding live streaming picture file of the live stream identification code is extracted according at least to the live stream identification code according to library;
The live streaming picture file is fed back into the CDN, so that the live streaming picture file is distributed to the first electricity by the CDN It is shown in sub- equipment.
2. file acquisition method according to claim 1, which is characterized in that the method also includes updating the database In live streaming picture file the step of, specifically include:
It obtains screenshotss service and the obtained live streaming picture file of screenshotss is carried out to live stream;
The corresponding live streaming picture file of live stream identification code described in the database is covered simultaneously using the live streaming picture file Renewal time mark.
3. file acquisition method according to claim 1, which is characterized in that the file acquisition that parsing CDN is sent requests it Before, the method also includes:
Obtain the file acquisition request that first electronic equipment is sent;The file acquisition request includes live stream identification code;
It is requested in response to the file acquisition, the time identifier of live streaming picture file is obtained according to the live stream identification code;
The resource address of live streaming picture file is generated based on the live stream identification code and the time identifier;
To first electronic equipment return it is described live streaming picture file resource address so that first electronic equipment according to The resource address access live streaming picture file.
4. a kind of file acquisition method, which is characterized in that be applied to CDN, which comprises
Obtain the access request that first electronic equipment is sent, the access request includes that the resource of picture file is broadcast live Location;The resource address includes live stream identification code and time identifier;
The live streaming picture file whether has been cached according to resource address inquiry;
If uncached, the file acquisition request sent to server is requested with obtaining the server according to the file acquisition In live stream identification code and time identifier feedback live streaming picture file, and the live streaming picture file is sent to described the One electronic equipment;If having cached, the live streaming picture file is sent to first electronic equipment.
5. a kind of file acquisition device, which is characterized in that be applied to server, described device includes:
File request resolution unit is configured as executing the file acquisition request that parsing CDN is sent, obtains the file acquisition and ask Live stream identification code and time identifier in asking;
Picture extraction unit is broadcast live, is configured as execution and the live stream identification code and the time identifier is sent to and is stored with The database of picture file is broadcast live, extracts the live stream according at least to the live stream identification code by the database and identifies The corresponding live streaming picture file of code;
Picture feedback unit is broadcast live, is configured as execution for the live streaming picture file and feeds back to the CDN, so that the CDN The live streaming picture file is distributed on the first electronic equipment and is shown.
6. file acquisition device according to claim 5, which is characterized in that described device further include:
File request acquiring unit is configured as executing the file acquisition request for obtaining the first electronic equipment transmission;It is described File acquisition request includes live stream identification code;
Storage address acquiring unit is configured as executing and request in response to the file acquisition, according to the live stream identification code Obtain the time identifier of live streaming picture file;
Resource address generation unit is configured as executing based on the live stream identification code and time identifier generation live streaming figure The resource address of piece file;
Resource address return unit is configured as executing the resource for returning to the live streaming picture file to first electronic equipment Address, so that first electronic equipment accesses live streaming picture file according to the resource address.
7. a kind of file acquisition device, which is characterized in that be applied to CDN, described device includes:
Access request acquiring unit is configured as executing the access request for obtaining the first electronic equipment transmission, the access Request includes the resource address of live streaming picture file;The resource address includes live stream identification code and time identifier;
Picture query unit is broadcast live, is configured as executing according to whether resource address inquiry has cached the live streaming picture text Part;
Picture acquiring unit is broadcast live, is configured as executing in the case where the CDN uncached live streaming picture text, to institute It states server and sends file acquisition request, to obtain the server according to the live stream identification code in file acquisition request The live streaming picture file fed back with time identifier, and the live streaming picture file is sent to first electronic equipment;And In the case where the CDN has cached the live streaming picture file, the live streaming picture file is sent to first electronics Equipment.
8. a kind of server characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;Wherein, the processor is configured to executing the storage Executable instruction in device, to realize such as the step of any one of claims 1 to 3 the method.
9. a kind of CDN characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;Wherein, the processor is configured to executing the storage Executable instruction in device, the step of to realize method as claimed in claim 4.
10. a kind of storage medium, which is characterized in that be able to carry out when the instruction in the storage medium is executed by processor as The step of any one of Claims 1 to 4 the method.
CN201910666711.5A 2019-07-23 2019-07-23 File acquisition method and device, server and storage medium Pending CN110290393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910666711.5A CN110290393A (en) 2019-07-23 2019-07-23 File acquisition method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910666711.5A CN110290393A (en) 2019-07-23 2019-07-23 File acquisition method and device, server and storage medium

Publications (1)

Publication Number Publication Date
CN110290393A true CN110290393A (en) 2019-09-27

Family

ID=68023792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910666711.5A Pending CN110290393A (en) 2019-07-23 2019-07-23 File acquisition method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN110290393A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769275A (en) * 2019-10-09 2020-02-07 北京达佳互联信息技术有限公司 Method, device and system for processing live data stream
CN110996118A (en) * 2019-12-20 2020-04-10 北京达佳互联信息技术有限公司 Cover synthesis method, device, server and storage medium
CN111291005A (en) * 2020-01-19 2020-06-16 Oppo(重庆)智能科技有限公司 File viewing method, device, terminal equipment, system and storage medium
CN111918092A (en) * 2020-08-12 2020-11-10 广州繁星互娱信息科技有限公司 Video stream processing method, device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130325942A1 (en) * 2012-05-30 2013-12-05 Verizon Patent And Licensing Inc. Recommender system for content delivery networks
CN105681827A (en) * 2016-03-04 2016-06-15 华为技术有限公司 Poster generation method and system of live channels and relevant devices
CN105812852A (en) * 2016-05-06 2016-07-27 腾讯科技(北京)有限公司 Information processing method and server
CN107920042A (en) * 2016-10-08 2018-04-17 北京小唱科技有限公司 A kind of optimized transmission method and server of the direct broadcasting room page
CN108521576A (en) * 2018-03-16 2018-09-11 腾讯科技(成都)有限公司 Display methods, device, storage medium and the electronic device of media resource

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130325942A1 (en) * 2012-05-30 2013-12-05 Verizon Patent And Licensing Inc. Recommender system for content delivery networks
CN105681827A (en) * 2016-03-04 2016-06-15 华为技术有限公司 Poster generation method and system of live channels and relevant devices
CN105812852A (en) * 2016-05-06 2016-07-27 腾讯科技(北京)有限公司 Information processing method and server
CN107920042A (en) * 2016-10-08 2018-04-17 北京小唱科技有限公司 A kind of optimized transmission method and server of the direct broadcasting room page
CN108521576A (en) * 2018-03-16 2018-09-11 腾讯科技(成都)有限公司 Display methods, device, storage medium and the electronic device of media resource

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769275A (en) * 2019-10-09 2020-02-07 北京达佳互联信息技术有限公司 Method, device and system for processing live data stream
CN110996118A (en) * 2019-12-20 2020-04-10 北京达佳互联信息技术有限公司 Cover synthesis method, device, server and storage medium
CN111291005A (en) * 2020-01-19 2020-06-16 Oppo(重庆)智能科技有限公司 File viewing method, device, terminal equipment, system and storage medium
CN111918092A (en) * 2020-08-12 2020-11-10 广州繁星互娱信息科技有限公司 Video stream processing method, device, server and storage medium

Similar Documents

Publication Publication Date Title
CN110290393A (en) File acquisition method and device, server and storage medium
CN108520746B (en) Method and device for controlling intelligent equipment through voice and storage medium
US20210385506A1 (en) Method and electronic device for assisting live streaming
CN112468866A (en) Live broadcast method, device, terminal, server and medium
RU2615073C2 (en) Method, device and system for event reminder
US11949979B2 (en) Image acquisition method with augmented reality anchor, device, apparatus and storage medium
RU2642843C2 (en) Method and device for processing recording contacts
CN110446079A (en) Obtain method, apparatus, electronic equipment and the storage medium of viewing duration
CN110300189A (en) A kind of resource downloading method, device and electronic equipment
CN105117207A (en) Album creating method and apparatus
CN111866594A (en) Live broadcast platform interaction method and device, electronic equipment and storage medium
CN113190777A (en) Data updating method and device, electronic equipment, storage medium and product
CN110457451A (en) Information display method, device, electronic equipment and storage medium
CN106254633B (en) Handset mode method of adjustment and device
CN113365099B (en) Bullet screen issuing method, bullet screen receiving method, bullet screen issuing device, electronic equipment and storage medium
CN110690979B (en) Group message processing method, device, server, client and storage medium
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN110121056B (en) Cross-regional video networking monitoring video acquisition method and device
CN112423011A (en) Message reply method, device, equipment and storage medium
CN112000840A (en) Business object display method and device
TWI265434B (en) A service providing system and method, a sentient network generating device and method
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN110764847A (en) User information processing method and device, electronic equipment and storage medium
CN115002501B (en) Information display method and device, electronic equipment and storage medium
CN114172964B (en) Scheduling method, device, communication equipment and storage medium of content distribution network

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190927