CN108322793B - Shared video playing method and device and electronic equipment - Google Patents

Shared video playing method and device and electronic equipment Download PDF

Info

Publication number
CN108322793B
CN108322793B CN201810171778.7A CN201810171778A CN108322793B CN 108322793 B CN108322793 B CN 108322793B CN 201810171778 A CN201810171778 A CN 201810171778A CN 108322793 B CN108322793 B CN 108322793B
Authority
CN
China
Prior art keywords
video
playing
client
window
played
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810171778.7A
Other languages
Chinese (zh)
Other versions
CN108322793A (en
Inventor
贾兆宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810171778.7A priority Critical patent/CN108322793B/en
Publication of CN108322793A publication Critical patent/CN108322793A/en
Application granted granted Critical
Publication of CN108322793B publication Critical patent/CN108322793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8549Creating video summaries, e.g. movie trailer

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method, a device and electronic equipment for playing a shared video, wherein the method comprises the steps of firstly respectively obtaining first identification information carried by the shared video and second identification information of a video being played, and then determining whether the video being played is the same as the shared video by judging whether the first identification information is the same as the second identification information; when the first identification information is different from the second identification information, the video being played is different from the shared video, so that the video being played can be played in a first playing window in the first client, and the shared video can be played in a second playing window in the first client. Therefore, the video being played and the shared video can be played simultaneously, and the video being played can be continuously watched after the user watches the shared video, so that the operation of the user after watching the shared video is reduced, and the user experience is improved.

Description

Shared video playing method and device and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for playing a shared video, and an electronic device.
Background
With the rapid development and popularization of communication technology, great convenience is brought to life and entertainment of people. People can conveniently share information, exchange and interact and the like through network communication, for example, a user can share favorite music, videos or characters and the like to users of other terminals through a terminal.
In order to realize more time-efficient friend interaction, compared with video sharing by sharing a video link address, a user prefers to watch the same video with friends at the same time and simultaneously perform interaction related to the video so as to enhance the feelings among the friends, and specifically, the video sharing can be realized by the following technologies:
the sending terminal can send a sharing request to the receiving terminal through the server, the sending terminal sends video information and playing progress information of a shared video to the server after receiving a feedback message which is sent by the receiving terminal and agrees to share, the server determines a sharing starting point of the shared video according to the video information and the playing progress information of the shared video, and then the shared video is transmitted to the receiving terminal from the sharing starting point, so that the sending terminal and the receiving terminal can synchronously play the shared video.
However, in the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
when a receiving terminal is playing a video, if the receiving terminal receives a shared video at this time, the shared video will replace the video being played by the receiving terminal to be played in general, so that after the shared video is played, a user needs to reopen the video that has not been seen before on the receiving terminal, which results in poor user experience.
Disclosure of Invention
The embodiment of the invention aims to provide a shared video playing method, a shared video playing device and electronic equipment, so that a video being played and a shared video can be played simultaneously, the operation of a user after watching the shared video is reduced, and the user experience is improved. The specific technical scheme is as follows:
in an aspect of the present invention, an embodiment of the present invention provides a method for playing a shared video, which is applied to a first client, and the method includes:
receiving a shared video and acquiring first identification information carried in the shared video;
acquiring second identification information of a video being played, and judging whether the first identification information is the same as the second identification information or not, wherein the video being played is played in a first playing window in a first client for playing;
and when the first identification information is different from the second identification information, playing the shared video in a second playing window in the first client.
Optionally, before receiving the shared video, the method for playing the shared video according to the embodiment of the present invention further includes:
and receiving a sharing request sent by the server, and sending feedback information agreeing to sharing to the server.
Optionally, receiving a sharing request sent by the server, and sending feedback information agreeing to sharing to the server, includes:
receiving a sharing request sent by a server, and sending a video abstract acquisition request corresponding to the sharing request;
receiving and playing a video abstract corresponding to the sharing request by using a second playing window;
and after a sharing agreement instruction clicked by the user is obtained, sending sharing agreement feedback information corresponding to the sharing request to the server.
Optionally, before receiving the shared video, the method for playing the shared video according to the embodiment of the present invention further includes:
and sending a sharing request to the server and receiving feedback information agreeing to sharing.
Optionally, before sending the sharing request to the server and receiving feedback information agreeing to share, the method for playing the shared video according to the embodiment of the present invention further includes:
sending a video abstract acquisition request;
and receiving and playing the video abstract corresponding to the video abstract acquisition request.
Optionally, before obtaining the second identification information of the video being played, the method for playing the shared video according to the embodiment of the present invention further includes:
judging whether a first client plays a video or not;
when the first client side does not play the video, playing the shared video in any playing window in the first client side;
and when the first client plays the video, executing the step of acquiring the second identification information of the video which is playing.
Optionally, playing the shared video in a second playing window in the first client includes:
playing the video being played by taking the first playing window as a main window, and playing the shared video by taking the second playing window as an auxiliary window; or
And playing the shared video by taking the second playing window as a main window, and playing the video which is being played by taking the first playing window as an auxiliary window.
Optionally, after the second playing window in the first client plays the shared video, the method for playing the shared video according to the embodiment of the present invention further includes:
periodically acquiring a first playing progress of the second client playing the shared video, and comparing the first playing progress with a second playing progress of the second playing window playing the shared video;
and when the first playing progress is different from the second playing progress, synchronizing the first playing progress and the second playing progress.
In another aspect of the embodiments of the present invention, an embodiment of the present invention further provides a shared video playing apparatus, which is applied to a first client, and the apparatus includes:
the shared video receiving module is used for receiving a shared video and acquiring first identification information carried in the shared video;
the comparison module is used for acquiring second identification information of the video being played and judging whether the first identification information is the same as the second identification information or not, wherein the video being played is played in a first playing window in the first client;
and the playing module is used for playing the shared video in a second playing window in the first client when the first identification information is different from the second identification information.
Optionally, the shared video playing apparatus in the embodiment of the present invention further includes:
and the sharing request receiving module is used for receiving the sharing request sent by the server and sending feedback information agreeing to sharing to the server.
Optionally, the sharing request receiving module includes:
the sharing request receiving submodule is used for receiving a sharing request sent by the server and sending a video abstract acquiring request corresponding to the sharing request;
the video abstract receiving submodule is used for receiving and playing a video abstract corresponding to the sharing request by using a second playing window;
and the feedback information sending submodule is used for sending feedback information of sharing agreement corresponding to the sharing request to the server after obtaining the sharing agreement instruction clicked by the user.
Optionally, the shared video playing apparatus in the embodiment of the present invention further includes:
and the sharing request sending module is used for sending a sharing request to the server and receiving feedback information agreeing to sharing.
Optionally, the shared video playing apparatus in the embodiment of the present invention further includes:
the video abstract acquisition request sending module is used for sending a video abstract acquisition request;
and the video abstract receiving module is used for receiving and playing the video abstract corresponding to the video abstract obtaining request.
Optionally, the shared video playing apparatus in the embodiment of the present invention further includes:
the judging module is used for judging whether the first client plays the video or not;
when the first client side does not play the video, indicating the playing module to play the shared video in any playing window of the first client side;
when the first client plays the video, the comparison module is indicated to acquire second identification information of the video being played.
Optionally, the playing module is specifically configured to:
playing the video being played by taking the first playing window as a main window, and playing the shared video by taking the second playing window as an auxiliary window; or
And playing the shared video by taking the second playing window as a main window, and playing the video which is being played by taking the first playing window as an auxiliary window.
Optionally, the shared video playing apparatus in the embodiment of the present invention further includes:
the playing progress acquiring module is used for periodically acquiring a first playing progress of the shared video played by the second client, and comparing the first playing progress with a second playing progress of the shared video played by the second playing window;
and the synchronization module is used for synchronizing the first playing progress and the second playing progress when the first playing progress is different from the second playing progress.
In another aspect of the present invention, an embodiment of the present invention further provides an electronic device, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the steps of the shared video playing method when executing the program stored in the memory.
In yet another aspect of the present invention, the present invention further provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform any one of the above steps of a shared video playing method.
In another aspect of the present invention, there is also provided a computer program product including instructions, which when run on a computer, causes the computer to perform any one of the steps of the above-mentioned method for sharing video playing.
According to the method, the device and the electronic equipment for playing the shared video, provided by the embodiment of the invention, first identification information carried by the shared video and second identification information of the video being played can be obtained at first, and then whether the video being played is the same as the shared video is determined by judging whether the first identification information is the same as the second identification information; when the first identification information is different from the second identification information, the video being played is different from the shared video, so that the video being played can be played in a first playing window in the first client, and the shared video can be played in a second playing window in the first client. Therefore, the video being played and the shared video can be played simultaneously, and the video being played can be continuously watched after the user watches the shared video, so that the operation of the user after watching the shared video is reduced, and the user experience is improved. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic structural diagram of a shared video playing method applied to a system that establishes a network connection through a server according to an embodiment of the present invention;
fig. 2 is a flowchart of a first implementation manner of a shared video playing method according to an embodiment of the present invention;
fig. 3 is a schematic view of a first interface of a shared video playing method applied to a first client according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a second interface of the first client to which the shared video playing method of the embodiment of the present invention is applied;
fig. 5 is a flowchart of a second implementation manner of a method for playing a shared video according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for playing a shared video according to a third implementation manner of the embodiment of the present invention;
fig. 7 is a flowchart of a fourth implementation manner of a method for playing a shared video according to an embodiment of the present invention;
fig. 8 is a flowchart of a fifth implementation manner of a shared video playing method according to an embodiment of the present invention;
fig. 9 is a flowchart of a sixth implementation manner of a method for playing a shared video according to an embodiment of the present invention;
fig. 10 is a flowchart of a method for playing a shared video according to a seventh implementation manner of the embodiment of the present invention;
fig. 11 is a schematic structural diagram of a shared video playback device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In the prior art, the second client may receive the sharing request sent by the first client, receive the shared video sent by the first client, and play the shared video in synchronization with the second client, but when the first client plays another video, after receiving the shared video sent by the first client, the shared video may replace the another video being played to play, and the playing progress of the another video being played may not be saved, after the playing of the shared video is completed, the user of the sharing recipient needs to reopen the another video, thereby increasing the operation of the user after watching the shared video, and causing poor user experience.
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for playing a shared video, and an electronic device, so as to implement that after a second client receives a shared video sent by the second client, the shared video and a video being played by the second client are played simultaneously, reduce operations of a user after watching the shared video, and improve user experience.
First, a shared video playing method according to an embodiment of the present invention may be applied to a system that establishes a network connection through a server, for example, as shown in fig. 1, it is a schematic structural diagram of a shared video playing method according to an embodiment of the present invention applied to a system that establishes a network connection through a server; in fig. 1, a server 110, a first terminal 120, a second terminal 130, a third terminal 140, and a communication link 150 may be included, where the communication link 150 may be a communication link between two terminals, or a communication link between a terminal and a server.
The shared video playing method according to the embodiment of the present invention may be applied to any one of the first terminal 120, the second terminal 130, and the third terminal 140, and the server 110 may send the shared video to any one of the three terminals.
For example, if the first terminal 120 is a terminal to which the method for playing the shared video according to the embodiment of the present invention is applied, the first terminal 120 may receive the shared video sent by the second terminal 130, the third terminal 140 and/or the server 110 when the video is being played, and then play the shared video by applying the method for playing the shared video according to the embodiment of the present invention, so that the video and the shared video that are being played may be played simultaneously, operations of the user after watching the shared video are reduced, and user experience is improved.
It should be understood that the structural diagram shown in fig. 1 is only for illustrating a shared video playing method according to an embodiment of the present invention, and is not used to limit the shared video playing method according to the embodiment of the present invention.
Next, a method for playing a shared video according to an embodiment of the present invention is described, as shown in fig. 2, which is a flowchart of a first implementation manner of the method for playing a shared video according to an embodiment of the present invention, and the method may include:
s210, receiving the shared video, and acquiring first identification information carried in the shared video.
The first identification information may be a name of the shared video or a video identification number of the shared video, and the video identification number may be a pre-written number and may be written by arabic numerals and/or upper and lower case letters of english.
The shared video playing method according to the embodiment of the present invention may be applied to a first client, where the first client may be an application installed on a terminal device, for example, the first client may be an application installed on the first terminal 120.
Specifically, the first client may receive a shared video sent by another client, may also receive a shared video sent by a server, and may also receive a shared video sent by another client and the server simultaneously, where the another client may be an application installed on another terminal, for example, the second client may be an application installed on the second terminal 130.
In some examples, the shared video may be at least 1.
For example, if the first client is an application installed on the first terminal 120, the first client may receive the shared video transmitted by the second terminal 130, the shared video transmitted by the third terminal 140, the shared video transmitted by the server 110, or the shared video transmitted by the second terminal 130, the third terminal 140, and the server 110 at the same time.
In some examples, the shared video may carry identification information of the shared video, so that the first client can conveniently identify the shared video, and therefore, after receiving the shared video, the first client may obtain the first identification information of the shared video.
In some examples, the first client may receive the shared video in a video stream, and specifically, the video stream is obtained by slicing the shared video, splitting the sliced shared video into a plurality of data packets, and then sending the data packets to the first client. Each data packet may carry first identification information.
S220, acquiring second identification information of the video being played, and judging whether the first identification information is the same as the second identification information.
The video being played is played in a first playing window in the first client, the second identification information may be a name of the video being played or a video identification number of the video being played, and the video identification number may be a pre-written number and may be written by arabic numerals and/or english upper and lower case letters.
Specifically, for a first client that is playing a video, in order to prevent the shared video from being played in place of the video that is being played after the shared video is received, the first client may obtain second identification information of the video that is being played after the shared video is received, and further determine whether the first identification information is the same as the second identification information.
For example, assuming that the first client is playing video a, after receiving the shared video B from the second client 130, the first identification information of the shared video B may be obtained through the above step S210, and then the second identification information of video a is obtained, so as to determine whether the first identification information of the shared video B and the second identification information of video a are the same.
Whether the shared video and the video being played are the same video can be determined by judging whether the first identification information is the same as the second identification information, if the first identification information is the same as the second identification information, it can be shown that the shared video and the video being played are the same video, and if the first identification information is different from the second identification information, it can be shown that the shared video and the video being played are not the same video, so that the first client can prevent the shared video from replacing the video being played for playing through subsequent steps.
And S230, when the first identification information is different from the second identification information, playing the shared video in a second playing window in the first client.
In some examples, at least two play window generation programs may be set in the first client in advance, one play window generation program may be called to generate one play window when the first client plays one video, and two play window generation programs may be called to generate two play windows when the first client plays two videos.
Specifically, when the first identification information is different from the second identification information, it indicates that the video being played is different from the shared video, and the first client may continue to play the video being played in a play window in which the video being played is played, and invoke another play window generation program to generate another play window to play the received shared video.
In some examples, at least two playing windows may be preset in the first client, and when one video is played by the first client, only one playing window may be opened, and when two different videos are played by the second client, two playing windows may be opened to be played simultaneously.
In some examples, the first and second playing windows may be two playing windows preset in the first client. After the first client determines the first identification information and the second identification information, and when the first identification information is different from the second identification information, the first client may play the video being played in a first playing window of the first client, and play the shared video in a second playing window of the first client.
Specifically, when determining that the first identification information is different from the second identification information, the first client may play the video being played in the window being played, that is, play the video being played in the first playing window, and then open the second playing window, and introduce the video frame of the shared video into the second playing window for playing.
In some examples, playing the shared video in a second play window in the first client may include:
s2301, playing the video being played by taking the first playing window as a main window, and playing the shared video by taking the second playing window as an auxiliary window; or
And S2302, playing the shared video by taking the second playing window as a main window, and playing the video being played by taking the first playing window as a secondary window.
The main window is a playing window with more video frame pixels in the interface of the first client, and the auxiliary window is a playing window with less video frame pixels in the interface of the first client compared with the main window.
Specifically, when the first client plays the video and the shared video being played, the first client may default to play the video being played with the first playing window as the main window, play the shared video with the second playing window as the sub-window, or default to play the shared video with the second playing window as the main window, and play the video being played with the first playing window as the sub-window.
For example, as shown in fig. 3, it is a first interface schematic diagram of a shared video playing method applied to a first client according to an embodiment of the present invention; in fig. 3, a main window 300 and a sub-window 310 may be included, where the main window 300 may play a shared video or a video being played by a first client, and the sub-window 310 may play the video being played by the first client or the shared video.
In some examples, the main window and the sub-window may be switched, the main window playing the video being played is switched to the sub-window playing the video being played, and the sub-window playing the shared video is switched to the main window playing the shared video.
In some examples, the first client may preset a play window switching button, for example, as shown in fig. 3, the interface may further include: playing the window switching button 320, the user can click the window switching button 320, and after the user clicks the window switching button 320, the first client can receive the window switching instruction, and further switch the main window and the auxiliary window according to the window switching instruction.
In some examples, the sound of the video corresponding to the main window may be set to a higher sound, the sound of the video corresponding to the sub window may be set to a lower sound, and the sound of the video corresponding to the sub window may also be set to mute.
In some examples, a pause operation may be performed on a video corresponding to the secondary window, and when the video corresponding to the primary window is paused, a play operation may be performed on the video corresponding to the secondary window to continue playing the video corresponding to the secondary window; when the main window is closed, the sub-window can be used as the main window, and the playing operation is performed on the video corresponding to the sub-window, so that the corresponding video is played in the main window.
In some examples, the first client may play the video being played and the shared video in the first playing window and the second playing window of the same size. For example, as shown in fig. 4, it is a second interface schematic diagram of the shared video playing method applied to the first client according to the embodiment of the present invention; in this fig. 4, a first client interface 400, a first play window 410 and a second play window 420 may be included, the first play window 410 and the second play window 420 being the same size in the first client interface.
In some examples, the first client may receive a plurality of shared videos and then play the plurality of shared videos and the video being played, for example, assuming that the first client receives the shared video C sent by the second terminal 130, the shared video D sent by the third terminal 140, and the shared video E sent by the server 110, respectively, and then may play the video a being played in a first playing window, then play the shared video C in a second playing window, play the shared video D in a third playing window, and play the shared video E in a fourth playing window.
According to the shared video playing method provided by the embodiment of the invention, first identification information carried by a shared video and second identification information of a video being played can be obtained firstly, and then whether the video being played is the same as the shared video is determined by judging whether the first identification information is the same as the second identification information; when the first identification information is different from the second identification information, the video being played is different from the shared video, so that the video being played can be played in a first playing window in the first client, and the shared video can be played in a second playing window in the first client. Therefore, the video being played and the shared video can be played simultaneously, the video being played can be continuously watched after the user watches the shared video, the operation of the user after watching the shared video is reduced, the users can watch the same video together, the emotional communication among the users is improved, and the user experience is improved.
In some examples, the shared video of the embodiment of the present invention may be a segment of a complete video, the complete video may be a segmented complete video, and when the shared video is a segment of a complete video, a video segmentation point in the segmented complete video may be used as a play starting point to play, that is, a time point corresponding to a first frame of the shared video or a position of the first frame in the complete video frame. It should be noted that the above-mentioned complete video may be segmented by applying a segmentation method in the prior art, for example, a face recognition technology is used to identify stars in a complete video frame, and then a video frame with stars is divided into one segment, and a video frame without stars is divided into one segment, so that the complete video may be segmented.
For example, assuming that the total duration of a complete video is T, the start time is 0, and the end time is T5, where the time periods corresponding to video frames without stars are 0-T1, T2-T3, and T4-T5, and the time periods corresponding to video frames with stars are T1-T2, and T3-T4, a demarcation point may be added at the video frame positions corresponding to T1, T2, T3, and T4, and the complete video may be segmented.
In some examples, the shared video may also be a complete video, and the shared video may carry a sharing flag of a sharing start point, and after receiving the shared video, the first client may acquire the sharing start point and then start playing the shared video from the sharing start point. The shared starting point may be a marker point that is set in advance in the shared video by the shared video sending client in order to facilitate the first client to determine the starting position for playing the shared video.
Specifically, the sending client of the shared video may add a sharing flag to the shared video, for example, add a sharing starting point to the shared video, where the sharing starting point may be a current progress of the sending client of the shared video when playing the shared video. And then sending the sharing video added with the sharing mark to the first client.
In some examples, the shared video in the embodiment of the present invention may further carry a sharing end point, and when the shared video is played by applying the shared video playing method in the embodiment of the present invention, only a video segment between the sharing start point and the sharing end point may be played. Therefore, the video clip liked by the user of the sharing request sending client can be played to the user of the first client, and the user of the first client can only watch the video clip between the sharing starting point and the sharing ending point, so that the time for the user of the first client to watch the shared video can be reduced, the time for the user of the first client to watch the shared video can be saved, and the user experience can be improved.
In an optional embodiment of the present invention, on the basis of the shared video playing method shown in fig. 2, a possible implementation manner is further provided in the embodiment of the present invention, as shown in fig. 5, which is a flowchart of a second implementation manner of the shared video playing method in the embodiment of the present invention, and before receiving the shared video, in S210, the shared video playing method in the embodiment of the present invention may further include:
s240, receiving a sharing request sent by the server, and sending feedback information agreeing to sharing to the server;
in some examples, the sharing request may be sent by other clients through the server, which may be clients other than the first client that establish a network connection with the server. After other clients send sharing requests through the server, the first client may receive the sharing requests sent by the server.
For example, a second client installed on the second terminal 130 may transmit a sharing request through the server 110, and thus, a first client installed on the first terminal 120 may receive the sharing request transmitted by the second client through the server 110.
Specifically, the second client may store a buddy list, where the buddy list may include identification information of the first client, where the identification information may be a name of the first client, a number of the first client, or a name of the first terminal 120 where the first client is installed. The user of the second client may select the first client in the buddy list and send a share request to the first client.
After the first client receives the sharing request sent by the server, the first client may pop up a window of the sharing request, and two buttons of "yes" and "no" may be set in the window of the sharing request for the user to select.
According to the shared video playing method provided by the embodiment of the invention, the first client can agree with the sharing requests sent by other clients and receive the shared videos sent by other clients, so that the first client user can watch the shared videos with other client users at the same time, and the user experience of the shared video playing method provided by the embodiment of the invention is improved.
In an optional embodiment of the present invention, on the basis of the shared video playing method shown in fig. 5, a possible implementation manner is further provided in the embodiment of the present invention, as shown in fig. 6, which is a flowchart of a third implementation manner of the shared video playing method in the embodiment of the present invention, and in fig. 6, the step in S240 is: receiving a sharing request sent by a server and sending feedback information agreeing to sharing to the server, may include:
and S241, receiving the sharing request sent by the server, and sending a video abstract acquisition request corresponding to the sharing request.
In some examples, in order to enable a user to know whether a shared video corresponding to the sharing request is a favorite video, the first client may preset a video summary obtaining window, when the first client receives the sharing request sent by the server and displays the sharing request to the user in the window of the sharing request, the video summary obtaining window may be displayed to the user together, the user may select whether to obtain a video summary, and when the user selects to obtain the video summary, the first client may receive a video summary obtaining instruction selected by the user, and may further generate a video summary obtaining request according to the video summary obtaining instruction and send the video summary obtaining request to the server.
In some examples, the video summary corresponding to the sharing request may be pre-stored in the server 110, or may be pre-stored locally at the client that has established a network connection with the server 110 and sent the sharing request through the server 110.
Specifically, when the video summary is stored in the server 110, after the first client sends a video summary obtaining request, the server 110 may search for the video summary corresponding to the video summary obtaining request. When the video summary is stored locally at the client that establishes a network connection with the server 110 and sends the sharing request through the server 110, the server 110 may forward the video summary obtaining request to the client that sends the sharing request after receiving the video summary obtaining request.
In some examples, the server 110 or the client sending the sharing request may generate the video summary in real time after receiving the video summary obtaining request.
It should be noted that, the method for generating the video summary may adopt the prior art, and is not described herein again.
S242, receiving and playing the video summary corresponding to the sharing request in the second playing window.
In some examples, the video summary may be a collection of highly-highlighted video frames or a collection of more compact video frames of a video scenario.
Specifically, in some examples, when the video summary is stored in the server 110, the server 110 may send the video summary corresponding to the video summary obtaining request to the first client after receiving the video summary obtaining request sent by the first client, and thus, the first client may receive the video summary corresponding to the sharing request, where the sharing request, the video summary obtaining request, and the video summary correspond to each other.
In some examples, when the video summary is stored locally at the client that has established a network connection with the server 110 and sent the sharing request through the server 110, the client that sent the sharing request may locally obtain the video summary corresponding to the video summary obtaining request after receiving the video summary obtaining request and send the video summary to the first client through the server 110, and thus the first client may receive the video summary sent by the client that sent the sharing request.
After receiving the video summary, the first client may play the video summary in a second playing window of the first client.
And S243, after the sharing agreement instruction clicked by the user is obtained, sending sharing agreement feedback information corresponding to the sharing request to the server.
Specifically, after the first client plays the video abstract, the user may click a button for agreeing to share or click a button for disagreeing with share, and after the user clicks the button for agreeing to share, the first client may obtain a sharing agreement instruction generated by the user clicking the button for agreeing to share, and then may generate feedback information for agreeing to share according to the sharing agreement instruction, and send the feedback information to the server.
In some examples, the server may send the shared video to the first client after receiving the feedback information of sharing agreement, or may forward the feedback information of sharing agreement to the client sending the sharing request, and the client sending the sharing request may send the shared video to the first client directly after receiving the feedback information of sharing agreement.
According to the shared video playing method provided by the embodiment of the invention, the video abstract is obtained and played, so that the user can firstly watch the video abstract before agreeing to the sharing request, and then whether the user agrees to receive the shared video is determined by judging whether the video abstract is wonderful, and the user experience of the shared video playing method provided by the embodiment of the invention can be improved.
In an optional embodiment of the present invention, on the basis of the shared video playing method shown in fig. 2, a possible implementation manner is further provided in the embodiment of the present invention, as shown in fig. 7, which is a flowchart of a fourth implementation manner of the shared video playing method in the embodiment of the present invention, and before receiving the shared video, in S210, the shared video playing method in the embodiment of the present invention may further include:
and S250, sending a sharing request to the server and receiving feedback information for agreeing to sharing.
In some examples, the first client may also send a sharing request to other clients to request sharing of the shared videos of the other clients. For example, the first terminal 120, in which the first client is installed, may transmit a sharing request to the third terminal 140 through the server 110 to request sharing of the shared video of the third terminal 140.
Specifically, the first client may store a buddy list, where the buddy list may include identification information of a third client installed on the third terminal 140, and may also store a name of a video being played by the third client.
After seeing the name of the video being played by the third client, the user of the first client may select and send a sharing request to the third client through the server 110 to share the video being played by the third client. The third client may receive the sharing request sent by the first client, and pop up a window of the sharing request, where the user of the third client may select "yes" or "no" in the window of the sharing request, and when the user of the third client selects the "no" button, it may be stated that the user of the third client does not agree with sharing the video being played, and the third client may obtain a rejection instruction corresponding to the user selecting the "no" button, and may further generate feedback information of rejecting sharing according to the rejection instruction, and send the feedback information to the first client through the server 110.
After the user of the third client selects the "yes" button, it may be stated that the user of the third client agrees to share, and therefore, the third client may obtain the agreement sharing instruction corresponding to the "yes" button selected by the user, and may further generate feedback information of agreement sharing corresponding to the agreement sharing instruction, and send the feedback information to the first client through the server 110.
According to the shared video playing method provided by the embodiment of the invention, the first client can agree with the sharing requests sent by other clients, receive the shared videos sent by other clients, and send the sharing requests to other clients to request to acquire the shared videos sent by other clients, so that various sharing options are provided for users, and the user experience of the shared video playing method provided by the embodiment of the invention is improved.
In an optional embodiment of the present invention, on the basis of the shared video playing method shown in fig. 7, a possible implementation manner is further provided in the embodiment of the present invention, as shown in fig. 8, which is a flowchart of a fifth implementation manner of the shared video playing method according to the embodiment of the present invention, in fig. 8, in S250, the step: before sending a sharing request to a server and receiving feedback information agreeing to share, the method for playing a shared video according to the embodiment of the present invention may further include:
and S260, sending a video abstract acquisition request.
And S270, receiving and playing the video abstract corresponding to the video abstract obtaining request.
In some examples, a user of a first client may first obtain and view a video summary before actively obtaining shared videos of other clients, and may then decide whether to obtain the shared videos.
Specifically, the first client may store a friend list, and a user of the first client may select a friend from the list, view a name of a video being watched by the friend, and further send a video summary acquisition request to a client corresponding to the friend.
Specifically, the video summary obtaining request may be sent to the client corresponding to the friend through the server, and after receiving the video summary obtaining request, the client corresponding to the friend may send the video summary corresponding to the video summary obtaining request to the first client.
In some examples, after receiving the video summary obtaining request, the server may view a video name carried in the video summary obtaining request, and then locally obtain a video summary corresponding to the video name from the server and send the video summary to the first client.
The first client may play the video summary after receiving the video summary corresponding to the video summary acquisition request.
According to the shared video playing method provided by the embodiment of the invention, before actively acquiring the shared video, a user can firstly check the video abstract of the shared video and then decide whether to acquire the shared video, so that more selection bases can be provided for the user, and the user experience is improved.
In an optional embodiment of the present invention, on the basis of the shared video playing method shown in fig. 2, a possible implementation manner is further provided in the embodiment of the present invention, as shown in fig. 9, which is a flowchart of a sixth implementation manner of the shared video playing method in the embodiment of the present invention, and in fig. 9, before acquiring the second identification information of the video being played, the shared video playing method in the embodiment of the present invention may further include:
s280, judging whether the first client plays the video;
s281, when the first client does not play the video, playing the shared video in any playing window of the first client.
In some examples, after the first client receives the shared video and acquires the first identification information carried in the shared video, it may be determined whether the first client is playing the video.
Specifically, when the first client is playing a video, the first client performs a decoding operation on the video data, and therefore, whether the first client is playing the video can be determined according to whether the first client is performing the decoding operation on the video data.
When the first client does not execute the decoding operation, it may be indicated that the first client does not play the video, and the first client may open any one of the at least two playing windows of the first client, and execute the decoding operation on the shared video, so as to play the shared video in the playing window.
For this reason, the method for playing shared videos according to the embodiment of the present invention further provides a possible implementation manner:
s221, when the first client plays the video, acquiring second identification information of the video being played.
Specifically, when the first client is playing a video, in order to determine whether a playing window needs to be reopened to play the shared video, the first client may obtain the second identification information of the video being played. It may then be determined whether the first identification information and the second identification information are the same.
When the first identification information is different from the second identification information, the video being played can be played in a first playing window in the first client, and the shared video can be played in a second window in the first client.
By judging whether the first client plays the video or not, the first client can determine the playing window for playing the shared video after receiving the shared video, and then open the playing window for playing the shared video to play the shared video, so that the situation that a plurality of playing windows are opened after the first client receives the shared video when the first client does not play the video is avoided.
Since the shared video in the shared video playing method of the embodiment of the present invention is received through the network, when the network speeds of the shared video sending client and the shared video receiving client are not consistent, the playing schedules of the shared video sending client and the shared video receiving client may be inconsistent, so that the user experience is poor.
In order to reduce the influence of inconsistent network speeds on the playing progress, in an optional embodiment of the present invention, on the basis of the shared video playing method shown in fig. 2, a possible implementation manner is further provided in the embodiment of the present invention, as shown in fig. 10, which is a flowchart of a seventh implementation manner of the shared video playing method in the embodiment of the present invention, in fig. 10, after the shared video is played in a second playing window in the first client in S230, the shared video playing method in the embodiment of the present invention may further include:
s290, periodically acquiring a first playing progress of the second client playing the shared video, and comparing the first playing progress with a second playing progress of the second playing window playing the shared video; and when the first playing progress is different from the second playing progress, synchronizing the first playing progress and the second playing progress.
The above-mentioned synchronization period may be set empirically in advance, for example, the synchronization period is set to 3s, or set to 10s, etc.
In some examples, in order to make the playing progress of the first client identical to the playing progress of the shared video sending client when the shared video is played, the first client may periodically obtain a first playing progress of the shared video sending client in playing the shared video, that is, the playing progress of the second client in playing the shared video, and a second playing progress of the first client in playing the shared video, and then compare the first playing progress with the second playing progress.
Specifically, the first client may send a first playing progress obtaining request to the second client, and after receiving the first playing progress obtaining request, the second client obtains the playing progress of the local playing shared video and sends the playing progress to the first client, so that the first client may obtain the first playing progress of the second client in playing the shared video.
In some examples, the playing progress may be a position of a currently playing video frame in the shared video, or a position of a time point corresponding to the currently playing video frame in the total time of the shared video. For example, the total time of sharing the video is 15 minutes, the time point corresponding to the currently played video frame is 10 minutes, and the playing progress is 10 minutes.
After comparing the first playing progress with the second playing progress, the first client may execute corresponding steps.
Specifically, when the first playing progress is different from the second playing progress, the first client may synchronize the first playing progress and the second playing progress.
In some examples, when the first playing progress is slower than the second playing progress, a frame skipping playing instruction may be sent to the shared video played by the second client, and the second client may skip the frame of the shared video to the same time point as the second playing progress for playing after receiving the frame skipping playing instruction.
When the first playing progress is faster than the second playing progress, a frame skipping playing action can be executed on the first client, and the shared video can be skipped to the same time point as the first playing progress for playing.
In some examples, a fast forward action may also be performed on a client having a slower play schedule such that the play schedules of the first client and the second client are the same. After the playing progress of the first client and the second client is the same, the execution of the fast forward action may be ended. For example, the playback is performed at 1.2 times the playback speed, or at 1.5 times the playback speed, and the like.
By the shared video playing method, the influence of inconsistent network speeds on the playing progress can be reduced, the influence of inconsistent playing progress on users can be avoided, and the user experience is improved.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides a shared video playing apparatus, which may be applied to a first client, as shown in fig. 11, and is a schematic structural diagram of the shared video playing apparatus according to the embodiment of the present invention, where the apparatus may include:
a shared video receiving module 1110, configured to receive a shared video and obtain first identification information carried in the shared video;
a comparison module 1120, configured to obtain second identification information of the video being played, and determine whether the first identification information is the same as the second identification information, where the video being played is played in a first playing window in the first client;
the playing module 1130 is configured to play the shared video in a second playing window of the first client when the first identification information is different from the second identification information.
The shared video playing device provided by the embodiment of the invention can firstly acquire the first identification information carried by the shared video and the second identification information of the video being played, and then determine whether the video being played is the same as the shared video by judging whether the first identification information is the same as the second identification information; when the first identification information is different from the second identification information, the video being played is different from the shared video, so that the video being played can be played in a first playing window in the first client, and the shared video can be played in a second playing window in the first client. Therefore, the video being played and the shared video can be played simultaneously, and the video being played can be continuously watched after the user watches the shared video, so that the operation of the user after watching the shared video is reduced, and the user experience is improved.
Specifically, the shared video playing apparatus according to the embodiment of the present invention further includes:
and the sharing request receiving module is used for receiving the sharing request sent by the server and sending feedback information agreeing to sharing to the server.
Specifically, the sharing request receiving module includes:
the sharing request receiving submodule is used for receiving a sharing request sent by the server and sending a video abstract acquiring request corresponding to the sharing request;
the video abstract receiving submodule is used for receiving and playing a video abstract corresponding to the sharing request by using a second playing window;
and the feedback information sending submodule is used for sending feedback information of sharing agreement corresponding to the sharing request to the server after obtaining the sharing agreement instruction clicked by the user.
Specifically, the shared video playing apparatus according to the embodiment of the present invention further includes:
and the sharing request sending module is used for sending a sharing request to the server and receiving feedback information agreeing to sharing.
Specifically, the shared video playing apparatus according to the embodiment of the present invention further includes:
the video abstract acquisition request sending module is used for sending a video abstract acquisition request;
and the video abstract receiving module is used for receiving and playing the video abstract corresponding to the video abstract obtaining request.
Specifically, the shared video playing apparatus according to the embodiment of the present invention further includes:
the judging module is used for judging whether the first client plays the video or not;
when the first client does not play the video, the playing module 1130 is instructed to play the shared video in any playing window of the first client;
when the first client is playing the video, the comparing module 1120 is instructed to obtain the second identification information of the video being played.
Specifically, the playing module 1130 is specifically configured to:
playing the video being played by taking the first playing window as a main window, and playing the shared video by taking the second playing window as an auxiliary window; or
And playing the shared video by taking the second playing window as a main window, and playing the video which is being played by taking the first playing window as an auxiliary window.
Specifically, the shared video playing apparatus according to the embodiment of the present invention further includes:
the playing progress acquiring module is used for periodically acquiring a first playing progress of the shared video played by the second client, and comparing the first playing progress with a second playing progress of the shared video played by the second playing window;
and the synchronization module is used for synchronizing the first playing progress and the second playing progress when the first playing progress is different from the second playing progress.
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, which includes a processor 1210, a communication interface 1220, a memory 1230, a communication bus 1240 and a display 1250, where the processor 1210, the communication interface 1220, the memory 1230 and the display 1250 complete communication with each other through the communication bus 1240,
a memory 1230 for storing computer programs;
the processor 1210, when executing the programs stored in the memory 1230, performs the following steps:
step A, receiving a shared video, and acquiring first identification information carried in the shared video;
b, acquiring second identification information of the video being played, and judging whether the first identification information is the same as the second identification information;
and step C, when the first identification information is different from the second identification information, the video which is being played is played in a first playing window in the first client, and the shared video is played in a second playing window in the first client.
A display 1250, configured to receive the information that the first playing window in the first client plays the video being played and the second playing window in the first client plays the shared video, which are sent by the processor 1210, and display the video being played and the shared video.
According to the electronic device provided by the embodiment of the invention, first identification information carried by a shared video and second identification information of a video being played can be firstly obtained, and then whether the video being played is the same as the shared video is determined by judging whether the first identification information is the same as the second identification information; when the first identification information is different from the second identification information, the video being played is different from the shared video, so that the video being played can be played in a first playing window in the first client, and the shared video can be played in a second playing window in the first client. Therefore, the video being played and the shared video can be played simultaneously, and the video being played can be continuously watched after the user watches the shared video, so that the operation of the user after watching the shared video is reduced, and the user experience is improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to execute a shared video playing method as described in any of the above embodiments.
The computer-readable storage medium provided by the embodiment of the present invention may first obtain first identification information carried by a shared video and second identification information of a video being played, and then determine whether the video being played is the same as the shared video by determining whether the first identification information is the same as the second identification information; when the first identification information is different from the second identification information, the video being played is different from the shared video, so that the video being played can be played in a first playing window in the first client, and the shared video can be played in a second playing window in the first client. Therefore, the video being played and the shared video can be played simultaneously, and the video being played can be continuously watched after the user watches the shared video, so that the operation of the user after watching the shared video is reduced, and the user experience is improved.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform a method for shared video playback as described in any of the above embodiments.
The computer program product containing the instruction provided by the embodiment of the invention can firstly acquire the first identification information carried by the shared video and the second identification information of the video being played, and then determine whether the video being played is the same as the shared video by judging whether the first identification information is the same as the second identification information; when the first identification information is different from the second identification information, the video being played is different from the shared video, so that the video being played can be played in a first playing window in the first client, and the shared video can be played in a second playing window in the first client. Therefore, the video being played and the shared video can be played simultaneously, and the video being played can be continuously watched after the user watches the shared video, so that the operation of the user after watching the shared video is reduced, and the user experience is improved.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. A shared video playing method is applied to a first client, and comprises the following steps:
receiving a shared video and acquiring first identification information carried in the shared video;
acquiring second identification information of a video being played, and judging whether the first identification information is the same as the second identification information, wherein the video being played is played in a first playing window in the first client;
when the first identification information is different from the second identification information, continuing to play the video being played by using the first playing window, and calling a second playing window generation program to generate a second playing window so as to play the shared video in the second playing window in the first client;
periodically acquiring a first playing progress of the shared video played by a second client, and comparing the first playing progress with a second playing progress of the shared video played by a second playing window;
and when the first playing progress is different from the second playing progress, synchronizing the first playing progress and the second playing progress.
2. The method of claim 1, wherein prior to said receiving the shared video, the method further comprises:
and receiving a sharing request sent by a server, and sending feedback information agreeing to sharing to the server.
3. The method of claim 2, wherein the receiving a sharing request sent by a server and sending feedback information agreeing to sharing to the server comprises:
receiving a sharing request sent by a server, and sending a video abstract acquisition request corresponding to the sharing request;
receiving and playing the video abstract corresponding to the sharing request by the second playing window;
and after a sharing agreement instruction clicked by a user is obtained, sending sharing agreement feedback information corresponding to the sharing request to the server.
4. The method of claim 1, wherein prior to said receiving the shared video, the method further comprises:
and sending a sharing request to the server and receiving feedback information agreeing to sharing.
5. The method of claim 4, wherein before the sending a request to share to the server and receiving feedback information to approve sharing, the method further comprises:
sending a video abstract acquisition request;
and receiving and playing the video abstract corresponding to the video abstract acquisition request.
6. The method according to claim 1, wherein before the obtaining the second identification information of the video being played, the method further comprises:
judging whether the first client plays a video or not;
when the first client side does not play the video, playing the shared video in any playing window in the first client side;
and when the first client plays the video, executing the step of acquiring the second identification information of the video which is playing.
7. The method according to any of claims 1-6, wherein the playing the shared video in the second playing window in the first client comprises:
playing the video being played by taking the first playing window as a main window, and playing the shared video by taking the second playing window as an auxiliary window; or
And playing the shared video by taking the second playing window as a main window, and playing the video being played by taking the first playing window as an auxiliary window.
8. A shared video playing apparatus, applied to a first client, the apparatus comprising:
the shared video receiving module is used for receiving a shared video and acquiring first identification information carried in the shared video;
the comparison module is used for acquiring second identification information of a video being played and judging whether the first identification information is the same as the second identification information or not, wherein the video being played is played in a first playing window in the first client;
a playing module, configured to continue to play the video being played in the first playing window when the first identification information is different from the second identification information, and invoke a second playing window generation program to generate the second playing window, so as to play the shared video in a second playing window in the first client;
the playing progress acquiring module is used for periodically acquiring a first playing progress of the shared video played by the second client, and comparing the first playing progress with a second playing progress of the shared video played by the second playing window;
and the synchronization module is used for synchronizing the first playing progress and the second playing progress when the first playing progress is different from the second playing progress.
9. The apparatus of claim 8, further comprising:
and the sharing request receiving module is used for receiving the sharing request sent by the server and sending feedback information agreeing to sharing to the server.
10. The apparatus of claim 9, wherein the sharing request receiving module comprises:
the sharing request receiving submodule is used for receiving a sharing request sent by a server and sending a video abstract acquiring request corresponding to the sharing request;
the video abstract receiving submodule is used for receiving and playing the video abstract corresponding to the sharing request by the second playing window;
and the feedback information sending submodule is used for sending feedback information of sharing agreement corresponding to the sharing request to the server after obtaining the sharing agreement instruction clicked by the user.
11. The apparatus of claim 8, further comprising:
and the sharing request sending module is used for sending a sharing request to the server and receiving feedback information agreeing to sharing.
12. The apparatus of claim 11, further comprising:
the video abstract acquisition request sending module is used for sending a video abstract acquisition request;
and the video abstract receiving module is used for receiving and playing the video abstract corresponding to the video abstract obtaining request.
13. The apparatus of claim 8, further comprising:
the judging module is used for judging whether the first client plays a video or not;
when the first client side does not play the video, the playing module is instructed to play the shared video in any playing window in the first client side;
and when the first client plays the video, indicating the comparison module to acquire second identification information of the video which is playing.
14. The apparatus according to any one of claims 8 to 13, wherein the playback module is specifically configured to:
playing the video being played by taking the first playing window as a main window, and playing the shared video by taking the second playing window as an auxiliary window; or
And playing the shared video by taking the second playing window as a main window, and playing the video being played by taking the first playing window as an auxiliary window.
15. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
CN201810171778.7A 2018-03-01 2018-03-01 Shared video playing method and device and electronic equipment Active CN108322793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810171778.7A CN108322793B (en) 2018-03-01 2018-03-01 Shared video playing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810171778.7A CN108322793B (en) 2018-03-01 2018-03-01 Shared video playing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108322793A CN108322793A (en) 2018-07-24
CN108322793B true CN108322793B (en) 2021-11-05

Family

ID=62900094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810171778.7A Active CN108322793B (en) 2018-03-01 2018-03-01 Shared video playing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108322793B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109064806A (en) * 2018-09-26 2018-12-21 北京奇艺世纪科技有限公司 A kind of video system with instructional function, implementation method and electronic equipment
CN114116101B (en) * 2021-11-26 2024-03-26 北京字跳网络技术有限公司 Message display method, device, equipment and storage medium
CN115002553A (en) * 2022-04-29 2022-09-02 当趣网络科技(杭州)有限公司 Method and system for chatting while watching based on same movie and television video

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127880A (en) * 2007-09-13 2008-02-20 深圳市融合视讯科技有限公司 A video information transmission method for video living broadcast programs
WO2014176907A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited Method and device for playing a video and computer-readable storage medium
CN104168503A (en) * 2014-07-24 2014-11-26 小米科技有限责任公司 Video information sharing method and device
CN104602133A (en) * 2014-11-21 2015-05-06 腾讯科技(北京)有限公司 Multimedia file shearing method and terminal as well as server
CN107071502A (en) * 2017-01-24 2017-08-18 百度在线网络技术(北京)有限公司 Video broadcasting method and device
CN107276981A (en) * 2017-05-05 2017-10-20 中广热点云科技有限公司 A kind of local video sharing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127880A (en) * 2007-09-13 2008-02-20 深圳市融合视讯科技有限公司 A video information transmission method for video living broadcast programs
WO2014176907A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited Method and device for playing a video and computer-readable storage medium
CN104168503A (en) * 2014-07-24 2014-11-26 小米科技有限责任公司 Video information sharing method and device
CN104602133A (en) * 2014-11-21 2015-05-06 腾讯科技(北京)有限公司 Multimedia file shearing method and terminal as well as server
CN107071502A (en) * 2017-01-24 2017-08-18 百度在线网络技术(北京)有限公司 Video broadcasting method and device
CN107276981A (en) * 2017-05-05 2017-10-20 中广热点云科技有限公司 A kind of local video sharing method

Also Published As

Publication number Publication date
CN108322793A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
US11689760B2 (en) Methods and devices for comment information display and interaction, electronic apparatus, and storage medium
CN109413483B (en) Live content preview method, device, equipment and medium
US11474779B2 (en) Method and apparatus for processing information
US20160323647A1 (en) Video sharing method and system in smart tv
US11930252B2 (en) Video recommendation method and apparatus, electronic device, and storage medium
CN108322793B (en) Shared video playing method and device and electronic equipment
CN111064987B (en) Information display method and device and electronic equipment
CN108174280B (en) Audio and video online playing method and system
WO2016074327A1 (en) Control method, apparatus and system of media stream
US20240114197A1 (en) Video file processing method and apparatus, electronic device, and computer storage medium
US11265621B2 (en) Video push method, device and computer-readable storage medium
CN105100912A (en) Streaming media processing method and streaming media processing apparatus
CN111629251A (en) Video playing method and device, storage medium and electronic equipment
WO2017024895A1 (en) Channel operation, playing method and corresponding apparatus for smart television
WO2016150273A1 (en) Video playing method, mobile terminal and system
US20240028189A1 (en) Interaction method and apparatus, electronic device and computer readable medium
JP2019504517A (en) Method, system, and medium for presenting content items while buffering video
CN113014854B (en) Method, device, equipment and medium for generating interactive record
JP7029218B2 (en) Playback data acquisition method, equipment, equipment and storage medium
US9338508B2 (en) Preserving a consumption context for a user session
CN103281566A (en) Method and device for video switch
WO2018000743A1 (en) Cross-device group chatting method and electronic device
WO2022211859A1 (en) Dynamic scheduling of content
CN111246242A (en) Searching method and device based on played video, application server and terminal equipment
CN114827675A (en) Video data processing method and device for application program

Legal Events

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