[summary of the invention]
For addressing the above problem, be necessary to provide a kind of and need not by third party software/service, can be in JICQ direct viewing treat the method for sharing video frequency in the instant messaging of sharing video frequency.
The method of sharing video frequency in a kind of instant messaging may further comprise the steps:
First user side is shared inlet entering video through video and is shared the interface;
Said first user side submits to user's video to share request, is sent to second user side;
Said second user side receives said video and shares request, from service end, obtains the video resource of treating sharing video frequency according to described request, and sets up and to treat that the video of sharing video frequency plays up line;
Said second user side uses said video to play up line and in instant communication windows, plays and treat sharing video frequency.
Preferably, said first user side also comprises the input information that receives the user after the entering video is shared the interface, searches for video resource corresponding with said user's input information and the step of showing Search Results according to user's input information from service end.
Preferably, said user's input information is the network address, and then first user side also comprises the step of the said network address being carried out integrity checking behind the network address that receives user's input; Or said user's input information is key word of the inquiry, and then said first user side also comprises the step that sensitive word is filtered behind the key word of the inquiry that receives user's input.
Preferably, said second user side obtains the step of treating sharing video frequency and comprises the network condition of obtaining second user side, according to the adaptively selected step of treating the video resource of sharing video frequency of said network condition.
Preferably; Also comprise after said first user side transmission video is shared request and obtain the video resource of treating sharing video frequency; Set up the said video of sharing video frequency of treating and play up line, play up line according to said video and in instant communication windows, play the said step of treating sharing video frequency.
Preferably, said first user side or second user side are play the step of treating sharing video frequency and are also comprised the step that video playback is controlled in instant communication windows, and said control comprises and suspends/continue, plays, stops and preserving.
A kind of instant communication client comprises the instant messaging module that provides based on the network communication services of text/hypertext form, also comprises:
Video is shared inlet module, shares the interface according to user's operation entering video;
The video resource acquisition module is shared the video that the interface obtains the user through said video and is shared request, and receiver, video shares request, obtains the video resource of treating sharing video frequency from service end according to described request;
Video is played up line and is set up module, sets up the said video of sharing video frequency of treating and plays up line;
The video playback module is used for using said video to play up line and plays the said sharing video frequency of treating at instant communication windows.
Preferably, said video resource acquisition module comprises:
Receiver module is used to receive user's input information;
Search module is searched for the video resource corresponding with said user's input information according to user's input information in the video resource storehouse of service end;
Display module is showed Search Results.
Preferably, the user's that said receiver module receives input information is the network address, and then said search module also is used for integrity checking is carried out in the network address; The user's that said receiver module receives input information is a key word of the inquiry, and then said search module is used for that also key word of the inquiry is carried out sensitive word and filters.
Preferably, also comprise obtain network condition, according to the adaptively selected network environment adaptation module of treating the video resource of sharing video frequency of network condition.
The method of sharing video frequency, instant communication client in the above-mentioned instant messaging; Second user side is after the video that receives first user side is shared request; From the video resource storehouse, obtain the video resource of treating sharing video frequency according to request; And set up and to treat that the video of sharing video frequency plays up line, in instant communication windows, use the video of setting up to play up line and play-over this and treat sharing video frequency.Such second user side need directly just can not watched through JICQ and treat sharing video frequency by third party software/service receiving after video is shared request, and it is more convenient to make video share.
[embodiment]
As shown in Figure 1, the method for sharing video frequency in a kind of instant messaging may further comprise the steps:
Step S10, first user side is shared inlet entering video through video and is shared the interface.Video is shared inlet and is arranged in the instant communication windows, in chat interface, clicks " video is shared " icon, can enter into video and share the interface.Share the inlet that the interface can provide the user inquiring video resource at video, and show the popular list of videos of sharing recently with the user recently.
Step S20, first user side submit to user's video to share request, are sent to second user side.In one embodiment; First user side and second user side carry out instant messaging through JICQ; First user side is shared to have selected in the interface at video and is shared some videos; Video is shared request and is then sent to second user side, and second user side can be good friend's client of first user, also can be and first user other member's clients in same group.
Step S30, the second user side receiver, video is shared request, from service end, obtains the video resource of treating sharing video frequency according to request, sets up and treats that the video of sharing video frequency plays up line.Second user side receives after video shares request; Can select whether to watch video; Confirming to watch video, then obtaining the video resource of video to be allocated from service end, the video resource that gets access to is being carried out playing up based on the DirectShow framework according to this request.Specifically comprise:, select suitable source filter according to the procotol that video resource uses; According to the video Container Format, selected separator separates audio frequency and video; According to video, audio coding form, selected suitable decoder carries out video and audio decoder; Use the Voice & Video renderer that image and sound are appeared at last.
Step S40, second user side is played up line according to the video of setting up and in instant communication windows, is play video to be shared.Adopt traditional video playback technology to set up video and play up line, then can in instant communication windows, can play-over and treat sharing video frequency based on DirectShow.In one embodiment, first user side sends video share request after, self also can obtain the video resource of treating sharing video frequency, sets up and treats that the video of sharing video frequency plays up line, plays up line according to video and in the instant messaging chat window, plays and treat sharing video frequency.Since the user is selected treat sharing video frequency after, receiver, video is shared requesting users and is sent video and share requesting users and can both in instant communication windows, play-over and treat sharing video frequency, need not by third party software/service, it is more convenient to make video share.
As shown in Figure 2, in another embodiment, the method for sharing video frequency in a kind of instant messaging, detailed process is following:
Step S100, first user side is shared inlet entering video through video and is shared the interface.Among this embodiment, first user side is shared the inlet that the user inquiring video resource is provided in the interface at video, and the user input query keyword and/or the network address can search corresponding video resource from service end.Preserved video resources a large amount of on the Internet in the video resource storehouse of service end; And safeguarded that a series of information relevant with video resource, these information comprise network address, content keyword, video code rate, image resolution ratio, thumbnail of video resource etc.
Wherein, the network address directly is used for subsequent video plays, and is the source of video playback; The content keyword uses during for user search, and video code rate, image resolution ratio can be used for the network self-adapting environment, and thumbnail is used for showing interface.Share at video and can show the popular list of videos of sharing recently with the user recently in the interface, thumbnail and the title that mainly can show video are convenient to the user and are selected.
Step S200, first user side receives user's input information.User's input information comprises the key word of the inquiry and the network address, and the user both can also can pass through the video resource in the page of the fan-in network address searching network address through the corresponding a plurality of video resources of input inquiry keyword search.
Step S300, first user side is searched for the video resource corresponding with user's input information according to user's input information from service end.When user's input information is the network address; Then first user side receives the video resource that directly returns the corresponding webpage in this network address behind the network address of user input; First user side also can carry out integrity checking to the network address before the corresponding video resource in Network Search address, for example completion procotol etc. automatically.When user's input information is key word of the inquiry; Behind the key word of the inquiry that receives user's input, can filter sensitive word; For example directly refuse to comprise the request of sharing of printed words such as pornographic, reaction, in the video resource storehouse of service end, search for corresponding video resource according to the key word of the inquiry of user's input then.
Step S400, first user side is showed Search Results.When from the video resource storehouse of service end, searching a plurality of video resource; Return the relevant information of the video resource that searches; And show with the form of tabulation, mainly can thumbnail and the video brief information of video resource be showed, be convenient to user selection.
Step S500, first user side submit to user's video to share request, and are sent to second user side.The user can select from the video resource tabulation that searches and treat sharing video frequency, and first user side is then shared user's video with request and sent to second user side.
Step S600, the second user side receiver, video is shared request, obtains the video resource of treating sharing video frequency according to request from service end, sets up and to treat that the video of sharing video frequency plays up line.In one embodiment, second user side receives after video shares request, can obtain the adaptively selected video resource of network condition of second user side.Network condition is the network condition that the user uses, and the for example network bandwidth, time-delay, packet loss etc. are selected the video resource of suitable user network situation according to the code check and the image resolution ratio of video resource.For example, network environment low to the network bandwidth, that time-delay is long, packet loss is high is then selected the video resource that video code rate is low and image resolution ratio is all lower; Otherwise, select video code rate and image resolution ratio than higher video resource.Can guarantee that like this user is watching when treating sharing video frequency, video playback with level and smooth, fully satisfies the user experience demand more continuously.
After getting access to the video resource of treating sharing video frequency, set up and to treat that the video of sharing video frequency plays up line, as stated, adopts traditional video playback technology realization based on DirectShow.
Step S700, second user side use to set up plays up line and in instant communication windows, plays and treat sharing video frequency.In one embodiment; Foundation treat sharing video frequency play up line after; Can offer user video control inlet, second user side can be controlled video playback through this inlet, controls the broadcast of video comprise suspending/continue, play, stop and preservation etc.
As shown in Figure 3, a kind of instant communication client comprises that instant messaging module 10, video share inlet module 20, video resource acquisition module 30, video and play up line and set up module 40 and video playback module 50.Wherein:
Instant messaging module 10 users provide the network communication services based on text/hypertext form, and the user can carry out instant messaging through other members in instant messaging module 10 and good friend or the group.
Video is shared inlet module 20 and is used for sharing the interface according to user's operation entering video.In one embodiment, video is shared inlet and is arranged in the instant communication windows, in chat interface, clicks " video is shared " icon, can enter into video and share the interface.Share the inlet that the interface can provide the user inquiring video resource at video, and show the popular list of videos of sharing recently with the user recently.
Video resource acquisition module 30 is used for sharing the video that the interface obtains the user through video and shares request, and receiver, video shares request, obtains the video resource of treating sharing video frequency according to request from service end.
In one embodiment; First user can share the selected sharing video frequency of treating in the list of videos of having showed at the interface at video; And select to share this and treat sharing video frequency, then the instant communication client of first user use shares first user's video with the instant communication client that request sends to second user.Second user can be first user's good friend or be in the member of same group with first user.The instant communication client that second user uses receives first user's video and shares request, obtains the video resource of treating sharing video frequency from service end according to this request.
Video resources a large amount of on the Internet has been preserved in the video resource storehouse 60 of service end, and has safeguarded a series of information relevant with video resource, comprises the network address, content keyword, video code rate, image resolution ratio and the thumbnail etc. of video resource.Wherein: the network address directly is used for subsequent video plays, and is the source of video playback; The content keyword uses during for user search, and video code rate, image resolution ratio can be used for the network self-adapting environment, and thumbnail is used for showing interface.Share at video and can show the popular list of videos of sharing recently with the user recently in the interface, mainly can show thumbnail and title, be convenient to the user and select.
In one embodiment, video is shared the inlet that the interface also provides the user inquiring video resource, comprises the network address of input inquiry keyword and input video resource.As shown in Figure 4, video resource acquisition module 30 comprises receiver module 310, search module 320 and display module 330, wherein:
Receiver module 310 is used to receive user's input information.User's input information comprises the key word of the inquiry and the network address, and the user both can also can pass through the video resource in the page of the fan-in network address searching network address through the corresponding a plurality of video resources of input inquiry keyword search.
Search module 320 is used for searching for the video resource corresponding with user's input information according to user's input information in the video resource storehouse 60 of service end.
In one embodiment; When the user's who receives when receiver module 310 input information is the network address; Search module 320 also is used for integrity checking is carried out in the network address; For example automatic completion procotol etc. is searched for the corresponding video resource according to the network address of user's input then in the video resource storehouse 60 of service end.When the user's who receives when receiver module 310 input information is key word of the inquiry; Search module 320 also is used for the keyword of user's input is carried out the sensitive word filtration; For example directly refuse to comprise the request of sharing of printed words such as pornographic, reaction, in video resource storehouse 60, search for the corresponding video resource according to the key word of the inquiry of user's input then.
Display module 330 is used to show Search Results.When from the video resource storehouse 60 of service end, searching a plurality of video resource; Return the relevant information of the video resource that searches; And show with the form of tabulation, mainly can thumbnail and the video brief information of video resource be showed, be convenient to user selection.
Video is played up line and is set up module 40 and be used to obtain and treat sharing video frequency, sets up and treats that the video of sharing video frequency plays up line.Can adopt traditional video playback technology to realize, specifically comprise:, select suitable source filter according to the procotol that video resource uses based on DirectShow; According to the video Container Format, selected separator separates audio frequency and video; According to video, audio coding form, selected suitable decoder carries out video and audio decoder; Use the Voice & Video renderer that image and sound are appeared at last.
Video playback module 50 is used for playing treats sharing video frequency.Adopt traditional video playback technology to set up video and play up line, then can in instant communication windows, play-over video to be shared based on DirectShow.Because after the user selectes and treats sharing video frequency; Video is shared the instant communication client that request sends to other users; Instant communication client is shared after request gets access to the video resource of treating sharing video frequency from video resource storehouse 60 according to video; Treating sharing video frequency sets up its video and plays up line; Then in instant communication windows, play-over and treat sharing video frequency, need not just can make the user watch same video with its good friend or other instant communication users by third party software/service, it is more convenient to make video share.In addition, video playback module 50 also can be used for video playback is controlled, and controls the broadcast of video comprise suspending/continue, play, stop and preservation etc.
In another embodiment, as shown in Figure 5, instant communication client also comprises network self-adapting module 70, is used to obtain network condition, according to the adaptively selected video resource of treating sharing video frequency of network condition.Network condition is the network condition that the user uses, and the for example network bandwidth, time-delay, packet loss etc. are selected the video resource of suitable user network situation according to the code check and the image resolution ratio of video resource.For example, network environment low to the network bandwidth, that time-delay is long, packet loss is high is then selected the video resource that video code rate is low and image resolution ratio is all lower; Otherwise, select video code rate and image resolution ratio than higher video resource.Can guarantee that like this user is watching when treating sharing video frequency, video playback with level and smooth, fully satisfies the user experience demand more continuously.
The above embodiment has only expressed several kinds of execution modes of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the present invention's design, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with accompanying claims.