CN103716656B - A kind of video loading method and electronic equipment - Google Patents

A kind of video loading method and electronic equipment Download PDF

Info

Publication number
CN103716656B
CN103716656B CN201310674078.7A CN201310674078A CN103716656B CN 103716656 B CN103716656 B CN 103716656B CN 201310674078 A CN201310674078 A CN 201310674078A CN 103716656 B CN103716656 B CN 103716656B
Authority
CN
China
Prior art keywords
video
address
advertisement
splicing
addresses
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310674078.7A
Other languages
Chinese (zh)
Other versions
CN103716656A (en
Inventor
陈浩
袁斌
李志纲
张力文
赵春艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Zhirong Innovation Technology Development Co.,Ltd.
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310674078.7A priority Critical patent/CN103716656B/en
Publication of CN103716656A publication Critical patent/CN103716656A/en
Application granted granted Critical
Publication of CN103716656B publication Critical patent/CN103716656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of video loading method and electronic equipments, are related to multimedia technology field, can simplify video load flow, improve video loading efficiency.Concrete scheme is:Request message is spliced to gateway server in the address for sending the addresses m3u8 comprising advertisement video and the addresses m3u8 of program video, and address splicing request message is used to indicate gateway server and the addresses m3u8 of the addresses m3u8 of advertisement video and program video are spliced into a broadcast address;Receive the splicing broadcast address from gateway server;According to the splicing broadcast address carrying advertisement video and program video received.The present invention is in the loading procedure of video.

Description

A kind of video loading method and electronic equipment
Technical field
The present invention relates to multimedia technology field more particularly to a kind of video loading methods and electronic equipment.
Background technology
With the development of electronic mass media technology, more and more advertisements enter the daily life of consumer, constantly to wide Big consumer provides living information, and carrying out consumption activity for consumer creates facility.Wherein, electronic equipment play video it Before, it can preload and play some advertisements.
In the prior art, electronic equipment is during playing advertisement video and playing program video, it is necessary first to obtain The broadcast address of advertisement according to the broadcast address carrying advertisement video of the advertisement video got, and carries out broadcasting for advertisement video It puts;Then during playing advertisement video or after advertisement video plays, then the broadcast address of program video is obtained, Video is loaded according to the broadcast address of the program video got, and carries out the broadcasting of program video.The load stream of video data Journey is more complicated.
Invention content
A kind of video loading method of the embodiment of the present invention offer and electronic equipment can simplify video load flow, carry High video loading efficiency.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
The embodiment of the present invention in a first aspect, provide a kind of video loading method, including:
Splice request message to net in the address for sending the addresses m3u8 comprising advertisement video and the addresses m3u8 of program video Close server, described address splicing request message be used to indicate the gateway server by the addresses m3u8 of the advertisement video and The addresses m3u8 of the program video are spliced into a broadcast address;
Receive the splicing broadcast address from the gateway server;
The advertisement video and the program video are loaded according to the splicing broadcast address received.
With reference to first aspect, in one possible implementation, the addresses m3u8 comprising advertisement video and section are being sent Before the address splicing request message to gateway server of the addresses m3u8 of visual frequency, the method further includes:
Obtain the advertisement and identifier for the advertisement video asked to ad system;
The m3u8 files of the advertisement video are obtained according to the advertisement and identifier;
The m3u8 files for parsing the advertisement video, to obtain the addresses m3u8 of the advertisement video, the advertisement video The addresses m3u8 include:The slice address of all slice files of the advertisement video.
Include in transmission in alternatively possible realization method with above-mentioned possible realization method with reference to first aspect It is described before request message to gateway server is spliced in the address of the addresses m3u8 of advertisement video and the addresses m3u8 of program video Method further includes:
Obtain the video identifier of program video to be played;
The m3u8 files of the program video are obtained according to the video identifier;
The m3u8 files for parsing the program video, to obtain the addresses m3u8 of the program video, the program video The addresses m3u8 include:The slice address of all slice files of the program video.
It is described in basis in alternatively possible realization method with reference to first aspect with above-mentioned possible realization method The splicing broadcast address received loads the advertisement video and the program video, the method further include:
Play out the initialization of device;
The advertisement video and the program video are loaded according to the splicing broadcast address received, including:
After the initialization, the advertisement video and the program are regarded according to the splicing broadcast address received Frequency is loaded onto the player.
With reference to first aspect with above-mentioned possible realization method, in alternatively possible realization method, the basis connects The splicing broadcast address received loads the advertisement video and the program video, including:
Judge whether the splicing broadcast address received is complete splicing address, and the complete splicing address is according to The slice address of all slice files of advertisement video and the slice address of all slice files of the program video splicing and At broadcast address;
It is described wide according to splicing broadcast address load if the splicing broadcast address is the complete splicing address Accuse video and the program video.
The second aspect of the embodiment of the present invention also provides a kind of electronic equipment, including:
Transmission unit, the address splicing of the addresses m3u8 for sending the addresses m3u8 comprising advertisement video and program video Request message to gateway server, described address splicing request message is used to indicate the gateway server by the advertisement video The addresses m3u8 and the addresses m3u8 of the program video be spliced into a broadcast address;
Receiving unit, for receiving the splicing broadcast address from the gateway server;
Loading unit, the splicing broadcast address for being received according to the receiving unit load the advertisement video and institute State program video.
In conjunction with second aspect, in one possible implementation, the electronic equipment can also include:
First acquisition unit, for including the addresses m3u8 and the program video of advertisement video in transmission unit transmission Before the address splicing request message to gateway server of the addresses m3u8, the wide of the advertisement video asked to ad system is obtained Accuse mark;The m3u8 files of the advertisement video are obtained according to the advertisement and identifier;The m3u8 files of the advertisement video are parsed, To obtain the addresses m3u8 of the advertisement video, the addresses m3u8 of the advertisement video include:The all of the advertisement video cut The slice address of piece file.
In conjunction with second aspect and above-mentioned possible realization method, in alternatively possible realization method, the electronics is set It is standby, further include:
Second acquisition unit, for including the addresses m3u8 and the program video of advertisement video in transmission unit transmission Before the address splicing request message to gateway server of the addresses m3u8, the video identifier of program video to be played is obtained;Root The m3u8 files of the program video are obtained according to the video identifier;The m3u8 files for parsing the program video, to obtain The addresses m3u8 of program video are stated, the addresses m3u8 of the program video include:All slice files of the program video Slice address.
In conjunction with second aspect and above-mentioned possible realization method, in alternatively possible realization method, the electronics is set It is standby, further include:
Initialization unit, for loading the advertisement video according to the splicing broadcast address received in the loading unit Before the program video, the initialization of device is played out;
The loading unit is additionally operable to after the initialization, will be described according to the splicing broadcast address received Advertisement video and the program video are loaded onto the player.
In conjunction with second aspect and above-mentioned possible realization method, in alternatively possible realization method, the load is single Member, including:
Judgment module, whether the splicing broadcast address for judging to receive is complete splicing address, the complete splicing Address is all slice files according to the slice address and program video of all slice files of the advertisement video The broadcast address that slice address is spliced;
Load-on module, if judging to obtain the splicing broadcast address for the judgment module as the complete splicing ground Location then loads the advertisement video and the program video according to the splicing broadcast address.
Video loading method and electronic equipment provided in an embodiment of the present invention, send comprising advertisement video the addresses m3u8 and Request message is spliced to gateway server in the address of the addresses m3u8 of program video, and address splicing request message is used to indicate gateway The addresses m3u8 of the addresses m3u8 of advertisement video and program video are spliced into a broadcast address by server;It receives and comes from gateway The splicing broadcast address of server;According to the splicing broadcast address carrying advertisement video and program video received.
Compared to before playing advertisement video and program video in the prior art, needing to carry out video data load twice, By this programme, electronic equipment can acquire the addresses m3u8 and the program video of advertisement video by gateway server Then the splicing broadcast address of the addresses m3u8 is directly being broadcast according to the splicing broadcast address carrying advertisement video and program video Only need data load of progress that can obtain advertisement video and program video before putting advertisement video and program video, it can Flow is loaded to simplify video, improves video loading efficiency.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art With obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of video loading method flow chart in the embodiment of the present invention 1;
Fig. 2 is a kind of video loading method flow chart in the embodiment of the present invention 2;
Fig. 3 is the composition schematic diagram of a kind of electronic equipment in the embodiment of the present invention 3;
Fig. 4 is the composition schematic diagram of another electronic equipment in the embodiment of the present invention 3;
Fig. 5 is the composition schematic diagram of another electronic equipment in the embodiment of the present invention 3.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In addition, the terms " system " and " network " are often used interchangeably herein.The terms " and/ Or ", only a kind of incidence relation of description affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can be with table Show:Individualism A exists simultaneously A and B, these three situations of individualism B.In addition, character "/" herein, typicallys represent front and back Affiliated partner is a kind of relationship of "or".
Embodiment 1
The embodiment of the present invention provides a kind of video loading method, as shown in Figure 1, including:
S101, electronic equipment send the address splicing of the addresses m3u8 comprising advertisement video and the addresses m3u8 of program video Request message to gateway server, address splicing request message be used to indicate gateway server by the addresses m3u8 of advertisement video and The addresses m3u8 of program video are spliced into a broadcast address.
Illustratively, electronic equipment can be with video data stream download and playing function electric terminal, as mobile phone, Any one in the electric terminals such as ipad, PC, intelligent TV set.
Wherein, the addresses m3u8 of advertisement video may include the slice address of all slice files of advertisement video.Program The addresses m3u8 of video may include:The slice address of all slice files of the program video.
The address splicing that the addresses m3u8 comprising advertisement video and the addresses m3u8 of program video are sent in electronic equipment is asked Before seeking message to gateway server, the method for the embodiment of the present invention further includes:Electronic equipment is with obtaining the m3u8 of advertisement video Location;Electronic equipment obtains the addresses m3u8 of program video.
Illustratively, in embodiments of the present invention, the specific method of the addresses m3u8 of electronic equipment acquisition advertisement video can To include:Electronic equipment obtains the advertisement and identifier for the advertisement video asked to ad system;Advertisement is obtained according to advertisement and identifier The m3u8 files of video;The m3u8 files for parsing advertisement video, to obtain the addresses m3u8 of advertisement video, the m3u8 of advertisement video Address includes:The slice address of all slice files of advertisement video.
Illustratively, in embodiments of the present invention, the specific method of the addresses m3u8 of electronic equipment acquisition program video can To include:Electronic equipment obtains the video identifier of program video to be played;The m3u8 of program video is obtained according to video identifier File;The m3u8 files of program video are parsed, to obtain the addresses m3u8 of program video, the addresses m3u8 of program video include: The slice address of all slice files of program video.
It should be noted that the video in the embodiment of the present invention(Including advertisement video and program video)It is m3u8 formats Transport stream(Transport Stream, TS), TS video flowings are a kind of data flows that MPEG-2 is defined, its purpose is to It is likely to occur the transimission and storage for the coded data that one or more programs are carried out in the environment of serious error.This error list It is now the loss of bit value mistake or transmission stream packets.Mpeg 2 transport stream is made of continuous transmission stream packets.These transmission Two category informations are carried in flow point group:Encoded compressed original stream data and Program Specific Information(program Specific information, PSI)Table.The transmission stream packets of different types of data are carried by different PID field value marks Know.Each appointed pid value is corresponding with specific transmission stream packets, and is unique correspondence.Encode compressed original Beginning data flow includes video primary flow, audio primary flow and private data stream.
It should be noted that M3U8 files are substantially also a kind of M3U files, only the coded format of the two is different. The coded format of M3U8 files is UTF-8 formats, and M3U uses Latin-1 character set encodings.M3U is similar to audio or regards The directory information of frequency file.
Specifically, M3U files be not audio file either video file it be audio file or video file list File is text-only file.After download obtains M3U files and opens M3U files, the player plays of electronic equipment are not It is the M3U files, but corresponding network address is got according to the record of the M3U files, then downloads corresponding slice text Part simultaneously plays out.
Wherein, due to the video in the embodiment of the present invention(Including advertisement video and program video)It is the TS of m3u8 formats Video flowing, and electronic equipment by the network address information for the TS video flowings of acquisition arrived be the network side server to TS video flowings The slice address of at least two slice files obtained after slicing treatment is carried out, therefore, electronic equipment can include advertisement video The addresses m3u8 and the address of the addresses m3u8 of program video splice request message to gateway server, gateway server can will The addresses m3u8 of advertisement video(At least two slice address)With the addresses m3u8 of program video(At least two slice address)It spells It is connected into a broadcast address.
S102, electronic equipment receive the splicing broadcast address from gateway server.
S103, electronic equipment are according to the splicing broadcast address carrying advertisement video and program video received.
Wherein, electronic equipment, can be directly according to the splicing broadcast address received after receiving splicing broadcast address The load for carrying out advertisement video and program video, need not carry out the load of the load and program video of advertisement video respectively again, Video load flow can be simplified, improve video loading efficiency.
Video loading method provided in an embodiment of the present invention, m3u8 address of the transmission comprising advertisement video and program video Request message is spliced to gateway server in the address of the addresses m3u8, and address splicing request message is used to indicate gateway server will be wide The addresses m3u8 of the addresses m3u8 and program video of accusing video are spliced into a broadcast address;Receive the spelling from gateway server Connect broadcast address;According to the splicing broadcast address carrying advertisement video and program video received.
Compared to before playing advertisement video and program video in the prior art, needing to carry out video data load twice, By this programme, electronic equipment can acquire the addresses m3u8 and the program video of advertisement video by gateway server Then the splicing broadcast address of the addresses m3u8 is directly being broadcast according to the splicing broadcast address carrying advertisement video and program video Only need data load of progress that can obtain advertisement video and program video before putting advertisement video and program video, it can Flow is loaded to simplify video, improves video loading efficiency.
Embodiment 2
The embodiment of the present invention provides a kind of video loading method, as shown in Fig. 2, including:
S201, electronic equipment obtain the advertisement and identifier for the advertisement video asked to ad system.
Wherein, whether electronic equipment can detect the electronic equipment currently in real time has advertisement to play demand, works as detecting Before have advertisement broadcasting demand after, according to the advertisement play demand require information(To the require information of advertisement to be played, such as advertisement Type, advertisement duration etc.)Ad-request is sent to ad system, ad system can include according in the ad-request received Require information, configure corresponding advertisement video for the electronic equipment, and send be electronic equipment configuration advertisement video Advertisement and identifier is to the electronic equipment, in order to which the electronic equipment can obtain the m3u8 files of advertisement video according to advertisement and identifier, Then corresponding advertisement video is loaded according to m3u8 files.
S202, electronic equipment obtain the m3u8 files of advertisement video according to advertisement and identifier.
Wherein, the advertisement video in the embodiment of the present invention is the transport stream of m3u8 formats(Transport Stream, TS), TS video flowings are a kind of data flows that MPEG-2 is defined, and its purpose is to be carried out in the environment of being likely to occur serious error The transimission and storage of the coded data of one or more programs.This mistake shows as losing for bit value mistake or transmission stream packets It loses.Mpeg 2 transport stream is made of continuous transmission stream packets.Two category informations are carried in these transmission stream packets:Encoded pressure The original stream data and Program Specific Information to contract(Program specific information, PSI)Table.Carry inhomogeneity The transmission stream packets of type data are identified by different PID field values.Each appointed pid value and specific transmission stream packets It is corresponding, and be unique correspondence.It includes video primary flow, audio primary flow and special to encode compressed original data stream Data flow.
It should be noted that M3U8 files are substantially also a kind of M3U files, only the coded format of the two is different. The coded format of M3U8 files is UTF-8 formats, and M3U uses Latin-1 character set encodings.M3U is similar to audio or regards The directory information of frequency file.
Specifically, M3U files be not audio file either video file it be audio file or video file list File is text-only file.After download obtains M3U files and opens M3U files, the player plays of electronic equipment are not It is the M3U files, but corresponding network address is got according to the record of the M3U files, then downloads corresponding slice text Part simultaneously plays out.
Illustratively, electronic equipment may include according to the method for the m3u8 files of advertisement and identifier acquisition advertisement video:Electricity The load of sub- equipment detection advertisement video instructs, and the mark of advertisement video to be downloaded is included in download instruction;Electronic equipment exists After detecting load instruction, the mark of the advertisement video for including in being instructed according to load is from the M3U8 of server downloads ad video File.
The m3u8 files of S203, electronic equipment parsing advertisement video, to obtain the addresses m3u8 of advertisement video, advertisement video The addresses m3u8 include:The slice address of all slice files of advertisement video.
Wherein, all slice files comprising the advertisement video corresponding to M3U8 files in the M3U8 files of advertisement video The M3U8 files of slice address, advertisement video can be a M3U8 listing file, be regarded comprising advertisement in the M3U8 listing files The slice address of all slice files of frequency, also, the slice address of all slice files of advertisement video is in the advertisement video M3U8 listing files according to slice file broadcasting sequencing arranged.Therefore, electronic equipment parses advertisement video M3u8 files, can not only get the addresses m3u8 of advertisement video, all slices of advertisement video can also be got The playing sequence of the corresponding slice file in location.
S204, electronic equipment obtain the video identifier of program video to be played.
S205, electronic equipment obtain the m3u8 files of program video according to video identifier.
It should be noted that the program video in the embodiment of the present invention is also the TS video flowings of m3u8 formats, related TS is regarded Specifically describing for frequency stream can refer to the above-mentioned associated description of the present embodiment, and which is not described herein again for the embodiment of the present invention.
The m3u8 files of S206, electronic equipment parsing program video, to obtain the addresses m3u8 of program video, program video The addresses m3u8 include:The slice address of all slice files of program video.
Wherein, all slice files comprising the program video corresponding to M3U8 files in the M3U8 files of program video The M3U8 files of slice address, program video can be a M3U8 listing file, be regarded comprising program in the M3U8 listing files The slice address of all slice files of frequency, also, the slice address of all slice files of program video is in the program video M3U8 listing files according to slice file broadcasting sequencing arranged.Therefore, electronic equipment parses program video M3u8 files, can not only get the addresses m3u8 of program video, all slices of program video can also be got The playing sequence of the corresponding slice file in location.
It should be noted that S201-S203 can be first carried out in embodiments of the present invention, then execute S204-S206;Also may be used To first carry out S204-S206, then execute S201-S203;S201-S203 and S204-S206 can also be performed simultaneously.The present invention is real Example is applied not to be limited the S201-S203 and S204-S206 sequencings executed.
S207, electronic equipment send the address splicing of the addresses m3u8 comprising advertisement video and the addresses m3u8 of program video Request message to gateway server, address splicing request message be used to indicate gateway server by the addresses m3u8 of advertisement video and The addresses m3u8 of program video are spliced into a broadcast address.
Wherein, due to the video in the embodiment of the present invention(Including advertisement video and program video)It is the TS of m3u8 formats Video flowing, and electronic equipment by the network address information for the TS video flowings of acquisition arrived be the network side server to TS video flowings The slice address of at least two slice files obtained after slicing treatment is carried out, therefore, electronic equipment can include advertisement video The addresses m3u8 and the address of the addresses m3u8 of program video splice request message to gateway server, gateway server can will The addresses m3u8 of advertisement video(At least two slice address)With the addresses m3u8 of program video(At least two slice address)It spells It is connected into a broadcast address.
S208, electronic equipment receive the splicing broadcast address from gateway server.
S209, electronic equipment play out the initialization of device.
Preferably, since electronic equipment needs the player that advertisement video and program video are loaded onto to the electronic equipment, Successful advertisement video and program video can be loaded by the player plays of the electronic equipment;Therefore, electronic equipment exists Before carrying advertisement video and program video, the initialization for playing out device is needed.Wherein, it is initial to play out device for electronic equipment The specific method of change can refer to the associated description in the implementation method of player initialization in the prior art, the embodiment of the present invention Which is not described herein again.
S210, electronic equipment are after initialization, according to the splicing broadcast address received by advertisement video and program Video is loaded onto player.
Further, in order to ensure that electronic equipment can successfully realize that advertisement regards according to the splicing broadcast address received The complete load of frequency and program video, in the method for the embodiment of the present invention, electronic equipment plays ground according to the splicing received Location loads the advertisement video and the method for the program video may include:Electronic equipment judges that the splicing received plays ground Whether location is complete splicing address, and the complete splicing address is according to the slice of all slice files of the advertisement video The broadcast address that the slice address of all slice files of location and the program video is spliced;If the splicing broadcast address For the complete splicing address, then the advertisement video and the program video are loaded according to the splicing broadcast address.
Video loading method provided in an embodiment of the present invention, m3u8 address of the transmission comprising advertisement video and program video Request message is spliced to gateway server in the address of the addresses m3u8, and address splicing request message is used to indicate gateway server will be wide The addresses m3u8 of the addresses m3u8 and program video of accusing video are spliced into a broadcast address;Receive the spelling from gateway server Connect broadcast address;According to the splicing broadcast address carrying advertisement video and program video received.
Compared to before playing advertisement video and program video in the prior art, needing to carry out video data load twice, By this programme, electronic equipment can acquire the addresses m3u8 and the program video of advertisement video by gateway server Then the splicing broadcast address of the addresses m3u8 is directly being broadcast according to the splicing broadcast address carrying advertisement video and program video Only need data load of progress that can obtain advertisement video and program video before putting advertisement video and program video, it can Flow is loaded to simplify video, improves video loading efficiency.
Embodiment 3
The embodiment of the present invention provides a kind of electronic equipment, as shown in figure 3, including:Transmission unit 31, receiving unit 32 and add Carrier unit 33.
Transmission unit 31 is spelled for sending the address of the addresses m3u8 of the addresses m3u8 comprising advertisement video and program video Request message is connect to gateway server, described address splicing request message is used to indicate the gateway server and regards the advertisement The addresses m3u8 of frequency and the addresses m3u8 of the program video are spliced into a broadcast address.
Receiving unit 32, for receiving the splicing broadcast address from the gateway server.
Loading unit 33, the splicing broadcast address for being received according to the receiving unit 32 load the advertisement video With the program video.
Further, as shown in figure 4, the electronic equipment, can also include:First acquisition unit 34.
First acquisition unit 34, for being regarded in m3u8 address of the transmission of the transmission unit 31 comprising advertisement video and program Before the address splicing request message to gateway server of the addresses m3u8 of frequency, the advertisement video asked to ad system is obtained Advertisement and identifier;The m3u8 files of the advertisement video are obtained according to the advertisement and identifier;Parse the m3u8 of the advertisement video File, to obtain the addresses m3u8 of the advertisement video, the addresses m3u8 of the advertisement video include:The institute of the advertisement video There is the slice address of slice file.
Further, as shown in figure 4, the electronic equipment, can also include:Second acquisition unit 35.
Second acquisition unit 35, for being regarded in m3u8 address of the transmission of the transmission unit 31 comprising advertisement video and program Before the address splicing request message to gateway server of the addresses m3u8 of frequency, the video mark of program video to be played is obtained Know;The m3u8 files of the program video are obtained according to the video identifier;The m3u8 files for parsing the program video, to obtain The addresses m3u8 of the program video, the addresses m3u8 of the program video is taken to include:All slices text of the program video The slice address of part.
Further, as shown in figure 5, the electronic equipment, further includes:Initialization unit 36.
Initialization unit 36 is regarded for loading the advertisement according to the splicing broadcast address received in the loading unit Before frequency and the program video, the initialization of device is played out.
The loading unit 33 is additionally operable to after the initialization, according to the splicing broadcast address received by institute It states advertisement video and the program video is loaded onto the player.
Further, the loading unit 33, including:Judgment module and load-on module.
Judgment module, whether the splicing broadcast address for judging to receive is complete splicing address, the complete splicing Address is all slice files according to the slice address and program video of all slice files of the advertisement video The broadcast address that slice address is spliced.
Load-on module, if judging to obtain the splicing broadcast address for the judgment module as the complete splicing ground Location then loads the advertisement video and the program video according to the splicing broadcast address.
It should be noted that the specific descriptions of part function module can join in electronic equipment provided in an embodiment of the present invention The corresponding content in the method for the present invention embodiment is examined, the present embodiment is no longer described in detail here.
Electronic equipment provided in an embodiment of the present invention can send the addresses m3u8 comprising advertisement video and program video Request message is spliced to gateway server in the address of the addresses m3u8, and address splicing request message is used to indicate gateway server will be wide The addresses m3u8 of the addresses m3u8 and program video of accusing video are spliced into a broadcast address;Receive the spelling from gateway server Connect broadcast address;According to the splicing broadcast address carrying advertisement video and program video received.
Compared to before playing advertisement video and program video in the prior art, needing to carry out video data load twice, By this programme, electronic equipment can acquire the addresses m3u8 and the program video of advertisement video by gateway server Then the splicing broadcast address of the addresses m3u8 is directly being broadcast according to the splicing broadcast address carrying advertisement video and program video Only need data load of progress that can obtain advertisement video and program video before putting advertisement video and program video, it can Flow is loaded to simplify video, improves video loading efficiency.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can as needed and will be upper It states function distribution to be completed by different function modules, i.e., the internal structure of device is divided into different function modules, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to The corresponding process in embodiment of the method is stated, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment(Can be personal computer, server or the network equipment etc.)Or processor(processor)It is each to execute the present invention The all or part of step of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD Etc. the various media that can store program code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of video loading method, which is characterized in that it is applied to electronic equipment, including:
Splice request message to gateway clothes in the address for sending the addresses m3u8 comprising advertisement video and the addresses m3u8 of program video Business device, described address splicing request message are used to indicate the gateway server and regard the advertisement that the electronic equipment obtains The addresses m3u8 of frequency and the addresses m3u8 of the program video are spliced into a broadcast address;
Receive the splicing broadcast address from the gateway server;
The advertisement video and the program video are loaded according to the splicing broadcast address received;
Splice request message to gateway in the address for sending the addresses m3u8 of the addresses m3u8 comprising advertisement video and program video Before server, the method further includes:
Obtain the advertisement and identifier for the advertisement video asked to ad system;The advertisement video is obtained according to the advertisement and identifier M3u8 files;The m3u8 files for parsing the advertisement video, to obtain the addresses m3u8 of the advertisement video;
Obtain the video identifier of program video to be played;The m3u8 texts of the program video are obtained according to the video identifier Part;The m3u8 files for parsing the program video, to obtain the addresses m3u8 of the program video.
2. according to the method described in claim 1, it is characterized in that, the addresses m3u8 of the advertisement video include:The advertisement The slice address of all slice files of video.
3. according to the method described in claim 1, it is characterized in that, the addresses m3u8 of the program video include:The program The slice address of all slice files of video.
4. according to the method described in claim 1, it is characterized in that, described wide according to the splicing broadcast address load received Before accusing video and the program video, the method further includes:
Play out the initialization of device;
The advertisement video and the program video are loaded according to the splicing broadcast address received, including:
After the initialization, the advertisement video and the program video are added according to the splicing broadcast address received It is loaded onto the player.
5. according to the method described in claim 1, it is characterized in that, loading the advertisement according to the splicing broadcast address received Video and the program video, including:
Judge whether the splicing broadcast address received is complete splicing address, and the complete splicing address is according to the advertisement What the slice address of all slice files of video and the slice address of all slice files of the program video were spliced Broadcast address;
If the splicing broadcast address is the complete splicing address, the advertisement is loaded according to the splicing broadcast address and is regarded Frequency and the program video.
6. a kind of electronic equipment, which is characterized in that including:
Transmission unit, the address splicing request of the addresses m3u8 for sending the addresses m3u8 comprising advertisement video and program video Message to gateway server, described address splicing request message is used to indicate the gateway server by the advertisement video The addresses m3u8 and the addresses m3u8 of the program video are spliced into a broadcast address;
Receiving unit, for receiving the splicing broadcast address from the gateway server;
Loading unit, the splicing broadcast address for being received according to the receiving unit load the advertisement video and the section Visually frequency;
First acquisition unit, the m3u8 for sending the addresses m3u8 and program video comprising advertisement video in the transmission unit Before the address splicing request message to gateway server of address, the advertisements for the advertisement video asked to ad system are obtained Know;The m3u8 files of the advertisement video are obtained according to the advertisement and identifier;The m3u8 files for parsing the advertisement video, to obtain Take the addresses m3u8 of the advertisement video;
Second acquisition unit, the m3u8 for sending the addresses m3u8 and program video comprising advertisement video in the transmission unit Before the address splicing request message to gateway server of address, the video identifier of program video to be played is obtained;According to institute State the m3u8 files that video identifier obtains the program video;The m3u8 files for parsing the program video, to obtain the section The addresses m3u8 of visual frequency.
7. electronic equipment according to claim 6, which is characterized in that further include:It is described in the first acquisition unit The addresses m3u8 of advertisement video include:The slice address of all slice files of the advertisement video.
8. electronic equipment according to claim 6, which is characterized in that further include:It is described in the second acquisition unit The addresses m3u8 of program video include:The slice address of all slice files of the program video.
9. electronic equipment according to claim 6, which is characterized in that further include:
Initialization unit, for loading the advertisement video and institute according to the splicing broadcast address received in the loading unit Before stating program video, the initialization of device is played out;
The loading unit is additionally operable to after the initialization, according to the splicing broadcast address received by the advertisement Video and the program video are loaded onto the player.
10. electronic equipment according to claim 6, which is characterized in that the loading unit, including:
Judgment module, whether the splicing broadcast address for judging to receive is complete splicing address, the complete splicing address For according to the slice of all slice files of the slice address and program video of all slice files of the advertisement video The broadcast address that address is spliced;
Load-on module, if judging to obtain the splicing broadcast address for the judgment module as the complete splicing address, The advertisement video and the program video are loaded according to the splicing broadcast address.
CN201310674078.7A 2013-12-11 2013-12-11 A kind of video loading method and electronic equipment Active CN103716656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310674078.7A CN103716656B (en) 2013-12-11 2013-12-11 A kind of video loading method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310674078.7A CN103716656B (en) 2013-12-11 2013-12-11 A kind of video loading method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103716656A CN103716656A (en) 2014-04-09
CN103716656B true CN103716656B (en) 2018-08-03

Family

ID=50409155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310674078.7A Active CN103716656B (en) 2013-12-11 2013-12-11 A kind of video loading method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103716656B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430476A (en) * 2015-11-10 2016-03-23 深圳市云宙多媒体技术有限公司 Advertisement and program video loading method and device, and equipment
CN105451071B (en) * 2015-11-18 2021-05-07 腾讯科技(深圳)有限公司 Video stream processing method, device and system
CN105915945A (en) * 2015-12-08 2016-08-31 乐视云计算有限公司 Content distribution method used for CDN platform and scheduling proxy server thereof
CN105898559A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Client and video splicing method
CN105516736B (en) * 2016-01-18 2020-07-28 腾讯科技(深圳)有限公司 Video file processing method and device
CN105959743A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Video advertisement playing method and device and server
CN107404666A (en) * 2016-05-18 2017-11-28 中兴通讯股份有限公司 Method for processing video frequency, apparatus and system
CN106055649A (en) * 2016-05-31 2016-10-26 乐视控股(北京)有限公司 Page resource loading method, device and system
CN107454464B (en) * 2016-05-31 2020-02-18 腾讯科技(北京)有限公司 Information processing method and terminal
CN107948685B (en) * 2016-10-13 2020-07-24 腾讯科技(北京)有限公司 Information promotion method and information promotion device
CN106897900A (en) * 2017-02-09 2017-06-27 合网络技术(北京)有限公司 Advertisement placement method and device
CN106921865A (en) * 2017-05-11 2017-07-04 腾讯科技(深圳)有限公司 Method for processing video frequency and device
CN110191315B (en) * 2019-05-08 2021-03-05 视联动力信息技术股份有限公司 Monitoring and checking method and device based on video network
CN110933460B (en) * 2019-12-05 2021-09-07 腾讯科技(深圳)有限公司 Video splicing method and device and computer storage medium
CN112770170A (en) * 2020-12-31 2021-05-07 百视通网络电视技术发展有限责任公司 Video advertisement putting method, medium and equipment in OTT television service
CN112804574A (en) * 2021-01-08 2021-05-14 北京爱奇艺科技有限公司 Multimedia content transmission and playing method and device
CN113873318A (en) * 2021-09-26 2021-12-31 乐融致新电子科技(天津)有限公司 Video playing method, device, equipment and storage medium
CN114885217A (en) * 2022-06-14 2022-08-09 中国电信股份有限公司 Video playing method and device, electronic equipment and nonvolatile storage

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668194A (en) * 2008-09-05 2010-03-10 中兴通讯股份有限公司 Method and device for inserting and playing advertisement based on content fragmentation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131114B (en) * 2010-11-17 2013-04-24 华为技术有限公司 Method and system for providing playlist
US20130271655A1 (en) * 2012-04-12 2013-10-17 Google Inc. System, apparatus and method to facilitate live video streaming
CN103051976B (en) * 2013-01-22 2016-02-10 中兴通讯股份有限公司 A kind of CDN distributes HLS content and method, system and equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668194A (en) * 2008-09-05 2010-03-10 中兴通讯股份有限公司 Method and device for inserting and playing advertisement based on content fragmentation

Also Published As

Publication number Publication date
CN103716656A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
CN103716656B (en) A kind of video loading method and electronic equipment
CN102572557B (en) Current device location advertisement distribution method and system
CN103500212B (en) A kind of multimedia file recommendation method and electronic equipment
CN103702171A (en) Method for downloading video stream and electronic equipment
CN105120299A (en) Video pushing method and video pushing device
CN102196313A (en) Method and device for continuous playing of cross-platform breakpoint as well as method and device for continuous playing of breakpoint
CN105338124A (en) Resource propagating tracking method and apparatus, and resource propagating system
CN104394126A (en) Information recommendation method, server, client side and system
CN103179220A (en) Method and relevant system and device for sharing application program playing contents
CN102523248A (en) Method, client and server for playing webpage flash video
CN103810185A (en) Information processing method and device, and electronic equipment
CN103531218A (en) Online multimedia file editing method and system
CN103956175B (en) Playing method and equipment of multi-media files
CN107038046A (en) Upgrade method, device and the terminal of audio frequency broadcast system
CN105872758A (en) Intelligent television channel operation and play method and corresponding device
CN103763575B (en) A kind of programme method of combination and device
CN102932366A (en) Method and device for managing multimedia resource, and player
WO2008146346A1 (en) Advertisement information distribution display method, advertisement information distribution display system, and computer program
CN110381378A (en) Projectional technique, device, server and the storage medium of network multimedia playback volume
CN102665096B (en) System and method for wireless distribution system proxy caches
CN105847943A (en) Playback equipment, and audio and video playback method and device thereof
CN103139049B (en) Information interacting method
CN104765805A (en) Maintenance method and device for playlist of multimedia file player
CN101179408B (en) Method and system of obtaining network TV program in instant communication cluster
CN105872857A (en) Video processing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210622

Address after: 300467 917-2, Chuangzhi building, 482 Zhongxin eco city, Binhai New Area, Tianjin

Patentee after: Tianjin Zhirong Innovation Technology Development Co.,Ltd.

Address before: 100089 room 6184, 6th floor, building 19, 68 Xueyuan South Road, Haidian District, Beijing

Patentee before: LE HOLDINGS (BEIJING) Co.,Ltd.