The present application is the US national stage of PCT/CN2016/085790 filed on Jun. 15, 2016, which claims the priority of the Chinese patent application No. CN201510730670.3 filed on Oct. 29, 2015, which application is incorporated herein by reference.
The present invention relates to a design method for sharing a video clip in real time.
As various devices including mobile phones are equipped with capabilities of network communication and video playing. People watch a large quantity of online videos for entertainment and obtaining information. With the rise of social platforms, sharing clips of videos during watching has gradually become an important manner for people to communicate messages and exchange feelings.
The foregoing video clip sharing is currently concentrated on two methods. In a first method, a viewer downloads a video, clips the video and then shares the video clip. In a second method, the viewer directly shares the entire video, together with time information of a clip.
For the first method, the viewer first needs to download to obtain a video including a clip, then clip, by using a video editing tool, the clip that needs to be shared, and then share the clip by using a social platform. Obviously, such a method takes a large quantity of time for the viewer to download. Further, the method can only be completed when the viewer knows professional knowledge such as video editing. Compared with an impulse of sharing the clip, this threshold is excessively high.
For the second method, the viewer first shares information about the entire video to a social platform. The time information of the clip needs to be simultaneously added. While a person with whom a message is shared first needs to locate the clip based on the time information of the clip during watching and then enjoys the shared video clip. Obviously, this manner simplifies the sharing of video by the viewer. However, the person with whom a message is shared needs to locate on the entire video. A complex operation quite easily reduces a watching motivation of the person with whom a message is shared, thereby reducing an actual effect of the sharing by the viewer.
Therefore, how to facilitate the viewer and the person with whom a message is shared at the same time and improve a communication effect based on a video clip is an urgent problem to be solved by those skilled in the art.
In view of the foregoing problem in the prior art, a main object consistent with the present invention is to resolve defects in the prior art. The present invention provides a design method for sharing a video clip in real time to facilitate one-click sharing by a viewer without any waiting, at the same time, the person with whom a message is shared can directly enjoy the clip, thereby improving the effect of communication and exchanging between the viewer and the person with whom a message is shared through the video clip.
The present invention provides a design method for sharing a video clip in real time, comprising the following steps:
S1: when finding an interesting clip when watching a video by a viewer, directly selecting to share the clip in a playing interface;
S2: sending a request to a video sharing service system by using a current moment as an end moment by a player, wherein request information comprises a video number and the end moment;
S3: accepting the request sent by the player, recording the video number and the end moment of the video that needs to be shared, calculating a start moment of the clip based on time length configuration of the shared clip, and returning a playable address comprising a sharing number after processing by the video sharing service system, wherein the address points to the video sharing service system;
S4: sending a sharing request to a social platform by the player, wherein the sharing request comprises the playable address comprising the sharing number that is returned in step S3, a video screenshot, and other necessary information such as a social platform identity;
S5: processing the sharing request in step S4 while notifying a person with whom a message is shared of a message by the social platform; and
S6: accessing the playable address comprising the sharing number by the person with whom a message is shared, and returning to a specified video clip from the start moment to the end moment in step S2 by the video sharing service system, so that the person with whom a message is shared directly starts to enjoy the clip.
The present invention has the following advantages and beneficial effects: The present invention provides a design method for sharing a video clip in real time. The method is to resolve, when a video clip is shared, complexity of clipping and then uploading a video to a viewer after the video is downloaded originally, or to resolve a problem caused when an entire video is shared and a person with whom a message is shared positions a clip when re-watching the video. Consequently, the viewer is unwilling to share the video clip or the person with whom a message is shared is unwilling to watch the video. A characteristic consistent with the present invention is that when finding a wonderful video clip, the viewer does not need to download and clip but to share the clip in a player in real time. After receiving a sharing message, the person with whom a message is shared does not need to look for a start moment of the clip in the entire video but to directly play from the clip. In this way, usage thresholds of both the viewer and the person with whom a message is shared are simultaneously lowered.
The following further describes the present invention with reference to the accompanying drawings and specific embodiments.
As shown in
In the present invention, an embodiment based on an Http Live Streaming (HLS) media protocol is as follows. Wherein a transport stream (TS) is a fragmented media file, and a time length of each fragment of TS file is S. This embodiment comprises the following steps.
Step one: When watching a video A and finding a wonderful video clip, a user selects to share the video clip, a current moment being T0.
Step two: A player sends a request to a video sharing service system, wherein the request comprises video information and an index N of a TS file being played at present.
Step three: The video sharing service system generates a sharing record and a corresponding m3u8 file based on information in the request in step 41 and returns a playable address comprising a sharing number. Specifically, the step comprises the following steps.
Step 1: The video sharing service system calculates an index M of the TS file corresponding to a start moment of the shared clip. The video sharing service system obtains a current clip length L based on preset configuration, the index M of the TS file corresponding to the start moment of the clip is equal to N−L/S−1, wherein L/S is an integer division and a remainder is rounded off. If M<0, take M=0.
Step 2: When the video A is a live video, the video sharing service system marks that the TS file from M to N is shared and referenced, preventing the TS file from M to N from being cleared up.
Step 3: The video sharing service system generates the m3u8 file comprising the Mth slice of TS to the Nth slice of TS and the corresponding sharing number, and returns the playable address comprising the sharing number to the player, wherein the address points to the video sharing service system.
Step 4: After receiving the playable address returned in step 3, the player sends a sharing request to a social platform, wherein the sharing request comprises the playable address returned in step 2, a video screenshot obtained by the player, and other necessary information such as a social platform identity.
Step 5: The social platform notifies a person with whom a message is shared of a sharing message of the video clip.
Step 6: The person with whom a message is shared accesses the playable address comprising the sharing number, a video service system returns the m3u8 file generated in step 3, the index starting the TS is M and the index ending the TS is N.
Step 7: A player of the person with whom a message is shared directly plays from the TS of the index of M according to the HLS protocol.
Finally, it should be noted that the foregoing embodiment is merely intended for describing the technical solutions consistent with the present invention instead of limiting the present invention. Although the present invention is described in detail with reference to the foregoing embodiment, those skilled in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiment, or make equivalent substitutions to some or all technical features thereof, without departing from the spirit and scope of the technical solutions according to the embodiments of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2015 1 0730670 | Oct 2015 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2016/085790 | 6/15/2016 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2017/071234 | 5/4/2017 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6774926 | Ellis | Aug 2004 | B1 |
20150074700 | Danovitz | Mar 2015 | A1 |
Number | Date | Country |
---|---|---|
103096182 | May 2013 | CN |
103647991 | Mar 2014 | CN |
104717559 | Jun 2015 | CN |
104796795 | Jul 2015 | CN |
104901945 | Sep 2015 | CN |
Number | Date | Country | |
---|---|---|---|
20190007743 A1 | Jan 2019 | US |