









技术领域technical field
本发明涉及通信领域中的信息处理技术,特别涉及视频分享的方法、装置。The present invention relates to information processing technology in the communication field, and in particular, to a method and device for video sharing.
背景技术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 series through a terminal is a common leisure and entertainment method in people's lives. When people watch movies or TV series, they often communicate with other moviegoers and exchange movie viewing experience by sending bullet screens. When users watch videos or movies, when they watch their favorite video pictures or favorite video plots, 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 footage or great video clips.
然而在现有技术中,在进行视频分享时,往往无法控制弹幕的分享。分享视频的用户也无法在弹幕标注出自己所喜欢的几条弹幕。接收视频的用户也无法在弹幕中找到分享用户所期望分享的那几条弹幕,可见,由于视频弹幕的特殊性,现有技术中在进行视频分享或者视频图片分享时,往往无法对用户所喜爱的弹幕一并进行分享。However, in the prior art, during video sharing, it is often impossible to control the sharing of the bullet screen. Users who share videos are also unable to mark their favorite bullet screens on the bullet screen. The user who receives the video also cannot find the bullet screens that the sharing user expects to share in the bullet screen. It can be seen that due to the particularity of the video bullet screen, it is often impossible to share the video or video pictures in the prior art. Users' favorite barrages are shared together.
发明内容SUMMARY 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 solution of the embodiment of the present invention is realized as follows:
本发明实施例提供了一种视频分享的方法,所述方法包括:An embodiment of the present invention provides a method for video sharing, and the method includes:
根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;According to the selection instruction of the bullet screen, determine the first bullet screen to be shared on the image frame displayed in the video;
隐藏所述第一弹幕以外的第二弹幕;hide the second barrage other than the first barrage;
获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前视频展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;Acquiring a shared image and video information related to the image frame; wherein, the shared image includes: an image frame displayed in the current video and the first bullet screen reserved for display on the image frame;
分享所述分享图像和所述视频信息。Share the shared image and the video information.
上述技术方案中,所述方法还包括:In the above technical solution, the method further includes:
根据弹幕的触发指令,进入弹幕选择界面,其中,所述弹幕选择界面用于接收选择所述第一弹幕的选择操作。According to the trigger instruction of the bullet screen, the bullet screen selection interface is entered, wherein the bullet screen selection interface is used for receiving a selection operation for selecting the first bullet screen.
上述技术方案中,所述方法还包括:In the above technical solution, the method further includes:
标记所述第一弹幕;mark the first bullet screen;
所述隐藏所述第一弹幕以外的第二弹幕,包括:The hiding of the second bullet screen other than the first bullet screen includes:
隐藏未被标记的第二弹幕。Hide unmarked second danmaku.
上述技术方案中,In the above technical scheme,
所述标记所述第一弹幕,包括:The marking of the first bullet screen includes:
为所述第一弹幕设置弹幕分享标识;setting a bullet screen sharing identifier for the first bullet screen;
所述方法还包括:The method also includes:
将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。Send the corresponding relationship between the bullet screen sharing identifier and the first bullet screen to the server.
本发明实施例还提供了一种视频分享的方法,其特征在于,所述方法包括:An embodiment of the present invention also provides a method for video sharing, characterized in that the method includes:
接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;Receive shared images and video information; wherein, the shared images include: image frames and a first bullet screen reserved for display on the image frames;
根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;According to the video information, determine the playback progress of the image frame in the corresponding video;
从所述播放进度处开始播放所述视频。Playing the video starts at the playback progress.
上述技术方案中,In the above technical scheme,
所述视频信息包括:第一弹幕的弹幕分享标识及所述视频的链接地址;The video information includes: the bullet screen sharing identifier of the first bullet screen 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:
将所述视频信息发送给后台服务器;sending the video information to the background server;
接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;Receive the first bullet screen returned by the background server according to the bullet screen sharing identifier and the video returned according to the link address;
根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。According to the link address, the video is played, and the first bullet screen is displayed when the video is playing the image frame.
本发明实施例还提供了一种视频分享的分享端,所述分享端包括:确定模块、隐藏模块、获取模块和分享模块;其中,The embodiment of the present invention also provides a sharing terminal for video sharing, the sharing terminal includes: a determining module, a hiding module, an obtaining module and a sharing module; wherein,
所述确定模块,用于根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;The determining module is used to determine the first bullet screen to be shared on the image frame displayed by the video according to the selection instruction of the bullet screen;
所述隐藏模块,用于隐藏所述第一弹幕以外的第二弹幕;The hiding module is used to hide the second bullet screen other than the first bullet screen;
所述获取模块,用于获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;The acquisition module is configured to acquire a shared image and video information related to the image frame; wherein, the shared image includes: the currently displayed image frame and the first bullet screen reserved for display on the image frame;
所述分享模块,用于分享所述分享图像和所述视频信息。The sharing module is configured to share 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 screen selection interface is used for receiving an operation acting on the bullet screen, and responding to an operation instruction for selecting the bullet screen generated according to the operation.
上述技术方案中,所述分享端还包括:In the above technical solution, the sharing terminal further includes:
标记模块,用于标记所述第一弹幕;a marking module, used to mark the first bullet screen;
所述隐藏模块,具体用于隐藏未被标记的第二弹幕。The hiding module is specifically used to hide the unmarked second bullet screen.
上述技术方案中,In the above technical scheme,
所述标记模块,还用于为所述第一弹幕设置弹幕分享标识:The marking module is further configured to set a bullet screen sharing identifier for the first bullet screen:
所述分享模块,还用于将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。The sharing module is further configured to send the corresponding relationship between the bullet screen sharing identifier and the first bullet screen 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 playing progress determining module and a playing module; wherein,
所述接收模块,用于接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;The receiving module is configured to receive shared images and video information; wherein, the shared images include: image frames and a first bullet screen reserved for display on the image frames;
所述播放进度确定模块,用于根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;The playback progress determination module is used 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 further configured to send the video information to the background server; the video information includes: the bullet screen sharing identifier of the first bullet screen and the link address of the video;
接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;Receive the first bullet screen returned by the background server according to the bullet screen sharing identifier and the video returned according to the link address;
根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。According to the link address, the video is played, and the first bullet screen is displayed when the video is playing the image frame.
本发明实施例还提供了一种视频分享设备,The embodiment of the present invention also provides a video sharing device,
通信接口,用于与其他设备进行通信;Communication interface for communicating with other devices;
存储器,用于存储能够在处理器上运行的计算机程序;memory for storing computer programs capable of running on the processor;
处理器,分别与所述通信接口及所述存储介质相连,用于通过所述计算机程序至少可执行权利要求下述方法的步骤:A processor, which is respectively connected with the communication interface and the storage medium, is configured to execute at least the steps of the following method of the claim through the computer program:
根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;According to the selection instruction of the bullet screen, determine the first bullet screen to be shared on the image frame displayed in the video;
隐藏所述第一弹幕以外的第二弹幕;hide the second barrage other than the first barrage;
获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前视频展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;Acquiring a shared image and video information related to the image frame; wherein, the shared image includes: an image frame displayed in the current video and the first bullet screen reserved for display on the image frame;
分享所述分享图像和所述视频信息。Share the shared image and the video information.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现上述技术方案中的步骤。Embodiments of the present invention also provide a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps in the foregoing technical solutions are implemented.
本发明实施例还提供了一种视频分享设备,The embodiment of the present invention also provides a video sharing device,
通信接口,用于与其他设备进行通信;Communication interface for communicating with other devices;
存储器,用于存储能够在处理器上运行的计算机程序;memory for storing computer programs capable of running on the processor;
处理器,分别与所述通信接口及所述存储介质相连,用于通过所述计算机程序至少可执行下述方法的步骤:A processor, which is respectively connected to the communication interface and the storage medium, is configured to execute at least the steps of the following methods through the computer program:
接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;Receive shared images and video information; wherein, the shared images include: image frames and a first bullet screen reserved for display on the image frames;
根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;According to the video information, determine the playback progress of the image frame in the corresponding video;
从所述播放进度处开始播放所述视频。Playing the video starts at the playback progress.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时如上所述方法的步骤。Embodiments of the present invention further provide 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 above method are performed.
本发明实施例所提供的视频分享的方法、分享端和接收端,在进行视频分享时,可以隐藏待分享的第一弹幕以外的第二弹幕,在当前播放的视频展示的图像帧上仅展示用户选择的待分享的第一弹幕。在进行视频分享时,将当前的图像帧与展示的第一弹幕一并分享给接收端。接收端能够根据接收的分享图像和与分享图像相关的视频信息,找到分享图片中的图像帧在相应的视频中的播放进度,进而在找到的播放进度播放该视频,视频在播放过程中可以展示分享的第一弹幕。从而可以达到对视频以及视频的弹幕灵活地分享的目的。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, on the image frame displayed by the currently playing video. Only the first bullet screen selected by the user to be shared is displayed. During video sharing, the current image frame and the displayed first barrage are shared to the receiver. The receiving end can find the playback progress of the image frame in the shared image in the corresponding video according to the received shared image and video information related to the shared image, and then play the video at the found playback progress, and the video can be displayed during the playback process. The first barrage to share. Thereby, the purpose of flexibly sharing the video and the bullet screen of the video can be achieved.
附图说明Description of drawings
图1为本发明实施例中分享端的视频分享方法的基本流程示意图;1 is a schematic flowchart of a basic flow of a video sharing method at a sharing terminal in an embodiment of the present invention;
图2为本发明实施例中视频播放界面的示意图;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为本发明实施例中接收端的视频分享方法的基本流程示意图;5 is a schematic flowchart of a basic flow of a video sharing method at a receiving end according to an embodiment of the present invention;
图6为本发明实施例中视频分享方法的具体流程示意图;6 is a schematic flowchart of a specific flow 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为本发明实施例中视频分享的接收端的基本结构示意图;8 is a schematic diagram of a basic structure of a receiving end for video sharing in an embodiment of the present invention;
图9为本发明实施例中视频分享设备的结构示意图;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 according to an embodiment of the present invention.
具体实施方式Detailed ways
用户在观看电影或者电视剧过程中,当用户发现该电影或者视频中有些值得分享的视频画面或者视频片段时,往往不单是由于该段视频片段或者视频画面比较喜欢,还可能是在这一视频片段或者视频画面中发现了几条自己喜欢的或者与自己感想相似的弹幕。因此,在进行视频分享时,往往希望对自己喜欢的弹幕与视频一并分享。In the process of watching a movie or TV series, when the user finds some video pictures or video clips worth sharing in the movie or video, it is often not only because the video clip or video picture is more liked, but also because of the video clip. Or I found a few barrages that I like or have similar feelings to myself in the video screen. Therefore, when sharing videos, you often want to share your favorite barrages with the videos.
本发明实施例提供一种视频分享的方案,当一个用户账号通过播放地址链接将某一视频分享给其他用户账号后,其他用户账号的接收设备检测到用户点击该链接后,会从该链接下载视频,并播放该视频,即可使用户观看该视频以及该视频中所有的弹幕。然而在观看该视频的过程中,各个不同的用户账号可能针对该视频发表了很多弹幕,这就导致接收到该视频的用户在观看时无法在这些弹幕中找到分享用户所期望分享的那几条弹幕。An embodiment of the present invention provides a video sharing solution. After a user account shares a video to other user accounts through a play address link, the receiving device of the other user account detects that the user clicks the link and downloads the video from the link. video, and play the video, the user can watch the video and all the bullet screens in the video. However, in the process of watching the video, different user accounts may publish a lot of barrages for the video, which causes the user who receives the video to be unable to find in these barrages what the sharing user expects to share. Several barrages.
本发明实施例提供一种视频截图的分享方案,分享端在截图时可以根据弹幕的选择操作显示选择的弹幕,进而在截图的过程中将弹幕一并截取。然而这样的问题在于,当弹幕较多的时候,一面方,密集的弹幕可能会遮盖分享端所分享的弹幕;另外一方面,接收端的用户也无法在这些弹幕标注出自己喜欢的弹幕。An embodiment of the present invention provides a sharing solution for video screenshots. The sharing terminal can display the selected bullet screen according to the selection operation of the bullet screen when taking a screenshot, and then capture the bullet screen together during the screenshot process. However, the problem with this is that when there are many bullet screens, on the one hand, the dense bullet screens may cover the bullet screens shared by the sharing terminal; on the other hand, users on the receiving end cannot mark their favorite bullet screens on these bullet screens. Barrage.
可见,由于视频弹幕的特殊性,上述两种方案在进行视频分享或者视频图片分享时,往往无法对用户所喜爱的弹幕一并进行分享。It can be seen that, due to the particularity of the video barrage, the above two solutions are often unable to share the user's favorite barrage when performing video sharing or video picture sharing.
此外,在进行视频分享时只能对整个视频进行分享,接收端在接收到该视频后,只能按照分享端给出的视频片段在该视频中的播放进度,手动调整到分享端期望分享的位置,才可以观看到分享端想要分享的内容,显然,这样的视频分享方式也无法满足用户对视频分享需求。In addition, when sharing a video, only the entire video can be shared. After receiving the video, the receiving end can only manually adjust the playback progress of the video clip given by the sharing end to the video that the sharing end expects to share. location, and then 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.
本发明实施例提供了一种视频分享的方法,视频在播放的过程中,当播放到需要进行分享的视频片段、图片或者弹幕时,分享端可以根据接收的弹幕的选择指令,确定图像帧上待分享的弹幕,同时暂停播放视频,并隐藏待分享弹幕以外的其他弹幕。获取当前播放进度所对应的图像帧以及待分享弹幕的分享图像,并对分享图像进行分享。在进行图像分享时,分享端将图像帧相关的视频信息一同进行分享。进而,接收分享图像的接收端可以得到分享的弹幕和图像帧,还可以根据图像帧的视频信息,找到相应视频的播放进度,在所述播放进度出播放视频。An embodiment of the present invention provides a video sharing method. During the playback of the video, when a video clip, picture or bullet screen that needs to be shared is played, the sharing terminal can determine the image according to the selection instruction of the received bullet screen. The barrage to be shared on the frame, while the video is paused, and other barrages other than the barrage to be shared are hidden. 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 performing image sharing, the sharing end shares video information related to the image frames together. Furthermore, the receiving end that receives the shared image can obtain the shared bullet screen 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 in the playback progress.
为了能够更加详尽地了解本发明的特点与技术内容,下面结合附图对本发明的实现进行详细阐述。In order to understand the features and technical contents of the present invention in more detail, the implementation of the present invention will be described in detail below with reference to the accompanying drawings.
图1为本发明实施例提供的视频分享的基本流程图,如图1所示,所述方法主要包括以下步骤:FIG. 1 is a basic flowchart of video sharing provided by an embodiment of the present invention. As shown in FIG. 1 , the method mainly includes the following steps:
步骤101,根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;
步骤102,隐藏所述第一弹幕以外的第二弹幕;
步骤103,获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;Step 103, obtaining a shared image and video information related to the image frame; wherein, the shared image includes: an image frame currently displayed and the first bullet screen reserved for display on the image frame;
步骤104,分享所述分享图像和所述视频信息。
所述弹幕的选择指令可以为根据特定操作生成的指示待分享弹幕的指令。所述特定操作可以为触摸操作、点击操作等。The selection instruction of the bullet screen may be an instruction generated according to a specific operation to indicate the bullet screen to be shared. The specific operation may be a touch operation, a click operation, or the like.
所述第一弹幕可以为需要进行分享的弹幕;所述第二弹幕可以为不需要分享的弹幕。The first bullet screen may be a bullet screen that needs to be shared; the second bullet screen may be a bullet screen that does not need to be shared.
所述视频信息可以包括:视频的播放进度、视频的链接地址、视频的名称等相关的视频信息,以及所述第一弹幕的弹幕分享标识或标记。The video information may include related video information such as the playback progress of the video, the link address of the video, the name of the video, and the bullet screen sharing identifier or mark of the first bullet screen.
所述播放进度可指示出视频在分享端设备中已播放部分和/或未播放的部分。The playing progress may indicate the part that has been played and/or the part that has not been played of the video in 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 bullet screen may be generated according to user feedback information input by the viewing user when watching the video, and the user will superimpose and display information on the image frame and move according to a certain trajectory when the video is played later. For example, the bullet screen may directly include the content of the user feedback information. However, the bullet screen is the information that the service platform has set so that it can be dynamically displayed in the first client terminal according to the preset strategy. The bullet screen may include a text bullet screen and a picture bullet screen. The text bullet screen includes information in a text format; the picture bullet screen includes a picture bullet screen. The picture barrage may include text and images.
所述步骤101之前,所述方法还包括:根据弹幕的触发指令,进入弹幕选择界面,其中,所述弹幕选择界面用于接收作用于弹幕的操作,响应于根据所述操作生成的选择弹幕的操作指令。Before the
所述弹幕的触发指令,可以为分享端根据指定操作生成的可以触发弹幕选择界面的指令。所述指定操作可以为手势操作,例如滑动手势操作、长按操作等;也可以为对分享端的视频播放界面上特定按键的点击操作,比如,在分享端的视频播放器的视频播放界面上设置有于触发弹幕调节界面的“弹幕选择”虚拟按键。如图2所示,用户通过点击“弹幕选择”的虚拟按键,可以生成弹幕选择指令,进入弹幕选择界面。The triggering instruction of the bullet screen may be an instruction generated by the sharing terminal according to a specified operation, which can trigger the bullet screen 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, a video playback interface of the video player of the sharing terminal is provided with The "Barrage Selection" virtual button on the trigger barrage adjustment interface. As shown in Figure 2, the user can generate a barrage selection instruction by clicking the virtual button of "Barrage Selection", and enter the barrage selection interface.
需要说明的是,除了上述几种方式可以生成弹幕选择指令之外,还可以根据相应的需求,灵活地将不同的手势操作设置为用于生成弹幕选择指令的操作,比如可以将双击操作与“弹幕选择指令”绑定,则分享端根据在指定区域的双击操作可以生成弹幕选择指令,进而进入弹幕选择界面。It should be noted that, in addition to the above-mentioned methods for generating bullet screen selection instructions, different gesture operations can also be flexibly set as operations for generating bullet screen selection instructions according to corresponding requirements, for example, a double-click operation can be used. Binding with "Barrage Selection Command", the sharing terminal can generate a barrage selection command according to the double-click operation in the designated area, and then enter the barrage selection interface.
所述弹幕选择界面可以独立于视频播放界面。当分享端根据弹幕的触发指令,进入弹幕选择界面后,视频中的弹幕仍然在弹幕选择界面中正常播放。弹幕选择界面在接收操作指令时,可以不影响视频播放界面中正在播放的视频内容。例如,当弹幕选择界面接收到选择弹幕选择界面中的一条弹幕的点击操作时,该点击操作不会对当前正在播放的视频造成影响,如暂停当前正在播放的视频等。所述视频播放界面,可为能够对视频的播放进行操作的界面,例如,当检测到用户作用于所述视频播放界面的指令时,暂停、恢复或终止所述视频的播放等。The bullet screen selection interface may be independent of the video playback interface. When the sharing terminal enters the bullet screen selection interface according to the trigger command of the bullet screen, the bullet screen in the video still plays normally in the bullet screen selection interface. When the bullet screen selection interface receives an operation command, it may not affect the video content being played in the video playback interface. For example, when the bullet screen selection interface receives a click operation to select a bullet screen in the bullet screen 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 the video playback, for example, when a user's instruction acting on the video playback interface is detected, the playback of the video is paused, resumed, or terminated.
所述步骤101中,所述根据弹幕的选择指令可以为根据弹幕选择界面接收的作用于弹幕的操作,生成的弹幕的选择指令。所述作用于弹幕的操作可以为在选择弹幕的操作,例如,在待分享的弹幕上的点击操作、长按操作等。所述作用于弹幕的操作还可以为取消选定的操作,例如,在已将选定的弹幕上在进行点击操作,或者长按操作等,进而取消对弹幕的选定。In the
在所述步骤101之后,所述方法还包括:标记所述第一弹幕。After the
所述标记所述第一弹幕可以为:在所述第一弹幕上添加容易辨识的标记。当所述第一弹幕为多条弹幕时,添加的标记可以相同,也可以根据不同的弹幕设置不同的标记。The marking of the first bullet screen may be: adding an easily identifiable mark on the first bullet screen. When the first barrage is a plurality of barrages, the added marks may be the same, or different marks may be set according to different barrages.
所述标记第一弹幕还可包括:The marking the first bullet screen may further include:
在分享端的存储设备中为对应的弹幕添加标识位等,以区分第一弹幕和第二弹幕。In the storage device of the sharing terminal, add an identification bit to the corresponding bullet screen to distinguish the first bullet screen from the second bullet screen.
相应的,在步骤102中,所述隐藏所述第一弹幕以外的第二弹幕,可以包括:隐藏未被标记的第二弹幕。Correspondingly, in
所述隐藏未被标记的第二弹幕,包括:The hiding of the unmarked second bullet screen includes:
屏蔽未被标记的第二弹幕的显示,即不显示未被标记的第二弹幕。Block the display of unmarked second bullet screens, that is, do not display unmarked second bullet screens.
进一步地,所述标记所述第一弹幕,包括:为所述第一弹幕设置弹幕分享标识。相应的,所述方法还包括:将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。Further, the marking the first bullet screen includes: setting a bullet screen sharing identifier for the first bullet screen. Correspondingly, the method further includes: sending the corresponding relationship between the bullet screen sharing identifier and the first bullet screen to the server.
具体地,当用户通过特定操作触发弹幕选择指令后,分享端可以根据弹幕的选择指令确定需要进行分享的弹幕,即确定图像帧上待分享的第一弹幕。分享端可以在选中的第一弹幕上添加容易辨识的标记,进而根据标记的识别,可以对为添加标记的第二弹幕进行隐藏,以使当前视频播放的显示界面上仅显示有选中的弹幕。分享端还可以为选中的第一弹幕添加弹幕分享标识,并将第一弹幕与添加的弹幕分享标识的对应关系上传视频播放的后台服务器。视频的接收端可以根据服务器发送的第一弹幕和弹幕分享标识的对应关系,在展示相应的视频时,仅在播放的视频中显示所述第一弹幕。Specifically, after the user triggers the bullet screen selection instruction through a specific operation, the sharing terminal can determine the bullet screen to be shared according to the bullet screen selection instruction, that is, determine the first bullet screen to be shared on the image frame. The sharing terminal can add an easily recognizable mark to the selected first bullet screen, and then according to the identification of the mark, it can hide the second bullet screen for which the mark is added, so that only the selected bullet screen is displayed on the display interface of the current video playback. Barrage. The sharing terminal can also add a bullet screen sharing identifier to the selected first bullet screen, and upload the corresponding relationship between the first bullet screen and the added bullet screen sharing identifier to the background server for video playback. The receiver of the video can display the first bullet screen only in the played video according to the correspondence between the first bullet screen sent by the server and the bullet screen sharing identifier when displaying the corresponding video.
所述弹幕分享标识不仅可用于标记以区分第一弹幕和第二弹幕,所述弹幕分享标记,还可以用于区分不同的第一弹幕。例如,所述弹幕分享标识为弹幕分享序列号。不同弹幕分享序号对应了不同的第一弹幕。The bullet screen sharing identifier can not only be used to mark to distinguish the first bullet screen from the second bullet screen, but also can be used to distinguish different first bullet screens. For example, the bullet screen sharing identifier is the bullet screen sharing serial number. Different barrage sharing numbers correspond to different first barrages.
在所述步骤103中,所述获取分享图像以及所述图像帧的视频信息,可以包括:对隐藏所述第二弹幕的图像帧进行截图,得到需要进行分享的分享图像;根据当前视频的播放进度,以及视频的名称、地址等相关的信息,生成图像帧的视频信息。In the step 103, the obtaining the shared image and the video information of the image frame may include: taking a screenshot of the image frame hiding the second bullet screen 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 video information of the image frame.
需要说明的是,为了便于用户实现对图像帧的分享,为了方便对视频中指定图像帧进行截图,在分享端接收弹幕的选择指令后,分享端在响应于该指令时,可以将当前正在播放的视频进行暂停,以方便截图工具对当前图像帧进行截取,以获得仅包括选中的弹幕的图像帧。It should be noted that, in order to facilitate the sharing of image frames by users, and to facilitate taking screenshots of designated image frames in the video, after the sharing terminal receives the selection instruction of the barrage, the sharing terminal can respond to the instruction by sending the The playing video is paused so that the screenshot tool can capture the current image frame to obtain the image frame that only includes the selected bullet chat.
例如,在图3中,分享端根据点击“弹幕选择”按键的操作,进入弹幕选择界面。图3中白色线框所围的区域即为弹幕选择界面。弹幕选择界面接收点击弹幕的操作,触发弹幕选择指令,进而选中“弹幕c”。视频的分享端对弹幕选择界面中除“弹幕c”以外的其他弹幕进行隐藏,并将视频暂停在“00:00:08”这一视频播放进度。在这种情况下,视频的分享端可以通过截图工具对暂停的视频进行截图,以截取到“00:00:08”播放时刻的图像帧。此时的图像帧上携带一条弹幕,即选中的“弹幕c”。如此,可以得到待分享的分享图像。For example, in Figure 3, the sharing terminal enters the bullet screen selection interface according to the operation of clicking the "Bullet Screen Selection" button. The area surrounded by the white line frame in Figure 3 is the bullet screen 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 sharing end of the video hides other bullet screens except "Bullet Screen c" in the bullet screen selection interface, and pauses the video playback progress at "00:00:08". In this case, the video sharing end can use the screenshot tool to take a screenshot of the paused video to capture the image frame at the playback time 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, the shared image and the video information related to the image frame are shared with the receiving end.
例如,在进行图像分享时,视频的分享端可以显示如图4所示的视频分享界面,以询问是否对当前得到的图像帧进行分享。当接收到作用于区域“是”的操作时,分享端可以通过步骤103中确定的分享图片发送视频播放的后台服务器,以通过该后台服务器将分享图像帧及视频信息分享给图像帧的接收端。For example, during image sharing, the video sharing end may display a video sharing interface as shown in FIG. 4 to ask whether to share the currently obtained image frame. When receiving the "Yes" operation acting on the area, 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: Receive shared images and video information; wherein, the shared images include: image frames and a first bullet screen reserved for display on the image frames;
步骤502,根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;
步骤503,从所述播放进度处开始播放所述视频。Step 503: Start playing the video from the playing progress.
所述接收端接收分享图像和视频信息,所述分享图像中的第一弹幕可以为视频的分享端分享的弹幕。The receiving end receives the shared image and video information, and the first bullet screen in the shared image may be the bullet screen shared by the sharing end of the video.
所述视频信息可以包括:视频的播放进度、视频的链接地址、视频的名称等相关的视频信息,以及第一弹幕的弹幕分享标识。所述视频信息可以携带在分享图像中,由接收端一同接收。The video information may include: video playback progress, video link address, video name and other related video information, and the bullet screen sharing identifier of the first bullet screen. The video information can be carried in the shared image and received by the receiver together.
所述根据所述视频信息,确定所述图像帧在相应的视频中的播放进度,包括:将所述视频信息发送给后台服务器;接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。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 information returned by the background server according to the bullet screen sharing identifier. The bullet screen and the video returned according to the link address; the video is played according to the link address, and the first bullet screen 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 of the video according to the bullet screen sharing identifier in the video information and the corresponding relationship between the bullet screen sharing identifier sent by the sharing terminal and the first bullet screen. the first bullet screen, and then return the found corresponding video and the first bullet screen to the receiving end. The receiving end finds the playing progress of the image frame in the shared image in the received video according to the playing progress of the video in the video information, and then the receiving end can play the video at the corresponding playing progress.
所述弹幕分享标识,可以为分享端为所述第一弹幕设置的用于区分不同弹幕的序列号。所述服务器可以根据弹幕分享标识与所述第一弹幕的对应关系,找到第一弹幕,并向接收端返回所述第一弹幕。The bullet screen sharing identifier may be a serial number set by the sharing terminal for the first bullet screen to distinguish different bullet screen. The server may find the first bullet screen according to the corresponding relationship between the bullet screen sharing identifier and the first bullet screen, and return the first bullet screen 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 of the receiving end can find the shared video according to the video name in the video information or the link address of the video, and then the receiving end can jump and play the video according to the playback progress of the video carried in the shared image, and during the playing process Display the barrage corresponding to the barrage sharing logo.
需要说明的是,服务器可以根据弹幕分享标识与所述第一弹幕的对应关系,找到第一弹幕,由服务器对所述第一弹幕以外的第二弹幕进行隐藏,仅发送带有第一弹幕的视频给接收端;还可以根据弹幕分享标识与所述第一弹幕的对应关系,找到第一弹幕,并为所述第一弹幕添加明显的标记,向接收端返回标记的第一弹幕及未标记的第二弹幕。接收端可以对未带有标记的弹幕进行隐藏。It should be noted that the server can find the first bullet screen according to the corresponding relationship between the bullet screen sharing identifier and the first bullet screen, and the server can hide the second bullet screen other than the first bullet screen, and only send the There is a video of the first bullet screen to the receiving end; it is also possible to find the first bullet screen according to the corresponding relationship between the bullet screen sharing identifier and the first bullet screen, and add a clear mark to the first bullet screen, and send it to the receiver. The terminal returns the marked first bullet chat and the unmarked second bullet chat. The receiving end 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 FIG. 6 , which mainly includes the following steps:
步骤601,视频的分享端根据弹幕的触发指令,进入弹幕选择界面;
所述弹幕选择界面可以独立于视频播放界面。当分享端根据弹幕的触发指令,进入弹幕选择界面后,视频中的弹幕仍然在弹幕选择界面中正常播放。弹幕选择界面在接收操作指令时,可以不影响视频播放界面中正在播放的视频内容。The bullet screen selection interface may be independent of the video playback interface. When the sharing terminal enters the bullet screen selection interface according to the trigger command of the bullet screen, the bullet screen in the video still plays normally in the bullet screen selection interface. When the bullet screen selection interface receives an operation command, it may not affect the video content being played in the video playback interface.
步骤602,分享端根据弹幕选择界面触发的弹幕选择指令,确定图像帧上待分享的第一弹幕;
弹幕选择界面接收的作用于弹幕的操作,生成的弹幕的选择指令。所述作用于弹幕的操作可以为在选择弹幕的操作,例如,在待分享的弹幕上的点击操作、长按操作等。所述第一弹幕可以为需要进行分享的弹幕。The barrage selection interface receives the operations acting on the barrage, and the generated barrage selection command. The operation acting on the bullet screen may be an operation of selecting the bullet screen, for example, a click operation, a long-press operation, etc. on the bullet screen to be shared. The first bullet screen may be a bullet screen that needs to be shared.
步骤603,分享端为第一弹幕设置弹幕分享标识,并隐藏第一弹幕以外的第二弹幕;
分享端可以根据弹幕中的弹幕分享标识,对未携带弹幕分享标识的弹幕进行隐藏,并将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。The sharing terminal can hide the bullet screen that does not carry the bullet screen sharing identification according to the bullet screen sharing identification in the bullet screen, and send the corresponding relationship between the bullet screen sharing identification and the first bullet screen to the server.
分享端还可以标记第一弹幕,进而隐藏未标记的弹幕。The sharing terminal can also mark the first bullet chat, and then hide the unmarked bullet chat.
步骤604,分享端获取分享图像和视频信息;
分享端截取当前视频显示的图像帧,可以得到分享图像,所述分享图像上显示有第一弹幕。同时,分享端获取相关的视频信息,所述视频信息可以包括:视频的播放进度、视频的地址、视频的名称等相关的视频信息,以及第一弹幕的弹幕分享标识。The sharing terminal intercepts the image frame displayed by the current video, and can obtain the shared image, where the first bullet screen is displayed on the shared image. At the same time, the sharing terminal obtains relevant video information, the video information may include: video playback progress, video address, video name and other related video information, and the bullet screen sharing identifier of the first bullet screen.
步骤605,分享端对分享图像和视频信息进行分享;
分享端将获取的分享图像和视频信息分享给接收端。The sharing end shares the acquired shared image and video information to the receiving end.
步骤606,接收端接收分享图像和视频信息;
接收端接收分享端分享的分享图像和视频信息,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕。The receiving end receives the shared image and video information shared by the sharing end, where the shared image includes: an image frame and a first bullet screen reserved for display on the image frame.
步骤607,接收端根据点击分享图像的操作,在分享视频的播放进度处,展示带有第一弹幕的相应视频。
当接收端接收到点击分享图像的操作时,将所述视频信息发送给后台服务器。后台服务器可以根据视频信息中的链接地址,查找到分享的视频,并根据接收端发送的弹幕分享标识与弹幕的对应关系,确定第一弹幕。进而接收端接收带有第一弹幕的相应视频,并按照分享图像中携带的视频的播放进度,对视频进行跳转播放,且在播放过程中展示与弹幕分享标识对应的第一弹幕。When the receiving end receives the operation of clicking to share the image, it 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 screen according to the corresponding relationship between the bullet screen sharing identifier and the bullet screen sent by the receiving end. Then the receiving end receives the corresponding video with the first bullet screen, and according to the playback progress of the video carried in the shared image, jumps to play the video, and displays the first bullet screen corresponding to the bullet screen sharing logo during the playback process. .
本发明实施例提供的视频分享方法,用户在使用视频播放软件观看视频时,当看到自己喜欢的视频片段、图片或者弹幕时,可以通过点击或者长按自己喜欢的那条弹幕,进而暂停视频,并将选中的弹幕之外的其他弹幕进行屏蔽,并对当前播放进度对应的视频画面以及该条用户选中的弹幕进行截图,进而对该张截取到的图片进行分享。分享的图片中可以包含该条弹幕以及对应的视频进度,进而接收该图片的用户既可以看到用户所分享的弹幕和视频图片,还可以通过点击该图片,开启视频播放软件,以使视频播放软件可以根据该张图片中所携带的视频名称以及视频播放进度,查找该视频并按相应的视频进度进行播放。从而可以达到灵活地对视频以及视频的弹幕进行分享的目的。In the video sharing method provided by the embodiment of the present invention, when a user uses video playback software to watch a video, when he sees a video clip, picture or a bullet screen he likes, he can click or long press the bullet screen he likes, and then Pause the video, block other bullet screens except the selected bullet screen, and take a screenshot of the video screen corresponding to the current playback progress and the bullet screen selected by the user, and then share the captured picture. The shared picture can contain the barrage and the corresponding video progress, and then the user who receives the picture can not only see the barrage and video pictures shared by the user, but also click the picture to open the video playback software, so that the The video playback software can search for the video according to the video name and the video playback progress carried in the picture and play it according to the corresponding video progress. Thereby, the purpose of flexibly sharing the video and the barrage of the video 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
所述确定模块701,用于根据弹幕的选择指令,确定图像帧上待分享的第一弹幕;The determining
所述隐藏模块702,用于隐藏所述第一弹幕以外的第二弹幕;The
所述获取模块703,用于获取分享图像以及所述图像帧的视频信息;其中,所述分享图像包括:当前展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;The obtaining
所述分享模块704,用于分享所述分享图像和所述视频信息。The
进一步地,所述分享端700还包括:控制模块705和弹幕选择界面706;Further, the sharing
所述控制模块705,用于根据弹幕的触发指令,进入弹幕的选择界面;The
所述弹幕选择界面706,用于接收作用于弹幕的操作,响应于根据所述操作生成的选择弹幕的操作指令。The bullet
进一步地,所述分享端还包括:Further, the sharing terminal also includes:
标记模块707,用于标记所述第一弹幕;Marking
所述隐藏模块702,还用于隐藏未被标记的第二弹幕。The
进一步地,所述标记模块707,还用于为所述第一弹幕设置弹幕分享标识:Further, the marking
所述分享模块704,还用于将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。The
本发明实施例还提供了一种视频分享的接收端800,所述接收端800的基本结构如图8所示,接收模块801、播放进度确定模块802和播放模块803;其中,The embodiment of the present invention also provides a receiving
所述接收模块801,用于接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;The receiving
所述播放进度确定模块802,用于根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;The playback
所述播放模块803,用于从所述播放进度处开始播放所述视频。The
进一步地,所述播放进度确定模块802,还用于将所述视频信息发送给后台服务器;所述视频信息包括:第一弹幕的弹幕分享标识及所述视频的链接地址;接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。Further, the playback
本发明实施例还提供了一种视频分享设备900,所述视频分享设备900的结构如图9所示,包括:The embodiment of the present invention also provides a
通信接口901,用于与其他设备进行通信;A
存储器902,用于存储能够在处理器上运行的计算机程序;
处理器903,分别与所述通信接口及所述存储介质相连,用于通过所述计算机程序至少可执行下述方法的步骤:The
根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;隐藏所述第一弹幕以外的第二弹幕;获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前视频展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;分享所述分享图像和所述视频信息。According to the selection instruction of the bullet screen, determine the first bullet screen to be shared on the image frame displayed in the video; hide the second bullet screen other than the first bullet screen; obtain the shared image and video information related to the image frame; wherein , the shared image includes: the image frame displayed in the current video and the first bullet screen that remains displayed on the image frame; and the shared image and the video information are shared.
所述视频分享设备900还包括:多媒体组件904,与所述处理器903连接,包括在视频分享设备900与用户之间提供的一个作为输出接口的屏幕。The
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现下述方法的步骤: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 following method are implemented:
根据弹幕的选择指令,确定视频展示的图像帧上待分享的第一弹幕;隐藏所述第一弹幕以外的第二弹幕;获取分享图像以及所述图像帧相关的视频信息;其中,所述分享图像包括:当前视频展示的图像帧及保留展示在所述图像帧上的所述第一弹幕;分享所述分享图像和所述视频信息。According to the selection instruction of the bullet screen, determine the first bullet screen to be shared on the image frame displayed in the video; hide the second bullet screen other than the first bullet screen; obtain the shared image and video information related to the image frame; wherein , the shared image includes: the image frame displayed in the current video and the first bullet screen that remains displayed on the image frame; and the shared image and the video information are shared.
所述计算机程序被处理器运行时,还执行:The computer program, when executed by the processor, also executes:
根据弹幕的触发指令,进入弹幕选择界面,其中,所述弹幕选择界面用于接收选择所述第一弹幕的选择操作。According to the trigger instruction of the bullet screen, the bullet screen selection interface is entered, wherein the bullet screen selection interface is used for receiving a selection operation for selecting the first bullet screen.
所述计算机程序被处理器运行时,还执行:The computer program, when executed by the processor, also executes:
标记所述第一弹幕;所述隐藏所述第一弹幕以外的第二弹幕,包括:隐藏未被标记的第二弹幕。Marking the first bullet screen; and hiding the second bullet screen other than the first bullet screen includes: hiding the unmarked second bullet screen.
所述计算机程序被处理器运行时,还执行:The computer program, when executed by the processor, also executes:
所述标记所述第一弹幕,包括:为所述第一弹幕设置弹幕分享标识;The marking the first bullet screen includes: setting a bullet screen sharing identifier for the first bullet screen;
将所述弹幕分享标识及所述第一弹幕的对应关系发送给服务器。Send the corresponding relationship between the bullet screen sharing identifier and the first bullet screen to the server.
本发明实施例还提供了一种视频分享设备1000,所述视频分享设备1000的结构如图10所示,包括:An embodiment of the present invention further provides a
通信接口1001,用于与其他设备进行通信;A
存储器1002,用于存储能够在处理器上运行的计算机程序;
处理器1003,分别与所述通信接口及所述存储介质相连,用于通过所述计算机程序至少可执行下述方法的步骤:The
接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;从所述播放进度处开始播放所述视频。Receive a shared image and video information; wherein, the shared image includes: an image frame and a first bullet screen that remains 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
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现下述方法的步骤: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 following method are implemented:
接收分享图像和视频信息;其中,所述分享图像包括:图像帧以及保留展示在所述图像帧上的第一弹幕;根据所述视频信息,确定所述图像帧在相应的视频中的播放进度;从所述播放进度处开始播放所述视频。Receive a shared image and video information; wherein, the shared image includes: an image frame and a first bullet screen that remains 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.
所述计算机程序被处理器运行时,还执行:The computer program, when executed by the processor, also executes:
第一弹幕的弹幕分享标识及所述视频的链接地址;将所述视频信息发送给后台服务器;接收所述后台服务器根据弹幕分享标识返回的所述第一弹幕及根据所述链接地址返回的所述视频;根据所述链接地址,播放所述视频,并在视频播放所述图像帧时展示所述第一弹幕。The bullet screen sharing identifier of the first bullet screen and the link address of the video; send the video information to the background server; receive the first bullet screen returned by the background server according to the bullet screen sharing identifier and the link according to the link The video returned by the address; according to the link address, play the video, and display the first bullet screen 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
存储器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旨在包括但不限于这些和任意其它适合类型的存储器。
通信接口901为处理器903与外围接口模块之间的信息交互提供接口,通信接口1001为处理器1003与外围接口模块之间的信息交互提供接口,上述外围接口模块可以是键盘、鼠标、轨迹球、点击轮、按键、按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The
多媒体组件904包括在视频分享设备900与用户之间提供的一个作为输出接口的屏幕。多媒体组件1004包括在视频分享设备1000与用户之间提供的一个作为输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD,Liquid Crystal Display)和触控面板(TP,Touch Panel)。如果屏幕包括触控面板,屏幕可以由触摸屏来实现,以接收来自用户的输入信号。触控面板包括一个或多个触摸传感器,以感测触摸、滑动和触摸面板上的手势。触摸传感器不仅能感测触摸或滑动操作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件904和多媒体组件1004均可以包括一个前置摄像头和/或后置摄像头。当视频分享装置900或视频分享装置1000处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头或后置摄像头可以是一个固定的光学透镜系统、或具有焦距和光学变焦能力。The
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。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 |
|---|---|
| CN107786905A CN107786905A (en) | 2018-03-09 |
| CN107786905Btrue 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 |
|---|---|---|---|---|
| CN110691281B (en)* | 2018-07-04 | 2022-04-01 | 北京字节跳动网络技术有限公司 | Video playing processing method, terminal device, server and storage medium |
| CN109547835B (en)* | 2018-11-26 | 2022-11-29 | 北京字节跳动网络技术有限公司 | Video playing method and device |
| CN113163230B (en) | 2020-01-22 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Video message generation method and device, electronic equipment and storage medium |
| CN111405344B (en)* | 2020-03-18 | 2022-01-07 | 腾讯科技(深圳)有限公司 | Bullet screen processing method and device |
| CN112165646B (en)* | 2020-09-28 | 2022-02-18 | 腾讯科技(深圳)有限公司 | Video sharing method and device based on barrage message and computer equipment |
| CN115086742B (en)* | 2022-06-13 | 2024-05-14 | 北京达佳互联信息技术有限公司 | Audio and video generation method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| 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 |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105898600A (en)* | 2015-12-10 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Bullet screen data processing method and terminal equipment |
| JP6310109B2 (en)* | 2016-03-31 | 2018-04-11 | 株式会社インフォシティ | Broadcast service retransmission system and portable terminal for viewing |
| CN106604132B (en)* | 2016-12-09 | 2019-05-17 | 武汉斗鱼网络科技有限公司 | The method and device of Extracting Information in a kind of live streaming |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| 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 |
| Publication number | Publication date |
|---|---|
| CN107786905A (en) | 2018-03-09 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107786905B (en) | Video sharing method and device | |
| US10595071B2 (en) | Media information delivery method and system, terminal, server, and storage medium | |
| CN108900902B (en) | Method, device, terminal equipment and storage medium for determining video background music | |
| US20190253474A1 (en) | Media production system with location-based feature | |
| CN106911967B (en) | Live playback method and device | |
| TWI610180B (en) | Cooperative provision of personalized user functions using shared and personal devices | |
| CN106464976B (en) | Display device, user terminal device, server and control method thereof | |
| WO2017088408A1 (en) | Video capturing and sharing method and device | |
| WO2019024257A1 (en) | Method and device for publishing video files | |
| CN107682650A (en) | A kind of image processing method and device and storage medium | |
| US9966110B2 (en) | Video-production system with DVE feature | |
| CN104883583A (en) | Method and device for acquiring online video screenshot | |
| CN104735517B (en) | Information display method and electronic equipment | |
| WO2019047472A1 (en) | Bullet screen display method | |
| WO2019114330A1 (en) | Video playback method and apparatus, and terminal device | |
| WO2017096903A1 (en) | Android platform-based multimedia recommendation method and terminal device | |
| CN116166359A (en) | A data processing method, device, electronic device and storage medium | |
| US20190268625A1 (en) | Image display method and electronic device therefor | |
| 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 | |
| US20140181745A1 (en) | Image capture | |
| CN115967854A (en) | Photographing method and device and electronic equipment | |
| CN105744338B (en) | A kind of method for processing video frequency and its equipment | |
| CN115174812B (en) | Video generation method, video generation device and electronic equipment | |
| CN117395462A (en) | Method and device for generating media content, electronic equipment and readable 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 |