CN106878815A - The playing method and device of video - Google Patents
The playing method and device of video Download PDFInfo
- Publication number
- CN106878815A CN106878815A CN201710139040.8A CN201710139040A CN106878815A CN 106878815 A CN106878815 A CN 106878815A CN 201710139040 A CN201710139040 A CN 201710139040A CN 106878815 A CN106878815 A CN 106878815A
- Authority
- CN
- China
- Prior art keywords
- files
- video
- video segment
- playback terminal
- playing sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
- H04N21/4586—Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
- H04N21/4825—End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present invention provides a kind of playing method and device of video, and the player method of the video includes:Video file to be played is cut according to HLS protocol, corresponding video segment is obtained;According to each video segment, generation includes the M3U8 files of duration information, routing information and the playing sequence of each video segment, wherein, the playing sequence of the video segment in M3U8 files periodically rolls renewal;M3U8 files are sent at least one playback terminal.The playing method and device of the video that the present invention is provided, by routing information and playing sequence that all video segments are stored in M3U8 files, and periodically roll the playing sequence for updating all video segments in M3U8 files, can be on the premise of live effect be ensured, so that playback terminal can be in M3U8 all video segments total time information, and user input time shift instruction carry out time shifting broadcasting.
Description
Technical field
The present invention relates to video display arts, more particularly to a kind of playing method and device of video.
Background technology
With the development of network technology, network video carousel technology is developed rapidly, and is widely applied.
Video carousel system generally includes a server and at least two playback terminals.Server is live according to hypertext
Stream (HTTP Live Streaming, abbreviation HLS) agreement, multiple video segments are obtained by the program cutting of broadcasting to be recycled
Transmitting stream (Transport Stream, abbreviation TS) file, and according to the order of loop play, periodically by the rope of part TS files
Draw write-in M3U8 files, to realize live effect.Playback terminal obtains newest M3U8 files in real time in start, plays and works as
The TS files included in preceding M3U8 files.Therefore, even if multiple playback terminals are not being started shooting successively in the same time, still may be implemented in same
One moment played the live effect of same video segment, so as to realize the video carousel of live form in playback terminal.Depending on
Frequency carousel is widely used in TV programme, important current events, important prompting item, the broadcasting of vertical ladder advertisement.
Due to only including a small amount of video segment of program to be broadcast in the M3U8 files of video carousel system, and periodically more
Newly, the information of the video segment played is deleted in the M3U8 files after renewal, so that playback terminal cannot be obtained treating
Play the total duration of program, and the video segment played relevant information, and then want to repeat playing in user and once broadcast
During the video segment let off, it is impossible to which the time shift instruction according to user determines that user wants the video segment for repeating playing, similarly
The time-shifting functions such as fast forward and fast reverse are not supported, all of video segment of viewing that user can only be passive.Therefore, existing video wheel
Broadcast system, can only realize the net cast of all playback terminals, it is impossible to while net cast, support section playback terminal
Video timeshift function.
The content of the invention
The present invention provides a kind of playing method and device of video, and institute can only be realized for solving existing video carousel technology
There is the net cast of playback terminal, there is a problem of lacking Video timeshift function.
In a first aspect, the present invention provides a kind of player method of video, server end is applied to, the method includes:
Video file to be played is cut according to HLS protocol, corresponding video segment is obtained;
According to each video segment, generation includes duration information, routing information and the playing sequence of each video segment
M3U8 files, wherein, the playing sequence of the video segment in the M3U8 files periodically rolls renewal;
The M3U8 files are sent at least one playback terminal.
The player method of video as described above, it is described to send at least one playback terminal, bag the M3U8 files
Include:
After the playing sequence of the video segment in updating the M3U8 files every time, the M3U8 files are sent to each
The playback terminal.
The player method of video as described above, it is described to send at least one playback terminal, bag the M3U8 files
Include:
When the M3U8 files for receiving the transmission of the first playback terminal update request, the M3U8 files are sent to described
First playback terminal.
The player method of video as described above, methods described also includes:
In default renewable time, quantity is updated according to default video segment, rotate the piece of video in the M3U8 files
The playing sequence of section.
The player method of video as described above, methods described also includes:
Receive the video acquisition message of the second playback terminal transmission;The video acquisition message includes the first video segment
Routing information;
First video segment is sent to second playback terminal.
Second aspect, the present invention provides a kind of playing device of video, and described device includes:
Cutter unit, for video file to be played to be cut according to HLS protocol, obtains corresponding piece of video
Section;
M3U8 file generating units, for according to each video segment, generation to include the when long letter of each video segment
The M3U8 files of breath, routing information and playing sequence, and periodically roll the broadcasting for updating the video segment in the M3U8 files
Sequentially;
Transmitting element, for the M3U8 files to be sent at least one playback terminal.
The playing device of video as described above, the transmitting element is additionally operable to, in the M3U8 files are updated every time
Video segment playing sequence after, the M3U8 files are sent to each playback terminal.
The playing device of video as described above, described device also includes:Receiving unit;
The receiving unit is used for, and the M3U8 files for receiving the transmission of the first playback terminal update request;
The transmitting element is additionally operable to, when the receiving unit receives the M3U8 files and updates request, will be described
M3U8 files are sent to first playback terminal.
The playing device of video as described above, the M3U8 file generating units specifically for,
In default renewable time, quantity is updated according to default video segment, rotate the piece of video in the M3U8 files
The playing sequence of section.
The playing device of video as described above, described device also includes:Receiving unit;
The receiving unit is used for, and receives the video acquisition message that the second playback terminal sends;The video acquisition message
Routing information including the first video segment;
The transmitting element is additionally operable to, when the receiving unit receives the video acquisition message, to described second
Playback terminal sends first video segment.
The player method of the video that the present invention is provided, corresponding video segment is cut into by video file to be played, according to
All video segments generate M3U8 files, and M3U8 files include duration information, routing information and the broadcasting of all video segments
Sequentially, then by M3U8 files send to multiple playback terminals, so that playback terminal gets the total of whole video file to be played
Duration information.When playback terminal receive user input time shift instruct when, can according to time shift instruction and total duration information, it is determined that
The video segment gone out after redirecting, and then the video segment after redirecting is played, realize the time shifting broadcasting of video segment.Service simultaneously
Device regularly updates M3U8 files, the playing sequence of each video segment in change M3U8 files so that multiple playback terminals although
Play System is not accessed in the same time, but receives the M3U8 files of real-time update, identical video segment is played, so as to protect
Net cast effect is demonstrate,proved.The player method of the video that the present invention is provided, by storing all video segments in M3U8 files
Duration information, routing information and playing sequence, and regularly update M3U8 files so that video carousel system can ensure video
While live effect, support that playback terminal carries out time shifting broadcasting according to the time shift of user input instruction.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the application scenarios schematic diagram of the player method of the video that the present invention is provided;
Fig. 2 is the schematic flow sheet of the player method embodiment one of the video that the present invention is provided;
Fig. 3 is the schematic flow sheet of the player method embodiment two of the video that the present invention is provided;
Fig. 4 is the structural representation of the playing device embodiment one of the video that the present invention is provided;
Fig. 5 is the structural representation of the playing device embodiment two of the video that the present invention is provided.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the application scenarios schematic diagram of the player method of the video that the present invention is provided.As shown in figure 1, video carousel system
System generally includes a server 101 and at least one playback terminal 102.Server 101 is used for will be to be played according to HLS protocol
Video file cut and obtain multiple TS files, and according to TS files and playing plan generation M3U8 files and update
M3U8 files.Playback terminal 102 obtains M3U8 files, and the playing sequence playing video file in M3U8 files.Play
Terminal 102 is specifically as follows TV, computer for being provided with player etc..
Exemplary, if there is three programs of broadcasting to be recycled:A video files, B video files and C video files, service
Device 101 is divided A video files, B video files and C video files according to HLS protocol and the size of each video file
Cut, obtain tetra- video segments of a1.ts, a2.ts, a3.ts, a4.ts produced after video file A cuttings, video file B cuttings
Tri- video segments of b1.ts, b2.ts, the b3.ts for producing afterwards, c1.ts, c2.ts, the c3.ts produced after video file C cuttings
Three video segments, tri- video file common properties of A, B, C give birth to 10 video segments.
Existing video carousel method it is exemplary can be:When default playing sequence is tri- video files of A, B, C
During loop play, server 101 generally only deposits 3 video segments in M3U8 files, and regularly updates M3U8 files
Video segment.Assuming that content includes tri- video segments of a1.ts, a2.ts, a3.ts, second when being updated for the first time in M3U8 files
Content is changed into a2.ts, a3.ts, a4.ts after secondary renewal, then is updated to a3.ts, a4.ts, b1.ts ... next time with such
Push away, after n-th updates, content is c1.ts, c2.ts, c3.ts in M3U8 files, it is interior in M3U8 files after updating for (n+1)th time
It is c2.ts, c3.ts, a1.ts to hold, so as to start a new circulation.By being cyclically updated M3U8 files, multiple broadcastings can be made
Terminal 102, even if accessing video carousel system at the different moment, the video segment and other playback terminals played after its opening
It is consistent in 102, it is achieved thereby that live effect.
Content update endless form is as shown in following table in M3U8 files.Wherein, n is the positive integer more than 1.
As shown in upper table, in existing video carousel method, content only includes a small amount of video segment in M3U8 files, lacks
The relevant information of the total duration of weary video to be played, therefore time-shifting function cannot be realized, meanwhile, when user wants to repeat playing once
During video segment through playing, the index information of the video segment is deleted due to M3U8 files, also have impact on time shift
The realization of function, therefore, cannot realize time-shifting function in existing video carousel method.
To solve the above problems, one aspect of the present invention provides a kind of player method of video, and specific embodiment is used below
The player method of the video provided the present invention is described in detail.
Fig. 2 is the schematic flow sheet of the player method embodiment one of the video that the present invention is provided, the executive agent of the method
Server 101 shown in Fig. 1, the device can be realized by software or hardware, the device can with it is integrated in the server,
It can also be server.The present invention is not limited this.As shown in Fig. 2 the method includes:
S201, video file to be played is cut according to HLS protocol, obtained corresponding video segment;
S202, according to each video segment, generation includes duration information, routing information and the playing sequence of each video segment
M3U8 files, wherein, the playing sequence of the video segment in M3U8 files periodically rolls renewal;
S203, M3U8 files are sent at least one playback terminal.
Specifically, in S201, server is cut at least one video file to be played according to HLS protocol,
Obtain the corresponding video segment of at least one video file to be played.Exemplary, video file to be played can be many
The individual advertisement video file for needing to repeat playing.Server is cut all video files to be played according to HLS protocol,
The cutting of each video file obtains corresponding video segment.Specific cutting method can use existing cutting based on HLS protocol
Segmentation method, the present invention is not limited this.
When only one video file to be played, and the video file need not cut according to HLS protocol, then can be direct
Index according to the video file generates a M3U8 files and is accessed for each playback terminal.
Specifically, in S202, server generates M3U8 files according to all video segments for obtaining are cut in S201.
M3U8 files include duration information, routing information and the playing sequence of each video segment.Exemplary, pressed in M3U8 files
Playing sequence lists the index of each video segment, and the index is specifically as follows video segment storage in the server
The routing information of location, can also be network route information of the video segment in other network memories.Optionally, M3U8 texts
The playing sequence of each video segment in part, is specifically as follows arrangement of the routing information of each video segment in M3U8 files suitable
Sequence, when playback terminal reads M3U8 files, is commenced play out by agreement from first video segment in M3U8 files, and automatically
Play one by one in order, you can realize all playback terminals while showing the effect of same ad content.
Specifically, the playing sequence in above-mentioned M3U8 files periodically rolls renewal.Exemplary, server is in generation M3U8
After file, the size and duration information of each video segment that can be in M3U8 files regularly update M3U8 files.Specifically can be with
Be after first video segment in M3U8 files is commenced play out, but video segment play terminate before, update M3U8 text
Part so that second video segment of script turns into first video segment to be played, first video segment of script into
It is last video segment to be played.
Exemplary, still by taking tri- video files of A, B, C as an example, in the player method of the video that the present invention is provided, service
Device end generation M3U8 files, for the first time update when content in just comprising a1.ts, a2.ts, a3.ts, a4.ts, b1.ts,
B2.ts, b3.ts, c1.ts, c2.ts, c3.ts, all video segments, second update after content be changed into a2.ts, a3.ts,
A4.ts ... c2.ts, c3.ts, a1.ts, then be updated to next time a3.ts, a4.ts ... c2.ts, c3.ts, a1.ts,
A2.ts, is updated by that analogy.The renewal endless form of M3U8 files is as shown in following table.
Optionally, a kind of implementation of server update M3U8 files is as follows:
In default renewable time, quantity is updated according to default video segment, the video segment in rotation M3U8 files
Playing sequence.
Specifically, default update cycle or multiple default renewable times can be set, server can be examined according to the update cycle
Measure renewable time.In renewable time, server updates the video in M3U8 files using the round robin as shown in upper table
The playing sequence of fragment.
By by all of video segment store in M3U8 files so that playback terminal after M3U8 files are got,
The temporal information of all video files to be played can be obtained, is referred in the time shift for receiving user input so as to facilitate playback terminal
It is to be capable of achieving time shift using the jump instruction in existing playout software when making.The specific time shift implementation present invention is not
Limit.
Specifically, in S203, M3U8 files are sent at least one and played eventually by server after M3U8 files are generated
End.The list of the playback terminal that server can be stored according to itself, M3U8 files are sent to all playback terminals in list.By
Include the information of all video files to be played in M3U8 files, playback terminal when M3U8 files are received, can and then
The temporal information of all videos to be played is obtained, so that playback terminal can carry out broadcasting for video file receiving M3U8 files
Put, and the time shifting broadcasting of video segment is realized according to the time shift instruction for receiving.
The player method of the video that the present invention is provided, is cut into multiple video segments, according to institute by video file to be played
There is video segment to generate M3U8 files, M3U8 files include that duration information, routing information and the broadcasting of all video segments are suitable
Sequence, then M3U8 files are sent to multiple playback terminals so that playback terminal get whole video file to be played it is total when
Long message.When the time shift that playback terminal receives user input is instructed, can be determined according to time shift instruction and total duration information
Video segment after redirecting, and then the video segment after redirecting is played, realize the time shifting broadcasting of video segment.While server
M3U8 files are regularly updated, the playing sequence of each video segment in change M3U8 files so that multiple playback terminals are not although
Play System is accessed in the same time, but receives the M3U8 files of real-time update, identical video segment is played, so as to ensure
Net cast effect.The player method of the video that the present invention is provided, by storing all video segments in M3U8 files
Duration information, routing information and playing sequence, and regularly update M3U8 files so that video carousel system can ensure that video is straight
While broadcasting effect, support that playback terminal carries out time shifting broadcasting according to the time shift of user input instruction.
With reference to embodiment illustrated in fig. 2, below to S203 in M3U8 files are sent to the side of at least one playback terminal
Formula is described in detail.
In a kind of possible implementation:
After the playing sequence of the video segment in updating M3U8 files every time, M3U8 files are sent to each and is played eventually
End.
Specifically, be sent to for the M3U8 files after renewal each by server after it have updated M3U8 files every time
Individual playback terminal.
In alternatively possible implementation:
When the M3U8 files for receiving the transmission of the first playback terminal update request, M3U8 files are sent to described first
Playback terminal.
Specifically, server after it have updated M3U8 files every time, actively the M3U8 files after renewal are not sent
Each playback terminal is given, but when there is first playback terminal, actively being sent M3U8 files to server and being updated request
When, M3U8 files are sent to the first playback terminal.For example, the first playback terminal is the broadcasting end for adding Play System for the first time
End.
Specifically, playback terminal do not receive user input time shift instruct when, can the reception server periodically send
M3U8 files, also can periodically ask for the M3U8 files of renewal to server.
Exemplary, if playback terminal receives the time shift instruction of user input, playback terminal stops updating M3U8 texts
Part, and the order information of the video segment in existing M3U8 files carries out the loop play of video segment.Playback terminal can
When the more new command of user input or restarting is received, restart actively to ask for the M3U8 texts of renewal to server
Part.
Optionally, on the basis of embodiment illustrated in fig. 2, it is sent to after user by M3U8 files, the method is also wrapped
Include:
Receive the video acquisition message of the second playback terminal transmission;Video acquisition message includes the path of the first video segment
Information;
The first video segment is sent to the second playback terminal.
Specifically, the second playback terminal is any one playback terminal in Play System, the second playback terminal is being obtained
To after M3U8 files, when the video segment in reading M3U8 files is played out, due to only including piece of video in M3U8 files
The routing information of section, therefore playback terminal need to send video acquisition message to server, be broadcast comprising second in video acquisition information
Put the routing information of the first video segment of terminal plan broadcasting.Routing information of the server in the video acquisition message,
The first video segment is obtained, and first video segment is sent to the second playback terminal.
Another aspect of the present invention also provides a kind of player method of video, with the method phase in embodiment illustrated in fig. 2 above
Correspondence.Fig. 3 is the schematic flow sheet of the player method embodiment two of the video that the present invention is provided, and the executive agent of the method is figure
Playback terminal 102 shown in 1, the playback terminal 102 can realize that the device can be integrated in electricity by software or hardware
Depending in the equipment with real function such as, computer, the present invention is not limited this.As shown in figure 3, the method includes:
S301, acquisition time shift instruction, time shift instruction indicate the moment to be played in video;
S302, according to the moment to be played and in advance obtain M3U8 files, determine moment to be played corresponding frame to be played,
Wherein, M3U8 files include duration information, routing information and the playing sequence of at least two video segments;
S303, the corresponding routing information of the first video segment according to belonging to frame to be played, obtain the first video segment, from
The frame to be played of the first video segment commences play out the first video segment.
Specifically, in S301, playback terminal receives the time shift instruction of user input, during time shift is instructed for indicating video
Moment to be played.Shift time when specific time shift instruction includes, when shift time be specifically as follows that taking of specifying move to when
Between put information, can also be the time segment information for needing time shift forward.Playback terminal can also further be limited and only support time shift forward
Or time shift backward.
Specifically, in S302, the M3U8 files that playback terminal is instructed according to time shift and obtained in advance, when obtaining to be played
Carve corresponding frame to be played.Exemplary, all video segments and each piece of video that playback terminal can be in M3U8 files
The playing sequence of section is integrated, and obtains a video file to be played, according in acquisition M3U8 files by the video file
All video segments overall temporal information, so as to according to time shift instruct, time shift is carried out in the video file.It is exemplary
, the duration information and playing sequence of each video segment of the playback terminal in M3U8 files obtain all video segments
The mapping relations of each two field picture in total duration in each time point and each video segment;Closed according to moment to be played and mapping
System, determines moment to be played corresponding frame to be played.
When the time shift that playback terminal receives user input is instructed, what the player of playback terminal can be had using itself
Turn function, determines that time shift instructs corresponding frame to be played, the frame to be played to be the video starting point that user requires to play.M3U8
File is identical with the M3U8 files in embodiment illustrated in fig. 2, is that playback terminal is obtained before time shift instruction is received from server
Newest M3U8 files.
Specifically, in S303, first video segment corresponding routing information of the playback terminal according to belonging to frame to be played,
The first video segment is obtained, and the first video segment is commenced play out from the frame to be played of the first video segment.It is exemplary, can be with
For playback terminal sends video acquisition message to server, video acquisition message includes the first path letter of the first video segment
Breath, so as to after server is according to the video segment of first path acquisition of information first, the first video segment is sent into playback terminal.
Optionally, on the basis of embodiment illustrated in fig. 3, before playback terminal receives time shift instruction, also include:
Obtain M3U8 files;
Routing information and playing sequence in M3U8 files obtain video segment and play out.
Specifically, before the time shift instruction that playback terminal receives user input, playback terminal obtains M3U8 files, example
Property, M3U8 files can be updated to server request for playback terminal press some cycles, or server is periodically to broadcasting
Put terminal and send the M3U8 files for updating.After playback terminal M3U8 files upon a reception of an updated, according to the M3U8 after renewal
Routing information and playing sequence in file carry out the acquisition and broadcasting of video segment automatically.
Optionally, after the time shift instruction that playback terminal receives user input, playback terminal is receiving server
The M3U8 files of the renewal for actively sending, delete the M3U8 files of the renewal.
Another further aspect, the present invention also provides a kind of playing device of video, for performing above-mentioned embodiment illustrated in fig. 2 correspondence
Video player method, Fig. 4 be the present invention provide video playing device embodiment one structural representation, such as Fig. 4 institutes
Show, the playing device includes:
Cutter unit 401, for video file to be played to be cut according to HLS protocol, obtains corresponding video
Fragment;
M3U8 file generating units 402, for according to each video segment, generation to include the when long letter of each video segment
The M3U8 files of breath, routing information and playing sequence, and periodically roll the broadcasting for updating the video segment in the M3U8 files
Sequentially;
Transmitting element 403, for M3U8 files to be sent at least one playback terminal.
Optionally, on the basis of embodiment illustrated in fig. 4, transmitting element also 403 is used for, in M3U8 files are updated every time
Video segment playing sequence after, M3U8 files are sent to each playback terminal.
Optionally, on the basis of embodiment illustrated in fig. 4, Fig. 5 is the playing device embodiment of the video that the present invention is provided
Two structural representation.As shown in figure 5, the playing device of video also includes:Receiving unit 404;
Receiving unit 404 is used for, and the M3U8 files for receiving the transmission of the first playback terminal update request;
Transmitting element 403 is additionally operable to, receiving unit receive M3U8 files update request when, by M3U8 files send to
First playback terminal.
Optionally, on the basis of any of the above-described embodiment, M3U8 file generating units 402 are specifically in default renewal
At the moment, quantity, the playing sequence of the video segment in rotation M3U8 files are updated according to default video segment.
Optionally, on the basis of above-mentioned embodiment illustrated in fig. 5, receiving unit 404 is additionally operable to, and receives the second playback terminal hair
The video acquisition message sent;Video acquisition message includes the routing information of the first video segment;
Transmitting element 403 is additionally operable to, and when receiving unit receives video acquisition message, the is sent to the second playback terminal
One video segment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
1. a kind of player method of video, it is characterised in that methods described includes:
Video file to be played is cut according to HLS protocol, corresponding video segment is obtained;
According to each video segment, generation includes duration information, routing information and the playing sequence of each video segment
M3U8 files, wherein, the playing sequence of the video segment in the M3U8 files periodically rolls renewal;
The M3U8 files are sent at least one playback terminal.
2. method according to claim 1, it is characterised in that described to send at least one broadcasting the M3U8 files
Terminal, including:
After the playing sequence of the video segment in updating the M3U8 files every time, the M3U8 files are sent to each described
Playback terminal.
3. method according to claim 1, it is characterised in that described to send at least one broadcasting the M3U8 files
Terminal, including:
When the M3U8 files for receiving the transmission of the first playback terminal update request, the M3U8 files are sent to described first
Playback terminal.
4. the method according to any one of claims 1 to 3, it is characterised in that methods described also includes:
In default renewable time, quantity is updated according to default video segment, the video segment in the rotation M3U8 files
Playing sequence.
5. the method according to any one of claims 1 to 3, it is characterised in that methods described also includes:
Receive the video acquisition message of the second playback terminal transmission;The video acquisition message includes the path of the first video segment
Information;
First video segment is sent to second playback terminal.
6. a kind of playing device of video, it is characterised in that including:
Cutter unit, for video file to be played to be cut according to HLS protocol, obtains corresponding video segment;
M3U8 file generating units, for according to each video segment, generation to include duration information, the road of each video segment
The M3U8 files of footpath information and playing sequence, and periodically roll the playing sequence for updating the video segment in the M3U8 files;
Transmitting element, for the M3U8 files to be sent at least one playback terminal.
7. device according to claim 6, it is characterised in that the transmitting element is additionally operable to, is updating described every time
After the playing sequence of the video segment in M3U8 files, the M3U8 files are sent to each playback terminal.
8. device according to claim 6, it is characterised in that described device also includes:Receiving unit;
The receiving unit is used for, and the M3U8 files for receiving the transmission of the first playback terminal update request;
The transmitting element is additionally operable to, when the receiving unit receives the M3U8 files and updates request, by the M3U8
File is sent to first playback terminal.
9. the device according to any one of claim 6 to 8, it is characterised in that the M3U8 file generating units are specifically used
In,
In default renewable time, quantity is updated according to default video segment, the video segment in the rotation M3U8 files
Playing sequence.
10. device according to claim 8, it is characterised in that the receiving unit is additionally operable to, receives the second playback terminal
The video acquisition message of transmission;The video acquisition message includes the routing information of the first video segment;
The transmitting element is additionally operable to, and when the receiving unit receives the video acquisition message, is played to described second
Terminal sends first video segment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710139040.8A CN106878815B (en) | 2017-03-09 | 2017-03-09 | Video playing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710139040.8A CN106878815B (en) | 2017-03-09 | 2017-03-09 | Video playing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106878815A true CN106878815A (en) | 2017-06-20 |
CN106878815B CN106878815B (en) | 2020-01-31 |
Family
ID=59171249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710139040.8A Active CN106878815B (en) | 2017-03-09 | 2017-03-09 | Video playing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106878815B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107864382A (en) * | 2017-10-24 | 2018-03-30 | 广东省南方数字电视无线传播有限公司 | Video broadcasting method, device and system |
CN109274982A (en) * | 2018-09-30 | 2019-01-25 | 武汉斗鱼网络科技有限公司 | Video carousel method, device, computer equipment and storage medium |
CN109756757A (en) * | 2019-03-21 | 2019-05-14 | 北京数码视讯软件技术发展有限公司 | Live data processing method and processing device, live broadcasting method and device and direct broadcast server |
CN112381002A (en) * | 2020-11-16 | 2021-02-19 | 深圳技术大学 | Human body risk posture identification method and system |
CN112995770A (en) * | 2019-12-02 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Video playing method and device, storage medium and computer equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130028573A1 (en) * | 2011-07-26 | 2013-01-31 | Nimrod Hoofien | Goal-based video delivery system |
CN103685263A (en) * | 2013-12-06 | 2014-03-26 | 乐视致新电子科技(天津)有限公司 | Method, server and system for broadcasting media resources in turn |
CN104469433A (en) * | 2013-09-13 | 2015-03-25 | 深圳市腾讯计算机***有限公司 | Live video replay method and device |
CN105744309A (en) * | 2014-12-12 | 2016-07-06 | 中兴通讯股份有限公司 | Method, device and system for generating and playing, and terminal |
CN105898527A (en) * | 2015-11-18 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Advertisement video splicing method and video server |
CN106331789A (en) * | 2016-09-13 | 2017-01-11 | 聚好看科技股份有限公司 | Carousel program playing control method and carousel program playing control device |
-
2017
- 2017-03-09 CN CN201710139040.8A patent/CN106878815B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130028573A1 (en) * | 2011-07-26 | 2013-01-31 | Nimrod Hoofien | Goal-based video delivery system |
CN104469433A (en) * | 2013-09-13 | 2015-03-25 | 深圳市腾讯计算机***有限公司 | Live video replay method and device |
CN103685263A (en) * | 2013-12-06 | 2014-03-26 | 乐视致新电子科技(天津)有限公司 | Method, server and system for broadcasting media resources in turn |
CN105744309A (en) * | 2014-12-12 | 2016-07-06 | 中兴通讯股份有限公司 | Method, device and system for generating and playing, and terminal |
CN105898527A (en) * | 2015-11-18 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Advertisement video splicing method and video server |
CN106331789A (en) * | 2016-09-13 | 2017-01-11 | 聚好看科技股份有限公司 | Carousel program playing control method and carousel program playing control device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107864382A (en) * | 2017-10-24 | 2018-03-30 | 广东省南方数字电视无线传播有限公司 | Video broadcasting method, device and system |
CN107864382B (en) * | 2017-10-24 | 2018-10-09 | 广东省南方数字电视无线传播有限公司 | Video broadcasting method, device and system |
CN109274982A (en) * | 2018-09-30 | 2019-01-25 | 武汉斗鱼网络科技有限公司 | Video carousel method, device, computer equipment and storage medium |
CN109274982B (en) * | 2018-09-30 | 2021-01-01 | 武汉斗鱼网络科技有限公司 | Video carousel method and device, computer equipment and storage medium |
CN109756757A (en) * | 2019-03-21 | 2019-05-14 | 北京数码视讯软件技术发展有限公司 | Live data processing method and processing device, live broadcasting method and device and direct broadcast server |
CN109756757B (en) * | 2019-03-21 | 2021-07-13 | 北京数码视讯软件技术发展有限公司 | Live broadcast data processing method and device, live broadcast method and device and live broadcast server |
CN112995770A (en) * | 2019-12-02 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Video playing method and device, storage medium and computer equipment |
CN112995770B (en) * | 2019-12-02 | 2023-03-24 | 深圳市雅阅科技有限公司 | Video playing method and device, storage medium and computer equipment |
CN112381002A (en) * | 2020-11-16 | 2021-02-19 | 深圳技术大学 | Human body risk posture identification method and system |
CN112381002B (en) * | 2020-11-16 | 2023-08-15 | 深圳技术大学 | Human body risk posture recognition method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106878815B (en) | 2020-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106878815A (en) | The playing method and device of video | |
US9077956B1 (en) | Scene identification | |
US9253533B1 (en) | Scene identification | |
CN102638708B (en) | For strengthening the system and method for trick-play functions | |
WO2013008866A1 (en) | Generation device, distribution server, generation method, playback device, playback method, playback system, generation program, playback program, recording medium and data structure | |
CN105847941B (en) | A kind of audio/video flow live broadcasting method based on HLS protocol | |
JP5304197B2 (en) | Terminal device and operation information collection system | |
CN102572555A (en) | Method and system for realizing live video playback at HTTP live streaming (HLS) client | |
JP4356774B2 (en) | Information processing apparatus, video playback method, program, and video playback system | |
CN110933460B (en) | Video splicing method and device and computer storage medium | |
CN105657443A (en) | Live broadcast and time shifting playing method and system | |
CN104202652B (en) | The control method for playing back and set top box of a kind of television set top box | |
JPWO2014010501A1 (en) | REPRODUCTION DEVICE, REPRODUCTION METHOD, DISTRIBUTION DEVICE, DISTRIBUTION METHOD, DISTRIBUTION PROGRAM, REPRODUCTION PROGRAM, RECORDING MEDIUM, AND METADATA | |
US9294803B2 (en) | Kiosk set-top-box | |
CN104093084B (en) | A kind of method and device for playing video | |
CN106331089A (en) | Video play control method and system | |
CN107205177A (en) | Video broadcasting method and device | |
CN103248912B (en) | Network television time shifting play method as well as network television system and device | |
CN108833983A (en) | Played data acquisition methods, device, equipment and storage medium | |
CN107872724A (en) | A kind of preview video generation method and device | |
KR102069897B1 (en) | Method for generating user video and Apparatus therefor | |
CN103152615A (en) | Method and device for issuing multimedia information | |
Gotoh et al. | A scheduling method considering available bandwidth in selective contents broadcasting | |
CN105338378B (en) | A kind of VOD method and device | |
CN110225370A (en) | A kind of time line control method that multimedia content personalization is presented |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Patentee after: Hisense Video Technology Co.,Ltd. Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Patentee before: HISENSE ELECTRIC Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |