CN111541933A - Video playing method and device, electronic equipment and storage medium - Google Patents
Video playing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111541933A CN111541933A CN202010388188.7A CN202010388188A CN111541933A CN 111541933 A CN111541933 A CN 111541933A CN 202010388188 A CN202010388188 A CN 202010388188A CN 111541933 A CN111541933 A CN 111541933A
- Authority
- CN
- China
- Prior art keywords
- playing
- video
- slave
- slave video
- window
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000003860 storage Methods 0.000 title claims abstract description 14
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 13
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 6
- 230000002427 irreversible effect Effects 0.000 description 4
- 230000007480 spreading Effects 0.000 description 4
- 238000003892 spreading Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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/47217—End-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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides a video playing method and device, electronic equipment and a storage medium, and a playing configuration file is obtained. And playing the main video represented by the main video identifier in the playing configuration file in a main video playing window of the preset playing area. When the playing time progress of the main video is played to any one of the slave video playing start moments, reducing a main video playing window in a preset playing area, establishing a slave video playing window in the preset playing area, and playing a slave video represented by a slave video identifier corresponding to any one of the slave video playing start moments in the slave video playing window, wherein no overlap exists between the main video playing window and the slave video playing window. The main video and the slave video are respectively played through the main video playing window and the slave video playing window, and the main video playing window and the slave video playing window are not overlapped, so that the condition that a video area is shielded can be reduced.
Description
Technical Field
The present application relates to the field of video playing technologies, and in particular, to a video playing method and apparatus, an electronic device, and a storage medium.
Background
In some video programs, there is often a need to play a close-up picture of a person or an object in a video picture while the video is being played.
In the prior art, during the video production process, a close-up picture clip is overlaid on the whole video picture and recorded to obtain a new video, for example, as shown in fig. 1, in fact, in the recorded video, the close-up picture becomes a part of the video frame. During video playback, when the corresponding video frame is played back, a video frame including a close-up shot naturally appears.
However, by adopting the above method, the close-up shot image will block part of the area in the original video, and the blocking is irreversible, so that the blocked area of the original video image cannot be reproduced, and the viewing experience of the user is affected.
Disclosure of Invention
An object of the present invention is to provide a video playing method, an apparatus, an electronic device, and a storage medium, so as to reduce the situation that a video area is blocked. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a video playing method, where the method includes:
acquiring a play configuration file, wherein the play configuration file comprises a master video identifier and a slave video information list, and the slave video information list comprises at least one slave video identifier and a slave video play starting moment corresponding to the slave video identifier;
playing the main video represented by the main video identifier in the playing configuration file in a main video playing window of a preset playing area;
when the playing time progress of the main video is played to any slave video playing starting time, reducing a main video playing window in a preset playing area, establishing a slave video playing window in the preset playing area, and playing a slave video represented by a slave video identifier corresponding to the any slave video playing starting time in the slave video playing window, wherein no overlap exists between the main video playing window and the slave video playing window.
In a possible implementation manner, the slave video information list further includes slave video playing time lengths respectively corresponding to the slave video identifications, and the method further includes:
for any slave video identifier, increasing the slave video playing time length corresponding to the slave video identifier at the slave video playing starting time corresponding to the slave video identifier to obtain the slave video playing time period of the slave video identifier;
and under the condition that the slave video playing window exists in the preset playing area, when the playing time progress of the master video is not within any slave video playing time period, closing the slave video playing window, and fully paving the master video playing window in the preset playing area.
In one possible embodiment, the method further comprises:
when the playing time progress of the main video jumps to a target slave video playing time interval, judging whether the slave video playing window exists in the preset playing area, wherein the target slave video playing time interval is any slave video playing time interval;
when the slave video playing window does not exist in the preset playing area, reducing the master video playing window in the preset playing area, establishing the slave video playing window in the preset playing area, and playing the slave video represented by the slave video identifier corresponding to the target slave video playing time interval in the slave video playing window.
In a possible implementation, the slave video information list further includes description information corresponding to each slave video identifier, and the method further includes:
when a slave video playing window exists in the preset playing area, displaying each description information in the slave video playing window;
when a selection instruction for the specified description information is received, the slave video represented by the slave video identifier corresponding to the specified description information is played in the slave video playing window.
In one possible embodiment, the method further comprises:
under the condition that the slave video playing window exists in the preset playing area, when a closing instruction for the slave video playing window is received, the slave video playing window is closed, the main video playing window is fully paved in the preset playing area, and a slave video display button is created on the upper layer of the main video playing window.
In one possible embodiment, the method further comprises:
and under the condition that a slave video display button exists on the upper layer of the main video playing window, when the playing time progress of the main video is not in any slave video playing period, removing the slave video display button.
In one possible embodiment, the method further comprises:
when a selection instruction for the slave video display button is received, reducing a master video playing window in the preset playing area, establishing a slave video playing window in the preset playing area, and playing a corresponding slave video in the slave video playing window.
In a second aspect, an embodiment of the present application provides a video playing apparatus, where the apparatus includes:
the device comprises a configuration file acquisition module, a configuration file acquisition module and a configuration file playing module, wherein the configuration file playing module is used for acquiring a playing configuration file, the playing configuration file comprises a master video identifier and a slave video information list, and the slave video information list comprises at least one slave video identifier and a slave video playing starting moment corresponding to the slave video identifier;
the main video playing module is used for playing the main video represented by the main video identifier in the playing configuration file in a main video playing window of a preset playing area;
the first slave video playing module is configured to reduce a master video playing window in the preset playing area when the playing time progress of the master video is played to any slave video playing start time, establish a slave video playing window in the preset playing area, and play a slave video represented by a slave video identifier corresponding to any slave video playing start time in the slave video playing window, where there is no overlap between the master video playing window and the slave video playing window.
In a possible implementation manner, the slave video information list further includes slave video playing time lengths respectively corresponding to the slave video identifications, and the apparatus further includes:
the playing time interval obtaining module is used for aiming at any slave video identifier, increasing the slave video playing time length corresponding to the slave video identifier at the slave video playing starting time corresponding to the slave video identifier to obtain the slave video playing time interval of the slave video identifier;
and the first window closing module is used for closing the slave video playing window and fully spreading the main video playing window in the preset playing area when the playing time progress of the main video is not within any slave video playing time period under the condition that the slave video playing window exists in the preset playing area.
In a possible embodiment, the apparatus further comprises:
the window judging module is used for judging whether the slave video playing window exists in the preset playing area or not when the playing time progress of the main video jumps to a target slave video playing time interval, wherein the target slave video playing time interval is any slave video playing time interval;
and the second slave video playing module is used for reducing the master video playing window in the preset playing area, establishing a slave video playing window in the preset playing area and playing the slave video represented by the slave video identifier corresponding to the target slave video playing time interval in the slave video playing window when the slave video playing window does not exist in the preset playing area.
In a possible implementation manner, the slave video information list further includes description information corresponding to each slave video identifier, and the apparatus further includes:
the description information display module is used for displaying each description information in the slave video playing window when the slave video playing window exists in the preset playing area;
and the third slave video playing module is used for playing the slave video represented by the slave video identifier corresponding to the specified description information in the slave video playing window when a selection instruction for the specified description information is received.
In a possible embodiment, the apparatus further comprises:
and the second window closing module is used for closing the slave video playing window when a closing instruction for the slave video playing window is received under the condition that the slave video playing window exists in the preset playing area, paving the main video playing window in the preset playing area, and creating a slave video display button on the upper layer of the main video playing window.
In a possible embodiment, the apparatus further comprises:
and the display button removing module is used for removing the slave video display button when the playing time progress of the master video is not in any slave video playing period under the condition that the slave video display button exists on the upper layer of the master video playing window.
In a possible embodiment, the apparatus further comprises:
and the fourth slave video playing module is used for reducing the master video playing window in the preset playing area, establishing a slave video playing window in the preset playing area and playing a corresponding slave video in the slave video playing window when receiving a selection instruction aiming at the slave video display button.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any video playing method when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements any of the video playing methods described above.
In a fifth aspect, embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to perform any of the video playback methods described above.
The video playing method, the video playing device, the electronic device and the storage medium, provided by the embodiments of the application, obtain a playing configuration file, where the playing configuration file includes a master video identifier and a slave video information list, and the slave video information list includes at least one slave video identifier and a slave video playing start time corresponding to the slave video identifier. And playing the main video represented by the main video identifier in the playing configuration file in a main video playing window of a preset playing area. When the playing time progress of the main video is played to any slave video playing starting time, reducing a main video playing window in the preset playing area, establishing a slave video playing window in the preset playing area, and playing a slave video represented by a slave video identifier corresponding to the any slave video playing starting time in the slave video playing window, wherein no overlap exists between the main video playing window and the slave video playing window.
The main video and the slave video are respectively played through the main video playing window and the slave video playing window, and the main video playing window and the slave video playing window are not overlapped, so that the condition that a video area is shielded can be reduced. And the main video and the slave video are respectively played, so that the condition of irreversible shielding in the prior art can not be caused. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 representation of a prior art video including a close-up shot;
fig. 2 is a first schematic diagram of a video playing method according to an embodiment of the present application;
fig. 3a is a first schematic view of a video playing interface according to an embodiment of the present application;
FIG. 3b is a second schematic diagram of a video playback interface according to an embodiment of the present application;
fig. 4 is a second schematic diagram of a video playing method according to an embodiment of the present application;
fig. 5 is a third schematic diagram of a video playing method according to an embodiment of the present application;
fig. 6 is a fourth schematic diagram illustrating a video playing method according to an embodiment of the present application;
FIG. 7 is a third schematic diagram of a video playback interface according to an embodiment of the present application;
fig. 8 is a fifth schematic diagram of a video playing method according to an embodiment of the present application;
FIG. 9a is a fourth schematic diagram of a video playback interface according to an embodiment of the present application;
fig. 9b is a fifth schematic view of a video playing interface according to an embodiment of the present application;
fig. 10 is a sixth schematic view of a video playing method according to an embodiment of the present application;
fig. 11 is a schematic diagram of a video playback device according to an embodiment of the present application;
fig. 12 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
In the prior art, during the video production process, a close-up picture clip is overlaid on the whole video picture and recorded to obtain a new video, for example, as shown in fig. 1, in fact, in the recorded video, the close-up picture becomes a part of the video frame. However, by adopting the method, the close-up picture can shield part of the area in the original video, all users can only see the effect of the close-up picture, and the users cannot select the close-up picture by themselves, so that the watching experience of the users is influenced. Meanwhile, because the close-up shot picture is an enlarged picture, usually only one to two close-up shots can be superimposed on the original video picture, otherwise, the size of the close-up shot picture overflows the original video picture, and the watching effect is seriously influenced.
In view of this, an embodiment of the present application provides a video playing method, where the method includes:
and acquiring a playing configuration file, wherein the playing configuration file comprises a master video identifier and a slave video information list, and the slave video information list comprises at least one slave video identifier and a slave video playing starting moment corresponding to the slave video identifier.
And playing the main video represented by the main video identifier in the playing configuration file in a main video playing window of a preset playing area.
When the playing time progress of the main video is played to any slave video playing starting time, reducing a main video playing window in the preset playing area, establishing a slave video playing window in the preset playing area, and playing a slave video represented by a slave video identifier corresponding to the any slave video playing starting time in the slave video playing window, wherein no overlap exists between the main video playing window and the slave video playing window.
In the embodiment of the application, the main video and the slave video are respectively played through the main video playing window and the slave video playing window, and the main video playing window and the slave video playing window are not overlapped, so that the condition that a video area is shielded can be reduced. And the main video and the slave video are respectively played, so that the condition of irreversible shielding in the prior art can not be caused.
The following is specifically described:
referring to fig. 2, fig. 2 is a schematic diagram of a video playing method according to an embodiment of the present application, where the method includes:
s101, a playing configuration file is obtained, wherein the playing configuration file comprises a master video identifier and a slave video information list, and the slave video information list comprises at least one slave video identifier and a slave video playing starting moment corresponding to the slave video identifier.
The video playing method of the embodiment of the application can be realized through electronic equipment with a video playing function, and specifically, the electronic equipment can be a smart phone, a tablet computer, a personal computer or a television and the like.
The master video identification is used for uniquely representing a master video, and the slave video identification is used for uniquely representing a slave video. The master video and the slave video in the embodiment of the application are a relative concept, and the selection of the master video and the slave video can be set in a user-defined way according to actual conditions, for example, the master video is a video with a common picture, and the slave video is a video with a close-up picture; for example, the main video is a video from a main view angle, the sub-video is a video from a bottom view angle, and the like.
The slave video information list can only comprise a slave video identifier and a slave video playing starting moment corresponding to the slave video identifier; the slave video information list may also include a plurality of slave video identifiers and slave video playing start times corresponding to the slave video identifiers. The number of the slave video identifications in the slave video information list is set according to the number of the slave videos corresponding to the master video.
The playing configuration file may be pre-stored in the electronic device playing the video, or may be obtained from a server for the electronic device playing the video. For example, a user plays a video a through a video client in the electronic device, the electronic device sends a playing request of the video a to the server, the server searches for a playing configuration file corresponding to the video a, and sends the playing configuration file corresponding to the video a to the electronic device, so that the electronic device obtains the playing configuration file of the video a. The identity of video a is typically the primary video identity. The format of the playing configuration file may be an XML format or a JSON format, and the format of the playing configuration file is not specifically limited in this embodiment.
And S102, playing the main video represented by the main video identifier in the playing configuration file in a main video playing window of a preset playing area.
The preset playing area is a preset playing area, and the preset playing area can be full screen by default or can be set by a user in a self-defined mode. Initially, the main video playing window may be laid over the whole preset playing area by default, for example, as shown in fig. 3a, wherein a solid line box represents the main video playing window and a shadow represents the preset playing area. When the video is played, the main video identification is obtained from the playing configuration file, the main video is obtained according to the main video identification, and the main video is played in the main video playing window. The main video can be downloaded to the electronic device in advance, or the electronic device can request to obtain the main video from the server in real time.
And S103, when the playing time progress of the main video is played to any slave video playing starting time, reducing a main video playing window in the preset playing area, establishing a slave video playing window in the preset playing area, and playing a slave video represented by a slave video identifier corresponding to the any slave video playing starting time in the slave video playing window, wherein no overlap exists between the main video playing window and the slave video playing window.
The slave video playing starting moment is the moment corresponding to the starting moment of the slave video playing in the main video playing time progress. For example, the total duration of the video a is 50 minutes, the slave video needs to be played when the playing time of the master video is 20 minutes, and the starting time of the slave video playing is 20 minutes. The actual playing requirement of the specific selection of the starting time of the slave video is related, for example, when the slave video is a close-up shot video, the 1 st frame video frame of the close-up shot video is a close-up shot of the 3026 th frame video frame in the master video, the playing time schedule corresponding to the 3026 th frame video frame in the master video is the 2 nd second at the 2 nd minute, and the starting time of the slave video playing of the slave video is the 2 nd second at the 2 nd minute.
In the normal playing process of the main video, when the playing time progress of the main video is played to any slave video playing start time (for convenience of description, the reached slave video playing start time is referred to as a first slave video playing start time), the main video playing window is reduced in the preset playing area, wherein the reduced main video playing window does not overflow the preset playing area, and the slave video playing window is established in the preset playing area. And playing the slave video represented by the slave video identifier corresponding to the first slave video playing starting moment in the slave video playing window. There is no overlap between the master video playing window and the slave video playing window, and for example, the position relationship between the master video playing window and the slave video playing window may be as shown in fig. 3 b.
In the embodiment of the application, the main video and the slave video are played through the main video playing window and the slave video playing window respectively, the method can be used for multiple scenes such as close-up lens display and multi-view display, and the main video playing window and the slave video playing window are not overlapped, so that the condition that a video area is shielded can be reduced. And the main video and the slave video are respectively played, the playing effect of the main video is ensured without clipping the content of the main video, and the condition of irreversible shielding in the prior art is avoided.
In a possible implementation manner, the slave video information list further includes slave video playing time lengths respectively corresponding to the slave video identifiers, referring to fig. 4, and the method further includes:
s104, aiming at any slave video identifier, increasing the slave video playing time length corresponding to the slave video identifier at the slave video playing starting time corresponding to the slave video identifier to obtain the slave video playing time period of the slave video identifier.
And S105, under the condition that the slave video playing window exists in the preset playing area, closing the slave video playing window when the playing time progress of the master video is not in any slave video playing time period, and fully spreading the master video playing window in the preset playing area.
The slave video information list also comprises slave video playing time lengths corresponding to the slave video identifications. For any slave video identifier, the slave video playing time length corresponding to the slave video identifier is increased at the slave video playing starting time corresponding to the slave video identifier, so that the slave video playing time period of the slave video identifier can be obtained.
Under the condition that the slave video playing window exists in the preset playing area, when the playing time progress of the master video is not within any slave video playing time period, for example, the playing time progress of the master video just exceeds a slave video playing time period in the process of normally playing the master video, or a user adjusts the playing time progress of the master video to be out of all slave video playing time periods, the slave video playing window is closed, the main video playing window is fully paved in the preset playing area, and the master video can be continuously played in the main video playing window.
In the embodiment of the application, when the playing time and progress of the main video is not within any slave video playing time period, the slave video playing window is closed, and the preset playing area is fully paved with the main video playing window, so that the main video can be played in the preset playing area to the maximum extent, and the watching experience of a user is increased.
In a possible embodiment, referring to fig. 5, the method further comprises:
and S106, when the playing time progress of the main video jumps to a target slave video playing time interval, judging whether the slave video playing window exists in the preset playing area, wherein the target slave video playing time interval is any slave video playing time interval.
S107, when the slave video playing window does not exist in the preset playing area, reducing the main video playing window in the preset playing area, establishing the slave video playing window in the preset playing area, and playing the slave video represented by the slave video identifier corresponding to the target slave video playing time interval in the slave video playing window.
When the user controls the playing time progress of the main video to jump to any slave video playing time interval (the slave video playing time interval to which the playing time progress of the main video jumps is called a target slave video playing time interval hereinafter), whether a slave video playing window exists in the preset playing area or not is judged. Generally, when the playing time schedule of the main video jumps within each slave video playing time interval, a slave video playing window exists in the preset playing area; when the playing time progress of the main video jumps from the time outside each slave video playing time interval to the time inside any slave video playing time interval, no slave video playing window exists in the preset playing area.
When the slave video playing window does not exist in the preset playing area, the master video playing window in the preset playing area is reduced, the slave video playing window is established in the preset playing area, and the slave video represented by the slave video identifier corresponding to the target slave video playing time interval is played in the slave video playing window. And when the slave video playing window exists in the preset playing area, playing the slave video represented by the slave video identifier corresponding to the target slave video playing time interval in the slave video playing window.
In the embodiment of the application, when the playing time progress of the main video jumps to the target slave video playing time interval, the slave video playing window is established in the preset playing area, and the corresponding slave video is played in the slave video playing window, so that the situation that a user jumps to the playing time progress can be used, and various requirements of the user are met.
In a possible implementation manner, the slave video information list further includes description information corresponding to each slave video identifier, referring to fig. 6, and the method further includes:
and S108, when a slave video playing window exists in the preset playing area, displaying each piece of description information in the slave video playing window.
The description information corresponding to the slave video identifier is used for describing the slave video represented by the slave video identifier, and for example, the description information may be at least one of description characters of the slave video and description images of the slave video. Optionally, the slave video information list may further include a master video identifier corresponding to the slave video identifier, so as to facilitate management of the slave video and the master video. In displaying the description information from the video playing window, for example, a schematic diagram of displaying the description information from the video playing window may be as shown in fig. 7.
And S109, when a selection instruction for the specified description information is received, playing the slave video represented by the slave video identifier corresponding to the specified description information in the slave video playing window.
When a selection instruction for the specified description information is received, for example, when the user clicks one description information (the description information selected by the user is referred to as the specified description information), the slave video represented by the slave video identifier corresponding to the specified description information is played in the slave video playing window.
Optionally, in order to ensure that the play time schedule of the master video is synchronized with the slave video, the play time schedule of the master video may be skipped to the corresponding slave video play start time, where the corresponding slave video play start time is the slave video play start time corresponding to the slave video identifier corresponding to the specified description information.
In the embodiment of the application, the corresponding slave video can be selected to be played according to the description information, so that repeated switching among a plurality of close-ups or visual angles can be realized, and various requirements of users can be met.
In a possible embodiment, referring to fig. 8, the method further comprises:
s110, in a case that the slave video playing window exists in the preset playing area, when a closing instruction for the slave video playing window is received, closing the slave video playing window, and spreading the master video playing window over the preset playing area, and creating a slave video display button on an upper layer of the master video playing window.
For example, a close button may be set on the slave video playing window, or a full screen return button may be set on the master video playing window, when the user clicks the close button or returns to the full screen button, it is determined that a close instruction for the slave video playing window is received, the slave video playing window is closed, the master video playing window is filled in the preset playing area, and a slave video display button is created on the upper layer of the master video playing window.
Illustratively, one possible master video playback window that includes a back to full screen button is shown in FIG. 9a, and one possible master video playback window that includes a slave video display button is shown in FIG. 9 b.
In the embodiment of the application, the slave video playing window can be closed actively, and various requirements of a user can be met.
In a possible embodiment, referring to fig. 8, the method further comprises:
and S111, when a selection instruction for the slave video display button is received, reducing a master video playing window in the preset playing area, establishing a slave video playing window in the preset playing area, and playing a corresponding slave video in the slave video playing window.
The corresponding slave video is the slave video corresponding to the slave video playing period (hereinafter referred to as the second slave video playing period) in which the playing time progress of the master video is located, that is, the slave video indicated by the slave video identifier corresponding to the second slave video playing period.
Illustratively, when the user clicks the slave video display button, the master video playing window in the preset playing area is reduced, the slave video playing window is established in the preset playing area, and the corresponding slave video is played in the slave video playing window.
In the embodiment of the application, the slave video playing window can be closed or recovered at any time according to the user operation, so that better experience is brought to the user.
In a possible embodiment, referring to fig. 10, the method further comprises:
and S112, under the condition that the slave video display button exists on the upper layer of the main video playing window, when the playing time progress of the main video is not in any slave video playing time interval, removing the slave video display button.
When the playing time progress of the main video is not in any slave video playing time period, the slave video does not need to be played by using the slave video playing window, so that the slave video display button can be actively removed, and the situation that the slave video playing window is generated by mistake is reduced.
An embodiment of the present application further provides a video playing apparatus, referring to fig. 11, the apparatus includes:
a configuration file obtaining module 11, configured to obtain a playing configuration file, where the playing configuration file includes a master video identifier and a slave video information list, and the slave video information list includes at least one slave video identifier and a slave video playing start time corresponding to each of the slave video identifiers;
a main video playing module 12, configured to play a main video represented by the main video identifier in the playing configuration file in a main video playing window in a preset playing area;
the first slave video playing module 13 is configured to, when the play time progress of the master video is played to any slave video play start time, narrow a master video playing window in the preset playing area, establish a slave video playing window in the preset playing area, and play a slave video indicated by a slave video identifier corresponding to the any slave video play start time in the slave video playing window, where there is no overlap between the master video playing window and the slave video playing window.
In a possible implementation manner, the slave video information list further includes slave video playing time lengths corresponding to the slave video identifiers, and the apparatus further includes:
the playing time interval obtaining module is used for aiming at any slave video identifier, increasing the slave video playing time length corresponding to the slave video identifier at the slave video playing starting time corresponding to the slave video identifier to obtain the slave video playing time interval of the slave video identifier;
and the first window closing module is used for closing the slave video playing window and fully spreading the main video playing window in the preset playing area when the playing time progress of the main video is not in any slave video playing time period under the condition that the slave video playing window exists in the preset playing area.
In a possible embodiment, the above apparatus further comprises:
a window judging module, configured to judge whether the slave video playing window exists in the preset playing area when the playing time schedule of the master video jumps to a target slave video playing time period, where the target slave video playing time period is any slave video playing time period;
and the second slave video playing module is used for reducing the master video playing window in the preset playing area, establishing a slave video playing window in the preset playing area and playing the slave video represented by the slave video identifier corresponding to the target slave video playing time interval in the slave video playing window when the slave video playing window does not exist in the preset playing area.
In a possible implementation manner, the slave video information list further includes description information corresponding to each slave video identifier, and the apparatus further includes:
a description information display module, configured to display each piece of description information in a slave video playing window when the slave video playing window exists in the preset playing area;
and the third slave video playing module is used for playing the slave video represented by the slave video identifier corresponding to the specified description information in the slave video playing window when a selection instruction for the specified description information is received.
In a possible embodiment, the above apparatus further comprises:
and a second window closing module, configured to close the slave video playing window when a closing instruction for the slave video playing window is received when the slave video playing window exists in the preset playing area, fill the preset playing area with the master video playing window, and create a slave video display button on an upper layer of the master video playing window.
In a possible embodiment, the above apparatus further comprises:
and the display button removing module is used for removing the slave video display button when the playing time progress of the main video is not in any slave video playing period under the condition that the slave video display button exists on the upper layer of the main video playing window.
In a possible embodiment, the above apparatus further comprises:
and the fourth slave video playing module is used for reducing the main video playing window in the preset playing area, establishing a slave video playing window in the preset playing area and playing a corresponding slave video in the slave video playing window when receiving a selection instruction aiming at the slave video display button.
The embodiment of the present application further provides an electronic device, as shown in fig. 12, which includes a processor 21, a communication interface 22, a memory 23, and a communication bus 24, where the processor 21, the communication interface 22, and the memory 23 complete mutual communication through the communication bus 24,
a memory 23 for storing a computer program;
the processor 21 is configured to implement any of the video playback methods described above when executing the program stored in the memory 23.
The communication bus mentioned in the above terminal 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 terminal 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 device can 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 another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the video playing method in any of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the video playback method described in any of the above embodiments.
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 application 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 embodiments of the apparatus, the electronic device, the storage medium and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims (10)
1. A video playback method, the method comprising:
acquiring a play configuration file, wherein the play configuration file comprises a master video identifier and a slave video information list, and the slave video information list comprises at least one slave video identifier and a slave video play starting moment corresponding to the slave video identifier;
playing the main video represented by the main video identifier in the playing configuration file in a main video playing window of a preset playing area;
when the playing time progress of the main video is played to any slave video playing starting time, reducing a main video playing window in a preset playing area, establishing a slave video playing window in the preset playing area, and playing a slave video represented by a slave video identifier corresponding to the any slave video playing starting time in the slave video playing window, wherein no overlap exists between the main video playing window and the slave video playing window.
2. The method of claim 1, wherein the slave video information list further includes slave video playing time lengths corresponding to the slave video identifiers, and wherein the method further comprises:
for any slave video identifier, increasing the slave video playing time length corresponding to the slave video identifier at the slave video playing starting time corresponding to the slave video identifier to obtain the slave video playing time period of the slave video identifier;
and under the condition that the slave video playing window exists in the preset playing area, when the playing time progress of the master video is not within any slave video playing time period, closing the slave video playing window, and fully paving the master video playing window in the preset playing area.
3. The method of claim 2, further comprising:
when the playing time progress of the main video jumps to a target slave video playing time interval, judging whether the slave video playing window exists in the preset playing area, wherein the target slave video playing time interval is any slave video playing time interval;
when the slave video playing window does not exist in the preset playing area, reducing the master video playing window in the preset playing area, establishing the slave video playing window in the preset playing area, and playing the slave video represented by the slave video identifier corresponding to the target slave video playing time interval in the slave video playing window.
4. The method of claim 1, wherein the slave video information list further includes description information corresponding to each slave video identifier, and wherein the method further comprises:
when a slave video playing window exists in the preset playing area, displaying each description information in the slave video playing window;
when a selection instruction for the specified description information is received, the slave video represented by the slave video identifier corresponding to the specified description information is played in the slave video playing window.
5. The method of claim 2, further comprising:
under the condition that the slave video playing window exists in the preset playing area, when a closing instruction for the slave video playing window is received, the slave video playing window is closed, the main video playing window is fully paved in the preset playing area, and a slave video display button is created on the upper layer of the main video playing window.
6. The method of claim 5, further comprising:
and under the condition that a slave video display button exists on the upper layer of the main video playing window, when the playing time progress of the main video is not in any slave video playing period, removing the slave video display button.
7. The method of claim 5, further comprising:
when a selection instruction for the slave video display button is received, reducing a master video playing window in the preset playing area, establishing a slave video playing window in the preset playing area, and playing a corresponding slave video in the slave video playing window.
8. A video playback apparatus, comprising:
the device comprises a configuration file acquisition module, a configuration file acquisition module and a configuration file playing module, wherein the configuration file playing module is used for acquiring a playing configuration file, the playing configuration file comprises a master video identifier and a slave video information list, and the slave video information list comprises at least one slave video identifier and a slave video playing starting moment corresponding to the slave video identifier;
the main video playing module is used for playing the main video represented by the main video identifier in the playing configuration file in a main video playing window of a preset playing area;
the first slave video playing module is configured to reduce a master video playing window in the preset playing area when the playing time progress of the master video is played to any slave video playing start time, establish a slave video playing window in the preset playing area, and play a slave video represented by a slave video identifier corresponding to any slave video playing start time in the slave video playing window, where there is no overlap between the master video playing window and the slave video playing window.
9. 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 video playback method of any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, implements the video playback method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010388188.7A CN111541933A (en) | 2020-05-09 | 2020-05-09 | Video playing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010388188.7A CN111541933A (en) | 2020-05-09 | 2020-05-09 | Video playing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111541933A true CN111541933A (en) | 2020-08-14 |
Family
ID=71975585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010388188.7A Pending CN111541933A (en) | 2020-05-09 | 2020-05-09 | Video playing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111541933A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738612A (en) * | 2020-12-28 | 2021-04-30 | 浙江大华技术股份有限公司 | Video processing method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611389A (en) * | 2015-12-25 | 2016-05-25 | 广州视源电子科技股份有限公司 | Display method and display device of smart television |
WO2017201860A1 (en) * | 2016-05-27 | 2017-11-30 | 北京小米移动软件有限公司 | Video live streaming method and device |
CN109309860A (en) * | 2018-10-16 | 2019-02-05 | 腾讯科技(深圳)有限公司 | Methods of exhibiting and device, storage medium, the electronic device of prompt information |
CN110602560A (en) * | 2018-06-12 | 2019-12-20 | 优酷网络技术(北京)有限公司 | Video processing method and device |
CN110830813A (en) * | 2019-10-31 | 2020-02-21 | 北京达佳互联信息技术有限公司 | Video switching method and device, electronic equipment and storage medium |
CN110996157A (en) * | 2019-12-20 | 2020-04-10 | 上海众源网络有限公司 | Video playing method and device, electronic equipment and machine-readable storage medium |
-
2020
- 2020-05-09 CN CN202010388188.7A patent/CN111541933A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611389A (en) * | 2015-12-25 | 2016-05-25 | 广州视源电子科技股份有限公司 | Display method and display device of smart television |
WO2017201860A1 (en) * | 2016-05-27 | 2017-11-30 | 北京小米移动软件有限公司 | Video live streaming method and device |
CN110602560A (en) * | 2018-06-12 | 2019-12-20 | 优酷网络技术(北京)有限公司 | Video processing method and device |
CN109309860A (en) * | 2018-10-16 | 2019-02-05 | 腾讯科技(深圳)有限公司 | Methods of exhibiting and device, storage medium, the electronic device of prompt information |
CN110830813A (en) * | 2019-10-31 | 2020-02-21 | 北京达佳互联信息技术有限公司 | Video switching method and device, electronic equipment and storage medium |
CN110996157A (en) * | 2019-12-20 | 2020-04-10 | 上海众源网络有限公司 | Video playing method and device, electronic equipment and machine-readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738612A (en) * | 2020-12-28 | 2021-04-30 | 浙江大华技术股份有限公司 | Video processing method and system |
CN112738612B (en) * | 2020-12-28 | 2023-04-11 | 浙江大华技术股份有限公司 | Video processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104735542B (en) | A kind of video broadcasting method and device | |
US8387084B1 (en) | Systems and methods for detecting unauthorized use of a user equipment device | |
TWI517685B (en) | Dynamic content rating management across a variety of television input sources | |
US20170171638A1 (en) | Method and Terminal for Video Play | |
CN108848401A (en) | Video plays broadcasting method and device | |
CN113965811A (en) | Play control method and device, storage medium and electronic device | |
CN111263170B (en) | Video playing method, device and equipment and readable storage medium | |
CN103945274A (en) | Method and equipment for providing interactive augmented reality information corresponding to television programs | |
CN113727166A (en) | Advertisement display method and device | |
CN108616769B (en) | Video-on-demand method and device | |
CN111541927A (en) | Video playing method and device | |
CN111541933A (en) | Video playing method and device, electronic equipment and storage medium | |
CN112954380B (en) | Video playing processing method and device | |
US20200169769A1 (en) | Systems and methods for managing recorded media assets through advertisement insertion | |
KR101679199B1 (en) | Movie managing server, movie playing apparatus, and method for providing charater information using thereof | |
CN111669626A (en) | Method and device for determining default play relationship of videos and electronic equipment | |
CN108428213B (en) | Image collage method, device, electronic equipment and medium | |
CN108449646B (en) | Method, equipment and medium for establishing social relationship through barrage | |
KR101686425B1 (en) | Movie managing server, movie playing apparatus, and method for providing charater information using thereof | |
CN109005449A (en) | Preventing recording by theft method, apparatus, storage medium and processor | |
CN108881984B (en) | Method and system for storing screenshot of digital television equipment | |
CN113727167A (en) | Video resource playing method, device, equipment and readable storage medium | |
CN107534785A (en) | Method for the grade of the definition of the image that sets multimedia programming | |
CN107241612A (en) | Live network broadcast method and device | |
CN107615236A (en) | Multi-media processing method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200814 |