Invention content
A kind of video broadcasting method of the embodiment of the present invention offer and electronic equipment, solving broadcasting record cannot be easy to lose
The problem of losing, and being not easy to search, by when client is run, obtaining the last address information for playing video and regarding
The broadcasting deadline information of frequency calls floating frame play control, according to the address information of video and plays deadline letter
Breath puts video in the corresponding player relaying continued broadcasting of floating frame play control, can intuitively record user's viewing in this way and regard
Frequency position shortens user and searches the broadcasting record time.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, a kind of video broadcasting method is provided, including:
Receive client terminal start-up instruction;
According to the enabled instruction, while loading web data, obtains the last of local cache and play video
Address information and the video broadcasting deadline information;
Floating frame play control is called, according to the address information of the video and the broadcasting deadline information,
Shown in the corresponding player of the floating frame play control it is the last play the record image of video, and continue to play institute
State video.
With reference to first aspect, in the first mode in the cards, before the enabled instruction for receiving the client,
The method further includes:
Receiving close player instruction, with terminate play the video when, read the video address information and
The broadcasting deadline of the video;
The broadcasting deadline of the address information of the video and the video is stored in the local cache;
And interception plays the record image of the deadline corresponding video, is stored in the local cache.
With reference to first aspect the first mode in the cards, in second of mode in the cards, the calling
Floating frame play control, according to the address information of the video and the broadcasting deadline information, in the floating frame
Shown in the corresponding player of play control it is the last play the record image of video, and continue to play the video include:
The floating frame play control is called, deadline is played according to described in the broadcasting deadline acquisition of information
The corresponding video interception of information;
Include in the corresponding player of the floating frame play control by the video interception;
Continue-to-play instruction is received, according to the address information of the video and the broadcasting deadline information, from described
Start to put the video in player relaying continued broadcasting at the record image that video interception is recorded.
Second of mode in the cards with reference to first aspect, it is the last in the third mode in the cards
Play video record image include multiple video interceptions, it is described by the video interception include the floating frame play control
In the corresponding player of part, including:
Multiple floating frame play control, each floating frame play control are called to show one of video interception;
Alternatively, calling a floating frame play control, the multiple video is shown in a floating frame play control
Sectional drawing.
The third mode in the cards with reference to first aspect, in the 4th kind of mode in the cards, the method
Further include:
Receive floating frame move;
If according to the floating frame move, the floating frame play control is moved to the movement of preset range
In position, then the floating frame is switched to full window and played.
Second aspect provides a kind of electronic equipment, including:
Receiving unit, for receiving client terminal start-up instruction;
Acquiring unit, for obtaining the nearest of local cache while loading web data according to the enabled instruction
The broadcasting deadline information of the primary address information and the video for playing video;
Processing unit is cut for calling floating frame play control according to the address information of the video and described play
Only temporal information shows the last record figure for playing video in the corresponding player of the floating frame play control
Picture, and continue to play the video.
In conjunction with second aspect, in the first mode in the cards, before the enabled instruction for receiving the client,
The acquiring unit is additionally operable to receiving closing player instruction, when with the termination broadcasting video, reads the video
The broadcasting deadline of address information and the video;
Further include:Storage unit, for preserving the broadcasting deadline of the address information of the video and the video
In local cache;
And interception plays the record image of the deadline corresponding video, is stored in local cache.
In conjunction with the first mode in the cards of second aspect, in second of mode in the cards, the processing
Unit is specifically used for:
The floating frame play control is called, deadline is played according to described in the broadcasting deadline acquisition of information
The corresponding video interception of information;
Include in the corresponding player of the floating frame play control by the video interception;
Continue-to-play instruction is received, according to the address information of the video and the broadcasting deadline information, from described
Start to put the video in player relaying continued broadcasting at the record image that video interception is recorded.
It is the last in the third mode in the cards in conjunction with second of mode in the cards of second aspect
The record image for playing video includes multiple video interceptions, and the processing unit is specifically used for:
Multiple floating frame play control, each floating frame play control are called to show one of video interception;
Alternatively, calling a floating frame play control, the multiple video is shown in a floating frame play control
Sectional drawing.
In conjunction with the third mode in the cards of second aspect, in the 4th kind of mode in the cards, the reception
Unit is additionally operable to receive floating frame move;
The processing unit, if being additionally operable to according to the floating frame move, by the floating frame play control
It is moved in the shift position of preset range, then the floating frame is switched to full window plays.
A kind of video broadcasting method of offer of the embodiment of the present invention and electronic equipment, when receiving client terminal start-up instruction, root
According to enabled instruction, while loading web data, obtains the last address information for playing video of local cache and regard
The broadcasting deadline information of frequency calls floating frame play control, according to the address information of video and plays deadline letter
Breath, shows the record image of the last broadcasting video in the corresponding player of floating frame play control, and continues to play
Video can intuitively record user and watch video location in this way, shorten user and search the broadcasting record time.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of video broadcasting method, as shown in Figure 1, including:
101, electronic equipment receives client terminal start-up instruction.
Wherein, electronic equipment can be the user terminals such as mobile phone or computer.Client is the packet installed on the electronic equipment
Include the client software that can be played video and browse webpage etc..When user needs to start client to watch video or browsing net
When page, it the triggering electronic equipment such as can manipulate by mouse operation and control or touch screen and receive client terminal start-up instruction, electronic equipment just root
It is instructed according to client terminal start-up and starts client, to show client homepage in electronic equipment screen.
102, electronic equipment obtains the last time of local cache according to enabled instruction while loading web data
Play the broadcasting deadline information of the address information and video of video.
Specifically, electronic equipment is after receiving client terminal start-up instruction, just server corresponding with the client connects,
It, can be from local cache while loading this web data of homepage from server reception data to load client homepage
Obtain the broadcasting deadline of the address information and the video of the last video played, that is to say, that electronic equipment is upper
One-shot client and when watching video closes player instruction if receiving, and when playing the video to terminate, reading should
The address information of video and the broadcasting deadline of video, the broadcasting deadline of the address information of video and video is stored in
In local cache, when in order to receive client terminal start-up instruction next time, the last close is obtained from local cache and is broadcast
It puts the address information of video being played on when device and plays deadline.Deadline correspondence is played further, it is also possible to intercept
Video record image, and the record image is stored in local cache, when in order to start client next time, with note
The form display for recording image plays record.
103, electronic equipment calls floating frame play control, according to the address information of video and plays deadline letter
Breath, shows the record image of the last broadcasting video in the corresponding player of floating frame play control, and continues to play
Video.
Wherein, floating frame is moveable independent window.Specifically, when calling floating frame play control, according to
It plays deadline acquisition of information and plays the corresponding video interception of deadline information, to include in floating window by video interception
In the corresponding player of mouth play control, when receiving continue-to-play instruction, such as user clicks the floating using mouse
When window, according to the address information of video and deadline information is played, is being broadcast since the record image that video interception is recorded
It puts device relaying continued broadcasting and puts video, that is, continue to play since the deadline that last time does not play video.
Wherein, the last record image for playing video may include multiple video interceptions, can specifically call multiple
Floating frame play control, each floating frame play control show that one of video interception, user can be selected intuitively
One of play control starts to continue to play;Alternatively, calling a floating frame play control, played in a floating frame
Control shows that multiple video interceptions, user can be by way of switching multiple video interceptions, and selection will continue viewing
Video.
Alternatively, when electronic equipment gets the address information of the last viewing video and plays deadline information
Afterwards, floating frame play control is called, reproduction time letter is continued according to broadcasting deadline information and preset time acquisition of information
Breath, wherein it is the difference for broadcasting deadline subtracting preset time information to continue reproduction time, then, according to the address of video
Information and continuation reproduction time information put video, in this way, can make in the corresponding player relaying continued broadcasting of floating frame control
User continue to watch last time do not play video when, to the plot of video, there are one recall process, such as predetermined time period
It can be 2 minutes, or other values do not limit here.
In addition, when the player of floating frame continues to play video, the position in the current page of electronic equipment
For lower-left Angle Position, wicket is played due to being, in this way, when user needs full window to continue to watch video, it can be in screen
Middle floating frame for electronic equipment, receives floating frame move, if according to floating to be switched to played in full screen
Floating frame is then switched to by window move when being moved to player plays control in the shift position of preset range
Full window plays.Wherein, in floating frame to be switched to the realization method that full window plays, mobile floating frame is not limited
It realizes, or other realization methods, such as receive and double-click instruction etc., it does not limit here.
The embodiment of the present invention provides a kind of video broadcasting method, after receiving client terminal start-up instruction, according to enabled instruction,
While loading web data, the last address information for playing video of local cache and the broadcasting cut-off of video are obtained
Temporal information then calls floating frame play control, according to the address information of video and plays deadline information, is floating
The record of the last broadcasting video is shown in the corresponding player of window play control, and continues to play video, it can be intuitive
Ground records user and watches video location, shortens user and searches the broadcasting record time.
The embodiment of the present invention provides a kind of video broadcasting method, as shown in Fig. 2, including:
201, electronic equipment is receiving closing player instruction, when playing video to terminate, reads the address letter of video
The broadcasting deadline of breath and video.
Wherein, electronic equipment can be the user terminals such as mobile phone or computer.Client is the packet installed on the electronic equipment
Include the client that can be played video and browse webpage etc..
Specifically, if user just watches video in the video player of client, to terminate viewing and close video and broadcast
Device is put, electronic equipment reads the address information for the video that currently terminate broadcasting and regard when receiving closing player instruction
The broadcasting deadline of frequency.For example, S-video is currently played, when closing player, the broadcasting of S-video is cut user
Only the time is 45 minutes, 45 minutes temporal informations is just read in timer, while reading the broadcast address information of S-video.
202, the broadcasting deadline of the address information of video and video is stored in local cache by electronic equipment.
Specifically, electronic equipment, which receives, closes player instruction, and the address information of video is got and has played and cut
Only after the time, it can save it in local cache, it, can be from local cache when user next time restarts client
The address information and broadcasting deadline information of the middle video for reading last viewing.When playing cut-off at the same time it can also intercept
Between corresponding video record image, and by record image be stored in local cache, regarded in order to continue to play this next time
When frequency, from recording image continue to play.
203, electronic equipment receives client terminal start-up instruction.
For example, client terminal start-up instruction here can be that user is triggered in mobile phone by button or contact action
The instruction that client in mobile phone brings into operation, which can be either user, to be manipulated etc. by mouse operation and control or touch screen in computer
The instruction that triggering client brings into operation.
204, electronic equipment obtains the last time of local cache according to enabled instruction while loading web data
Play the broadcasting deadline information of the address information and video of video.
Specifically, electronic equipment is after receiving client terminal start-up instruction, electronic equipment is from the corresponding service of the client
Device receives webpage and loads data, and what is do not played in the player closed in client for then last last time regards
Frequency continues to play, and the address information of the last video played and the broadcasting deadline letter of video are read from local cache
Breath.
For example, what user's the last time was watched in the player of the client of computer is the TV play of entitled Q,
Q TV plays are not playing, and user will close player, and then computer equipment just saves the address of player plays Q videos
Information and broadcasting deadline information, such as it is 45 minutes to play deadline information, then user restarts visitor next time
When family end is run, computer equipment can know the video address that last time plays and play deadline, in order to continue to play
The Q TV plays not played.
205, electronic equipment calls floating frame play control, is played and is cut according to the broadcasting deadline acquisition of information of video
The only corresponding video interception of temporal information.
Specifically, electronic equipment is while loading web data, so that it may to call floating frame play control, and according to
The broadcasting deadline information of video can obtain the video for playing this time point of deadline information in the video data
Data, and the image data at this time point is obtained according to single-frame images, form a static image, that is, the figure of a lattice camera lens
Picture, in this way, just having obtained playing the video interception at this time point of deadline information.
Illustratively, it when user's last time starts client operation, in the video player in closing client, plays
Deadline is 45 minutes, and image of the Q TV plays that video player plays at 45 minutes is just switched to child and crys this
One picture, when user next time triggers electronic equipment and runs client again, so that it may with according to the address information of Q videos and broadcasting
Video data when deadline acquisition of information 45 minutes is put, is a single-frame images, is equivalent to a static video interception.
206, video interception is included in the corresponding player of floating frame play control by electronic equipment.
Wherein, the last record for playing video can be a video interception, can also include multiple video interceptions.
Assuming that when the last record image for playing video includes multiple video interceptions, when client terminal start-up is run, can call
Multiple floating frame play control, each floating frame play control show one of video interception, that is to say, that Yong Huke
Intuitively disposably to check multiple videographs not played of a upper viewing simultaneously in multiple floating frame controls;
Alternatively, a floating frame play control can be called, multiple video interceptions, user are shown in a floating frame play control
The video that continue to play can be selected by switching the video interception in floating frame play control.
Illustratively, it is assumed that during user once runs on the client, have viewed 5 different videos, and every
One video, which does not all play, is just terminated broadcasting, in this case, can preset in the electronic device multiple for not playing
Complete video plays record using floating frame play control to preserve, it is assumed that default 3 for not playing video using floating
Window carrys out recording played progress, in this way, during last operation to 5 address informations for not playing video of viewing and
It plays deadline information and all carries out local cache, that then chooses last 3 viewings in chronological order does not play video, with
It will be to each broadcasting deadline pair according to 3 address informations for not playing video and broadcasting deadline finally watched
The picture frame answered is shown in the player of floating frame play control, can be divided into 3 play control here and is respectively displayed on
In customer terminal webpage, that is, 3 floating frames of display, it can also be shown in the player of the same play control, pass through
3 video interceptions in instruction selection switching floating frame so that user select one of video triggering player after
Continued broadcasting is put, and is provided the user with and more convenient is seen piece path.
207, electronic equipment receives continue-to-play instruction.
Specifically, when starting and loading homepage data, one is just shown in the play control of floating frame for client
The secondary progress picture for not playing video plays deadline corresponding single-frame images and is shown in floating frame play control
When, if user wants to continue to watch the video not played, so that it may be received with triggering electronic equipment by mouse action
Continue-to-play instruction, or make electronic equipment obtain a continue-to-play instruction by contact action, in order to electronic equipment after
The video is put in continued broadcasting.
208, electronic equipment is according to the address information and broadcasting deadline information of video, the record recorded from video interception
Start to put video in player relaying continued broadcasting at image.
Specifically, when electronic equipment receive for floating frame continue play video continue-to-play instruction when, so that it may
To continue to video data from the corresponding server of client according to the address information for not playing video, while according to broadcasting
Deadline information from the record image that video interception is recorded continue to put in player relaying continued broadcasting and time do not play
Video, in this way, can show more intuitive video-see position to user by the method that floating frame records video playing record
It sets so that user shortens when continuing viewing and playing the video of record sees piece path, quickly starts to watch.
It alternatively, can be first according to upper the one of local cache when electronic equipment is when calling floating frame play control
The secondary broadcasting deadline information for not playing video and predetermined time period, which obtain, continues reproduction time information, continuation here
Reproduction time information be deadline information is played to subtract the difference of preset time information, and then according to the address information of video and
Continue reproduction time information, putting this in the corresponding player relaying continued broadcasting of floating frame does not play video.
For example, the broadcasting deadline for the video that the player last time in client plays is 50 minutes, in advance
If temporal information is 2 minutes, in this way, obtained continuation reproduction time is just 48 minutes, that is, the continuation of video is not played
Reproduction time be continue to play since the 48th minute of the video, in this way, can give user 2 minutes recall video plot when
Between, such case can be when client brings into operation and loads homepage data, just in the corresponding player of floating frame
Continue to play, that is, the continue-to-play instruction of user need not be received, just watched opening for first two minutes for video time in last time
Beginning continues to play.
In addition, the display location of floating frame can within a preset range, such as it can be in the lower right corner of customer terminal webpage
Preset range in display, at this moment, the broadcasting video of floating frame is that wicket plays, if user needs full window viewing video
When, instruction can be inputted and carry out windows exchange, such as can be that electronic equipment receives floating frame move, if according to floating
Floating frame is moved in the shift position of another preset range by window move, then is switched floating frame play control
It is played for full window, another preset range can be the upper left corner or the other positions of customer terminal webpage, not limit here, also
It is to be moved in another preset range floating frame being switched to full window broadcasting by dragging floating frame.Certainly,
It can also carry out switch window size otherwise, such as receive and double-click instruction etc., not limit here.
The embodiment of the present invention provides a kind of video broadcasting method, by receiving closing player instruction, is broadcast with terminating
When putting video, the address information of video and the broadcasting deadline of video are read, by the broadcasting of the address information of video and video
Deadline is stored in local cache, after receiving client terminal start-up instruction, according to enabled instruction, in load web data
Meanwhile the broadcasting deadline information of the last address information and video for playing video is obtained from local cache, it calls
Floating frame play control according to the address information of video and plays deadline information, is corresponded in floating frame play control
Player relaying continued broadcasting put video, can intuitively record user watch video location, shorten user search play record when
Between.
The embodiment of the present invention provides a kind of electronic equipment 01, as shown in figure 3, including:
Receiving unit 011, for receiving client terminal start-up instruction.
Acquiring unit 012, for obtaining the nearest of local cache while loading web data according to enabled instruction
The broadcasting deadline information of the primary address information and video for playing video.
Processing unit 013 according to the address information of video and plays deadline for calling floating frame play control
Information shows the last record image for playing video in the corresponding player of floating frame play control, and after continued broadcasting
Put video.
Optionally, before the enabled instruction for receiving client, acquiring unit 012 can be also used for receiving closing
Player instructs, and when playing video to terminate, reads the address information of video and the broadcasting deadline of video;
As shown in figure 4, further including:Storage unit 014 was used for the broadcasting deadline of the address information of video and video
It is stored in local cache;
And interception plays the record image of deadline corresponding video, is stored in local cache.
Optionally, processing unit 013 can be specifically used for:
Floating frame play control is called, plays that deadline information is corresponding regards according to deadline acquisition of information is played
Frequency sectional drawing;
Include in the corresponding player of floating frame play control by video interception;
Continue-to-play instruction is received, according to the address information of video and deadline information is played, is recorded from video interception
Record image at start player relaying continued broadcasting put video.
Wherein, the last record image for playing video includes multiple video interceptions, and processing unit 013 can be used specifically
In:
Multiple floating frame play control, each floating frame play control are called to show one of video interception;
Alternatively, calling a floating frame play control, multiple video interceptions are shown in a floating frame play control.
Optionally, receiving unit 011 can be also used for receiving floating frame move;
Floating frame play control is moved to default model by processing unit if being additionally operable to according to floating frame move
In the shift position enclosed, then floating frame is switched to full window and played.
The embodiment of the present invention provides a kind of electronic equipment, when receiving client terminal start-up instruction, according to enabled instruction, is adding
While contained network page data, the broadcasting deadline of the last address information and video for playing video of local cache is obtained
Information calls floating frame play control, according to the address information of video and plays deadline information, is played in floating frame
The record of the last broadcasting video is shown in the corresponding player of control, and continues to play video, can intuitively be remembered in this way
Family viewing video location is employed, shortens user and searches the broadcasting record time.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the unit, only
Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit
Letter connection can be electrical, machinery or other forms.
In addition, in equipment and system in each embodiment of the present invention, each functional unit can be integrated in a processing
Can also be that the independent physics of each unit includes in unit, it can also be during two or more units be integrated in one unit.
And the form realization of hardware had both may be used in above-mentioned each unit, and the form that hardware add SFU software functional unit can also be used real
It is existing.
Realize that all or part of step of above method embodiment can be completed by the relevant hardware of program instruction, it is preceding
The program stated can be stored in a computer read/write memory medium, and when being executed, execution includes above method reality to the program
The step of applying;And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory(Read Only Memory, referred to as
ROM), random access memory(Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store
The medium of program code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.