Summary of the invention
Embodiments of the invention provide a kind of video broadcasting method and electronic equipment, solved to play and recorded and can not easily lose, and the problem that is not easy to search, by when client is moved, obtain the address information of the last displaying video and broadcasting information deadline of video, call floating frame play control, according to the address information of video and broadcasting information deadline, at the continuous displaying video of player relaying corresponding to floating frame play control, recording user is watched video location so intuitively, and shortening user searches and plays writing time.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of video broadcasting method, comprising:
Receive client terminal start-up instruction;
According to described enabled instruction, in Web page loading data, obtain the address information of the last displaying video and broadcasting information deadline of described video of local cache;
Call floating frame play control, according to the address information of described video and described broadcasting information deadline, in player corresponding to described floating frame play control, show the document image of the last displaying video, and continue to play described video.
In conjunction with first aspect, in the first mode in the cards, before receiving the enabled instruction of described client, described method also comprises:
Close player instruction receiving, when stopping playing described video, read the address information of described video and the broadcasting deadline of described video;
The broadcasting of the address information of described video and described video is kept in described local cache deadline;
And the document image of described video corresponding to deadline is play in intercepting, is kept in described local cache.
The first mode in the cards in conjunction with first aspect, in the second mode in the cards, the described floating frame play control of calling, according to the address information of described video and described broadcasting information deadline, the document image that shows the last displaying video in player corresponding to described floating frame play control, and the described video of continuation broadcasting comprises:
Call described floating frame play control, according to described broadcasting, described in acquisition of information, play video interception corresponding to information deadline deadline;
Described video interception is presented in player corresponding to described floating frame play control;
Receive continue-to-play instruction, according to the address information of described video and described broadcasting information deadline, the document image of recording from described video interception starts to put described video in the continued broadcasting of described player relaying.
The second mode in the cards in conjunction with first aspect, in the third mode in the cards, the document image of the last displaying video comprises a plurality of video interception, described described video interception is presented in player corresponding to described floating frame play control, comprising:
Call a plurality of floating frame play control, each floating frame play control shows one of them video interception;
Or, call a floating frame play control, a floating frame play control, show described a plurality of video interception.
In conjunction with the third mode in the cards of first aspect, in the 4th kind of mode in the cards, described method also comprises:
Receive floating frame move;
If according to described floating frame move, described floating frame play control is moved in the shift position of preset range, described floating frame is switched to full window and play.
Second aspect, provides a kind of electronic equipment, comprising:
Receiving element, for receiving client terminal start-up instruction;
Acquiring unit, for according to described enabled instruction, in Web page loading data, obtains the address information of the last displaying video and broadcasting information deadline of described video of local cache;
Processing unit, be used for calling floating frame play control, according to the address information of described video and described broadcasting information deadline, in player corresponding to described floating frame play control, show the document image of the last displaying video, and continue to play described video.
In conjunction with second aspect, in the first mode in the cards, before receiving the enabled instruction of described client, described acquiring unit, also for closing player instruction receiving, while playing described video with termination, read the address information of described video and the broadcasting deadline of described video;
Also comprise: memory cell, for the broadcasting of the address information of described video and described video is kept to local cache deadline;
And the document image of described video corresponding to deadline is play in intercepting, is kept in local cache.
In conjunction with the first mode in the cards of second aspect, in the second mode in the cards, described processing unit specifically for:
Call described floating frame play control, according to described broadcasting, described in acquisition of information, play video interception corresponding to information deadline deadline;
Described video interception is presented in player corresponding to described floating frame play control;
Receive continue-to-play instruction, according to the address information of described video and described broadcasting information deadline, the document image of recording from described video interception starts to put described video in the continued broadcasting of described player relaying.
In conjunction with the second mode in the cards of second aspect, in the third mode in the cards, the document image of the last displaying video comprises a plurality of video interception, described processing unit specifically for:
Call a plurality of floating frame play control, each floating frame play control shows one of them video interception;
Or, call a floating frame play control, a floating frame play control, show described a plurality of video interception.
In conjunction with the third mode in the cards of second aspect, in the 4th kind of mode in the cards, described receiving element, also for receiving floating frame move;
Described processing unit, if also for according to described floating frame move, described floating frame play control is moved in the shift position of preset range, switches to described floating frame full window and plays.
The embodiment of the present invention provides a kind of video broadcasting method and electronic equipment, when receiving client terminal start-up instruction, according to enabled instruction, in Web page loading data, obtain the address information of the last displaying video and broadcasting information deadline of video of local cache, call floating frame play control, according to the address information of video and broadcasting information deadline, the document image that shows the last displaying video in player corresponding to floating frame play control, and continue displaying video, recording user is watched video location so intuitively, shortening user searches and plays writing time.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of video broadcasting method, as shown in Figure 1, comprising:
101, electronic equipment receives client terminal start-up instruction.
Wherein, electronic equipment can be the user terminals such as mobile phone or computer.Client for comprising of installing on this electronic equipment can displaying video and the client software of browsing page etc.When user need to start client when watching video or browsing page, can control etc. and to trigger electronic equipment and receive client terminal start-up instruction by mouse operation and control or touch screen, electronic equipment just starts client according to client terminal start-up instruction, with display client homepage in electronic equipment screen.
102, electronic equipment, according to enabled instruction, in Web page loading data, obtains the address information of the last displaying video and broadcasting information deadline of video of local cache.
Concrete, electronic equipment is after receiving client terminal start-up instruction, just the server corresponding with this client connects, from server, receive data to load client homepage, when loading this web data of homepage, can obtain the last address information of video and the broadcasting deadline of this video of playing from local cache, that is to say, electronic equipment once starts client and when watching video upper, if receive, close player instruction, while playing this video with termination, read the address information of this video and the broadcasting deadline of video, the broadcasting of the address information of video and video is kept in local cache deadline, so that while receiving client terminal start-up instruction next time, from local cache, obtain the address information of the last time in progress video while closing player and play deadline.In addition, can also intercept the document image of playing video corresponding to deadline, and this document image is kept in local cache, so that while starting client next time, with the form of the document image record that displays the play.
103, electronic equipment calls floating frame play control, according to the address information of video and broadcasting information deadline, shows the document image of the last displaying video, and continue displaying video in player corresponding to floating frame play control.
Wherein, floating frame is independent window movably.Concrete, when calling floating frame play control, according to playing video interception corresponding to acquisition of information broadcasting information deadline deadline, thereby video interception is presented in player corresponding to floating frame play control, when receiving continue-to-play instruction, for example, when user uses mouse to click this floating frame, according to the address information of video and broadcasting information deadline, the document image of recording from video interception starts at the continuous displaying video of player relaying, namely since last time, does not play continuation broadcasting deadline of video.
Wherein, the document image of the last displaying video can comprise a plurality of video interception, specifically can call a plurality of floating frame play control, each floating frame play control shows one of them video interception, and user can select one of them play control to start to continue to play intuitively; Or, call a floating frame play control, a floating frame play control, show a plurality of video interception, user can be by switching the mode of a plurality of video interception, the video that selection will be proceeded to watch.
Interchangeable, when electronic equipment gets the last time, watch the address information of video and play after information deadline, call floating frame play control, according to broadcasting information deadline and Preset Time acquisition of information, continue reproduction time information, wherein, continue reproduction time for playing the difference that deducts Preset Time information deadline, then, according to the address information of video and continuation reproduction time information, at the continuous displaying video of player relaying corresponding to floating frame control, like this, can be so that user is last time when continuing to watch do not play video, the story of a play or opera of video is had to a memory process, for example Preset Time length can be 2 minutes, also can be worth for other, here do not limit.
In addition, when the player of floating frame continues displaying video, its position in the current page of electronic equipment is position, the lower left corner, owing to being wicket broadcasting, like this, when user needs full window to continue to watch video, can be in screen floating frame, to switch to played in full screen, for electronic equipment, receive floating frame move, if according to floating frame move, while player plays control being moved in the shift position of preset range, floating frame is switched to full window and play.Wherein, in floating frame being switched to the implementation of full window broadcasting, not limiting mobile floating frame and realize, can be also other implementation, such as receiving, double-clicks instruction etc., 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, in Web page loading data, obtain the address information of the last displaying video and broadcasting information deadline of video of local cache, then call floating frame play control, according to the address information of video and broadcasting information deadline, the record that shows the last displaying video in player corresponding to floating frame play control, and continue displaying video, recording user is watched video location intuitively, shortening user searches and plays writing time.
The embodiment of the present invention provides a kind of video broadcasting method, as shown in Figure 2, comprising:
201, electronic equipment cuts out player instruction receiving, and when stopping displaying video, reads the address information of video and the broadcasting deadline of video.
Wherein, electronic equipment can be the user terminals such as mobile phone or computer.Client for comprising of installing on this electronic equipment can displaying video and the client of browsing page etc.
Concrete, if user just watches video in the video player of client, stop watching and closing video player, electronic equipment is receiving while cutting out player instruction, reads the current address information of video and the broadcasting deadline of video of playing of will stopping.For instance, the current S video of playing, user is when closing player, and be 45 minutes broadcasting deadline of S video, just in timer, reads the temporal information of 45 minutes, reads the broadcast address information of S video simultaneously.
202, electronic equipment is kept at the broadcasting of the address information of video and video in local cache deadline.
Concrete, electronic equipment receives closes player instruction, and got the address information of video and play after deadline, can be kept in local cache, upper once when user restarts client, can from local cache, read the address information of the video that the last time watches and play information deadline.Meanwhile, can also intercept the document image of playing video corresponding to deadline, and document image is kept in local cache, so that while continuing to play this video, start to continue to play from document image next time.
203, electronic equipment receives client terminal start-up instruction.
For instance, the client terminal start-up instruction here can trigger by the operation of button or touch screen the instruction that the client in mobile phone brings into operation for user in mobile phone, or can by mouse operation and control or touch screen, be controlled etc. and in computer, to be triggered the instruction that client brings into operation for user.
204, electronic equipment, according to enabled instruction, in Web page loading data, obtains the address information of the last displaying video and broadcasting information deadline of video of local cache.
Concrete, electronic equipment is after receiving client terminal start-up instruction, electronic equipment receives webpage from server corresponding to this client and loads data, for the then last video not playing in the player in client of closing for the last time continues to play, from local cache, read the last address information of video and broadcasting information deadline of video of playing.
For instance, what user's the last time was watched in the player of the client of computer is the TV play that name is called Q, Q TV play is not playing, user will close player, so computer equipment has just been preserved the address information of player plays Q video and has been play information deadline, for example playing deadline information is 45 minutes, when user restarts client operation so next time, computer equipment just can be known the video address that play last time and play deadline, so that the Q TV play that continuation does not play.
205, electronic equipment calls floating frame play control, according to broadcasting acquisition of information deadline of video, plays video interception corresponding to information deadline.
Concrete, electronic equipment is in Web page loading data, just can call floating frame play control, and according to broadcasting information deadline of video, can in this video data, obtain the video data of playing this time point of information deadline, and according to single-frame images, obtain the view data of this time point, form a rest image, namely the image of a lattice camera lens, like this, has just obtained playing the video interception of this time point of information deadline.
Exemplary, during the operation of the last startup of user client, during video player in closing client, playing deadline is 45 minutes, the image of the Q TV play that video player is play in the time of 45 minutes just switches to child's this picture of cryying, and upper once user, triggers electronic equipment again during running client, just can be according to the address information of Q video and broadcasting acquisition of information deadline the video data in the time of 45 minutes, be a single-frame images, be equivalent to a static video interception.
206, electronic equipment is presented at video interception in player corresponding to floating frame play control.
Wherein, the record of the last displaying video can, for a video interception, also can comprise a plurality of video interception.When the document image of supposing the last displaying video comprises a plurality of video interception, when client terminal start-up moves, can call a plurality of floating frame play control, each floating frame play control shows one of them video interception, that is to say, user is can be intuitively disposable checks a plurality of videographs that do not play of watching in a plurality of floating frame controls simultaneously; Or, can call a floating frame play control, a floating frame play control, show a plurality of video interception, user can select to proceed by the video interception in switching floating frame play control the video of broadcasting.
Exemplary, suppose user in client once operation process in, 5 different videos have been watched, and each video does not play and is just terminated broadcasting, in this case, can in electronic equipment, preset and a plurality ofly for playing video, not utilize floating frame play control to preserve broadcasting record, suppose that default 3 adopt floating frame to carry out recording played progress for not playing video, like this, in the process of last operation, watch 5 address information and broadcasting information deadline that do not play video are all carried out to local cache, then choose in chronological order last 3 watch do not play video, to play the address information of video according to 3 of finally watching and to play, by each being play to picture frame corresponding to deadline, be not presented in the player of floating frame play control deadline, here can be divided into 3 play control is presented at respectively in customer terminal webpage, namely show 3 floating frames, also may be displayed in the player of same play control, by instruction, select to switch 3 video interception in floating frame, so that selecting one of them video to trigger player, user continues to play, to user, provide the more convenient sheet path of seeing.
207, electronic equipment receives continue-to-play instruction.
Concrete, client is when starting and load homepage data, in the play control of floating frame, just shown the last progress picture that does not play video, play when deadline, corresponding single-frame images was presented in floating frame play control, if user wants to continue the video of watching this not play, just can trigger electronic equipment by mouse action and receive continue-to-play instruction, or operated and made electronic equipment obtain a continue-to-play instruction by touch screen, so that electronic equipment continues to play this video.
208, electronic equipment is according to the address information of video and broadcasting information deadline, and the document image of recording from video interception starts at the continuous displaying video of player relaying.
Concrete, when electronic equipment receives while continuing the continue-to-play instruction of displaying video for floating frame, just can from server corresponding to client, continue receiving video data according to the address information that does not play video, according to playing the document image that deadline, information was recorded from video interception, start to continue to put the inferior video that do not play in the continued broadcasting of player relaying simultaneously, like this, by floating frame recording of video, play the method for record and can show more intuitive video-see position to user, make user shorten and see sheet path when continuing to watch the video of playing record, start fast to watch.
Interchangeable, when electronic equipment is when calling floating frame play control, broadcasting information deadline and the Preset Time length that can be first play video according to the last time of local cache are obtained the reproduction time information that continues, the continuation reproduction time information is here the difference that broadcasting information deadline deducts Preset Time information, and then according to the address information of video and continuation reproduction time information, in player relaying continued broadcasting corresponding to floating frame, put this and do not play video.
For instance, be 50 minutes broadcasting deadline of the last video of playing of player in client, Preset Time information is 2 minutes, like this, the continuation reproduction time obtaining is just 48 minutes, the continuation reproduction time that does not namely play video is to play from the continuation that starts for the 48th minute of this video, like this, within 2 minutes, recall the time of the video story of a play or opera can to user, this situation can be when client brings into operation and load homepage data, just in player relaying continued broadcasting corresponding to floating frame, put, namely do not need to receive user's continue-to-play instruction, just in last time, watching first two minutes of video time starts to continue to play.
In addition, the display position of floating frame can be in preset range, for example can in the preset range in the lower right corner of customer terminal webpage, show, at this moment, the displaying video of floating frame is that wicket is play, when if user needs full window to watch video, can input instruction and carry out windows exchange, can be for example that electronic equipment receives floating frame move, if floating frame is moved in the shift position of another preset range according to floating frame move, floating frame play control being switched to full window plays, another preset range can be the upper left corner or other position of customer terminal webpage, here do not limit, namely by dragging floating frame, moved to and in another preset range, floating frame is switched to full window and play.Certainly, also can carry out switch window size by alternate manner, for example, receive and double-click instruction etc., not limit here.
The embodiment of the present invention provides a kind of video broadcasting method, by closing player instruction receiving, during with termination displaying video, read the address information of video and the broadcasting deadline of video, the broadcasting of the address information of video and video is kept in local cache deadline, after receiving client terminal start-up instruction, according to enabled instruction, in Web page loading data, from local cache, obtain the address information of the last displaying video and broadcasting information deadline of video, call floating frame play control, according to the address information of video and broadcasting information deadline, at the continuous displaying video of player relaying corresponding to floating frame play control, recording user is watched video location intuitively, shortening user searches and plays writing time.
The embodiment of the present invention provides a kind of electronic equipment 01, as shown in Figure 3, comprising:
Receiving element 011, for receiving client terminal start-up instruction.
Acquiring unit 012, for according to enabled instruction, in Web page loading data, obtains the address information of the last displaying video and broadcasting information deadline of video of local cache.
Processing unit 013 for calling floating frame play control, according to the address information of video and broadcasting information deadline, shows the document image of the last displaying video, and continues displaying video in player corresponding to floating frame play control.
Optionally, before the enabled instruction that receives client, acquiring unit 012, can also be for closing player instruction receiving, and when stopping displaying video, reads the address information of video and the broadcasting deadline of video;
As shown in Figure 4, also comprise: memory cell 014, for the broadcasting of the address information of video and video is kept to local cache deadline;
And the document image of video corresponding to deadline is play in intercepting, is kept in local cache.
Optionally, processing unit 013 can be specifically for:
Call floating frame play control, according to playing video interception corresponding to acquisition of information broadcasting information deadline deadline;
Video interception is presented in player corresponding to floating frame play control;
Receive continue-to-play instruction, according to the address information of video and broadcasting information deadline, the document image of recording from video interception starts at the continuous displaying video of player relaying.
Wherein, the document image of the last displaying video comprises a plurality of video interception, and processing unit 013 can be specifically for:
Call a plurality of floating frame play control, each floating frame play control shows one of them video interception;
Or, call a floating frame play control, a floating frame play control, show a plurality of video interception.
Optionally, receiving element 011, can also be for receiving floating frame move;
Processing unit, if also for according to floating frame move, floating frame play control is moved in the shift position of preset range, switches to floating frame full window and plays.
The embodiment of the present invention provides a kind of electronic equipment, when receiving client terminal start-up instruction, according to enabled instruction, in Web page loading data, obtain the address information of the last displaying video and broadcasting information deadline of video of local cache, call floating frame play control, according to the address information of video and broadcasting information deadline, the record that shows the last displaying video in player corresponding to floating frame play control, and continue displaying video, recording user is watched video location so intuitively, shortening user searches and plays writing time.
In the several embodiment that provide in the application, should be understood that disclosed equipment and method can realize by another way.For example, apparatus embodiments described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
In addition, in equipment and system in each embodiment of the present invention, each functional unit can be integrated in a processing unit, can be also that the independent physics of unit comprises, also can be integrated in a unit two or more unit.And each above-mentioned unit both can adopt the form of hardware to realize, and the form that also can adopt hardware to add SFU software functional unit realizes.
The all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, and aforesaid program can be stored in a computer read/write memory medium, and this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read Only Memory, be called for short ROM), the various media that can be program code stored such as random access memory (Random Access Memory is called for short RAM), magnetic disc or CD.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.