技术领域technical field
本发明涉及通信领域中的信息处理技术,特别涉及视频分享的方法、装置。The invention relates to information processing technology in the communication field, in particular to a video sharing method and device.
背景技术Background technique
随着互联网技术的发展,人们日常的娱乐方式也变得越来越丰富。其中,通过终端观看电影或者电视剧正是人们生活中比较常见的休闲娱乐方式。人们在观看电影或者电视剧时,往往会通过发送弹幕的方式与其他观影者进行沟通以及交流观影感受。用户在观看视频或者电影时,当观看到比较喜欢的视频画面或者比较喜欢的视频情节时,往往都会期望将该些视频画面或者精彩的视频片段分享给自己的好友,以便自己的好友也可以欣赏到这些视频画面或者精彩的视频片段。With the development of Internet technology, people's daily entertainment methods have become more and more abundant. Among them, watching movies or TV dramas through terminals is a relatively common way of leisure and entertainment in people's lives. When people watch movies or TV shows, they often communicate with other movie viewers and exchange their viewing experience by sending barrage. When a user watches a video or a movie, when watching a favorite video picture or a favorite video plot, they often expect to share these video pictures or wonderful video clips with their friends so that their friends can also enjoy them. to these video frames or great video clips.
然而在现有技术中,在进行视频分享时,往往无法控制弹幕的分享。分享视频的用户也无法在弹幕标注出自己所喜欢的几条弹幕。接收视频的用户也无法在弹幕中找到分享用户所期望分享的那几条弹幕,可见,由于视频弹幕的特殊性,现有技术中在进行视频分享或者视频图片分享时,往往无法对用户所喜爱的弹幕一并进行分享。However, in the prior art, it is often impossible to control the sharing of barrage during video sharing. Users who share videos cannot mark their favorite bullet chats on the bullet chat. The user receiving the video cannot find the barrage that the sharing user expects to share in the barrage. It can be seen that due to the particularity of the video barrage, it is often impossible to share the video or picture in the prior art. The barrage that users like is shared together.
发明内容Contents of the invention
为解决现有存在的技术问题,本发明实施例主要提供一种视频分享的方法和装置,能够解决在视频分享时不能将特定的弹幕一并分享的问题。In order to solve the existing technical problems, the embodiments of the present invention mainly provide a video sharing method and device, which can solve the problem that a specific barrage cannot be shared together during video sharing.
本发明实施例的技术方案是这样实现的:The technical scheme of the embodiment of the present invention is realized like this:
本发明实施例提供了一种视频分享的方法,所述方法包括:An embodiment of the present invention provides a video sharing method, the method comprising:
根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;According to the selection instruction of the barrage, determine the first barrage to be shared on the image frame displayed in the video;
隐藏所述第一弹幕以外的第二弹幕;Hide the second bullet chat other than the first bullet chat;
获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前视频展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;Obtaining the video information related to the shared image and the image frame; wherein, the shared image includes: the image frame displayed in the current video and the first barrage reserved to be displayed on the image frame;
分享所述分享图像和所述视频信息。The shared image and the video information are shared.
上述技术方案中,所述方法还包括:In the above technical solution, the method also includes:
根据弹幕的触发指令,进入弹幕选择界面,其中,所述弹幕选择界面用于接收选择所述第一弹幕的选择操作。According to the trigger instruction of the bullet chat, the bullet chat selection interface is entered, wherein the bullet chat selection interface is used to receive a selection operation for selecting the first bullet chat.
上述技术方案中,所述方法还包括:In the above technical solution, the method also includes:
标记所述第一弹幕;mark the first barrage;
所述隐藏所述第一弹幕以外的第二弹幕,包括:The hiding of the second barrage other than the first barrage includes:
隐藏未被标记的第二弹幕。Hide unmarked second barrage.
上述技术方案中,Among the above technical solutions,
所述标记所述第一弹幕,包括:The marking of the first barrage includes:
为所述第一弹幕设置弹幕分享标识;Set the barrage sharing logo for the first barrage;
所述方法还包括:The method also includes:
将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。Sending the corresponding relationship between the bullet chatting sharing identifier and the first bullet chatting to the server.
本发明实施例还提供了一种视频分享的方法,其特征在于,所述方法包括:The embodiment of the present invention also provides a video sharing method, characterized in that the method includes:
接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;Receive shared image and video information; wherein, the shared image includes: an image frame and the first barrage displayed on the image frame;
根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;According to the video information, determine the playback progress of the image frame in the corresponding video;
从所述播放进度处开始播放所述视频。Playing the video starts from the playback progress.
上述技术方案中,Among the above technical solutions,
所述视频信息包括:第一弹幕的弹幕分享标识及所述视频的链接地址;The video information includes: the first barrage sharing logo and the link address of the video;
所述根据所述视频信息,确定所述图像帧在相应的视频中的播放进度,包括:The determining the playback progress of the image frame in the corresponding video according to the video information includes:
将所述视频信息发送给后台服务器;Send the video information to the background server;
接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;receiving the first barrage returned by the background server according to the barrage sharing identifier and the video returned according to the link address;
根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。According to the link address, the video is played, and the first barrage is displayed when the video plays the image frame.
本发明实施例还提供了一种视频分享的分享端,所述分享端包括:确定模块、隐藏模块、获取模块和分享模块;其中,The embodiment of the present invention also provides a sharing terminal for video sharing, the sharing terminal includes: a determination module, a hiding module, an acquisition module and a sharing module; wherein,
所述确定模块,用于根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;The determining module is used to determine the first bullet chat to be shared on the image frame of the video display according to the selection instruction of the bullet chat;
所述隐藏模块,用于隐藏所述第一弹幕以外的第二弹幕;The hiding module is used to hide a second bullet chat other than the first bullet chat;
所述获取模块,用于获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;The acquiring module is configured to acquire shared images and video information related to the image frames; wherein, the shared images include: currently displayed image frames and the first barrage remaining displayed on the image frames;
所述分享模块,用于分享所述分享图像和所述视频信息。The sharing module is used for sharing the shared image and the video information.
上述技术方案中,所述分享端还包括:控制模块和弹幕选择界面;In the above technical solution, the sharing terminal further includes: a control module and a barrage selection interface;
所述控制模块,用于根据弹幕的触发指令,进入弹幕的选择界面;The control module is used to enter the selection interface of the barrage according to the trigger instruction of the barrage;
所述弹幕选择界面,用于接收作用于弹幕的操作,响应于根据所述操作生成的选择弹幕的操作指令。The bullet chatting selection interface is configured to receive an operation acting on the bullet chatting, and respond to an operation instruction for selecting the bullet chatting generated according to the operation.
上述技术方案中,所述分享端还包括:In the above technical solution, the sharing terminal also includes:
标记模块,用于标记所述第一弹幕;A marking module, configured to mark the first barrage;
所述隐藏模块,具体用于隐藏未被标记的第二弹幕。The hiding module is specifically used to hide the unmarked second barrage.
上述技术方案中,Among the above technical solutions,
所述标记模块,还用于为所述第一弹幕设置弹幕分享标识:The marking module is also used to set the barrage sharing logo for the first barrage:
所述分享模块,还用于将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。The sharing module is further configured to send the corresponding relationship between the bullet chat sharing identifier and the first bullet chat to the server.
本发明实施例还提供了一种视频分享的接收端,所述接收端包括:接收模块、播放进度确定模块和播放模块;其中,The embodiment of the present invention also provides a receiving end for video sharing, the receiving end includes: a receiving module, a playback progress determination module, and a playback module; wherein,
所述接收模块,用于接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;The receiving module is configured to receive shared image and video information; wherein, the shared image includes: an image frame and a first barrage displayed on the image frame;
所述播放进度确定模块,用于根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;The playback progress determination module is configured to determine the playback progress of the image frame in the corresponding video according to the video information;
所述播放模块,用于从所述播放进度处开始播放所述视频。The playing module is configured to start playing the video from the playing progress.
上述技术方案中,所述播放进度确定模块,还用于将所述视频信息发送给后台服务器;所述视频信息包括:第一弹幕的弹幕分享标识及所述视频的链接地址;In the above technical solution, the playback progress determination module is also used to send the video information to the background server; the video information includes: the first barrage sharing logo of the first barrage and the link address of the video;
接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;receiving the first barrage returned by the background server according to the barrage sharing identifier and the video returned according to the link address;
根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。According to the link address, the video is played, and the first barrage is displayed when the video plays the image frame.
本发明实施例还提供了一种视频分享设备,The embodiment of the present invention also provides a video sharing device,
通信接口,用于与其他设备进行通信;A communication interface for communicating with other devices;
存储器,用于存储能够在处理器上运行的计算机程序;memory for storing computer programs capable of running on the processor;
处理器,分别与所述通信接口及所述存储介质相连,用于通过所述计算机程序至少可执行权利要求下述方法的步骤:A processor, respectively connected to the communication interface and the storage medium, configured to at least execute the steps of the following method according to the claims through the computer program:
根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;According to the selection instruction of the barrage, determine the first barrage to be shared on the image frame displayed in the video;
隐藏所述第一弹幕以外的第二弹幕;Hide the second bullet chat other than the first bullet chat;
获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前视频展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;Obtaining the video information related to the shared image and the image frame; wherein, the shared image includes: the image frame displayed in the current video and the first barrage reserved to be displayed on the image frame;
分享所述分享图像和所述视频信息。The shared image and the video information are shared.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现上述技术方案中的步骤。An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the steps in the above technical solutions when executed by a processor.
本发明实施例还提供了一种视频分享设备,The embodiment of the present invention also provides a video sharing device,
通信接口,用于与其他设备进行通信;A communication interface for communicating with other devices;
存储器,用于存储能够在处理器上运行的计算机程序;memory for storing computer programs capable of running on the processor;
处理器,分别与所述通信接口及所述存储介质相连,用于通过所述计算机程序至少可执行下述方法的步骤:A processor, respectively connected to the communication interface and the storage medium, configured to at least execute the steps of the following method through the computer program:
接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;Receive shared image and video information; wherein, the shared image includes: an image frame and the first barrage displayed on the image frame;
根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;According to the video information, determine the playback progress of the image frame in the corresponding video;
从所述播放进度处开始播放所述视频。Playing the video starts from the playback progress.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时如上所述方法的步骤。An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described above are provided.
本发明实施例所提供的视频分享的方法、分享端和接收端,在进行视频分享时,可以隐藏待分享的第一弹幕以外的第二弹幕,在当前播放的视频展示的图像帧上仅展示用户选择的待分享的第一弹幕。在进行视频分享时,将当前的图像帧与展示的第一弹幕一并分享给接收端。接收端能够根据接收的分享图像和与分享图像相关的视频信息,找到分享图片中的图像帧在相应的视频中的播放进度,进而在找到的播放进度播放该视频,视频在播放过程中可以展示分享的第一弹幕。从而可以达到对视频以及视频的弹幕灵活地分享的目的。The video sharing method, the sharing terminal and the receiving terminal provided by the embodiments of the present invention can hide the second bullet screen other than the first bullet screen to be shared during video sharing, and display it on the image frame of the currently played video Only the first barrage selected by the user to be shared is displayed. When video sharing is performed, the current image frame and the displayed first barrage are shared to the receiving end. The receiving end can find out the playback progress of the image frame in the shared image in the corresponding video according to the received shared image and the video information related to the shared image, and then play the video at the found playback progress, and the video can be displayed during playback The first barrage to share. In this way, the purpose of flexible sharing of videos and barrage of videos can be achieved.
附图说明Description of drawings
图1为本发明实施例中分享端的视频分享方法的基本流程示意图;FIG. 1 is a schematic flow diagram of a video sharing method at a sharing terminal in an embodiment of the present invention;
图2为本发明实施例中视频播放界面的示意图;FIG. 2 is a schematic diagram of a video playback interface in an embodiment of the present invention;
图3为本发明实施例中弹幕选择界面的示意图;3 is a schematic diagram of a barrage selection interface in an embodiment of the present invention;
图4为本发明实施例中视频分享界面的示意图;4 is a schematic diagram of a video sharing interface in an embodiment of the present invention;
图5为本发明实施例中接收端的视频分享方法的基本流程示意图;FIG. 5 is a schematic flowchart of a video sharing method at a receiving end in an embodiment of the present invention;
图6为本发明实施例中视频分享方法的具体流程示意图;FIG. 6 is a schematic flowchart of a video sharing method in an embodiment of the present invention;
图7为本发明实施例中视频分享的分享端的基本结构示意图;7 is a schematic diagram of the basic structure of a sharing terminal for video sharing in an embodiment of the present invention;
图8为本发明实施例中视频分享的接收端的基本结构示意图;FIG. 8 is a schematic diagram of the basic structure of a receiving end of video sharing in an embodiment of the present invention;
图9为本发明实施例中视频分享设备的结构示意图;FIG. 9 is a schematic structural diagram of a video sharing device in an embodiment of the present invention;
图10为本发明实施例中另一种视频分享设备的结构示意图。Fig. 10 is a schematic structural diagram of another video sharing device in an embodiment of the present invention.
具体实施方式Detailed ways
用户在观看电影或者电视剧过程中,当用户发现该电影或者视频中有些值得分享的视频画面或者视频片段时,往往不单是由于该段视频片段或者视频画面比较喜欢,还可能是在这一视频片段或者视频画面中发现了几条自己喜欢的或者与自己感想相似的弹幕。因此,在进行视频分享时,往往希望对自己喜欢的弹幕与视频一并分享。When the user is watching a movie or TV series, when the user finds some video frames or video clips in the movie or video that are worth sharing, it is often not only because the video clip or video frame is liked, but also because the video clip Or I found a few bullet screens that I like or that are similar to my feelings in the video screen. Therefore, when sharing a video, you often want to share your favorite barrage with the video.
本发明实施例提供一种视频分享的方案,当一个用户账号通过播放地址链接将某一视频分享给其他用户账号后,其他用户账号的接收设备检测到用户点击该链接后,会从该链接下载视频,并播放该视频,即可使用户观看该视频以及该视频中所有的弹幕。然而在观看该视频的过程中,各个不同的用户账号可能针对该视频发表了很多弹幕,这就导致接收到该视频的用户在观看时无法在这些弹幕中找到分享用户所期望分享的那几条弹幕。The embodiment of the present invention provides a video sharing solution. When a user account shares a certain video to other user accounts through the playback address link, the receiving device of other user accounts will download the video from the link after detecting that the user clicks on the link. video, and playing the video, the user can watch the video and all the barrage in the video. However, in the process of watching the video, various user accounts may have published a lot of barrages for the video, which leads to the user receiving the video being unable to find in these barrages what the sharing user expects to share. A few bullet screens.
本发明实施例提供一种视频截图的分享方案,分享端在截图时可以根据弹幕的选择操作显示选择的弹幕,进而在截图的过程中将弹幕一并截取。然而这样的问题在于,当弹幕较多的时候,一面方,密集的弹幕可能会遮盖分享端所分享的弹幕;另外一方面,接收端的用户也无法在这些弹幕标注出自己喜欢的弹幕。An embodiment of the present invention provides a sharing solution for video screenshots. When taking a screenshot, the sharing terminal can display the selected bullet screen according to the selection operation of the bullet screen, and then capture the bullet screen together during the screenshot. However, the problem with this is that when there are many barrages, on the one hand, the dense barrages may cover the barrages shared by the sharing end; Barrage.
可见,由于视频弹幕的特殊性,上述两种方案在进行视频分享或者视频图片分享时,往往无法对用户所喜爱的弹幕一并进行分享。It can be seen that due to the particularity of the video barrage, the above two solutions often cannot share the user's favorite barrage when video sharing or video picture sharing is performed.
此外,在进行视频分享时只能对整个视频进行分享,接收端在接收到该视频后,只能按照分享端给出的视频片段在该视频中的播放进度,手动调整到分享端期望分享的位置,才可以观看到分享端想要分享的内容,显然,这样的视频分享方式也无法满足用户对视频分享需求。In addition, only the entire video can be shared during video sharing. After receiving the video, the receiving end can only manually adjust to the video segment that the sharing end expects to share according to the playback progress of the video segment given by the sharing end. location, you can watch the content that the sharing terminal wants to share. Obviously, such a video sharing method cannot meet the user's video sharing needs.
本发明实施例提供了一种视频分享的方法,视频在播放的过程中,当播放到需要进行分享的视频片段、图片或者弹幕时,分享端可以根据接收的弹幕的选择指令,确定图像帧上待分享的弹幕,同时暂停播放视频,并隐藏待分享弹幕以外的其他弹幕。获取当前播放进度所对应的图像帧以及待分享弹幕的分享图像,并对分享图像进行分享。在进行图像分享时,分享端将图像帧相关的视频信息一同进行分享。进而,接收分享图像的接收端可以得到分享的弹幕和图像帧,还可以根据图像帧的视频信息,找到相应视频的播放进度,在所述播放进度出播放视频。The embodiment of the present invention provides a method for video sharing. During the playback of the video, when a video clip, picture or barrage that needs to be shared is played, the sharing terminal can determine the image according to the selection instruction of the received barrage. Frame the bullet chat to be shared, pause the video at the same time, and hide other bullet chats other than the bullet chat to be shared. Obtain the image frame corresponding to the current playback progress and the shared image of the barrage to be shared, and share the shared image. When image sharing is performed, the sharing terminal shares the video information related to the image frame together. Furthermore, the receiving end receiving the shared image can obtain the shared barrage and image frame, and can also find the playback progress of the corresponding video according to the video information of the image frame, and play the video at the playback progress.
为了能够更加详尽地了解本发明的特点与技术内容,下面结合附图对本发明的实现进行详细阐述。In order to understand the characteristics and technical content of the present invention in more detail, the implementation of the present invention will be described in detail below in conjunction with the accompanying drawings.
图1为本发明实施例提供的视频分享的基本流程图,如图1所示,所述方法主要包括以下步骤:Fig. 1 is the basic flowchart of the video sharing provided by the embodiment of the present invention, as shown in Fig. 1, the described method mainly includes the following steps:
步骤101,根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;Step 101, according to the selection instruction of the barrage, determine the first barrage to be shared on the image frame of the video display;
步骤102,隐藏所述第一弹幕以外的第二弹幕;Step 102, hiding the second barrage other than the first barrage;
步骤103,获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;Step 103, acquiring the shared image and video information related to the image frame; wherein, the shared image includes: the currently displayed image frame and the first barrage reserved on the image frame;
步骤104,分享所述分享图像和所述视频信息。Step 104, sharing the shared image and the video information.
所述弹幕的选择指令可以为根据特定操作生成的指示待分享弹幕的指令。所述特定操作可以为触摸操作、点击操作等。The bullet chat selection instruction may be an instruction generated according to a specific operation indicating that the bullet chat is to be shared. The specific operation may be a touch operation, a click operation, and the like.
所述第一弹幕可以为需要进行分享的弹幕;所述第二弹幕可以为不需要分享的弹幕。The first bullet chat may be a bullet chat that needs to be shared; the second bullet chat may be a bullet chat that does not need to be shared.
所述视频信息可以包括:视频的播放进度、视频的链接地址、视频的名称等相关的视频信息,以及所述第一弹幕的弹幕分享标识或标记。The video information may include: the playing progress of the video, the link address of the video, the name of the video and other related video information, as well as the bullet chatting sharing logo or mark of the first bullet chatting.
所述播放进度可指示出视频在分享端设备中已播放部分和/或未播放的部分。The playing progress may indicate the part of the video that has been played and/or the part that has not been played on the sharing terminal device.
所述视频的链接地址可为所述视频的存储地址,例如,所述视频的统一资源定位符(URL)。The link address of the video may be a storage address of the video, for example, a Uniform Resource Locator (URL) of the video.
所述弹幕可为根据观看用户在观看视频时输入的用户反馈信息生成,用户后续在视频播放时叠加显示在图像帧之上,并按照一定轨迹运动的信息。例如,所述弹幕可以直接包括所述用户反馈信息的内容。但是所述弹幕为服务平台经过设置,能够使其在第一客户端中按照预设策略进行动态显示的信息。所述弹幕可包括文字弹幕和图片弹幕。所述文字弹幕包括文字格式的信息;所述图片弹幕为包括图片弹幕。所述图片弹幕中可包括文字和图像。The barrage can be generated according to the user feedback information input by the viewing user when watching the video, and then superimposed and displayed on the image frame by the user when the video is played, and moves according to a certain trajectory. For example, the barrage may directly include the content of the user feedback information. However, the barrage is set by the service platform so that it can be dynamically displayed in the first client according to a preset strategy. The barrage may include text barrage and picture barrage. The text barrage includes information in a text format; the picture barrage includes image barrage. The picture barrage may include text and images.
所述步骤101之前,所述方法还包括:根据弹幕的触发指令,进入弹幕选择界面,其中,所述弹幕选择界面用于接收作用于弹幕的操作,响应于根据所述操作生成的选择弹幕的操作指令。Before the step 101, the method further includes: entering the bullet chatting selection interface according to the trigger instruction of the bullet chatting, wherein the bullet chatting selection interface is used to receive an operation acting on the bullet chatting, and in response to generating a bullet chatting according to the operation. Select the operation command of the barrage.
所述弹幕的触发指令,可以为分享端根据指定操作生成的可以触发弹幕选择界面的指令。所述指定操作可以为手势操作,例如滑动手势操作、长按操作等;也可以为对分享端的视频播放界面上特定按键的点击操作,比如,在分享端的视频播放器的视频播放界面上设置有于触发弹幕调节界面的“弹幕选择”虚拟按键。如图2所示,用户通过点击“弹幕选择”的虚拟按键,可以生成弹幕选择指令,进入弹幕选择界面。The trigger instruction of the bullet chat may be an instruction generated by the sharing terminal according to a specified operation and can trigger the bullet chat selection interface. The specified operation can be a gesture operation, such as a sliding gesture operation, a long press operation, etc.; it can also be a click operation on a specific button on the video playback interface of the sharing terminal, for example, on the video playback interface of the video player at the sharing terminal, a It is used to trigger the "Bullet Chatting Selection" virtual button on the barrage adjustment interface. As shown in Figure 2, the user can generate a bullet-screen selection command by clicking the virtual button of "Bullet-screen selection" and enter the bullet-screen selection interface.
需要说明的是,除了上述几种方式可以生成弹幕选择指令之外,还可以根据相应的需求,灵活地将不同的手势操作设置为用于生成弹幕选择指令的操作,比如可以将双击操作与“弹幕选择指令”绑定,则分享端根据在指定区域的双击操作可以生成弹幕选择指令,进而进入弹幕选择界面。It should be noted that, in addition to the above-mentioned ways to generate bullet-screen selection commands, different gesture operations can be flexibly set as operations for generating bullet-screen selection commands according to corresponding needs, such as double-clicking Binding with the "Bullet Screen Selection Command", the sharing terminal can generate a bullet screen selection command according to the double-click operation in the designated area, and then enter the bullet screen selection interface.
所述弹幕选择界面可以独立于视频播放界面。当分享端根据弹幕的触发指令,进入弹幕选择界面后,视频中的弹幕仍然在弹幕选择界面中正常播放。弹幕选择界面在接收操作指令时,可以不影响视频播放界面中正在播放的视频内容。例如,当弹幕选择界面接收到选择弹幕选择界面中的一条弹幕的点击操作时,该点击操作不会对当前正在播放的视频造成影响,如暂停当前正在播放的视频等。所述视频播放界面,可为能够对视频的播放进行操作的界面,例如,当检测到用户作用于所述视频播放界面的指令时,暂停、恢复或终止所述视频的播放等。The barrage selection interface may be independent of the video playback interface. When the sharing terminal enters the bullet chat selection interface according to the trigger command of the bullet chat, the bullet chat in the video is still played normally in the bullet chat selection interface. When the barrage selection interface receives the operation instruction, it may not affect the video content being played in the video playback interface. For example, when the bullet chat selection interface receives a click operation to select a bullet chat in the bullet chat selection interface, the click operation will not affect the currently playing video, such as pausing the currently playing video. The video playback interface may be an interface capable of operating video playback, for example, when a user instruction on the video playback interface is detected, the playback of the video may be paused, resumed, or terminated.
所述步骤101中,所述根据弹幕的选择指令可以为根据弹幕选择界面接收的作用于弹幕的操作,生成的弹幕的选择指令。所述作用于弹幕的操作可以为在选择弹幕的操作,例如,在待分享的弹幕上的点击操作、长按操作等。所述作用于弹幕的操作还可以为取消选定的操作,例如,在已将选定的弹幕上在进行点击操作,或者长按操作等,进而取消对弹幕的选定。In the step 101, the selection instruction based on the bullet chat may be a bullet chat selection instruction generated according to an operation on the bullet chat received by the bullet chat selection interface. The operation acting on the bullet chat may be an operation of selecting the bullet chat, for example, a click operation, a long press operation, etc. on the bullet chat to be shared. The operation acting on the bullet chat may also be a deselection operation, for example, performing a click operation or a long press operation on the selected bullet chat, thereby canceling the selection of the bullet chat.
在所述步骤101之后,所述方法还包括:标记所述第一弹幕。After the step 101, the method further includes: marking the first barrage.
所述标记所述第一弹幕可以为:在所述第一弹幕上添加容易辨识的标记。当所述第一弹幕为多条弹幕时,添加的标记可以相同,也可以根据不同的弹幕设置不同的标记。The marking the first bullet chatting may be: adding an easily identifiable mark on the first bullet chatting. When the first barrage is multiple barrages, the added marks may be the same, or different marks may be set according to different barrages.
所述标记第一弹幕还可包括:The marked first barrage may also include:
在分享端的存储设备中为对应的弹幕添加标识位等,以区分第一弹幕和第二弹幕。Add identification bits and the like to the corresponding bullet chat in the storage device of the sharing terminal to distinguish the first bullet chat from the second bullet chat.
相应的,在步骤102中,所述隐藏所述第一弹幕以外的第二弹幕,可以包括:隐藏未被标记的第二弹幕。Correspondingly, in step 102, the hiding of the second bullet chatting other than the first bullet chatting may include: hiding the unmarked second bullet chatting.
所述隐藏未被标记的第二弹幕,包括:The hidden unmarked second barrage includes:
屏蔽未被标记的第二弹幕的显示,即不显示未被标记的第二弹幕。Block the display of unmarked second bullet chats, that is, do not display unmarked second bullet chats.
进一步地,所述标记所述第一弹幕,包括:为所述第一弹幕设置弹幕分享标识。相应的,所述方法还包括:将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。Further, marking the first bullet chat includes: setting a bullet chat sharing identifier for the first bullet chat. Correspondingly, the method further includes: sending the corresponding relationship between the bullet chat sharing identifier and the first bullet chat to a server.
具体地,当用户通过特定操作触发弹幕选择指令后,分享端可以根据弹幕的选择指令确定需要进行分享的弹幕,即确定图像帧上待分享的第一弹幕。分享端可以在选中的第一弹幕上添加容易辨识的标记,进而根据标记的识别,可以对为添加标记的第二弹幕进行隐藏,以使当前视频播放的显示界面上仅显示有选中的弹幕。分享端还可以为选中的第一弹幕添加弹幕分享标识,并将第一弹幕与添加的弹幕分享标识的对应关系上传视频播放的后台服务器。视频的接收端可以根据服务器发送的第一弹幕和弹幕分享标识的对应关系,在展示相应的视频时,仅在播放的视频中显示所述第一弹幕。Specifically, when the user triggers the bullet chat selection instruction through a specific operation, the sharing terminal can determine the bullet chat to be shared according to the bullet chat selection instruction, that is, determine the first bullet chat to be shared on the image frame. The sharing terminal can add an easily identifiable mark on the selected first bullet chat, and then hide the second bullet chat that has not been marked according to the identification of the mark, so that only the selected bullet chat is displayed on the display interface of the current video playback. Barrage. The sharing terminal can also add a bullet chatting sharing logo to the selected first bullet chatting, and upload the corresponding relationship between the first bullet chatting and the added bullet chatting sharing logo to the background server for video playback. The receiving end of the video may display the corresponding video according to the corresponding relationship between the first bullet chat sent by the server and the bullet chat sharing identifier, and only display the first bullet chat in the played video.
所述弹幕分享标识不仅可用于标记以区分第一弹幕和第二弹幕,所述弹幕分享标记,还可以用于区分不同的第一弹幕。例如,所述弹幕分享标识为弹幕分享序列号。不同弹幕分享序号对应了不同的第一弹幕。The bullet chat sharing mark can not only be used for marking to distinguish the first bullet chat from the second bullet chat, and the bullet chat sharing mark can also be used to distinguish different first bullet chats. For example, the barrage sharing identifier is a barrage sharing serial number. Different danmaku sharing serial numbers correspond to different 1st danmaku.
在所述步骤103中,所述获取分享图像以及所述图像帧的视频信息,可以包括:对隐藏所述第二弹幕的图像帧进行截图,得到需要进行分享的分享图像;根据当前视频的播放进度,以及视频的名称、地址等相关的信息,生成图像帧的视频信息。In the step 103, the acquisition of the shared image and the video information of the image frame may include: taking a screenshot of the image frame hiding the second barrage to obtain the shared image that needs to be shared; The playback progress, as well as related information such as the name and address of the video, generate the video information of the image frame.
需要说明的是,为了便于用户实现对图像帧的分享,为了方便对视频中指定图像帧进行截图,在分享端接收弹幕的选择指令后,分享端在响应于该指令时,可以将当前正在播放的视频进行暂停,以方便截图工具对当前图像帧进行截取,以获得仅包括选中的弹幕的图像帧。It should be noted that, in order to facilitate the sharing of image frames for users, and for the convenience of taking screenshots of specified image frames in the video, after the sharing terminal receives the selection command of the barrage, the sharing terminal can, when responding to the command, save the The playing video is paused so that the snipping tool can intercept the current image frame to obtain an image frame that only includes the selected barrage.
例如,在图3中,分享端根据点击“弹幕选择”按键的操作,进入弹幕选择界面。图3中白色线框所围的区域即为弹幕选择界面。弹幕选择界面接收点击弹幕的操作,触发弹幕选择指令,进而选中“弹幕c”。视频的分享端对弹幕选择界面中除“弹幕c”以外的其他弹幕进行隐藏,并将视频暂停在“00:00:08”这一视频播放进度。在这种情况下,视频的分享端可以通过截图工具对暂停的视频进行截图,以截取到“00:00:08”播放时刻的图像帧。此时的图像帧上携带一条弹幕,即选中的“弹幕c”。如此,可以得到待分享的分享图像。For example, in Figure 3, the sharing terminal enters the barrage selection interface according to the operation of clicking the "bullet chatting selection" button. The area surrounded by the white line in Figure 3 is the barrage selection interface. The barrage selection interface receives the operation of clicking on the barrage, triggers the barrage selection command, and then selects "barrage c". The video sharing terminal hides other bullet chats except "bullet chat c" in the bullet chat selection interface, and pauses the video at the video playback progress of "00:00:08". In this case, the video sharing end can use the screenshot tool to take a screenshot of the paused video, so as to capture the image frame at the playback moment of "00:00:08". At this time, the image frame carries a barrage, that is, the selected "barrage c". In this way, a shared image to be shared can be obtained.
获取分享图像以及所述图像帧的视频信息之后,向接收端分享所述分享图像和与图像帧相关的视频信息。After acquiring the shared image and the video information of the image frame, share the shared image and the video information related to the image frame to the receiving end.
例如,在进行图像分享时,视频的分享端可以显示如图4所示的视频分享界面,以询问是否对当前得到的图像帧进行分享。当接收到作用于区域“是”的操作时,分享端可以通过步骤103中确定的分享图片发送视频播放的后台服务器,以通过该后台服务器将分享图像帧及视频信息分享给图像帧的接收端。For example, when image sharing is performed, the video sharing terminal may display a video sharing interface as shown in FIG. 4 to ask whether to share the currently obtained image frame. When the operation acting on the area "Yes" is received, the sharing terminal can send the video playback background server through the shared picture determined in step 103, so as to share the shared image frame and video information to the receiving terminal of the image frame through the background server .
在本发明实施例中,接收端接收的视频分享方法的基本流程如图5所示。主要包括以下步骤:In the embodiment of the present invention, the basic flow of the video sharing method received by the receiving end is shown in FIG. 5 . It mainly includes the following steps:
步骤501,接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;Step 501, receiving shared image and video information; wherein, the shared image includes: an image frame and a first barrage displayed on the image frame;
步骤502,根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;Step 502, according to the video information, determine the playback progress of the image frame in the corresponding video;
步骤503,从所述播放进度处开始播放所述视频。Step 503, start playing the video from the playing progress.
所述接收端接收分享图像和视频信息,所述分享图像中的第一弹幕可以为视频的分享端分享的弹幕。The receiving end receives shared image and video information, and the first barrage in the shared image may be a barrage shared by a video sharing end.
所述视频信息可以包括:视频的播放进度、视频的链接地址、视频的名称等相关的视频信息,以及第一弹幕的弹幕分享标识。所述视频信息可以携带在分享图像中,由接收端一同接收。The video information may include: the playback progress of the video, the link address of the video, the name of the video and other related video information, and the bullet chatting sharing identifier of the first bullet chatting. The video information may be carried in the shared image and received together by the receiving end.
所述根据所述视频信息,确定所述图像帧在相应的视频中的播放进度,包括:将所述视频信息发送给后台服务器;接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。The determining the playback progress of the image frame in the corresponding video according to the video information includes: sending the video information to a background server; receiving the first message returned by the background server according to the barrage sharing identifier The barrage and the video returned according to the link address; according to the link address, the video is played, and the first barrage is displayed when the video plays the image frame.
接收端接收点击所述分享图像的操作,向后台服务器发送视频请求,并将视频信息发送给后台服务器。服务器根据视频信息中视频的链接地址,找到相应的视频,并根据视频信息中的弹幕分享标识,以及分享端发送的弹幕分享标识与第一弹幕的对应关系,确定所述视频中的第一弹幕,进而将找到的相应视频与所述第一弹幕返回给接收端。接收端根据视频信息中的视频的播放进度,在接收的视频中找到分享图像中的图像帧在视频中的播放进度,进而接收端可以在相应的播放进度处播放所述视频。The receiving end receives the operation of clicking the shared image, sends a video request to the background server, and sends the video information to the background server. The server finds the corresponding video according to the link address of the video in the video information, and determines the content in the video according to the bullet chat sharing identifier in the video information and the corresponding relationship between the bullet chat sharing identifier sent by the sharing terminal and the first bullet chat. The first barrage, and then return the found corresponding video and the first barrage to the receiving end. According to the playing progress of the video in the video information, the receiving end finds the playing progress of the image frame in the shared image in the received video, and then the receiving end can play the video at the corresponding playing progress.
所述弹幕分享标识,可以为分享端为所述第一弹幕设置的用于区分不同弹幕的序列号。所述服务器可以根据弹幕分享标识与所述第一弹幕的对应关系,找到第一弹幕,并向接收端返回所述第一弹幕。The bullet chatting sharing identifier may be a serial number set by the sharing terminal for the first bullet chatting to distinguish different bullet chatting. The server may find the first bullet chat according to the corresponding relationship between the bullet chat sharing identifier and the first bullet chat, and return the first bullet chat to the receiving end.
接收端在收到分享图像后,可以根据点击分享图像的操作,进入播放视频的操作界面。接收端的后台服务器可以根据视频信息中的视频名称或者视频的链接地址查找到分享的视频,进而接收端可以按照分享图像中携带的视频的播放进度,对视频进行跳转播放,且在播放过程中展示与弹幕分享标识对应的弹幕。After receiving the shared image, the receiving end can enter the operation interface for playing the video according to the operation of clicking the shared image. The background server at the receiving end can find the shared video according to the video name or video link address in the video information, and then the receiving end can skip and play the video according to the playback progress of the video carried in the shared image, and during the playback process Display the bullet chat corresponding to the bullet chat sharing logo.
需要说明的是,服务器可以根据弹幕分享标识与所述第一弹幕的对应关系,找到第一弹幕,由服务器对所述第一弹幕以外的第二弹幕进行隐藏,仅发送带有第一弹幕的视频给接收端;还可以根据弹幕分享标识与所述第一弹幕的对应关系,找到第一弹幕,并为所述第一弹幕添加明显的标记,向接收端返回标记的第一弹幕及未标记的第二弹幕。接收端可以对未带有标记的弹幕进行隐藏。It should be noted that the server can find the first bullet chat according to the corresponding relationship between the bullet chat sharing identifier and the first bullet chat, and the server hides the second bullet chat other than the first bullet chat, and only sends There is a video of the first bullet chat to the receiving end; it is also possible to find the first bullet chat according to the corresponding relationship between the bullet chat sharing identifier and the first bullet chat, and add an obvious mark for the first bullet chat, and send to the receiving end The terminal returns the marked first bullet chat and the unmarked second bullet chat. The receiver can hide the unmarked barrage.
本发明实施例提供的视频分享方法的具体流程图如图6所示,主要包括以下步骤:The specific flowchart of the video sharing method provided by the embodiment of the present invention is shown in Figure 6, which mainly includes the following steps:
步骤601,视频的分享端根据弹幕的触发指令,进入弹幕选择界面;Step 601, the video sharing terminal enters the barrage selection interface according to the trigger instruction of the barrage;
所述弹幕选择界面可以独立于视频播放界面。当分享端根据弹幕的触发指令,进入弹幕选择界面后,视频中的弹幕仍然在弹幕选择界面中正常播放。弹幕选择界面在接收操作指令时,可以不影响视频播放界面中正在播放的视频内容。The barrage selection interface may be independent of the video playback interface. When the sharing terminal enters the bullet chat selection interface according to the trigger command of the bullet chat, the bullet chat in the video is still played normally in the bullet chat selection interface. When the barrage selection interface receives the operation instruction, it may not affect the video content being played in the video playback interface.
步骤602,分享端根据弹幕选择界面触发的弹幕选择指令,确定图像帧上待分享的第一弹幕;Step 602, the sharing terminal determines the first bullet chat to be shared on the image frame according to the bullet chat selection instruction triggered by the bullet chat selection interface;
弹幕选择界面接收的作用于弹幕的操作,生成的弹幕的选择指令。所述作用于弹幕的操作可以为在选择弹幕的操作,例如,在待分享的弹幕上的点击操作、长按操作等。所述第一弹幕可以为需要进行分享的弹幕。The operation on the bullet chat received by the bullet chat selection interface, and the selection command of the generated bullet chat. The operation acting on the bullet chat may be an operation of selecting the bullet chat, for example, a click operation, a long press operation, etc. on the bullet chat to be shared. The first barrage may be a barrage that needs to be shared.
步骤603,分享端为第一弹幕设置弹幕分享标识,并隐藏第一弹幕以外的第二弹幕;Step 603, the sharing terminal sets a bullet chatting sharing logo for the first bullet chatting, and hides the second bullet chatting other than the first bullet chatting;
分享端可以根据弹幕中的弹幕分享标识,对未携带弹幕分享标识的弹幕进行隐藏,并将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。The sharing terminal can hide the bullet chatting without the bullet chat sharing identifier according to the bullet chat sharing identifier in the bullet chat, and send the corresponding relationship between the bullet chat sharing identifier and the first bullet chat to the server.
分享端还可以标记第一弹幕,进而隐藏未标记的弹幕。The sharing terminal can also mark the first barrage, and then hide the unmarked barrage.
步骤604,分享端获取分享图像和视频信息;Step 604, the sharing terminal acquires shared image and video information;
分享端截取当前视频显示的图像帧,可以得到分享图像,所述分享图像上显示有第一弹幕。同时,分享端获取相关的视频信息,所述视频信息可以包括:视频的播放进度、视频的地址、视频的名称等相关的视频信息,以及第一弹幕的弹幕分享标识。The sharing terminal intercepts the image frame displayed in the current video to obtain the shared image, and the shared image displays the first barrage. At the same time, the sharing terminal obtains related video information, and the video information may include: video playback progress, video address, video name and other related video information, and the first barrage sharing identifier of the barrage.
步骤605,分享端对分享图像和视频信息进行分享;Step 605, the sharing terminal shares the shared image and video information;
分享端将获取的分享图像和视频信息分享给接收端。The sharing terminal shares the obtained shared image and video information to the receiving terminal.
步骤606,接收端接收分享图像和视频信息;Step 606, the receiving end receives shared image and video information;
接收端接收分享端分享的分享图像和视频信息,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕。The receiving end receives the shared image and video information shared by the sharing end. The shared image includes: an image frame and a first barrage reserved and displayed on the image frame.
步骤607,接收端根据点击分享图像的操作,在分享视频的播放进度处,展示带有第一弹幕的相应视频。Step 607: According to the operation of clicking on the shared image, the receiving end displays the corresponding video with the first barrage at the playback progress of the shared video.
当接收端接收到点击分享图像的操作时,将所述视频信息发送给后台服务器。后台服务器可以根据视频信息中的链接地址,查找到分享的视频,并根据接收端发送的弹幕分享标识与弹幕的对应关系,确定第一弹幕。进而接收端接收带有第一弹幕的相应视频,并按照分享图像中携带的视频的播放进度,对视频进行跳转播放,且在播放过程中展示与弹幕分享标识对应的第一弹幕。When receiving an operation of clicking to share an image, the receiving end sends the video information to the background server. The background server can find the shared video according to the link address in the video information, and determine the first bullet chat according to the corresponding relationship between the bullet chat sharing logo and the bullet chat sent by the receiving end. Furthermore, the receiving end receives the corresponding video with the first barrage, and jumps and plays the video according to the playback progress of the video carried in the shared image, and displays the first barrage corresponding to the barrage sharing logo during the playback process .
本发明实施例提供的视频分享方法,用户在使用视频播放软件观看视频时,当看到自己喜欢的视频片段、图片或者弹幕时,可以通过点击或者长按自己喜欢的那条弹幕,进而暂停视频,并将选中的弹幕之外的其他弹幕进行屏蔽,并对当前播放进度对应的视频画面以及该条用户选中的弹幕进行截图,进而对该张截取到的图片进行分享。分享的图片中可以包含该条弹幕以及对应的视频进度,进而接收该图片的用户既可以看到用户所分享的弹幕和视频图片,还可以通过点击该图片,开启视频播放软件,以使视频播放软件可以根据该张图片中所携带的视频名称以及视频播放进度,查找该视频并按相应的视频进度进行播放。从而可以达到灵活地对视频以及视频的弹幕进行分享的目的。In the video sharing method provided by the embodiment of the present invention, when the user uses the video playback software to watch the video, when he sees a video clip, picture or barrage he likes, he can click or press the barrage he likes for a long time, and then Pause the video, block other bullet chats other than the selected bullet chat, and take a screenshot of the video screen corresponding to the current playback progress and the bullet chat selected by the user, and then share the captured picture. The shared picture can include the barrage and the corresponding video progress, and then the user who receives the picture can not only see the barrage and video picture shared by the user, but also click the picture to start the video playback software, so that The video playing software can search for the video and play it according to the corresponding video progress according to the video name carried in the picture and the video playing progress. In this way, the purpose of flexibly sharing videos and barrage of videos can be achieved.
本发明实施例还提供了一种视频分享的分享端,所述分享端700的基本结构如图7所示,包括:确定模块701、隐藏模块702、获取模块703和分享模块704;其中,The embodiment of the present invention also provides a sharing terminal for video sharing. The basic structure of the sharing terminal 700 is shown in FIG.
所述确定模块701,用于根据弹幕的选择指令,确定图像帧上待分享的第一弹幕;The determination module 701 is configured to determine the first bullet chat to be shared on the image frame according to the selection instruction of the bullet chat;
所述隐藏模块702,用于隐藏所述第一弹幕以外的第二弹幕;The hiding module 702 is configured to hide a second bullet chat other than the first bullet chat;
所述获取模块703,用于获取分享图像以及所述图像帧的视频信息;其中,所述分享图像包括:当前展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;The acquiring module 703 is configured to acquire the shared image and the video information of the image frame; wherein, the shared image includes: the currently displayed image frame and the first barrage reserved to be displayed on the image frame;
所述分享模块704,用于分享所述分享图像和所述视频信息。The sharing module 704 is configured to share the shared image and the video information.
进一步地,所述分享端700还包括:控制模块705和弹幕选择界面706;Further, the sharing terminal 700 also includes: a control module 705 and a barrage selection interface 706;
所述控制模块705,用于根据弹幕的触发指令,进入弹幕的选择界面;The control module 705 is configured to enter the selection interface of the bullet chat according to the trigger instruction of the bullet chat;
所述弹幕选择界面706,用于接收作用于弹幕的操作,响应于根据所述操作生成的选择弹幕的操作指令。The bullet chatting selection interface 706 is configured to receive an operation acting on the bullet chatting, and respond to an operation instruction for selecting a bullet chatting generated according to the operation.
进一步地,所述分享端还包括:Further, the sharing terminal also includes:
标记模块707,用于标记所述第一弹幕;A marking module 707, configured to mark the first barrage;
所述隐藏模块702,还用于隐藏未被标记的第二弹幕。The hiding module 702 is also used to hide the unmarked second barrage.
进一步地,所述标记模块707,还用于为所述第一弹幕设置弹幕分享标识:Further, the marking module 707 is also used to set a bullet chatting sharing identifier for the first bullet chatting:
所述分享模块704,还用于将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。The sharing module 704 is further configured to send the corresponding relationship between the bullet chat sharing identifier and the first bullet chat to the server.
本发明实施例还提供了一种视频分享的接收端800,所述接收端800的基本结构如图8所示,接收模块801、播放进度确定模块802和播放模块803;其中,The embodiment of the present invention also provides a receiving terminal 800 for video sharing. The basic structure of the receiving terminal 800 is shown in FIG.
所述接收模块801,用于接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;The receiving module 801 is configured to receive shared image and video information; wherein, the shared image includes: an image frame and a first barrage displayed on the image frame;
所述播放进度确定模块802,用于根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;The playback progress determination module 802 is configured to determine the playback progress of the image frame in the corresponding video according to the video information;
所述播放模块803,用于从所述播放进度处开始播放所述视频。The playing module 803 is configured to start playing the video from the playing progress.
进一步地,所述播放进度确定模块802,还用于将所述视频信息发送给后台服务器;所述视频信息包括:第一弹幕的弹幕分享标识及所述视频的链接地址;接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。Further, the playing progress determination module 802 is also used to send the video information to the background server; the video information includes: the first barrage sharing identifier and the link address of the video; receiving the The background server returns the first barrage according to the barrage sharing identifier and the video returned according to the link address; according to the link address, the video is played, and the video is displayed when the image frame is played. The first barrage.
本发明实施例还提供了一种视频分享设备900,所述视频分享设备900的结构如图9所示,包括:The embodiment of the present invention also provides a video sharing device 900. The structure of the video sharing device 900 is shown in FIG. 9, including:
通信接口901,用于与其他设备进行通信;Communication interface 901, used for communicating with other devices;
存储器902,用于存储能够在处理器上运行的计算机程序;memory 902, used to store computer programs that can run on the processor;
处理器903,分别与所述通信接口及所述存储介质相连,用于通过所述计算机程序至少可执行下述方法的步骤:The processor 903 is respectively connected to the communication interface and the storage medium, and is configured to at least execute the steps of the following method through the computer program:
根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;隐藏所述第一弹幕以外的第二弹幕;获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前视频展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;分享所述分享图像和所述视频信息。According to the selection instruction of the barrage, determine the first barrage to be shared on the image frame of the video display; hide the second barrage other than the first barrage; obtain the video information related to the shared image and the image frame; wherein , the shared image includes: an image frame displayed in the current video and the first barrage displayed on the image frame; sharing the shared image and the video information.
所述视频分享设备900还包括:多媒体组件904,与所述处理器903连接,包括在视频分享设备900与用户之间提供的一个作为输出接口的屏幕。The video sharing device 900 further includes: a multimedia component 904 connected to the processor 903, including a screen as an output interface provided between the video sharing device 900 and the user.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现下述方法的步骤:The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the following method are implemented:
根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;隐藏所述第一弹幕以外的第二弹幕;获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前视频展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;分享所述分享图像和所述视频信息。According to the selection instruction of the barrage, determine the first barrage to be shared on the image frame of the video display; hide the second barrage other than the first barrage; obtain the video information related to the shared image and the image frame; wherein , the shared image includes: an image frame displayed in the current video and the first barrage displayed on the image frame; sharing the shared image and the video information.
所述计算机程序被处理器运行时,还执行:When the computer program is executed by the processor, it also executes:
根据弹幕的触发指令,进入弹幕选择界面,其中,所述弹幕选择界面用于接收选择所述第一弹幕的选择操作。According to the trigger instruction of the bullet chat, the bullet chat selection interface is entered, wherein the bullet chat selection interface is used to receive a selection operation for selecting the first bullet chat.
所述计算机程序被处理器运行时,还执行:When the computer program is executed by the processor, it also executes:
标记所述第一弹幕;所述隐藏所述第一弹幕以外的第二弹幕,包括:隐藏未被标记的第二弹幕。Marking the first bullet chat; hiding the second bullet chat other than the first bullet chat includes: hiding the unmarked second bullet chat.
所述计算机程序被处理器运行时,还执行:When the computer program is executed by the processor, it also executes:
所述标记所述第一弹幕,包括:为所述第一弹幕设置弹幕分享标识;The marking the first bullet chat includes: setting a bullet chat sharing identifier for the first bullet chat;
将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。Sending the corresponding relationship between the bullet chatting sharing identifier and the first bullet chatting to the server.
本发明实施例还提供了一种视频分享设备1000,所述视频分享设备1000的结构如图10所示,包括:The embodiment of the present invention also provides a video sharing device 1000. The structure of the video sharing device 1000 is shown in FIG. 10, including:
通信接口1001,用于与其他设备进行通信;Communication interface 1001, for communicating with other devices;
存储器1002,用于存储能够在处理器上运行的计算机程序;memory 1002, configured to store computer programs that can run on the processor;
处理器1003,分别与所述通信接口及所述存储介质相连,用于通过所述计算机程序至少可执行下述方法的步骤:The processor 1003 is respectively connected to the communication interface and the storage medium, and is configured to at least execute the steps of the following method through the computer program:
接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;从所述播放进度处开始播放所述视频。Receive shared image and video information; wherein, the shared image includes: an image frame and the first barrage displayed on the image frame; according to the video information, determine the playback of the image frame in the corresponding video progress; start playing the video at the playback progress.
所述视频分享设备1000还包括:多媒体组件1004,与所述处理器1003连接,包括在视频分享设备1000与用户之间提供的一个作为输出接口的屏幕。The video sharing device 1000 further includes: a multimedia component 1004 connected to the processor 1003, including a screen as an output interface provided between the video sharing device 1000 and the user.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现下述方法的步骤:The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the following method are implemented:
接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;从所述播放进度处开始播放所述视频。Receive shared image and video information; wherein, the shared image includes: an image frame and the first barrage displayed on the image frame; according to the video information, determine the playback of the image frame in the corresponding video progress; start playing the video at the playback progress.
所述计算机程序被处理器运行时,还执行:When the computer program is executed by the processor, it also executes:
第一弹幕的弹幕分享标识及所述视频的链接地址;将所述视频信息发送给后台服务器;接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。The barrage sharing logo of the first barrage and the link address of the video; sending the video information to the background server; receiving the first barrage returned by the backstage server according to the barrage sharing logo and according to the link The video returned by the address; according to the link address, play the video, and display the first barrage when the video plays the image frame.
可以理解,处理器903和处理器1003可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器903和处理器1003中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器903和处理器1003可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器903和处理器1003可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器902和存储器1002,处理器903读取存储器902中的信息,处理器1003读取存储器1002中的信息,结合其硬件完成前述方法的步骤。It can be understood that the processor 903 and the processor 1003 may be an integrated circuit chip and have a signal processing capability. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 903 and the processor 1003 or instructions in the form of software. The aforementioned processor 903 and processor 1003 may be general processors, digital signal processors (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor 903 and the processor 1003 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in the storage medium, the storage medium is located in the storage 902 and the storage 1002, the processor 903 reads the information in the storage 902, the processor 1003 reads the information in the storage 1002, and completes the steps of the foregoing method in combination with its hardware.
存储器902和存储器1002可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read Only Memory,ROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性随机存取存储器(ferromagnetic random access memory,FRAM)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static Random Access Memory,SRAM)、同步静态随机存取存储器(Synchronous Static Random Access Memory,SSRAM)、动态随机存取存储器(DynamicRandom Access Memory,DRAM)、同步动态随机存取存储器(Synchronous Dynamic RandomAccess Memory,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSynchronous Dynamic Random Access Memory,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced Synchronous Dynamic Random Access Memory,ESDRAM)、同步连接动态随机存取存储器(SyncLink Dynamic Random Access Memory,SLDRAM)、直接内存总线随机存取存储器(Direct Rambus Random Access Memory,DRRAM)。本发明实施例描述的存储器902和存储器1002旨在包括但不限于这些和任意其它适合类型的存储器。Memory 902 and memory 1002 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Wherein, the non-volatile memory can be a read-only memory (Read Only Memory, ROM), a programmable read-only memory (Programmable Read-Only Memory, PROM), an erasable programmable read-only memory (Erasable Programmable Read-Only Memory) , EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), Magnetic Random Access Memory (ferromagnetic random access memory, FRAM), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (CD-ROM, Compact Disc Read-Only Memory); the magnetic surface storage can be disk storage or tape storage. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory Memory (Dynamic Random Access Memory, DRAM), Synchronous Dynamic Random Access Memory (Synchronous Dynamic Random Access Memory, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced Synchronous Dynamic Random Access Memory, ESDRAM), Synchronous Connection Dynamic Random Access Memory (SyncLink Dynamic Random Access Memory, SLDRAM), Direct Memory Bus Random Access Memory (Direct Rambus Random Access Memory, DRRAM). The memory 902 and the memory 1002 described in the embodiments of the present invention are intended to include but not limited to these and any other suitable types of memory.
通信接口901为处理器903与外围接口模块之间的信息交互提供接口,通信接口1001为处理器1003与外围接口模块之间的信息交互提供接口,上述外围接口模块可以是键盘、鼠标、轨迹球、点击轮、按键、按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The communication interface 901 provides an interface for the information interaction between the processor 903 and the peripheral interface module, and the communication interface 1001 provides an interface for the information interaction between the processor 1003 and the peripheral interface module. The above-mentioned peripheral interface module can be a keyboard, a mouse, a trackball , click wheel, keys, buttons, etc. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
多媒体组件904包括在视频分享设备900与用户之间提供的一个作为输出接口的屏幕。多媒体组件1004包括在视频分享设备1000与用户之间提供的一个作为输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD,Liquid Crystal Display)和触控面板(TP,Touch Panel)。如果屏幕包括触控面板,屏幕可以由触摸屏来实现,以接收来自用户的输入信号。触控面板包括一个或多个触摸传感器,以感测触摸、滑动和触摸面板上的手势。触摸传感器不仅能感测触摸或滑动操作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件904和多媒体组件1004均可以包括一个前置摄像头和/或后置摄像头。当视频分享装置900或视频分享装置1000处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头或后置摄像头可以是一个固定的光学透镜系统、或具有焦距和光学变焦能力。The multimedia component 904 includes a screen as an output interface provided between the video sharing device 900 and the user. The multimedia component 1004 includes a screen as an output interface provided between the video sharing device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD, Liquid Crystal Display) and a touch panel (TP, Touch Panel). If the screen includes a touch panel, the screen may be implemented by a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. A touch sensor not only senses the boundary of a touch or swipe, but also detects the duration and pressure associated with the touch or swipe. In some embodiments, both the multimedia component 904 and the multimedia component 1004 may include a front camera and/or a rear camera. When the video sharing device 900 or the video sharing device 1000 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera or rear camera can be a fixed optical lens system, or have focal length and optical zoom capability.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710995830.6ACN107786905B (en) | 2017-10-23 | 2017-10-23 | Video sharing method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710995830.6ACN107786905B (en) | 2017-10-23 | 2017-10-23 | Video sharing method and device |
| Publication Number | Publication Date |
|---|---|
| CN107786905Atrue CN107786905A (en) | 2018-03-09 |
| CN107786905B CN107786905B (en) | 2020-06-26 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710995830.6AActiveCN107786905B (en) | 2017-10-23 | 2017-10-23 | Video sharing method and device |
| Country | Link |
|---|---|
| CN (1) | CN107786905B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109547835A (en)* | 2018-11-26 | 2019-03-29 | 北京字节跳动网络技术有限公司 | Video broadcasting method and device |
| CN110691281A (en)* | 2018-07-04 | 2020-01-14 | 北京字节跳动网络技术有限公司 | Video playing processing method, terminal device, server and storage medium |
| CN111405344A (en)* | 2020-03-18 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Bullet screen processing method and device |
| CN112165646A (en)* | 2020-09-28 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Video sharing method and device based on barrage message and computer equipment |
| CN113163230A (en)* | 2020-01-22 | 2021-07-23 | 腾讯科技(深圳)有限公司 | Video message generation method and device, electronic equipment and storage medium |
| CN115086742A (en)* | 2022-06-13 | 2022-09-20 | 北京达佳互联信息技术有限公司 | Audio and video generation method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105898600A (en)* | 2015-12-10 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Bullet screen data processing method and terminal equipment |
| CN105898522A (en)* | 2016-05-11 | 2016-08-24 | 乐视控股(北京)有限公司 | Method, device and system for processing barrage information |
| CN105979288A (en)* | 2016-06-17 | 2016-09-28 | 乐视控股(北京)有限公司 | Video interception method and device |
| CN105979382A (en)* | 2016-06-01 | 2016-09-28 | 乐视控股(北京)有限公司 | Method and device for sharing video through capturing image |
| CN106604132A (en)* | 2016-12-09 | 2017-04-26 | 武汉斗鱼网络科技有限公司 | Live broadcast information extraction method and device |
| JP2017188891A (en)* | 2016-03-31 | 2017-10-12 | 株式会社インフォシティ | Broadcast service retransmission system and viewing portable terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105898600A (en)* | 2015-12-10 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Bullet screen data processing method and terminal equipment |
| JP2017188891A (en)* | 2016-03-31 | 2017-10-12 | 株式会社インフォシティ | Broadcast service retransmission system and viewing portable terminal |
| CN105898522A (en)* | 2016-05-11 | 2016-08-24 | 乐视控股(北京)有限公司 | Method, device and system for processing barrage information |
| CN105979382A (en)* | 2016-06-01 | 2016-09-28 | 乐视控股(北京)有限公司 | Method and device for sharing video through capturing image |
| CN105979288A (en)* | 2016-06-17 | 2016-09-28 | 乐视控股(北京)有限公司 | Video interception method and device |
| CN106604132A (en)* | 2016-12-09 | 2017-04-26 | 武汉斗鱼网络科技有限公司 | Live broadcast information extraction method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110691281A (en)* | 2018-07-04 | 2020-01-14 | 北京字节跳动网络技术有限公司 | Video playing processing method, terminal device, server and storage medium |
| CN110691281B (en)* | 2018-07-04 | 2022-04-01 | 北京字节跳动网络技术有限公司 | Video playing processing method, terminal device, server and storage medium |
| US11463776B2 (en) | 2018-07-04 | 2022-10-04 | Beijing Bytedance Network Technology Co., Ltd. | Video playback processing method, terminal device, server, and storage medium |
| CN109547835A (en)* | 2018-11-26 | 2019-03-29 | 北京字节跳动网络技术有限公司 | Video broadcasting method and device |
| CN113163230A (en)* | 2020-01-22 | 2021-07-23 | 腾讯科技(深圳)有限公司 | Video message generation method and device, electronic equipment and storage medium |
| CN113163230B (en)* | 2020-01-22 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Video message generation method and device, electronic equipment and storage medium |
| US11968427B2 (en) | 2020-01-22 | 2024-04-23 | Tencent Technology (Shenzhen) Company Limited | Video message generation method and apparatus, electronic device, and storage medium |
| CN111405344A (en)* | 2020-03-18 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Bullet screen processing method and device |
| CN112165646A (en)* | 2020-09-28 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Video sharing method and device based on barrage message and computer equipment |
| CN112165646B (en)* | 2020-09-28 | 2022-02-18 | 腾讯科技(深圳)有限公司 | Video sharing method and device based on barrage message and computer equipment |
| CN115086742A (en)* | 2022-06-13 | 2022-09-20 | 北京达佳互联信息技术有限公司 | Audio and video generation method and device |
| CN115086742B (en)* | 2022-06-13 | 2024-05-14 | 北京达佳互联信息技术有限公司 | Audio and video generation method and device |
| Publication number | Publication date |
|---|---|
| CN107786905B (en) | 2020-06-26 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107786905B (en) | Video sharing method and device | |
| US10595071B2 (en) | Media information delivery method and system, terminal, server, and storage medium | |
| US20190253474A1 (en) | Media production system with location-based feature | |
| CN102902761B (en) | Cross-terminal cloud browse method and system | |
| US11265614B2 (en) | Information sharing method and device, storage medium and electronic device | |
| WO2020007009A1 (en) | Method and apparatus for determining background music of video, terminal device and storage medium | |
| TWI610180B (en) | Cooperative provision of personalized user functions using shared and personal devices | |
| CN106911967B (en) | Live playback method and device | |
| CN106464976B (en) | Display device, user terminal device, server and control method thereof | |
| CN108024079A (en) | Record screen method, apparatus, terminal and storage medium | |
| CN107682650A (en) | A kind of image processing method and device and storage medium | |
| CA3001480C (en) | Video-production system with dve feature | |
| CN106470147B (en) | Video sharing method and device and video playing method and device | |
| WO2019047472A1 (en) | Bullet screen display method | |
| CN116166359A (en) | A data processing method, device, electronic device and storage medium | |
| WO2019114330A1 (en) | Video playback method and apparatus, and terminal device | |
| CN107038201A (en) | Display methods, device, terminal and the server of personal homepage | |
| CN116257159A (en) | Multimedia content sharing method, device, equipment, medium and program product | |
| CN114449203A (en) | Conference teaching system, screen interaction method, electronic device and storage medium | |
| CN105744338B (en) | A kind of method for processing video frequency and its equipment | |
| CN115174812B (en) | Video generation method, video generation device and electronic equipment | |
| CN114302209B (en) | Video processing method, device, electronic equipment and medium | |
| CN112188269B (en) | Video playing method and device and video generating method and device | |
| CN107820133A (en) | Method, television set and the system of virtual reality video are provided in television set | |
| CN107734396A (en) | A kind of multimedia resource player method, device and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |