Summary of the invention
The embodiment of the invention discloses a kind of method, device and application server of displaying video, be used to user that the playlist of video frequency program consistent with the subject content of video to be played in multiple video website is provided, to simplify the operation of user's inter-network station Switch Video, promote user's experience effect.
For achieving the above object, the embodiment of the invention discloses a kind of method of displaying video, comprising:
According to user's operation, play the video on the first webpage in the first website;
Send inquiry request to application server, wherein, described inquiry request is carried the link information of described the first webpage;
Receive the inquiry response that described application server returns, wherein, described inquiry response carries the playlist of described video, and described playlist at least comprises the link information of described the first webpage and the link information of second webpage of described video in the second website;
Show described playlist to user, so that user selects broadcast source to watch described video by playlist.
Preferably, described according to user's operation, play the video on the first webpage in the first website, comprising:
According to user's operation, send the request of playing described video to the server of the first webpage;
Receive the source code of described first webpage of the server transmission of described the first webpage;
According to the source code of described the first webpage, play described video.
Preferably, described according to the source code of described the first webpage, play described video, comprising:
Load the default player of described the first webpage;
According to the source code of described the first webpage, in described default player, play described video.
Preferably, described show described playlist to user after, if user by described playlist, selects to watch the described video on the second webpage in the second website, described method also comprises:
Load default player;
Server to the second webpage sends the request of playing described video;
Receive the source code of described second webpage of the server transmission of described the second webpage;
According to the source code of described the second webpage, in described default player, play described video.
Preferably, described according to the source code of described the first webpage, play described video, comprising:
Load default player;
According to the source code of described the first webpage, in described default player, play described video.
Preferably, described show described playlist to user after, if user by described playlist, selects to watch the described video on the second webpage in the second website, described method also comprises:
Server to the second webpage sends the request of playing described video;
Receive the source code of described second webpage of the server transmission of described the second webpage;
According to the source code of described the second webpage, in described default player, play described video.
Preferably, describedly show described many websites playlist to user, comprising:
Send described playlist to described default player;
Call described default player, show the described playlist receiving to user.
Preferably, describedly show described playlist to user, comprising:
By described playlist with the window that floats, the embedded list of webpage, or show to user in default player.
For achieving the above object, the embodiment of the invention discloses a kind of device of displaying video, described device comprises:
Video playback module, for according to user's operation, plays the video on the first webpage in the first website;
Inquiry request sending module, for sending inquiry request to application server, wherein, described inquiry request is carried the link information of described the first webpage;
Inquiry response receiver module, for receiving the inquiry response that described application server returns, wherein, described inquiry response carries the playlist of described video, and described playlist at least comprises the link information of described the first webpage and the link information of second webpage of described video in the second website;
Playlist display module, for show described playlist to user, so that user selects broadcast source to watch described video by playlist.
Preferably, described video playback module, comprising:
Playing request sends submodule, for according to user's operation, sends the request of playing described video to the server of the first webpage;
Source code receives submodule, the source code of described the first webpage sending for receiving the server of described the first webpage;
Video playback submodule, for according to the source code of described the first webpage, plays described video.
Preferably, described video playback submodule, comprising:
The first player loading unit, for loading the default player of described the first webpage;
Described video for according to the source code of described the first webpage, is play in the first video playback unit in described default player.
Preferably, described the first player loading unit, also for after showing described playlist at described playlist display module to user, if user is by described playlist, selection is watched in the situation of the described video on the second webpage in the second website, loads default player;
Described playing request sends submodule, also sends the request of playing described video for the server to the second webpage;
Described source code receives submodule, also for receiving the source code of described the second webpage that the server of described the second webpage sends;
Described video also, for according to the source code of described the second webpage, is play in described the first video playback unit in described default player.
Preferably, described video playback submodule, comprising:
The second player loading unit, for loading default player;
Described video for according to the source code of described the first webpage, is play in the second video playback unit in described default player.
Preferably, described playing request sends submodule, also for after showing described playlist at described playlist display module to user, if user is by described playlist, selection is watched in the situation of the described video on the second webpage in the second website, sends the request of playing described video to the server of the second webpage;
Described source code receives submodule, also for receiving the source code of described the second webpage that the server of described the second webpage sends;
Described video also, for according to the source code of described the second webpage, is play in described the second video playback unit in described default player.
Preferably, described playlist display module, comprising:
Playlist sends submodule, for sending described playlist to described default player;
Playlist is shown submodule, for calling described default player, shows the described playlist receiving to user.
Preferably, described playlist display module, specifically for by described playlist with the window that floats, the embedded list of webpage, or show to user in default player.
For achieving the above object, the embodiment of the invention discloses a kind of application server, comprising:
Inquiry request receiver module, the inquiry request sending for receiving client, wherein, described inquiry request is carried the link information of the first webpage;
Playlist determination module, be used for according to the link information of described the first webpage, determine the playlist of video on described the first webpage, wherein, described playlist at least comprises the link information of described the first webpage and the link information of second webpage of described video in the second website;
Playlist sending module, for sending described playlist to client.
Preferably, described playlist determination module, comprising:
The first video labeling is determined submodule, for according to the link information of described the first webpage, determines the mark of video on described the first webpage;
The first playlist is determined submodule, for according to the mark of described video, in default video information storehouse, determines the playlist of described video.
Preferably, described playlist determination module, comprising:
Video information word bank is determined submodule, for according to the link information of described the first webpage, in default video information storehouse, determine the video information word bank that this link information is corresponding, wherein, in described default video information storehouse, at least comprise a video information word bank;
The second video labeling is determined submodule, at determined video information word bank, determines the mark of the video on described the first webpage;
The second playlist is determined submodule, for according to the mark of described video, in each video information word bank, determines the playlist of described video.
Preferably, the mark of described video, comprising: the title of described video, the keyword of the title of described video, or the index value of described video.
As seen from the above, in this programme, in the time browsing video to be played, receive many websites playlist information corresponding to video to be played that application server is determined according to inquiry request, this many websites playlist information, for user's inter-network station Switch Video operation provides video link information.Compared with prior art, when application this programme carries out video switch, in current page, can realize inter-network station video switch by many websites playlist information, and determine to be switched video without transferring to other video website, simple to operate, promote user's experience effect.
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, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The schematic flow sheet of the method for a kind of displaying video that Fig. 1 provides for the embodiment of the present invention, the method comprises:
S101: according to user's operation, play the video on the first webpage in the first website.
Along with developing rapidly of video website, user can or have the application access video website of browser function by browser, watches video.
In an embodiment of the present invention, based on user's operation, browser or the application with browser function can be opened some websites, play user and ask the video of watching.
Optionally, above-mentioned user's operation, can be that user clicks the Play button/icon on above-mentioned the first webpage, and can be also user opens above-mentioned the first webpage by browser or the application with browser function.
S102: send inquiry request to application server.
Wherein, inquiry request is carried the link information of above-mentioned the first webpage.
S103: receive the inquiry response that described application server returns, wherein, this inquiry response carries the playlist of above-mentioned video, and above-mentioned playlist at least comprises the link information of above-mentioned the first webpage and the link information of second webpage of above-mentioned video in the second website.
In an embodiment of the present invention, application server can be browser or the server with the application of browser function.
In practical application, application server can comprise a default database, in this default database, can, according to the mark of video, store the link information of this video place webpage in different video website.
Optionally, the mark of video can be keyword of video name or video name etc.For example, the name of video is called: " Homeland Security ", and A, B, tri-video website of C provide respectively 3 these TV play of collection, in default database, being designated of this video " Homeland Security ", this video is in A, B, tri-video website of C, and the link information of place webpage is respectively:
www.A.com/1.html、www.A.com/2.html、www.A.com/3.html、
www.B.com/1.html、www.B.com/2.html、www.B.com/3.html、
www.C.com/1.html、www.C.com/2.html、www.C.com/3.html。
Optionally, the mark of described video, can also be the index value of video, and for example, the index value that name is called the video of " Homeland Security " is: 123.According to this index value, can inquire about the link information of corresponding video place webpage.
Application server receives after inquiry request, parses the link information of first webpage at the video place that user watches from this inquiry request, and the mark of searching corresponding video according to the link information of this first webpage in default database; According to the video labeling obtaining, again in default database, inquire about, inquire the mark consistent with the mark of video, and the link information of the corresponding webpage of this mark is integrated, generate playlist.
In a preferred embodiment of the present invention, above-mentioned default database can comprise at least one subdata base, and different subdata bases is stored respectively the link information of the webpage of different video website.In each subdata base, can be according to the mark of video, store the link information of this video place webpage.In this realization, if receive inquiry request, can first the link information of the first webpage be parsed, according to the link information of the first webpage, in the subdata base of the first website, search the video labeling corresponding to link information of the first webpage; And then according to video labeling, in each subdata base, inquire about the link information that obtains corresponding webpage.
For example, application server receives after inquiry request, the link information that obtains the first webpage through resolving is: www.A.com/1.html, in subdata base corresponding to A website, inquire about, obtain the video labeling corresponding to link information of the first webpage, and then according to this video labeling, in each subdata base, inquire about the link information of corresponding webpage, and generate playlist.
In addition, in application server, also can not comprise default database, when application server receives after inquiry request, obtain the link information of the first website by resolving inquiry request, and further according to the link information of this first website, obtain the mark of the video that user watches from network side, then search for according to being identified in each video website of this video, obtain the link information of this video place webpage in different video website, and generate playlist according to these link informations.
S104: show described playlist to user, so that user selects broadcast source to watch above-mentioned video by playlist.
Optionally, as shown in Figure 2, in a specific embodiment of the present invention, above-mentioned S101 can comprise:
S101A: according to user's operation, send the request of playing described video to the server of the first webpage.
S101B: the source code that receives the first webpage of the server transmission of described the first webpage.
Each video website can provide multitude of video to user, and due to the restriction of hard-disc storage space, server performance, user geographical position etc. condition, these videos need be stored in respectively in different servers.In actual application, if stored the server failure of a certain video, this video can be transferred in other servers and stored.
In view of the foregoing; conventionally can generate different webpages for different video; and the link information of its video is included in the source code of webpage; what present to user is the link information of this video place webpage; and this link information is generally constant; and in the time that the link information of video changes; only in the source code of this webpage, change the link information of this video; user still can continue to access this webpage by the link information of this webpage and watch video, has improved so to a certain extent user's experience effect.
S101C: according to the source code of described the first webpage, play described video.
In practical application, according to the source code of the first webpage, when displaying video, can first resolve the source code of this first webpage, obtain the link information of video, and in player, carry out video playback according to this link information.
Wherein, in player, carry out video playback according to link information, Ke Yishi:
Browser or the application with browser function first send to player by the link information of video, and player, according to the link information of this video, obtains the data of this video and the broadcasting of decoding from the server of the first webpage;
Also can be: browser or the application with browser function first obtain the data of this video from the server of the first webpage according to the link information of video, again the data of this video are sent to player, player is by the video data the receiving broadcasting of decoding.
Optionally, above-mentioned player can be the default player of the first webpage, or above-mentioned player is default player.
Concrete, in the source code of the first webpage except the link information that comprises video, can also comprise the information relevant to the default player of this webpage, for example, link information of default player etc., therefore, according to the source code of the first webpage, when displaying video, can first load the default player of the first webpage, again according to this source code, displaying video in default player.
In addition, in default player, when displaying video, without the default player that loads the first webpage, preset player and directly load.According to the source code of the first webpage, when displaying video, according to the source code of the first webpage, displaying video in default player.
After showing many websites playlist to user, user can pass through playlist, selects to watch this video on the second webpage in the second website.
When the video in above-mentioned broadcasting the first webpage is while playing in the default player of the first webpage, user selects to watch this video on the second webpage, need first load default broadcasting, and video in above-mentioned broadcasting the first webpage when playing in default player, now, without reloading again default player, directly in default player, play this video in the second webpage.
In default player, play this video in the second webpage, specifically can comprise: first send the request of playing this video to the server of the second webpage; After the source code of the second webpage sending at the server that receives the second webpage, according to this source code, in default player, play this video.
Optionally, in S104, show playlist to user, can be by playlist with the window that floats, the embedded list of webpage, or show to user in default player.Certainly, in practical application, show that to user the specific implementation of playlist can determine as the case may be.
Concrete, show playlist to user in default player time, can comprise: browser or the application with browser function be first to default player transmission playlist, then call default player, show the playlist receiving to user.
This playlist can be that browser or the application with browser function send to default player, can be also that application server directly sends to default player.
Adopt the technical scheme of the embodiment of the present invention, in the time that user watches video, can, by sending inquiry request to application server, obtain the link information of this video place webpage in multiple websites, so that user selects broadcast source to watch above-mentioned video by playlist.Compared with prior art, when application this programme carries out video switch, can realize the video switch at inter-network station by playlist, and without the page being transferred to other video website, simple to operate, promote user's experience effect.
The structural representation of the device of a kind of displaying video that Fig. 3 provides for the embodiment of the present invention, this device comprises:video playback module 301, inquiryrequest sending module 302, inquiryresponse receiver module 303 andplaylist display module 304.
Wherein,video playback module 301, for according to user's operation, plays the video on the first webpage in the first website;
Inquiryrequest sending module 302, for sending inquiry request to application server, wherein, described inquiry request is carried the link information of described the first webpage;
Inquiryresponse receiver module 303, for receiving the inquiry response that described application server returns, wherein, described inquiry response carries the playlist of described video, and described playlist at least comprises the link information of described the first webpage and the link information of second webpage of described video in the second website;
Playlist display module 304, for show described playlist to user, so that user selects broadcast source to watch described video by playlist.
Optionally, as shown in Figure 4, in a specific embodiment of the present invention, above-mentionedvideo playback module 301, can comprise: playing request sendssubmodule 3011, source code receivessubmodule 3012 andvideo playback submodule 3013.
Wherein, playing request sendssubmodule 3011, for according to user's operation, sends the request of playing described video to the server of the first webpage;
Source code receivessubmodule 3012, the source code of described the first webpage sending for receiving the server of described the first webpage;
Video playback submodule 3013, for according to the source code of described the first webpage, plays described video.
Concrete, describedvideo playback submodule 3013 can comprise: the first player loading unit and the first video playback unit (not shown).
Wherein, the first player loading unit, for loading the default player of described the first webpage;
Described video for according to the source code of described the first webpage, is play in the first video playback unit in described default player.
Concrete, described the first player loading unit, also for after showing described playlist at described playlist display module to user, if user is by described playlist, selection is watched in the situation of the described video on the second webpage in the second website, loads default player;
Described playing request sends submodule, also sends the request of playing described video for the server to the second webpage;
Described source code receives submodule, also for receiving the source code of described the second webpage that the server of described the second webpage sends;
Described video also, for according to the source code of described the second webpage, is play in described the first video playback unit in described default player.
Concrete, describedvideo playback submodule 3013 can comprise: the second player loading unit and the second video playback unit (not shown).
Wherein, the second player loading unit, for loading default player;
Described video for according to the source code of described the first webpage, is play in the second video playback unit in described default player.
Concrete, described playing request sends submodule, also for after showing described playlist at described playlist display module to user, if user is by described playlist, selection is watched in the situation of the described video on the second webpage in the second website, sends the request of playing described video to the server of the second webpage;
Described source code receives submodule, also for receiving the source code of described the second webpage that the server of described the second webpage sends;
Described video also, for according to the source code of described the second webpage, is play in described the second video playback unit in described default player.
Concrete, describedplaylist display module 304, can comprise: playlist sends submodule and playlist is shown submodule (not shown).
Wherein, playlist sends submodule, for sending described playlist to described default player;
Playlist is shown submodule, for calling described default player, shows the described playlist receiving to user.
Concrete, described playlist display module, specifically for by described playlist with the window that floats, the embedded list of webpage, or show to user in default player.
Adopt the technical scheme of the embodiment of the present invention, in the time that user watches video, can, by sending inquiry request to application server, obtain the link information of this video place webpage in multiple websites, so that user selects broadcast source to watch above-mentioned video by playlist.Compared with prior art, when application this programme carries out video switch, can realize the video switch at inter-network station by playlist, and without the page being transferred to other video website, simple to operate, promote user's experience effect.
The structural representation of a kind of application server that Fig. 5 provides for the embodiment of the present invention, comprising: inquiryrequest receiver module 501,playlist determination module 502 andplaylist sending module 503.
Wherein, inquiryrequest receiver module 501, the inquiry request sending for receiving client, wherein, described inquiry request is carried the link information of the first webpage;
Playlist determination module 502, be used for according to the link information of described the first webpage, determine the playlist of video on described the first webpage, wherein, described playlist at least comprises the link information of described the first webpage and the link information of second webpage of described video in the second website;
Playlist sending module 503, for sending described playlist to client.
Concrete, describedplaylist determination module 502, can comprise: the first video labeling determines that submodule and the first playlist determine submodule (not shown).
Wherein, the first video labeling is determined submodule, for according to the link information of described the first webpage, determines the mark of video on described the first webpage;
The first playlist is determined submodule, for according to the mark of described video, in default video information storehouse, determines the playlist of described video.
Concrete, describedplaylist determination module 502, can comprise: video information word bank determines that submodule, the second video labeling determine that submodule and the second playlist determine submodule (not shown).
Wherein, video information word bank is determined submodule, for according to the link information of described the first webpage, in default video information storehouse, determine the video information word bank that this link information is corresponding, wherein, in described default video information storehouse, at least comprise a video information word bank;
The second video labeling is determined submodule, at determined video information word bank, determines the mark of the video on described the first webpage;
The second playlist is determined submodule, for according to the mark of described video, in each video information word bank, determines the playlist of described video.
Concrete, the mark of described video, comprising: the title of described video, the keyword of the title of described video, or the index value of described video.
Adopt the technical scheme of the embodiment of the present invention, application server obtains the playlist of video on the first webpage according to the link information of the first webpage, this playlist provides the link information of this video in multiple websites, user can carry out video switch by this playlist between different web sites, and without the page being transferred to other video website, simple to operate, promote user's experience effect.
For device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method execution mode is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in computer read/write memory medium, here the alleged storage medium obtaining, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.