CN109413474A - A kind of Online Video starts broadcasting accelerating method and device - Google Patents

A kind of Online Video starts broadcasting accelerating method and device Download PDF

Info

Publication number
CN109413474A
CN109413474A CN201811556367.6A CN201811556367A CN109413474A CN 109413474 A CN109413474 A CN 109413474A CN 201811556367 A CN201811556367 A CN 201811556367A CN 109413474 A CN109413474 A CN 109413474A
Authority
CN
China
Prior art keywords
player
online video
state
broadcasting
played
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
Application number
CN201811556367.6A
Other languages
Chinese (zh)
Other versions
CN109413474B (en
Inventor
王希山
吴启明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201811556367.6A priority Critical patent/CN109413474B/en
Publication of CN109413474A publication Critical patent/CN109413474A/en
Application granted granted Critical
Publication of CN109413474B publication Critical patent/CN109413474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42607Internal components of the client ; Characteristics thereof for processing the incoming bitstream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer

Abstract

It starts broadcasting accelerating method and device the invention discloses a kind of Online Video, when needing to preload Online Video, broadcast address player identical with the broadcast address of Online Video is preloaded is searched from player pond as the first player, its state is re-set as in buffering or in broadcasting according to the current state of the first player;When need to play Online Video need to play Online Video to be played when, broadcast address player identical with the broadcast address of Online Video to be played is chosen from multiple first players as the second player, and it is in the state of the second player in broadcasting, realize the broadcasting to Online Video to be played.Player in the present invention has just been loaded with part Online Video before playing Online Video, it include the head that start broadcasting of Online Video in the Online Video of load, it does not need additionally to walk the calling logic between background server when to start broadcasting, therefore the airtime for shortening Online Video, improves the viewing experience of user.

Description

A kind of Online Video starts broadcasting accelerating method and device
Technical field
The present invention relates to Internet technical fields, start broadcasting accelerated method and dress more specifically, being related to a kind of Online Video It sets.
Background technique
Currently, many clients are all either directly or indirectly to use player plays when playing Online Video.Usually exist Directly using player start broadcasting video when, the waiting of starting broadcasting of long period is had, this is because the front end of Online Video has Start broadcasting head, when player load Online Video start broadcasting head when, player just need with background server execute to lower With logic: 1, connecting background server and request the true broadcast address of Online Video to be played;2, according to the broadcasting got Location foradownloaded video data;3, completeness check is carried out to the video data downloaded;4, decoding video data and it is rendered into screen. Even playing an Online Video under internal network, player loads the head that start broadcasting of Online Video, is generally also required to To the time of 600ms or more, in the case where network is poor, the time for waiting of starting broadcasting will more long.
Therefore, how to improve Online Video to start broadcasting accelerating method and device, to improve the viewing to Online Video of user The technical issues of experience becomes those skilled in the art's urgent need to resolve.
Summary of the invention
It starts broadcasting accelerating method and device in view of this, the present invention discloses a kind of line video, to realize when video starts broadcasting not Need additionally to walk the calling logic between background server, so as to shorten the airtime of Online Video, improve user to The viewing experience of line video.
A kind of Online Video starts broadcasting accelerated method, comprising:
When needing to preload Online Video, broadcast address and the preloading are searched from pre-set player pond The identical player of the broadcast address of Online Video, as the first player;It wherein, include: multiple broadcast in the player pond Put device;
When the current state of first player be buffering it is described preload Online Video start broadcasting head when, will be described The state of first player is set as in buffering;When the current state of first player is idle state, by described the The state of one player is set as in buffering, and triggers the buffering preloading Online Video;
When the current state of first player is that the preloading Online Video is in broadcasting, by described first The state of player is set as in broadcasting;
It is multiple during buffering neutralization plays from state in the player pond when needing to play Online Video to be played In first player, broadcast address player identical with the broadcast address of the Online Video to be played is searched, as Second player;
When second player state be buffering in, then set the state of second player in broadcasting, And it triggers and plays the Online Video to be played;
When the state of second player is then to maintain the broadcast state of second player constant in broadcasting.
Optionally, further includes:
It is identical as the preloading broadcast address of Online Video when finding broadcast address from the player Chi Zhongwei Player when, from the player pond choose a player being in idle condition, as third player;
The broadcast address of the third player is updated to the broadcast address for preloading Online Video, and will be described The state of third player is updated in buffering;
Triggering buffers the preloading Online Video.
Optionally, further includes:
When needing to play Online Video to be played, if being more during buffering neutralization plays from state in the player pond In a first player, broadcast address player identical with the broadcast address of Online Video to be played is not found, then A player is arbitrarily chosen from the remaining player being in idle condition in the player pond, as the 4th player;
The broadcast address of 4th player is updated to the broadcast address of Online Video to be played, and by the described 4th The state of player is updated in broadcasting;
Triggering playback interface starts to play.
Optionally, further includes:
After the Online Video to be played stops playing, if the state of second player is still to incite somebody to action in broadcasting The state of second player is set as idle state.
Optionally, further includes:
It is more than preset time period when the time that first player and/or second player are not carried out any operation When, then it is more than that first player of the preset time period and/or described second are broadcast by the time for being not carried out any operation The state for putting device is set as idle state.
A kind of Online Video starts broadcasting accelerator, comprising:
First player selection unit, for when needing to preload Online Video, from pre-set player pond Broadcast address player identical with the preloading broadcast address of Online Video is searched, as the first player;Wherein, institute Stating includes: multiple players in player pond;
First state setting unit is to buffer the online view of the preloading for the current state when first player Frequency start broadcasting head when, set the state of first player in buffering;When described
When the current state of first player is idle state, set the state of first player in buffering, And trigger the buffering preloading Online Video;
Second state set unit, for being at the preloading Online Video when the current state of first player When in broadcasting, set the state of first player in broadcasting;
Second player selection unit, for when needing to play Online Video to be played, from the player Chi Zhongzhuan State is that buffering neutralizes in multiple first players in playing, and lookup broadcast address is broadcast with the Online Video to be played The identical player in address is put, as the second player;
Third state setting unit then will be described for being in buffering when the state of second player
The state of second player is set as in broadcasting, and is triggered and played the Online Video to be played;
State maintenance unit, for being then to maintain second player in broadcasting when the state of second player Broadcast state it is constant.
Optionally, further includes:
Third player selection unit finds broadcast address and the preloading for working as from the player Chi Zhongwei When the identical player of the broadcast address of Online Video, a broadcasting being in idle condition is chosen from the player pond Device, as third player;
First updating unit, for the broadcast address of the third player to be updated to the preloading Online Video Broadcast address, and the state of the third player is updated in buffering;
First trigger unit buffers the preloading Online Video for triggering.
Optionally, further includes:
4th player selection unit, for when needing to play Online Video to be played, if from the player pond State is that buffering neutralizes in multiple first players in playing, and does not find broadcast address and Online Video to be played The identical player of broadcast address then arbitrarily chooses one from the remaining player being in idle condition in the player pond Player, as the 4th player;
Second updating unit, for the broadcast address of the 4th player to be updated to the broadcasting of Online Video to be played Address, and the state of the 4th player is updated in broadcasting;
Second trigger unit starts to play for triggering playback interface.
Optionally, further includes:
4th state set unit is used for after the Online Video to be played stops playing, if second player State be still then to set idle state for the state of second player in broadcasting.
Optionally, further includes:
5th state set unit, for being not carried out any behaviour when first player and/or second player It is then more than described the first of the preset time period by the time for being not carried out any operation when the time of work is more than preset time period The state of player and/or second player is set as idle state.
From above-mentioned technical solution it is found that starting broadcasting accelerating method and device the invention discloses a kind of Online Video, when needing When preloading Online Video, broadcast address is searched from player pond, and the broadcast address of Online Video is identical broadcasts with preloading Device is put as the first player, its state is re-set as in buffering or in broadcasting according to the current state of the first player; When needing to play Online Video to be played, broadcasting for broadcast address and Online Video to be played is chosen from multiple first players The identical player in address is put as the second player, and is in the state of the second player in broadcasting, is realized to be played The broadcasting of Online Video.It can thus be seen that the present invention uses the first player to preload Online Video in advance, when needs are broadcast When putting Online Video to be played, then the broadcast address of broadcast address and Online Video to be played is chosen from multiple first players Identical player is as the second player, to play Online Video, that is to say, that when an Online Video successfully plays, Practical second player of the first player and broadcasting Online Video that load Online Video is the same player, therefore, phase For traditional scheme, the player in the present invention has just been loaded with part Online Video before playing Online Video, It include the head that start broadcasting of Online Video in the Online Video of load, to not need additionally to walk between background server when starting broadcasting Calling logic, therefore shorten the airtime of Online Video, improve user to the viewing experience of Online Video.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis Disclosed attached drawing obtains other attached drawings.
Fig. 1 is that a kind of Online Video disclosed by the embodiments of the present invention starts broadcasting the flow chart of accelerated method;
Fig. 2 is that a kind of Online Video disclosed by the embodiments of the present invention starts broadcasting the structural schematic diagram of accelerator.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It starts broadcasting accelerating method and device the embodiment of the invention discloses a kind of Online Video, when needing to preload Online Video When, broadcast address player identical with the broadcast address of Online Video is preloaded is searched from player pond to be played as first Its state is re-set as in buffering or in broadcasting by device according to the current state of the first player;It is to be played when needing to play When Online Video, broadcast address broadcasting identical with the broadcast address of Online Video to be played is chosen from multiple first players Device is in the state of the second player in broadcasting as the second player, realizes the broadcasting to Online Video to be played.By This can be seen that the present invention and preloads Online Video using the first player in advance, when needing to play Online Video to be played When, then broadcast address player conduct identical with the broadcast address of Online Video to be played is chosen from multiple first players Second player, to play Online Video, that is to say, that when an Online Video successfully plays, load the of Online Video Practical second player of one player and broadcasting Online Video is the same player, for traditional scheme, Player in the present invention has just been loaded with part Online Video before playing Online Video, wraps in the Online Video of load The head that start broadcasting of Online Video are included, thus do not need additionally to walk the calling logic between background server when starting broadcasting, therefore, contracting The short airtime of Online Video, improves user to the viewing experience of Online Video.
Referring to Fig. 1, a kind of Online Video disclosed in one embodiment of the invention starts broadcasting the flow chart of accelerated method, this method packet Include step:
Step S101, when needing to preload Online Video, from pre-set player pond search broadcast address with The identical player of broadcast address for preloading Online Video, as the first player;
In advance include: multiple players in player pond in this step, the model of each player be it is identical, put The quantity for the player set is set according to practical application scene.The size in player pond is controllable, also, player pond is big Small related to the quantity for the player that it is placed, when the quantity for the player that player pond is placed is more, player pond is opposite It is larger;Conversely, player pond is relatively small when the negligible amounts of the player of player pond placement.
In practical applications, each player data structure can be defined as follows in player pond:
struct player{
String videoURL, // video playing address
Int state, // status indicator code
}
Wherein, the address of broadcast address namely video on the server, English name are as follows: the English of video URL, URL Literary full name are as follows: Uniform Resource Locator, corresponding Chinese are explained are as follows: uniform resource locator, unified resource are fixed Position symbol is the expression succinct to the position for the resource that can be obtained from internet and one kind of access method, is internet subscript The address of quasi- resource.
In practical applications, each Online Video has unique corresponding broadcast address therewith, in this step, passes through judgement Whether the broadcast address for preloading Online Video is identical as the broadcast address of some player in player pond, executes in advance to determine Load the player of Online Video operation.
Step S102, when the current state of first player is the buffering head that start broadcasting for preloading Online Video When, it sets the state of first player in buffering;When the current state of first player is idle state, It sets the state of first player in buffering, and triggers the buffering preloading Online Video;
It should be noted that showing that first player is current when the current state of the first player is idle state It is also not carried out to the buffer operation for preloading Online Video, at this point, setting the state of the first player in buffering, and triggers Video loading interface buffering preloads Online Video.
It is appreciated that the head that start broadcasting of Online Video are located at the front end of Online Video, when the load of the first player is online Video start broadcasting head when, it is necessary to walk the calling logic between background server, comprising: 1, connection background server request The true broadcast address of Online Video to be played;2, according to the broadcast address foradownloaded video data got;3, to being downloaded Video data carries out completeness check;4, decoding video data and it is rendered into screen.Therefore, the first player has loaded online view After the head that start broadcasting of frequency, namely complete the calling logic between the first player and background server.
Step S103, when the current state of first player is that the preloading Online Video is in broadcasting, It sets the state of first player in broadcasting;
It should be noted that in this step, when the current state of the first player is to preload Online Video to be in broadcasting When middle, show that the first player completes the head load of starting broadcasting of Online Video and Online Video is in broadcasting.
In addition, showing that the first player is loading the head that start broadcasting when the state of the first player is in buffering.
When the state of the first player is idle, show that the first player is not carried out any operation.
Step S104, when needing to play Online Video to be played, state is that buffering neutralization is broadcast from the player pond In multiple first players put, broadcast address broadcasting identical with the broadcast address of Online Video to be played is searched Device, as the second player;
Specifically, being preferentially that buffering neutralizes in broadcasting from state in player when needing to play Online Video to be played Multiple first players in, identical with the broadcast address of the Online Video to be played player of broadcast address is searched, if lookup Broadcast address to some the first player is identical as the broadcast address of Online Video to be played, then it represents that has found second and has broadcast Device is put, to utilize the second player plays Online Video.
Since the second player is chosen from multiple first players in this step, when an Online Video When success plays, practical the second player of the first player and broadcasting Online Video that load Online Video is the same broadcasting Device.
Step S105, when the state of second player is that then the state of second player is arranged in buffering In playing, and triggers playback interface and play the Online Video to be played;
When the state of the second player is in buffering, then show that the second player only carries out Online Video to be played Buffering, but do not play also, in this case, the present invention sets the state of second player in broadcasting, and touches It sends out playback interface and plays the Online Video to be played.
It should be noted that: (the second player is equivalent to when the second player has only buffered Online Video to be played Online Video to be played is slowed down and is deposited in memory), but also since memory calls Online Video to be played when broadcasting, it will State at this time is defined as: the state of the second player is in buffering.
When the second player start to play Online Video to be played namely the second player call from memory it is to be played online Video and when starting to play to user, at this time, it is necessary to the state of the second player is changed in broadcasting, so that second plays The operation that device executes is corresponding with the state of the second player.
Step S106, when the state of second player is then to maintain the broadcasting shape of second player in broadcasting State is constant.
When the state of the second player is in broadcasting, show that the second player has not only buffered online view to be played Frequently, moreover, having triggered playback interface plays the Online Video to be played, in this case, what does not all need to do, only The second player need to be allowed to maintain broadcast state constant.
In summary, Online Video disclosed by the invention starts broadcasting accelerated method, when needing to preload Online Video, from broadcasting It puts and searches broadcast address and the identical player of the preloading broadcast address of Online Video in device pond as the first player, according to Its state is re-set as in buffering or in broadcasting by the current state of the first player;When needing to play Online Video to be played When, identical with the broadcast address of the Online Video to be played player of broadcast address is chosen from multiple first players as the Two players, and it is in the state of the second player in broadcasting, realize the broadcasting to Online Video to be played.It is possible thereby to see Out, the present invention uses the first player to preload Online Video in advance, when needing to play Online Video to be played, then from more Broadcast address player identical with the broadcast address of Online Video to be played is chosen in a first player to play as second Device, to play Online Video, that is to say, that when an Online Video successfully plays, load the first player of Online Video Practical with the second player of broadcasting Online Video is the same player, for traditional scheme, in the present invention Player be just loaded with part Online Video before playing Online Video, include online view in the Online Video of load The head that start broadcasting of frequency to not need additionally to walk the calling logic between background server when starting broadcasting, therefore shorten online The airtime of video improves user to the viewing experience of Online Video.
Also, it needs all to download Online Video to be played compared with the existing technology, to avoid in tabular layout and/or entirely Shield in play mode scene, because of the reasons such as frequent sliding list Switch Video source or network difference, causes Online Video to play unstable Fixed situation, the present invention put Online Video without downloading whole strip sowing, need to only buffer the head that start broadcasting of Online Video, thus It realizes while guaranteeing to play stability, improves Online Video and start broadcasting acceleration.
In order to further optimize the above embodiments, when needing to preload Online Video, from pre-set player pond Do not search broadcast address with preload the identical player of the broadcast address of Online Video, the Online Video accelerated method that starts broadcasting may be used also With comprising steps of
Preload that the broadcast address of Online Video is identical broadcasts with described when finding broadcast address from player Chi Zhongwei When putting device, a player being in idle condition is chosen from the player pond, as third player;
The broadcast address of the third player is updated to the broadcast address for preloading Online Video, and will be described The state of third player is updated in buffering;
Triggering buffering preloads Online Video, specifically, triggering video loading interface buffering preloads Online Video.
In the present embodiment, when the broadcast address phase for finding broadcast address and preloading Online Video from player Chi Zhongwei With player when, show to preload Online Video and loaded not being played any one of device pond player before, In this case, it is necessary to choose a player being in idle condition from player pond as third player, come Load preloads Online Video for the first time, by the way that the broadcast address of the third player is updated to the online view of the preloading The broadcast address of frequency, and the state of the third player is updated in buffering, triggering buffering preloads Online Video, realizes Load to Online Video is preloaded is prepared when to being the follow-up play preloading Online Video, to improve the pre-add Carry the acceleration of starting broadcasting of Online Video.
In order to further optimize the above embodiments, state is from player pond when needing to play Online Video to be played Buffering neutralizes in multiple first players in playing, and it is identical as the broadcast address of Online Video to be played not search broadcast address Player when, Online Video start broadcasting accelerated method can with comprising steps of
When needing to play Online Video to be played, if being that buffering neutralizes multiple the in playing from state in player pond In one player, broadcast address player identical with the broadcast address of Online Video to be played is not found, then from player A player is arbitrarily chosen in the remaining player being in idle condition in pond, as the 4th player;
The broadcast address of 4th player is updated to the broadcast address of Online Video to be played, and by the described 4th The state of player is updated in broadcasting;
The playback interface is triggered to start to play.
In the present embodiment, when needing to choose the player for playing Online Video, the preferential pre-add from player pond Carry Online Video player in choose, namely from state in player pond be buffering neutralize broadcasting in multiple first players It chooses, when not searching broadcast address player identical with the broadcast address of Online Video to be played from multiple first players When, it demonstrates the need for the Online Video played and is not played device buffering, in this case, first can only be just removed from player pond A player is arbitrarily chosen in except player, the remaining player being in idle condition, and as the 4th player, is led to Cross the broadcast address that the broadcast address of the 4th player is updated to Online Video to be played, and by the 4th player State is updated in broadcasting, triggers playback interface to play the Online Video for needing to play.Since the 4th player is to buffer The Online Video is played while Online Video, accordingly, with respect to embodiment illustrated in fig. 1 from multiple first players, directly It chooses for having buffered the player of Online Video, the Online Video speed that starts broadcasting substantially reduces.
It should be noted that the operating procedure after Online Video broadcasting includes: the broadcasting of 1, stopping Online Video, packet It includes: stopping reading Online Video data, stops video decoding and stop decoding video being rendered into screen;2, player is modified State.
Therefore, in order to further optimize the above embodiments, Online Video starts broadcasting accelerated method can with comprising steps of
After Online Video to be played stops playing, if the state of the second player is still in broadcasting, by described second The state of player is set as idle state.
Based on above-mentioned discussion it is found that after Online Video to be played stops playing, only player stops reading online Video data stops video decoding and stops decoding video being rendered into screen, however, the state of player is changed not yet, In broadcasting before also keeping, therefore, in the present embodiment, after Online Video to be played stops playing, if the second player State is still then to set idle state for the state of the second player in broadcasting, to realize releasing for the second player resources It puts, namely the resource that the second player of recycling occupies, to help to improve other players to the processing speed of Online Video.
In order to further optimize the above embodiments, Online Video starts broadcasting accelerated method can with comprising steps of
When the time that the first player and/or the second player are not carried out any operation being more than preset time period, then will The time for being not carried out any operation is more than first player of the preset time period and/or the shape of second player State is set as idle state.
In the present embodiment, when the time that the first player and/or the second player are not carried out any operation is more than default Between section when, show that through a long time is not carried out any operation for the first player and/or the second player, in this case, just Idle state can be set by the state of the first player and/or the second player that are not carried out any operation for a long time, it is real Now to the recycling of the first player and/or the occupied resource of the second player, thus help to improve other players to The processing speed of line video.
It is corresponding with above method embodiment, it starts broadcasting accelerator the invention also discloses a kind of Online Video.
Referring to fig. 2, a kind of Online Video disclosed in one embodiment of the invention starts broadcasting the structural schematic diagram of accelerator, the dress It sets and includes:
First player selection unit 201, for when needing to preload Online Video, from pre-set player pond Middle lookup broadcast address player identical with the preloading broadcast address of Online Video, as the first player;
It include: multiple players in the player pond, the model of each player is player that is identical, being placed Quantity set according to practical application scene.The size in player pond is controllable, also, the size in player pond is placed with it Player quantity it is related, when the quantity for the player that player pond is placed is more, player pond is relatively large;Conversely, When the negligible amounts for the player that player pond is placed, player pond is relatively small.
In practical applications, each player data structure can be defined as follows in player pond:
struct player{
String videoURL, // video playing address
Int state, // status indicator code
}
Wherein, the address of broadcast address namely video on the server, English name are as follows: the English of video URL, URL Literary full name are as follows: Uniform Resource Locator, corresponding Chinese are explained are as follows: uniform resource locator, unified resource are fixed Position symbol is the expression succinct to the position for the resource that can be obtained from internet and one kind of access method, is internet subscript The address of quasi- resource.
In practical applications, each Online Video has unique corresponding broadcast address therewith, in the present embodiment, by sentencing Whether the disconnected broadcast address for preloading Online Video is identical as the broadcast address of some player in player pond, executes to determine Preload the player of online vision operation.
First state setting unit 202 is to be preloaded in described in buffering for the current state when first player Line video start broadcasting head when, set the state of first player in buffering;It is current when first player It when state is idle state, sets the state of first player in buffering, and it is online to trigger the buffering preloading Video;
It should be noted that showing that first player is current when the current state of the first player is idle state It is also not carried out to the buffer operation for preloading Online Video, at this point, setting the state of the first player in buffering, and triggers Buffer the preloading Online Video.
It is appreciated that the head that start broadcasting of Online Video are located at the front end of Online Video, when the load of the first player is online Video start broadcasting head when, it is necessary to walk the calling logic between background server, comprising: 1, connection background server request The true broadcast address of Online Video to be played;2, according to the broadcast address foradownloaded video data got;3, to being downloaded Video data carries out completeness check;4, decoding video data and it is rendered into screen.Therefore, the first player has loaded online view After the head that start broadcasting of frequency, namely complete the calling logic between the first player and background server.
Second state set unit 203 is the online view of the preloading for the current state when first player When frequency is in playing, set the state of first player in broadcasting;
It should be noted that showing when the current state of the first player is to preload Online Video to be in broadcasting First player completes the head load of starting broadcasting of Online Video.
Second player selection unit 204, for when needing to play Online Video to be played, from the player pond State is that buffering neutralizes in multiple first players in playing, and searches the broadcasting of broadcast address and Online Video to be played The identical player in address, as the second player;
Specifically, being preferentially that buffering neutralizes in broadcasting from state in player when needing to play Online Video to be played Multiple first players in, identical with the broadcast address of the Online Video to be played player of broadcast address is searched, if lookup Broadcast address to some the first player is identical as the broadcast address of Online Video to be played, then it represents that has found second and has broadcast Device is put, to utilize the second player plays Online Video.
It by the second player is in this present embodiment chosen from multiple first players, therefore, when an online view When frequency successfully plays, practical the second player of the first player and broadcasting Online Video that load Online Video is same broadcasts Put device.
Third state setting unit 205, for being then to be broadcast described second in buffering when the state of second player The state for putting device is set as in broadcasting, and is triggered and played the Online Video to be played;
Specifically, triggering playback interface plays Online Video to be played.
When the state of the second player is in buffering, then show that the second player only carries out Online Video to be played Buffering, but do not play also, in this case, the present invention sets the state of second player in broadcasting, and touches It sends out playback interface and plays the Online Video to be played.
State maintenance unit 206, for being in broadcasting, then described in maintenance when the state of second player
The broadcast state of second player is constant.
When the state of the second player is in broadcasting, show that the second player has not only buffered online view to be played Frequently, moreover, having triggered playback interface plays the Online Video to be played, in this case, what does not all need to do, only The second player need to be allowed to maintain broadcast state constant.
In summary, Online Video disclosed by the invention starts broadcasting accelerator, when needing to preload Online Video, from broadcasting It puts and searches broadcast address and the identical player of the preloading broadcast address of Online Video in device pond as the first player, according to Its state is re-set as in buffering or in broadcasting by the current state of the first player;When needing to play Online Video to be played When, identical with the broadcast address of the Online Video to be played player of broadcast address is chosen from multiple first players as the Two players, and it is in the state of the second player in broadcasting, realize the broadcasting to Online Video to be played.It is possible thereby to see Out, the present invention uses the first player to preload Online Video in advance, when needing to play Online Video to be played, then from more Broadcast address player identical with the broadcast address of Online Video to be played is chosen in a first player to play as second Device, to play Online Video, that is to say, that when an Online Video successfully plays, load the first player of Online Video Practical with the second player of broadcasting Online Video is the same player, for traditional scheme, in the present invention Player be just loaded with part Online Video before playing Online Video, include online view in the Online Video of load The head that start broadcasting of frequency to not need additionally to walk the calling logic between background server when starting broadcasting, therefore shorten online The airtime of video improves user to the viewing experience of Online Video.
Also, it needs all to download Online Video to be played compared with the existing technology, to avoid in tabular layout and/or entirely Shield in play mode scene, because of the reasons such as frequent sliding list Switch Video source or network difference, causes Online Video to play unstable Fixed situation, the present invention put Online Video without downloading whole strip sowing, need to only buffer the head that start broadcasting of Online Video, thus It realizes while guaranteeing to play stability, improves Online Video and start broadcasting acceleration.
In order to further optimize the above embodiments, when needing to preload Online Video, from pre-set player pond Do not search broadcast address with preload the identical player of the broadcast address of Online Video, the Online Video accelerator that starts broadcasting may be used also To include:
Third player selection unit finds broadcast address and the preloading for working as from the player Chi Zhongwei When the identical player of the broadcast address of Online Video, a broadcasting being in idle condition is chosen from the player pond Device, as third player;
First updating unit, for the broadcast address of the third player to be updated to the preloading Online Video Broadcast address, and the state of the third player is updated in buffering;
First trigger unit buffers the preloading Online Video for triggering.
In the present embodiment, when the broadcast address phase for finding broadcast address and preloading Online Video from player Chi Zhongwei With player when, show to preload Online Video and loaded not being played any one of device pond player before, In this case, it is necessary to choose a player being in idle condition from player pond as third player, come Load preloads Online Video for the first time, by the way that the broadcast address of the third player is updated to the online view of the preloading The broadcast address of frequency, and will be described
The state of third player is updated in buffering, and triggering buffers the preloading Online Video, is realized to preloading The load of Online Video is prepared when to being the follow-up play preloading Online Video, is regarded online to improve the preloading The acceleration of starting broadcasting of frequency.
In order to further optimize the above embodiments, state is from player pond when needing to play Online Video to be played Buffering neutralizes in multiple first players in playing, and it is identical as the broadcast address of Online Video to be played not search broadcast address Player when, the Online Video accelerator that starts broadcasting can also include:
4th player selection unit, for when needing to play Online Video to be played, if the state from player pond It is neutralized in multiple first players in playing for buffering, with not searching the broadcasting of broadcast address and Online Video to be played The identical player in location then arbitrarily chooses a broadcasting from the remaining player being in idle condition in the player pond Device, as the 4th player;
Second updating unit, for the broadcast address of the 4th player to be updated to the broadcasting of Online Video to be played Address, and the state of the 4th player is updated in broadcasting;
Second trigger unit starts to play for triggering the playback interface.
In the present embodiment, when needing to choose the player for playing Online Video, the preferential pre-add from player pond Carry Online Video player in choose, namely from state in player pond be buffering neutralize broadcasting in multiple first players It chooses, when not searching broadcast address player identical with the broadcast address of Online Video to be played from multiple first players When, it demonstrates the need for the Online Video played and is not played device buffering, in this case, first can only be just removed from player pond A player is arbitrarily chosen in except player, the remaining player being in idle condition, and as the 4th player, is led to Cross the broadcast address that the broadcast address of the 4th player is updated to Online Video to be played, and by the 4th player State is updated in broadcasting, triggers playback interface to play the Online Video for needing to play.Since the 4th player is to buffer The Online Video is played while Online Video, accordingly, with respect to embodiment illustrated in fig. 1 from multiple first players, directly It chooses for having buffered the player of Online Video, the Online Video speed that starts broadcasting substantially reduces.
It should be noted that the operating procedure after Online Video broadcasting includes: the broadcasting of 1, stopping Online Video, packet It includes: stopping reading Online Video data, stops video decoding and stop decoding video being rendered into screen;2, player is modified State.
Therefore, in order to further optimize the above embodiments, Online Video starts broadcasting, accelerator can also include:
4th state set unit is used for after Online Video to be played stops playing, if the shape of second player State is still then to set idle state for the state of second player in broadcasting.
Based on above-mentioned discussion it is found that after Online Video to be played stops playing, only player stops reading online Video data stops video decoding and stops decoding video being rendered into screen, however, the state of player is changed not yet, In broadcasting before also keeping, therefore, in the present embodiment, after Online Video to be played stops playing, if the second player State is still then to set idle state for the state of the second player in broadcasting, to realize releasing for the second player resources It puts, namely the resource that the second player of recycling occupies, to help to improve other players to the processing speed of Online Video.
In order to further optimize the above embodiments, Online Video starts broadcasting, accelerator can also include:
5th state set unit, for being not carried out any behaviour when first player and/or second player It is then more than described the first of the preset time period by the time for being not carried out any operation when the time of work is more than preset time period The state of player and/or second player is set as idle state.
In the present embodiment, when the time that the first player and/or the second player are not carried out any operation is more than default Between section when, show that through a long time is not carried out any operation for the first player and/or the second player, in this case, just Idle state can be set by the state of the first player and/or the second player that are not carried out any operation for a long time, it is real Now to the recycling of the first player and/or the occupied resource of the second player, thus help to improve other players to The processing speed of line video.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

  1. The accelerated method 1. a kind of Online Video starts broadcasting characterized by comprising
    When needing to preload Online Video, broadcast address is searched from pre-set player pond and the preloading is online The identical player of the broadcast address of video, as the first player;It wherein, include: multiple players in the player pond;
    When the current state of first player be buffering it is described preload Online Video start broadcasting head when, by described first The state of player is set as in buffering;When the current state of first player is idle state, described first is broadcast The state for putting device is set as in buffering, and triggers the buffering preloading Online Video;
    When the current state of first player is that the preloading Online Video is in broadcasting, described first is played The state of device is set as in broadcasting;
    It is multiple described during buffering neutralization plays from state in the player pond when needing to play Online Video to be played In first player, broadcast address player identical with the broadcast address of the Online Video to be played is searched, as second Player;
    When the state of second player is then to set the state of second player in broadcasting, and touch in buffering The Online Video to be played is put in broadcast;
    When the state of second player is then to maintain the broadcast state of second player constant in broadcasting.
  2. The accelerated method 2. Online Video according to claim 1 starts broadcasting, which is characterized in that further include:
    Preload that the broadcast address of Online Video is identical broadcasts with described when finding broadcast address from the player Chi Zhongwei When putting device, a player being in idle condition is chosen from the player pond, as third player;
    The broadcast address of the third player is updated to the broadcast address for preloading Online Video, and by the third The state of player is updated in buffering;
    Triggering buffers the preloading Online Video.
  3. The accelerated method 3. Online Video according to claim 1 starts broadcasting, which is characterized in that further include:
    When needing to play Online Video to be played, if neutralizing multiple institutes in playing from state in the player pond for buffering It states in the first player, does not find broadcast address player identical with the broadcast address of Online Video to be played, then from institute It states in the remaining player being in idle condition in player pond and arbitrarily chooses a player, as the 4th player;
    The broadcast address of 4th player is updated to the broadcast address of Online Video to be played, and the described 4th is played The state of device is updated in broadcasting;
    Triggering playback interface starts to play.
  4. The accelerated method 4. Online Video according to claim 1 starts broadcasting, which is characterized in that further include:
    It, will be described if the state of second player is still in broadcasting after the Online Video to be played stops playing The state of second player is set as idle state.
  5. The accelerated method 5. Online Video according to claim 1 starts broadcasting, which is characterized in that further include:
    When the time that first player and/or second player are not carried out any operation being more than preset time period, It is then more than first player and/or second player of the preset time period by the time for being not carried out any operation State be set as idle state.
  6. The accelerator 6. a kind of Online Video starts broadcasting characterized by comprising
    First player selection unit, for being searched from pre-set player pond when needing to preload Online Video Broadcast address player identical with the preloading broadcast address of Online Video, as the first player;Wherein, described to broadcast Putting includes: multiple players in device pond;
    First state setting unit is the buffering preloading Online Video for the current state when first player Start broadcasting head when, set the state of first player in buffering;When the current state of first player is sky It when not busy state, sets the state of first player in buffering, and triggers the buffering preloading Online Video;
    Second state set unit is in for the preloading Online Video for the current state when first player and broadcasts When putting middle, set the state of first player in broadcasting;
    Second player selection unit, for when needing to play Online Video to be played, state to be from the player pond Buffering neutralizes in multiple first players in playing, with searching the broadcasting of broadcast address and the Online Video to be played The identical player in location, as the second player;
    Third state setting unit, for being in buffering, then by second player when the state of second player State is set as in broadcasting, and is triggered and played the Online Video to be played;
    State maintenance unit, for being then to maintain broadcasting for second player in broadcasting when the state of second player It is constant to put state.
  7. The accelerator 7. Online Video according to claim 6 starts broadcasting, which is characterized in that further include:
    Third player selection unit finds broadcast address and the preloading online for working as from the player Chi Zhongwei When the identical player of the broadcast address of video, a player being in idle condition is chosen from the player pond, is made For third player;
    First updating unit, for the broadcast address of the third player to be updated to the broadcasting for preloading Online Video Address, and the state of the third player is updated in buffering;
    First trigger unit buffers the preloading Online Video for triggering.
  8. The accelerator 8. Online Video according to claim 6 starts broadcasting, which is characterized in that further include:
    4th player selection unit, for when needing to play Online Video to be played, if the state from the player pond It is neutralized in multiple first players in playing for buffering, does not find the broadcasting of broadcast address Yu Online Video to be played The identical player in address then arbitrarily chooses a broadcasting from the remaining player being in idle condition in the player pond Device, as the 4th player;
    Second updating unit, for the broadcast address of the 4th player to be updated to the broadcasting of Online Video to be played Location, and the state of the 4th player is updated in broadcasting;
    Second trigger unit starts to play for triggering playback interface.
  9. The accelerator 9. Online Video according to claim 6 starts broadcasting, which is characterized in that further include:
    4th state set unit is used for after the Online Video to be played stops playing, if the shape of second player State is still then to set idle state for the state of second player in broadcasting.
  10. The accelerated method 10. Online Video according to claim 6 starts broadcasting, which is characterized in that further include:
    5th state set unit, for being not carried out any operation when first player and/or second player It is then more than first broadcasting of the preset time period by the time for being not carried out any operation when time is more than preset time period The state of device and/or second player is set as idle state.
CN201811556367.6A 2018-12-19 2018-12-19 Online video playing acceleration method and device Active CN109413474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811556367.6A CN109413474B (en) 2018-12-19 2018-12-19 Online video playing acceleration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811556367.6A CN109413474B (en) 2018-12-19 2018-12-19 Online video playing acceleration method and device

Publications (2)

Publication Number Publication Date
CN109413474A true CN109413474A (en) 2019-03-01
CN109413474B CN109413474B (en) 2021-02-26

Family

ID=65460859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811556367.6A Active CN109413474B (en) 2018-12-19 2018-12-19 Online video playing acceleration method and device

Country Status (1)

Country Link
CN (1) CN109413474B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278452A (en) * 2019-06-24 2019-09-24 北京字节跳动网络技术有限公司 Video Acceleration of starting method, apparatus, storage medium, terminal and server
CN110636366A (en) * 2019-10-25 2019-12-31 百度在线网络技术(北京)有限公司 Video playing processing method and device, electronic equipment and medium
CN110913257A (en) * 2019-11-29 2020-03-24 广州市百果园信息技术有限公司 Video data playing method, device, equipment and storage medium
CN111935543A (en) * 2020-09-09 2020-11-13 北京搜狐新动力信息技术有限公司 Video playing method and device, electronic equipment and computer storage medium
CN112423099A (en) * 2020-11-23 2021-02-26 维沃移动通信(杭州)有限公司 Video loading method and device and electronic equipment
WO2021052197A1 (en) * 2019-09-17 2021-03-25 中兴通讯股份有限公司 Video playing method and apparatus, terminal and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060023789A1 (en) * 2004-07-27 2006-02-02 Fujitsu Limited Decoding device and decoding program for video image data
CN102724585A (en) * 2012-06-29 2012-10-10 Tcl集团股份有限公司 Preloading method and device for network video playing of terminal equipment
US20140178051A1 (en) * 2012-04-02 2014-06-26 JBF Interlude 2009 LTD - ISRAEL Systems and methods for loading more than one video content at a time
CN107690081A (en) * 2017-05-25 2018-02-13 腾讯科技(北京)有限公司 Video broadcasting method and device and storage medium, electronic installation
CN107888981A (en) * 2017-11-16 2018-04-06 北京小米移动软件有限公司 Audio frequency and video preload method, apparatus, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060023789A1 (en) * 2004-07-27 2006-02-02 Fujitsu Limited Decoding device and decoding program for video image data
US20140178051A1 (en) * 2012-04-02 2014-06-26 JBF Interlude 2009 LTD - ISRAEL Systems and methods for loading more than one video content at a time
CN102724585A (en) * 2012-06-29 2012-10-10 Tcl集团股份有限公司 Preloading method and device for network video playing of terminal equipment
CN107690081A (en) * 2017-05-25 2018-02-13 腾讯科技(北京)有限公司 Video broadcasting method and device and storage medium, electronic installation
CN107888981A (en) * 2017-11-16 2018-04-06 北京小米移动软件有限公司 Audio frequency and video preload method, apparatus, equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278452A (en) * 2019-06-24 2019-09-24 北京字节跳动网络技术有限公司 Video Acceleration of starting method, apparatus, storage medium, terminal and server
WO2021052197A1 (en) * 2019-09-17 2021-03-25 中兴通讯股份有限公司 Video playing method and apparatus, terminal and computer-readable storage medium
CN110636366A (en) * 2019-10-25 2019-12-31 百度在线网络技术(北京)有限公司 Video playing processing method and device, electronic equipment and medium
CN110913257A (en) * 2019-11-29 2020-03-24 广州市百果园信息技术有限公司 Video data playing method, device, equipment and storage medium
CN111935543A (en) * 2020-09-09 2020-11-13 北京搜狐新动力信息技术有限公司 Video playing method and device, electronic equipment and computer storage medium
CN112423099A (en) * 2020-11-23 2021-02-26 维沃移动通信(杭州)有限公司 Video loading method and device and electronic equipment

Also Published As

Publication number Publication date
CN109413474B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN109413474A (en) A kind of Online Video starts broadcasting accelerating method and device
US9779095B2 (en) User input-based play-list generation and playback system
US6721741B1 (en) Streaming media search system
TWI479883B (en) Television apparatus and operating method for application program thereof
CN106484858A (en) Hot Contents method for pushing and device
CN103686414B (en) Internet video playback method and device
CN104142828A (en) Application accelerating method and device
US20080147873A1 (en) Streaming delivery method and system, server system, terminal, and computer program
WO2001053994A2 (en) Streaming media search and playback system
CN104202658A (en) Method and system for playing video in groups
JP2003527710A (en) Method and system for selecting an item from a list displayed on a screen
JP2014176081A (en) Method for virtual channel management, multi-media reproduction system for network base having virtual channel and computer readable storage medium
CN104954872B (en) video downloading method, video playing device, mobile terminal and storage medium
CN103533439A (en) Multimedia file recommendation method and electronic equipment
CN108319708A (en) Video broadcasting method, device, storage medium and electronic equipment
CN106468994A (en) A kind for the treatment of method and apparatus of application program
WO2018093800A1 (en) Systems and methods for reducing download requirements
US9189547B2 (en) Method and apparatus for presenting a search utility in an embedded video
CN111031117B (en) Multimedia file downloading method and related device
CN106227406A (en) The display packing of application icon and device
CN102164305A (en) Video processing method and device and mobile communication terminal
CN105447197B (en) Video downloading processing method and device and intelligent terminal
CN102857820B (en) Channel management method, device and television set
CN110750743A (en) Animation playing method, device, equipment and storage medium
CN105915653B (en) Method and device for downloading media file

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