CN109618219A - Fast channel switching method, device, equipment and the storage medium of Web TV - Google Patents
Fast channel switching method, device, equipment and the storage medium of Web TV Download PDFInfo
- Publication number
- CN109618219A CN109618219A CN201811627031.4A CN201811627031A CN109618219A CN 109618219 A CN109618219 A CN 109618219A CN 201811627031 A CN201811627031 A CN 201811627031A CN 109618219 A CN109618219 A CN 109618219A
- Authority
- CN
- China
- Prior art keywords
- channel
- shuffling
- file
- succeeding
- current
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- 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/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
- H04N21/4383—Accessing a communication channel
- H04N21/4384—Accessing a communication channel involving operations to reduce the access time, e.g. fast-tuning for reducing channel switching latency
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present invention discloses fast channel switching method, device, equipment and the storage medium of a kind of Web TV, which comprises determining that Web TV switches to succeeding channel by current channel;Judge succeeding channel whether be current channel cache hit channel, the part TS fragment of cache hit channel stored to current channel shuffling caching in;If succeeding channel is the cache hit channel of current channel, the TS slicing sequence number of succeeding channel is updated into the shuffling M3U8 file of current channel, and succeeding channel is continuously played according to the TS fragment of caching of succeeding channel.It can not close current channel at channel switching using the technical solution in the embodiment of the present invention and be to continue with broadcasting, eliminate and close and act the delay between broadcasting again, to promote user's viewing experience.
Description
Technical field
The present invention relates to video technique field more particularly to a kind of fast channel switching method of Web TV, device, equipment and
Storage medium.
Background technique
Currently, internet television channel uses HLS (HTTP Live Streamming) agreement, HLS protocol includes: to straight
It broadcasts flow data to cut TS fragment and pass through M3U8 file distribution, be played obtaining newest fragment by set-top box, and to resist network
It shakes, just starts to play after the fragment of set-top box buffer some amount, wherein sectioning and caching can make internet electric
Tv channel generates larger delay.
Prior art, Web TV need to close channel being played on, rise again at switching channels (zapping)
Broadcast new channel, close and rise again broadcast between there is delay, reachable 1-5 seconds of view network condition delay or longer leads to user
Viewing experience is poor.
Summary of the invention
The embodiment of the invention provides a kind of fast channel switching method of Web TV, device, equipment and storage mediums, can
It in channel switching, does not close current channel and is to continue with broadcasting, eliminate and close and act the delay between broadcasting again, to be promoted
User's viewing experience.
In a first aspect, the embodiment of the present invention provides a kind of fast channel switching method of Web TV, comprising:
Determine that Web TV switches to succeeding channel by current channel;
Judge succeeding channel whether be current channel cache hit channel, the part TS fragment of cache hit channel deposited
It stores up into the shuffling caching of current channel;
If succeeding channel is the cache hit channel of current channel, the TS slicing sequence number of succeeding channel is updated into working as
In the shuffling M3U8 file of preceding channel, and succeeding channel is continuously played according to the TS fragment of caching of succeeding channel.
In a kind of possible embodiment of first aspect, current channel is first broadcast channel, and the fast channel switching method is also
Include: that TS file serial number in the M3U8 file by current channel is updated into initial shuffling M3U8 file, obtains current channel
Shuffling M3U8 file;According to the shuffling M3U8 file of current channel, the TS fragment of current channel is stored in initial shuffling and is delayed
In depositing, the shuffling caching of current channel is obtained;When the TS fragment number of caching of current channel reaches the first predetermined number, open
Begin to play current channel.
In a kind of possible embodiment of first aspect, the fast channel switching method further include: when current channel
When caching TS fragment number reaches the second predetermined number, the caching of other each channels in Web TV in addition to current channel is calculated
Hit rate, as cache hit channel, the second predetermined number is greater than corresponding channel when using cache hit rate greater than predetermined threshold
First predetermined number;Cache hit rate is determined by one or more in following parameter: the phase of subordinate channel and current channel
The historical hit rate of property coefficient, subordinate channel is closed, the whole network viewing temperature of subordinate channel and the individual conception of subordinate channel see temperature.
In a kind of possible embodiment of first aspect, cache hit rate is determined by following formula:
HitRate [index]=Relevancy [index] × R_Adjust+HitHistory [index] × H_
Adjust+
PlatformHeat[index]×Pl_Adjust+PreferHeat[index]×
Pr_Adjust
Wherein, Relevancy [index] is subordinate channel and the relative coefficient for being playing channel, and R_Adjust is
The regulatory factor of Relevancy [index], HitHistory [index] are the historical hit rate of subordinate channel, and H_Adjust is
The regulatory factor of HitHistory [index], PlatformHeat [index] are that the whole network of subordinate channel watches temperature, Pl_
Adjust is the regulatory factor of PlatformHeat [index], and PreferHeat [index] is that the individual conception of subordinate channel sees hot
Degree, Pr_Adjust are the regulatory factor of PreferHeat [index].
In a kind of possible embodiment of first aspect, the fast channel switching method further include: according to cache hit rate
Sequence from high in the end successively updates the TS file serial number in the M3U8 file of top n cache hit channel into current frequency
In the shuffling M3U8 file in road, and it is directed to each cache hit channel, by the TS of the third predetermined number of the cache hit channel
Fragment is stored into the shuffling caching of current channel, and N is the integer more than or equal to 1, and third predetermined number is less than the first predetermined number
Mesh.
In a kind of possible embodiment of first aspect, the fast channel switching method further include: ordered for each caching
Mid band judges the surplus of current channel after the TS fragment number of caching of the cache hit channel reaches third predetermined number
Whether remaining TS fragment number is less than the first predetermined number;If the remaining TS fragment number of current channel less than the first predetermined number,
Then the TS file serial number in the new M3U8 file of current channel is updated into the shuffling M3U8 file of current channel, is obtained
The new shuffling M3U8 file of current channel;According to the new shuffling M3U8 file of current channel, by the new TS of current channel
Fragment is stored in the shuffling caching of current channel, to continue to play current channel.
In a kind of possible embodiment of first aspect, the fast channel switching further include: if succeeding channel is not caching
Channel is hit, then interrupts the broadcasting of the first channel, and the M3U8 file of succeeding channel is updated into the shuffling M3U8 into current channel
In file, the shuffling M3U8 file of succeeding channel is obtained;According to the shuffling M3U8 file of succeeding channel, by the TS of succeeding channel points
Piece is stored in the shuffling caching of current channel, obtains the shuffling caching of succeeding channel;When the TS fragment of caching of succeeding channel
When number reaches the first predetermined number, start to play succeeding channel.
Second aspect, the embodiment of the present invention provide a kind of fast channel switching device of Web TV, comprising:
Channel switching determining module, for determining that Web TV switches to succeeding channel by current channel;
Cache hit channel judgment module, for judge succeeding channel whether be current channel cache hit channel, delay
The part TS fragment for depositing hit channel has been stored into the shuffling caching of current channel;
Update and play processing module, if being the cache hit channel of current channel for succeeding channel, by next frequency
The TS slicing sequence number in road is updated into the shuffling M3U8 file of current channel, and according to the TS fragment of caching of institute's succeeding channel
It is continuous to play succeeding channel.
The third aspect, the embodiment of the present invention provide a kind of fast channel switching equipment of Web TV, including processor and storage
Device preserves preset program in memory, and processor reads the program in memory, executes net as described above according to program
The fast channel switching method of network TV.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, and computer program is stored in storage medium, calculate
Machine program is used to after being loaded execute the fast channel switching method of Web TV as described above by processor according to computer program.
In embodiments of the present invention, in switching network TV channel, Web TV can be determined by current channel and is cut
Succeeding channel (i.e. new channel) after changing, then judge succeeding channel whether be current channel cache hit channel, if next
Channel is the cache hit channel of current channel, then the TS slicing sequence number of succeeding channel is updated to the shuffling into current channel
In M3U8 file, and succeeding channel is continuously played according to the TS fragment of caching of succeeding channel.
It needs to close channel being played on in the prior art, rises again and broadcast new channel and compare, due to of the invention real
Apply the data structure that example has increased shuffling caching and shuffling M3U8 file newly, wherein be stored with cache hit channel in shuffling caching
Part TS fragment, as long as succeeding channel be cache hit channel, and in shuffling M3U8 file record succeeding channel caching
TS slicing sequence number, it will be able to be directed toward according to shuffling M3U8 file, be realized according to the TS fragment of caching of succeeding channel to next
The continuous broadcasting of channel is to continue with broadcasting so as to not close current channel in channel switching, eliminate close with again
The delay between broadcasting is acted, to promote user's viewing experience
Detailed description of the invention
The present invention may be better understood from the description with reference to the accompanying drawing to a specific embodiment of the invention,
In, the same or similar appended drawing reference indicates the same or similar feature.
Fig. 1 is the flow diagram of the fast channel switching method for the Web TV that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides Web TV fast channel switching method flow diagram;
Fig. 3 is the flow diagram of the fast channel switching method for the Web TV that further embodiment of this invention provides;
Fig. 4 is the flow diagram of the fast channel switching method for the Web TV that yet another embodiment of the invention provides;
Fig. 5 is the flow diagram of the fast channel switching method for the Web TV that yet another embodiment of the invention provides.
Specific embodiment
The feature and exemplary embodiment of various aspects of the invention is described more fully below.In following detailed description
In, many details are proposed, in order to provide complete understanding of the present invention.
The embodiment of the invention provides a kind of fast channel switching method of Web TV, device, equipment and storage mediums, are used for
Network television field can not close current channel and be to continue with broadcasting in channel switching, eliminate to close and rise again and broadcast it
Between delay, to promote user's viewing experience.
Fig. 1 is the flow diagram of the fast channel switching method for the Web TV that one embodiment of the invention provides, such as Fig. 1 institute
Show, which includes step 101 to step 103.
In a step 101, determine that Web TV switches to succeeding channel by current channel.
In a step 102, judge succeeding channel whether be current channel cache hit channel, the portion of cache hit channel
TS fragment is divided to store into the shuffling caching of current channel.
Wherein, shuffling caching is newly-increased data structure, will be different in shuffling caching compared with existing caching data structure
The TS fragment Unified number of channel, and record TS fragment number and channel URL (Uniform Resource Locator, unification
Resource Locator) corresponding relationship.
In step 103, if succeeding channel is the cache hit channel of current channel, by the TS fragment sequence of succeeding channel
Row number is updated into the shuffling M3U8 file of current channel, and continuously plays next frequency according to the TS of the caching fragment of succeeding channel
Road.
Wherein, shuffling M3U8 file is also newly-increased data structure, for storing the TS fragment sequence for the TS fragment that will be played
Row number, (actual storage is in shuffling using the TS fragment of the direction of TS slicing sequence number in shuffling M3U8 file for set-top box player
In caching) it plays.
In embodiments of the present invention, in switching network TV channel, Web TV can be determined by current channel and is cut
Succeeding channel (i.e. new channel) after changing, then judge succeeding channel whether be current channel cache hit channel, if next
Channel is the cache hit channel of current channel, then the TS slicing sequence number of succeeding channel is updated to the shuffling into current channel
In M3U8 file, and succeeding channel is continuously played according to the TS fragment of caching of succeeding channel.
It needs to close channel being played on in the prior art, rises again and broadcast new channel and compare, due to of the invention real
Apply the data structure that example has increased shuffling caching and shuffling M3U8 file newly, wherein be stored with cache hit channel in shuffling caching
Part TS fragment, as long as succeeding channel be cache hit channel, and in shuffling M3U8 file record succeeding channel caching
TS slicing sequence number, it will be able to be directed toward according to shuffling M3U8 file, be realized according to the TS fragment of caching of succeeding channel to next
The continuous broadcasting of channel is to continue with broadcasting so as to not close current channel in channel switching, eliminate close with again
The delay between broadcasting is acted, to promote user's viewing experience.
Conversely, if succeeding channel is not cache hit channel, the broadcasting of the first channel is interrupted, and by succeeding channel
M3U8 file is updated into the shuffling M3U8 file of current channel, obtains the shuffling M3U8 file of succeeding channel;Then, under
The TS fragment of succeeding channel is stored in the shuffling caching of current channel, obtains next frequency by the shuffling M3U8 file of one channel
The shuffling in road caches;When the TS fragment number of caching of succeeding channel reaches the first predetermined number, start to play succeeding channel.
Fig. 2 be another embodiment of the present invention provides Web TV fast channel switching method flow diagram, Fig. 2 and figure
1 the difference is that, before the step 101 in Fig. 1, fast channel switching method further include in Fig. 2 step 104 be used for 106
Description current channel is playback method when showing for the first time channel.
At step 104, the TS file serial number in the M3U8 file of current channel is updated into initial shuffling M3U8 text
Part obtains the shuffling M3U8 file of current channel.
In step 105, according to the shuffling M3U8 file of current channel, the TS fragment of current channel is stored in initial mixed
It compiles in caching, obtains the shuffling caching of current channel.
In step 106, when the TS fragment number of caching of current channel reaches the first predetermined number, start to play and work as
Preceding channel.
It is broadcast that is, rising for the first time, available channel URL, establishes network connection, obtain the corresponding M3U8 text of the channel
Part simultaneously updates the TS file serial number wherein recorded into shuffling M3U8 file, buffers the first predetermined number (such as 3) TS
Fragment is stored in shuffling caching, starts to play.
Fig. 3 is the flow diagram for the fast channel switching method of Web TV that further embodiment of this invention provides, Fig. 3 be with
Fig. 2 the difference is that, after the step 106 in Fig. 2, fast channel switching method further includes step 107 in Fig. 3, for retouching
State cache hit channel timing machine and method really.
In step 107, when the TS fragment number of caching of current channel reaches the second predetermined number, network electricity is calculated
The cache hit rate of other each channels depending in addition to current channel, corresponding channel when by cache hit rate greater than predetermined threshold
As cache hit channel.
Wherein, the second predetermined number is greater than the first predetermined number, reaches 10 in the TS fragment number of caching of current channel
When, illustrate that the quantity for the TS fragment that channel has cached can satisfy the smooth playing demand of video.
Wherein, cache hit rate is determined by one or more in following parameter: the phase of subordinate channel and current channel
The historical hit rate of property coefficient, subordinate channel is closed, the whole network viewing temperature of subordinate channel and the individual conception of subordinate channel see temperature.
Specifically, cache hit rate HitRate [index] can be indicated are as follows:
HitRate [index]=Relevancy [index] × R_Adjust+HitHistory [index] × H_
Adjust+
PlatformHeat[index]×Pl_Adjust+PreferHeat[index]×
Pr_Adjust
(1)
Wherein, Relevancy [index] is subordinate channel and be playing the relative coefficient of channel, value be 0-1 it
Between arbitrary number, can specifically include order dependent coefficient and/or content related coefficient, while order dependent coefficient and content phase
Can according to need when relationship number and weight distribution just carried out to the two, R_Adjust be Relevancy [index] adjusting because
Son can need to reduce Relevancy [index] according to business or amplify to obtain.
HitHistory [index] is the historical hit rate of subordinate channel, arbitrary number of the value between 0-1, H_
Adjust is the regulatory factor of HitHistory [index], can be needed to contract to HitHistory [index] according to business
Small or amplification obtains.
PlatformHeat [index] is that the whole network of subordinate channel watches temperature, arbitrary number of the value between 0-1, Pl_
Adjust be PlatformHeat [index] regulatory factor, can be needed according to business to PlatformHeat [index] into
Row reduces or amplification obtains.
PreferHeat [index] is that the individual conception of subordinate channel sees temperature, Pr_Adjust PreferHeat
The regulatory factor of [index] can need to reduce PreferHeat [index] according to business or amplify to obtain.
Statistics discovery, tetra- regulatory factors of R_Adjust, H_Adjust, Pl_Adjust and Pr_Adjust are respectively set to
0.38,0.17,0.23,0.22 when, it is most short that set-top box embeds the zapping average retardation that counts on of probe.Wherein, the optimal tune in small towns
Saving the factor is 0.43,0.24,0.18,0.15;The city optimal adjustment factor is 0.36,0.18,0.19,0.27.
Fig. 4 is the flow diagram for the fast channel switching method of Web TV that yet another embodiment of the invention provides, Fig. 4 be with
Fig. 3 the difference is that, after the step 107 in Fig. 3, fast channel switching method further includes step 108 in Fig. 4, for retouching
State the ranking replacement method of multiple cache hit channels.
In step 108, the sequence according to cache hit rate from high in the end, by the M3U8 text of top n cache hit channel
TS file serial number in part is successively updated into the shuffling M3U8 file of current channel, and is directed to each cache hit channel,
The TS fragment of the third predetermined number of the cache hit channel is stored into the shuffling caching of current channel, N is more than or equal to 1
Integer, third predetermined number is less than the first predetermined number.
That is, can be corresponding according to each channel for being not currently in broadcasting is obtained in descending order by hit rate
M3U8 file simultaneously updates new TS file serial number into shuffling M3U8 file, then new according to shuffling M3U8 file cache
TS fragment, each channel only cache 1-2 fragment (configurable).Need to guarantee that target channel is buffered probability during this, together
When set up a kind of 1-2 fragment for only caching multiple target channel and it recompiled, guarantee integral platform resource it is reasonable
It utilizes.
Wherein, for each cache hit channel, when the TS fragment number of caching of the cache hit channel reaches third
After predetermined number, judge the remaining TS fragment number of current channel whether less than the first predetermined number.If the residue of current channel
TS fragment number then updates the TS file serial number in the new M3U8 file of current channel into working as less than the first predetermined number
In the shuffling M3U8 file of preceding channel, the new shuffling M3U8 file of current channel is obtained, and mix according to the new of current channel
M3U8 file is compiled, the shuffling that the new TS fragment of current channel is stored in current channel is cached, to continue to play current channel.
That is, it is every cached a channel after, check and the TS fragment number of channel be currently played whether less than 10
It is a, if it is less than 10, then continues to obtain the corresponding M3U8 file of current channel and update new TS file serial number into mixed
It compiles in M3U8 file, and the TS fragment new according to shuffling M3U8 file cache, until having cached current channel TS fragment number up to 10
It is a (configurable).
In order to facilitate the understanding of those skilled in the art, illustrate the fast channel switching method in the embodiment of the present invention as follows
Concrete operations process:
Step 1:
It rises and broadcasts for the first time, obtain channel URL, establish network connection, obtain the corresponding M3U8 file of the channel and will wherein remember
The TS file serial number of record is updated into shuffling M3U8 file, is buffered 3 fragments and is stored in shuffling caching, starts to play.
Step 2:
Each channel hit rate is calculated, determines the sequence of pre-cache channel.
Step 3:
Continue to obtain the corresponding M3U8 file of current channel and updates new TS file serial number into shuffling M3U8 file
In, and the TS fragment new according to shuffling M3U8 file cache.When having cached current channel TS fragment number up to 10 (configurable), into
Enter step 4, otherwise repeatedly step 3;
Step 4:
Obtain the corresponding M3U8 file of each channel for being not currently in broadcasting in descending order by hit rate and by new TS
File serial number is updated into shuffling M3U8 file, and the TS fragment new according to shuffling M3U8 file cache.Each channel only delays
Deposit 1-2 fragment (configurable).It is every cached a channel after, check whether the TS fragment number of channel is currently played is less than
10, such as less than repeatedly step 3, otherwise repeatedly step 4.
Step 5:
When channel switching occurs, if switching target channel has TS fragment cache memory into shuffling caching, by corresponding TS points
Piece sequence number update does not interrupt this broadcasting, continues to play into shuffling M3U8 file, repeats step 2 and (updates each channel life
Middle rate).
Step 6:
If switching target channel does not have TS fragment to cache, interrupt and play, caching of target channel TS fragment repeats step
Two (updating each channel hit rate).
It is cached under the caching mechanism with shuffling M3U8 file as described above, the embodiment of the present invention is provided with for shuffling, it can
To utilize current cache configuration to realize the purpose continuously played to greatest extent.Each channel only caches 1-2 slice and can effectively mention
High level cache space utilization rate changes simultaneously original video playing mode, the working machine cached using shuffling M3U8 file, shuffling
System guarantees the continual requirement of video playing, in addition, being guaranteed by realizing cache prediction to the consideration of Multiple factors comprehensive weight
Overall plan uses success rate.
Fig. 5 is the structural schematic diagram of the fast channel switching device of Web TV provided in an embodiment of the present invention, as shown in figure 5,
The fast channel switching device include: channel switching determining module 501, cache hit channel judgment module 502 and update and broadcasting at
Manage module 503.
Wherein, channel switching determining module 501 is for determining that Web TV switches to succeeding channel by current channel.
Cache hit channel judgment module 502 be used for judge succeeding channel whether be current channel cache hit channel,
The part TS fragment of cache hit channel has been stored into the shuffling caching of current channel;
It, will be next if updating and play processing module 503 being used for the cache hit channel that succeeding channel is current channel
The TS slicing sequence number of channel is updated into the shuffling M3U8 file of current channel, and according to the TS of caching of institute's succeeding channel points
Piece continuously plays succeeding channel.
The embodiment of the present invention also provides a kind of fast channel switching equipment of Web TV, including processor and memory, storage
Preset program is preserved in device, processor reads the program in memory, executes Web TV as described above according to program
Fast channel switching method.
The embodiment of the present invention also provides a kind of storage medium, and computer program, computer program are stored in storage medium
For the fast channel switching method of Web TV as described above to be executed after being loaded by processor according to computer program.
It should be clear that all the embodiments in this specification are described in a progressive manner, each embodiment it
Between the same or similar part may refer to each other, the highlights of each of the examples are it is different from other embodiments it
Place.For device embodiment, related place may refer to the declaratives of embodiment of the method.Not office of the embodiment of the present invention
It is limited to particular step and structure described above and shown in figure.Those skilled in the art can understand the present invention in fact
It after the spirit for applying example, is variously modified, modification and addition, or the sequence between changing the step.Also, it is risen in order to concise
See, omits the detailed description to known method technology here.
Functional block shown in structures described above block diagram can be implemented as hardware, software, firmware or their group
It closes.When realizing in hardware, it may, for example, be electronic circuit, specific integrated circuit (ASIC), firmware appropriate, insert
Part, function card etc..When being realized with software mode, the element of the embodiment of the present invention is used to execute the program of required task
Or code segment.Perhaps code segment can store in machine readable media program or the data by carrying in carrier wave are believed
It number is sent in transmission medium or communication links." machine readable media " may include be capable of storage or transmission information any
Medium.The example of machine readable media includes electronic circuit, semiconductor memory devices, ROM, flash memory, erasable ROM
(EROM), floppy disk, CD-ROM, CD, hard disk, fiber medium, radio frequency (RF) link, etc..Code segment can via such as because
The computer network of special net, Intranet etc. is downloaded.
The embodiment of the present invention can be realized in other specific forms, without departing from its spirit and essential characteristics.For example, special
Determining algorithm described in embodiment can be modified, and system architecture is without departing from the substantially smart of the embodiment of the present invention
Mind.Therefore, current embodiment is all counted as being exemplary rather than limited, the model of the embodiment of the present invention in all respects
It encloses by appended claims rather than foregoing description defines, also, falls into the meaning of claim and complete in the range of equivalent
Portion changes all to be included among the range of the embodiment of the present invention.
Claims (10)
1. a kind of fast channel switching method of Web TV characterized by comprising
Determine that the Web TV switches to succeeding channel by current channel;
Judge the succeeding channel whether be the current channel cache hit channel, the part TS of the cache hit channel
Fragment has been stored into the shuffling caching of the current channel;
If the succeeding channel is the cache hit channel of the current channel, by the TS slicing sequence number of the succeeding channel
It updates into the shuffling M3U8 file of the current channel, and institute is continuously played according to the TS of the caching fragment of the succeeding channel
State succeeding channel.
2. the method is also wrapped the method according to claim 1, wherein the current channel is first broadcast channel
It includes:
TS file serial number in the M3U8 file of the current channel is updated into initial shuffling M3U8 file, described work as is obtained
The shuffling M3U8 file of preceding channel;
According to the shuffling M3U8 file of the current channel, the TS fragment of the current channel is stored in initial shuffling and is cached
In, obtain the shuffling caching of the current channel;
When the TS fragment number of caching of the current channel reaches the first predetermined number, start to play the current channel.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When the TS fragment number of caching of the current channel reaches the second predetermined number, calculate in the Web TV except institute
The cache hit rate for stating other each channels outside current channel, corresponding channel when by the cache hit rate greater than predetermined threshold
As the cache hit channel, second predetermined number is greater than first predetermined number;
The cache hit rate is determined by one or more in following parameter: subordinate channel is related to the current channel
The historical hit rate of property coefficient, subordinate channel, the whole network viewing temperature of subordinate channel and the individual conception of subordinate channel see temperature.
4. according to the method described in claim 3, it is characterized in that, the cache hit rate is determined by following formula:
HitRate [index]=Relevancy [index] × R_Adjust+HitHistory [index] × H_Adjust+
PlatformHeat[index]×Pl_Adjust+PreferHeat[index]×Pr_Adjust
Wherein, Relevancy [index] is subordinate channel and the relative coefficient for being playing channel, and R_Adjust is
The regulatory factor of Relevancy [index], HitHistory [index] are the historical hit rate of subordinate channel, and H_Adjust is
The regulatory factor of HitHistory [index], PlatformHeat [index] are that the whole network of subordinate channel watches temperature, Pl_
Adjust is the regulatory factor of PlatformHeat [index], and PreferHeat [index] is that the individual conception of subordinate channel sees hot
Degree, Pr_Adjust are the regulatory factor of PreferHeat [index].
5. according to the method described in claim 3, it is characterized in that, the method also includes:
According to the sequence of the cache hit rate from high in the end, by the TS file in the M3U8 file of top n cache hit channel
Sequence number is successively updated into the shuffling M3U8 file of the current channel, and is directed to each cache hit channel, by this
The TS fragment of the third predetermined number of cache hit channel is stored into the shuffling caching of the current channel, and N is more than or equal to 1
Integer, the third predetermined number be less than first predetermined number.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
For each cache hit channel, when to reach the third pre- for the TS fragment number of caching of the cache hit channel
After fixed number mesh, judge whether the remaining TS fragment number of the current channel is less than first predetermined number;
If the remaining TS fragment number of the current channel is less than first predetermined number, by the new of the current channel
TS file serial number in M3U8 file is updated into the shuffling M3U8 file of the current channel, obtains the current channel
New shuffling M3U8 file;
According to the new shuffling M3U8 file of the current channel, the new TS fragment of the current channel is stored in described work as
The shuffling of preceding channel caches, to continue to play the current channel.
7. the method according to claim 1, wherein further include:
If the succeeding channel is not the cache hit channel, the broadcasting of first channel is interrupted, and will be described next
The M3U8 file of channel is updated into the shuffling M3U8 file of the current channel, obtains the shuffling M3U8 text of the succeeding channel
Part;
According to the shuffling M3U8 file of the succeeding channel, the TS fragment of the succeeding channel is stored in the current channel
In shuffling caching, the shuffling caching of the succeeding channel is obtained;
When the TS fragment number of caching of the succeeding channel reaches the first predetermined number, start to play the succeeding channel.
8. a kind of fast channel switching device of Web TV characterized by comprising
Channel switching determining module, for determining that the Web TV switches to succeeding channel by current channel;
Cache hit channel judgment module, for judge the succeeding channel whether be the current channel cache hit frequency
Road, the part TS fragment of the cache hit channel have been stored into the shuffling caching of the current channel;
Update and play processing module, if being the cache hit channel of the current channel for the succeeding channel, by institute
The TS slicing sequence number for stating succeeding channel is updated into the shuffling M3U8 file of the current channel, and according to the next frequency of institute
The TS of the caching fragment in road continuously plays the succeeding channel.
9. a kind of fast channel switching equipment of Web TV, which is characterized in that including processor and memory, protected in the memory
There is preset program, the processor reads the program in the memory, requires 1 to 7 according to described program perform claim
The fast channel switching method of described in any item Web TVs.
10. a kind of storage medium, which is characterized in that be stored with computer program, the computer program in the storage medium
For requiring the fast of 1 to 7 described in any item Web TVs according to the computer program perform claim after being loaded by processor
Fast channel switching method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811627031.4A CN109618219B (en) | 2018-12-28 | 2018-12-28 | Method, device, equipment and storage medium for quickly changing channel of network television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811627031.4A CN109618219B (en) | 2018-12-28 | 2018-12-28 | Method, device, equipment and storage medium for quickly changing channel of network television |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109618219A true CN109618219A (en) | 2019-04-12 |
CN109618219B CN109618219B (en) | 2021-11-23 |
Family
ID=66011896
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811627031.4A Active CN109618219B (en) | 2018-12-28 | 2018-12-28 | Method, device, equipment and storage medium for quickly changing channel of network television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109618219B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1874489A (en) * | 2006-06-28 | 2006-12-06 | 华中科技大学 | Network organization method of overlapped multichannels in video on demand system of peer-to-peer network |
US20070297448A1 (en) * | 2006-06-06 | 2007-12-27 | Alcatel Lucent | Method and apparatus for instant channel change |
WO2011012546A1 (en) * | 2009-07-30 | 2011-02-03 | Alcatel Lucent | A method of switching media content for a mobile apparatus |
CN102595236A (en) * | 2012-01-31 | 2012-07-18 | 深圳创维数字技术股份有限公司 | Set top box and method thereof for changing channels of digital television |
CN103220587A (en) * | 2013-03-22 | 2013-07-24 | 深圳市龙视传媒有限公司 | Method and device for obtaining time shifting contents |
CN103546773A (en) * | 2013-08-15 | 2014-01-29 | Tcl集团股份有限公司 | Television program recommendation method and system |
CN103702202A (en) * | 2013-12-13 | 2014-04-02 | 乐视致新电子科技(天津)有限公司 | Method and device for realizing fast playing during channel switching |
CN103763609A (en) * | 2013-11-22 | 2014-04-30 | 乐视致新电子科技(天津)有限公司 | HLS protocol-based channel switching method and apparatus |
CN104768033A (en) * | 2015-04-15 | 2015-07-08 | 广州市汉融软件有限公司 | Network television channel quick switching method and system based on preloading |
CN105635824A (en) * | 2014-08-08 | 2016-06-01 | Tcl美国研究所 | Personalized channel recommendation method and system |
CN105812847A (en) * | 2014-12-31 | 2016-07-27 | 中国电信股份有限公司 | HLS video live broadcast method, server and system |
CN105933799A (en) * | 2016-05-19 | 2016-09-07 | 成都虚拟世界科技有限公司 | Method and device for playing video |
-
2018
- 2018-12-28 CN CN201811627031.4A patent/CN109618219B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070297448A1 (en) * | 2006-06-06 | 2007-12-27 | Alcatel Lucent | Method and apparatus for instant channel change |
CN1874489A (en) * | 2006-06-28 | 2006-12-06 | 华中科技大学 | Network organization method of overlapped multichannels in video on demand system of peer-to-peer network |
WO2011012546A1 (en) * | 2009-07-30 | 2011-02-03 | Alcatel Lucent | A method of switching media content for a mobile apparatus |
CN102595236A (en) * | 2012-01-31 | 2012-07-18 | 深圳创维数字技术股份有限公司 | Set top box and method thereof for changing channels of digital television |
CN103220587A (en) * | 2013-03-22 | 2013-07-24 | 深圳市龙视传媒有限公司 | Method and device for obtaining time shifting contents |
CN103546773A (en) * | 2013-08-15 | 2014-01-29 | Tcl集团股份有限公司 | Television program recommendation method and system |
CN103763609A (en) * | 2013-11-22 | 2014-04-30 | 乐视致新电子科技(天津)有限公司 | HLS protocol-based channel switching method and apparatus |
CN103702202A (en) * | 2013-12-13 | 2014-04-02 | 乐视致新电子科技(天津)有限公司 | Method and device for realizing fast playing during channel switching |
CN105635824A (en) * | 2014-08-08 | 2016-06-01 | Tcl美国研究所 | Personalized channel recommendation method and system |
CN105812847A (en) * | 2014-12-31 | 2016-07-27 | 中国电信股份有限公司 | HLS video live broadcast method, server and system |
CN104768033A (en) * | 2015-04-15 | 2015-07-08 | 广州市汉融软件有限公司 | Network television channel quick switching method and system based on preloading |
CN105933799A (en) * | 2016-05-19 | 2016-09-07 | 成都虚拟世界科技有限公司 | Method and device for playing video |
Non-Patent Citations (2)
Title |
---|
MARTIN DRÄXLER等: "Cross-layer scheduling for multi-quality video streaming in cellular wireless networks", 《2013 9TH INTERNATIONAL WIRELESS COMMUNICATIONS AND MOBILE COMPUTING CONFERENCE (IWCMC)》 * |
王方雯: "高质量视频点播服务的P2P数据分发策略研究", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109618219B (en) | 2021-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11343351B2 (en) | Content distribution network supporting popularity-based caching | |
CN111586480B (en) | Low-delay streaming media | |
CN104468395B (en) | The channel access method and system of direct broadcasting room | |
CN104205772B (en) | Improved DASH clients and receiver with buffer water level decision-making | |
CN110198495B (en) | Method, device, equipment and storage medium for downloading and playing video | |
US10110507B2 (en) | Push-based transmission of resources and correlated network quality estimation | |
JP5780684B2 (en) | Content reproduction information estimation apparatus, method, and program | |
CN101873355A (en) | Method, device and system for downloading file | |
JP2015511782A (en) | Improved DASH client and receiver with download rate estimator | |
JP2015513840A5 (en) | ||
CN106658054B (en) | A kind of video ads request link optimization method and device | |
US9767033B2 (en) | Method and apparatus for managing cache memory in communication system | |
EP3072258A1 (en) | Fractional pre-delivery of content to user devices | |
CN103442293A (en) | Method and system for quickly starting playing of network multimedia files | |
KR20170012461A (en) | Method for reducing pre-fetching of multimedia streaming data with minimal impact on playback user experience | |
Lee et al. | On the MDP-based cost minimization for video-on-demand services in a heterogeneous wireless network with multihomed terminals | |
CN101800731A (en) | Network transmission management server, network transmission management method and network transmission system | |
CN102307218A (en) | Stream media data request transmission method for multimedia telephone peer-to-peer (P2P) video-on-demand | |
CN108833995B (en) | Transmission method of self-adaptive streaming media in wireless network environment | |
CN108462733B (en) | File acceleration transmission method and device | |
Gouta et al. | HTTP adaptive streaming in mobile networks: Characteristics and caching opportunities | |
Huang et al. | A more refined mobile edge cache replacement scheme for adaptive video streaming with mutual cooperation in multi-mec servers | |
CN108574883A (en) | The method for realizing multiple CDN Parallel downloads video segments | |
CN106470350B (en) | Code rate adaptive approach and device based on dynamic bit rate | |
CN110913239A (en) | Video cache updating method for refined mobile edge calculation |
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 |