CN112135179A - Video playing method and device, electronic equipment and storage medium - Google Patents

Video playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112135179A
CN112135179A CN202010955580.5A CN202010955580A CN112135179A CN 112135179 A CN112135179 A CN 112135179A CN 202010955580 A CN202010955580 A CN 202010955580A CN 112135179 A CN112135179 A CN 112135179A
Authority
CN
China
Prior art keywords
player
video
playing
shape
parameters
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
Application number
CN202010955580.5A
Other languages
Chinese (zh)
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.)
Amusement Starcraft Beijing Technology Co ltd
Original Assignee
Amusement Starcraft Beijing 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 Amusement Starcraft Beijing Technology Co ltd filed Critical Amusement Starcraft Beijing Technology Co ltd
Priority to CN202010955580.5A priority Critical patent/CN112135179A/en
Publication of CN112135179A publication Critical patent/CN112135179A/en
Pending legal-status Critical Current

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/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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation 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
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Abstract

The present disclosure relates to a video playing method, apparatus, electronic device and storage medium, the method comprising: receiving a playing instruction for playing a video; querying parameters of a player for playing the video; displaying the player according to the parameters; and playing the video through the player. Based on the technical scheme of the disclosure, the player can be displayed according to the parameters of the player, and the video is played in the displayed player, and the parameters of the player are not fixed and can be set according to needs, so that for a video creator, the parameters of the player can be flexibly set, the player can display the video according to a required mode, and the video is ensured to have a good display effect.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of videos, and in particular, to a video playing method and apparatus, an electronic device, and a storage medium.
Background
In the current video playing platform, players for playing videos are generally rectangular, and the players are all located at fixed positions in a platform page, for example, for a page in a mobile phone client, the player is located at the top of the page, and for a page in a web page, the player is located at a position on the upper left side.
In the process of playing the video, the player keeps a fixed shape and plays the video at the fixed position, which limits the way in which the video is displayed for the video creator and is inconvenient to flexibly display the video according to the need.
Disclosure of Invention
The disclosure provides a video playing method, a video playing device, electronic equipment and a storage medium, which are used for at least solving the technical problems that in the process of playing a video by a player in the related art, parameters such as the shape and the position of the player are fixed, and the video is difficult to flexibly display. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a video playing method is provided, including:
receiving a playing instruction for playing a video;
inquiring parameters of a player for playing the video according to the association relationship between the pre-stored video and the parameters;
displaying the player according to the parameters;
and playing the video through the player.
Optionally, before the receiving a play instruction to play a video, the method further includes:
and receiving the video, the parameters and the association relation.
Optionally, before receiving a play instruction to play a video, the method includes:
displaying the player according to default parameters;
and after receiving a playing instruction for playing the video, displaying the player according to the parameters.
Optionally, the parameter comprises at least one of:
number, shape, motion trajectory, time.
Optionally, the parameter includes a target number, and the target number is multiple, the displaying the player according to the parameter includes:
determining a priority for each of a plurality of the players;
when there are overlapping players among a plurality of the players, the overlapping players are displayed according to the priority of each of the overlapping players.
Optionally, the parameter includes a target number, and the target number is multiple, the method further includes:
determining a plurality of positions of the players;
determining a target area for displaying the bullet screen according to the position;
and displaying the bullet screen in the target area.
Optionally, the parameter includes a shape, and the displaying the player according to the parameter includes:
generating a cover layer according to the shape and a default shape of the player, wherein the shape of an occlusion region in the cover layer is the default shape of the player, and the shape of a transmission region in the cover layer is the shape;
displaying the player according to the default shape of the player, and overlaying the overlay on the player.
Optionally, the parameter includes a shape, the shape changes during the video playing process, and the playing the video through the player includes:
when the parameters further comprise first synchronization information, synchronously controlling the shape of an object displayed by the video to change along with the change of the shape of the player.
Optionally, the parameter includes a shape, the shape of the player changes during the playing of the video, and the playing of the video by the player includes:
when the parameter further comprises second synchronous information, acquiring audio information of the video;
synchronously controlling the shape to change with the change of the audio information.
Optionally, the parameter includes a first motion trajectory, and the method further includes:
determining a second motion track of the bullet screen according to the first motion track;
and controlling the movement of the bullet screen according to the second movement track.
According to a second aspect of the embodiments of the present disclosure, a video playing apparatus is provided, including:
the first receiving module is configured to execute a playing instruction for receiving a playing video;
the parameter query module is configured to execute the query of parameters of a player for playing the video according to the association relationship between the pre-stored video and the parameters;
a player display module configured to perform displaying the player according to the parameter;
a video playing module configured to execute playing the video through the player.
Optionally, the apparatus further comprises:
a second receiving module configured to perform receiving the video and the parameter and the association.
Optionally, the player display module is further configured to display the player according to a default parameter before receiving a playing instruction for playing a video, and display the player according to the parameter after receiving the playing instruction for playing the video.
Optionally, the parameter comprises at least one of:
number, shape, motion trajectory, time.
Optionally, the parameter includes a target number, and the target number is multiple, and the player display module is configured to perform determining a priority of each of multiple players; when there are overlapping players among a plurality of the players, the overlapping players are displayed according to the priority of each of the overlapping players.
Optionally, the parameter includes a target number, and the target number is multiple, the apparatus further includes:
a location determination module configured to perform determining locations of a plurality of the players;
the area determination module is configured to determine a target area for displaying the bullet screen according to the position;
and the bullet screen display module is configured to display the bullet screen in the target area.
Optionally, the parameter includes a shape, and the player display module is configured to execute generating a cover layer according to the shape and a default shape of the player, where a shape of an occlusion region in the cover layer is the default shape of the player, and a shape of a transmission region in the cover layer is the shape; displaying the player according to the default shape of the player, and overlaying the overlay on the player.
Optionally, the parameter includes a shape, the shape changes during the video playing process, and the video playing module is configured to perform synchronous control on the shape of the object displayed by the video to change with the change of the shape of the player if the parameter further includes first synchronization information.
Optionally, the parameter includes a shape, the shape changes during the video playing process, and the video playing module is configured to execute, under the condition that the parameter further includes second synchronization information, acquiring audio information of the video; synchronously controlling the shape of the player to change along with the change of the audio information.
Optionally, the parameter includes a first motion trajectory, and the apparatus further includes:
the trajectory determination module is configured to determine a second motion trajectory of the bullet screen according to the first motion trajectory;
and the bullet screen control module is configured to control the bullet screen to move according to the second motion track.
According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video playing method as described above.
According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided, in which instructions are executed by a processor of an electronic device, so that the electronic device can execute the above video playing method.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product configured to execute the video playing method according to any one of the embodiments.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the embodiment of the disclosure, the player can be displayed according to the parameters of the player, and the video is played in the displayed player, and the parameters of the player are not fixed and can be set according to needs, so that for a video creator, the parameters of the player can be flexibly set, the player can display the video according to a required mode, and the video is ensured to have a good display effect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic flow chart diagram illustrating a video playing method according to an embodiment of the present disclosure.
Fig. 2 is a scene schematic diagram illustrating a video playing method according to an embodiment of the present disclosure.
Fig. 3 is a schematic flow chart diagram illustrating another video playing method according to an embodiment of the present disclosure.
Fig. 4 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure.
Fig. 5 is a scene schematic diagram illustrating another video playing method according to an embodiment of the present disclosure.
Fig. 6 is a scene schematic diagram illustrating still another video playing method according to an embodiment of the present disclosure.
Fig. 7 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure.
Fig. 8 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure.
Fig. 9 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure.
Fig. 10 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure.
Fig. 11 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure.
Fig. 12 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure.
Fig. 13 is a schematic block diagram illustrating a video playback device according to an embodiment of the present disclosure.
Fig. 14 is a schematic block diagram illustrating another video playback device according to an embodiment of the present disclosure.
Fig. 15 is a schematic block diagram illustrating still another video playback device according to an embodiment of the present disclosure.
Fig. 16 is a schematic block diagram illustrating yet another video playback device according to an embodiment of the present disclosure.
Fig. 17 is a schematic block diagram illustrating an electronic device in accordance with an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic flow chart diagram illustrating a video playing method according to an embodiment of the present disclosure. The video playing method shown in this embodiment may be applied to a client of a video playing application in an electronic device such as a mobile phone, and is also applicable to a browser that can access a website for playing a video, and may also be applicable to the client or a server corresponding to the website.
As shown in fig. 1, the video playing method may include the following steps:
in step S101, a play instruction to play a video is received;
in step S102, according to a pre-stored association relationship between a video and a parameter, a parameter of a player for playing the video is queried;
in step S103, displaying the player according to the parameter;
in step S104, the video is played by the player.
In one embodiment, a video viewer may input a playing instruction for playing a video, for example, after entering a page where the video is located, a player of the video may be clicked, i.e., the playing instruction may be input.
In one embodiment, after receiving the playing instruction, parameters of a player playing the video may be queried according to a pre-stored association relationship between the video and the parameters. The parameter may be stored locally, for example, the user inputs the playing instruction in the client, the parameter may be stored in the client, for example, the user inputs the playing instruction in the browser, the parameter may be stored in the browser, and the parameter may also be stored in the server in addition to being stored locally.
In one embodiment, the parameters include at least one of:
number, shape, motion trajectory.
The number may be static, that is, the number of players may be fixed, and the number of players remains unchanged during the video playing process; the number may also be dynamic, that is, the number of players may be variable, and during the video playing process, the number of players may be changed, and how to change the number may be set by the video creator, for example, the video creator may set a first function of the number change, and then the parameter further includes the first function, and further, during the video playing process, the number of players may be changed according to the first function.
The shape can be static, that is, the shape of the player can be fixed, and in the video playing process, the shape of the player remains unchanged; the shape may also be dynamic, that is, the shape of the player may be changed, and in the video playing process, the shape of the player may be changed, specifically, how to change, and may be set by the video creator, for example, the video creator may set a second function of the shape change, and then the parameter further includes the second function, and further, the shape of the player may be changed according to the second function in the video playing process.
It should be noted that, when the number of players is plural, the shapes of different players may be the same or different, and the movement trajectories of different players may be the same or different. The number of the videos may be one or multiple, for example, in a case that the number of the players is multiple, the number of the videos may be the same as the number of the players, so that multiple players may be simultaneously displayed in the page, and different videos may be played by different players.
The embodiment shown in the disclosure can be applied to both full-screen playing and non-full-screen playing of the player, and for full-screen playing, the parameters of the player are fixed, that is, the shape of the player is the shape of the screen, for example, a scenario, the number of players is 1, and the players do not move. In order to embody the technical effects of the embodiments of the present disclosure in a targeted manner, the following mainly illustrates the technical solutions of the present disclosure in the case of non-full-screen playing.
In one embodiment, after querying the parameter, the player may be displayed according to the parameter, and the video may be played by the player.
Fig. 2 is a scene schematic diagram illustrating a video playing method according to an embodiment of the present disclosure.
As shown in fig. 2, taking the example of displaying the players in the page of the mobile phone client, the number of the players is 4, the shape is circular, and the motion track is clockwise along the edge of the page, then 4 circular players can be displayed, and 4 players clockwise move along the edge of the page, and the video is played through the 4 players.
Therefore, according to the embodiment of the disclosure, the player can be displayed according to the parameters of the player, and the video can be played in the displayed player, and the parameters of the player are not fixed and can be set according to needs, so that for a video creator, the parameters of the player can be flexibly set, the player can display the video in a required manner, and the video is ensured to have a good display effect.
It should be noted that the parameters are not limited to the above numbers, shapes, motion tracks, and the like, and may also include other contents, such as information of a background board, where the background board represents a range of the display player in the page. For example, in fig. 2, the size of the background board may be the same as the size of the mobile phone screen, that is, the player may be located at any position in the page displayed by the screen. If the background plate is arranged to correspond to only the upper half area of the screen, the player can only be in the page displayed on the upper half area of the screen.
In the case that the size of the background board is different from the size of the mobile phone screen, if the player is displayed in a full screen mode, the player needs to be displayed in the background board, and the size of the player needs to be adjusted to be the same as the size of the background board, for example, the width and height of the background board are 80 mm × 80 mm, and the default size of the player is 80 mm × 90 mm, the height of the player needs to be scaled to be 80 mm, and then the player of 80 mm × 80 mm is displayed in the background board.
Fig. 3 is a schematic flow chart diagram illustrating another video playing method according to an embodiment of the present disclosure. As shown in fig. 3, before the receiving a play instruction to play a video, the method further includes:
in step S105, the video and the parameter and the association relation are received.
In one embodiment, the video and the set parameters of the video creator and the association relationship may be received, and the video and the parameters may be uploaded to the server, where the video and the parameters may be received in one operation or different operations, such as receiving the video first and then receiving the parameters.
Different parameters can be set for different videos, so that the player is displayed through the parameters, and further, when the videos are played through the player, visual effects corresponding to the parameters can be achieved, and the different visual effects can be achieved flexibly for the different videos.
Fig. 4 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure. As shown in fig. 4, before the receiving a play instruction to play a video, the method includes:
in step S106, the player is displayed according to default parameters;
and after receiving a playing instruction for playing the video, displaying the player according to the parameters.
In one embodiment, the video viewer generally clicks a player in the page to input a play instruction, so as to control the player to play the video, but since the parameters of the player can be set by the video creator, in the case that the parameters of the player are not default parameters, for example, the parameters of the player are shown in fig. 2, clockwise movement is performed at different positions of the page, the shape may also be irregular, and if the player is displayed according to the parameters before the video viewer plays the video, the video viewer may mistakenly think about the page when entering the page where the player is located.
Therefore, before receiving a playing instruction for playing a video, the player may be displayed according to default parameters, where the default parameters may be preset, for example, the default parameters include: the number of the players is 1, the players are rectangular in shape, and the motion tracks are kept motionless, so that the players seen by a user before inputting a playing instruction are static rectangular players, the trouble of a video viewer when the video viewer just enters a page where the players are located is avoided, and then the mode of displaying the players is adjusted according to the parameters of the players after receiving the playing instruction for playing the video.
In the case that the number of players is multiple, if multiple players play the same video, before the receiving of the play instruction to play the video, the cover of the video or the first frame image of the video may be displayed in the player with the default parameters, and if multiple players play different videos, the cover or the first frame image of one of the videos may be selected and displayed in the player with the default parameters.
The parameters of the player are changed abruptly, for example, in one frame of image, a rectangular and motionless player is displayed in the page, and in the next frame of image, the player shown in fig. 2 is displayed. The parameters of the players are changed or gradually changed, for example, in the first frame image, a rectangular and immobile player is displayed in the page, in the next multi-frame image, the number of players is changed to 4, the shape is gradually changed from rectangular to circular, and the players gradually move towards the position of the player in fig. 2 until the players move to the position of the player in fig. 2 and then move along the edge of the page in the clockwise direction.
The default parameter is a parameter of a player in a normal case, for example, the default parameter is that the number of players is 1, the shape of the player is rectangular, and the player does not move.
Optionally, the parameter comprises at least one of:
number, shape, motion trajectory, time.
In one embodiment, the number of players can be set according to needs, and the number of players can be fixed or variable, for example, the number of players can be increased or decreased during the process of playing video.
It should be noted that, for a plurality of players, the control of the plurality of players may be synchronous, for example, after clicking the pause in one player, all players pause playing, or asynchronous, for example, after clicking the pause in one player, only pausing the video played by the player, and the other players continue playing.
In one embodiment, the shape of the player can be set as desired, and can be a regular shape, such as a circle, triangle, hexagon, trapezoid, etc., or an irregular shape. The shape may be fixed or may vary.
The video author may set shape data to describe the shape, for example for irregular shapes, the video author may draw the outline of the player and the shape to which the outline corresponds may be determined by recording the outline, and the longest distance in the horizontal direction and the longest distance in the vertical direction in the outline.
In addition, after the video creator sets the shape, the base point may be selected as the centroid of the shape in the video, for example, the video is a rectangle, specifically, each frame of image in the video is a rectangle, if the base point selected in the video is the center of the video and the player is a circle, the center of the player coincides with the center of the video, and if the base point selected in the video is the top left corner point of the video and the player is a circle, the center of the player coincides with the top left corner point of the video.
Since the shape of the video is fixed, but the shape of the player can be set, so that a situation that the video cannot completely fill the player can occur, a background can be set in an area of the player not filled with the video, and the background can be set according to needs, for example, black or transparent.
In one embodiment, the parameter may further include time, for example, in a case that the number of the players is multiple, the time may specifically refer to a duration (also referred to as a life cycle) set by a video creator for each player, may specifically set a start time and an end time at which the video player exists, display the player at the start time, stop displaying the player at the end time, and display the player according to a shape and a motion track in the duration.
The player for playing the video is adjusted based on one or more of the four parameters, so that the player can adjust the angles of different parameters, and the adjustment mode is ensured to have higher flexibility so as to obtain a required adjustment result.
Fig. 5 is a scene schematic diagram illustrating another video playing method according to an embodiment of the present disclosure.
In one embodiment, since the shape of the player can be set as required, the player can be set to highlight the target content in the page by setting the shape of the player so that the player forms a preset relationship with the target content in the page, for example, as shown in fig. 5, the shape of the player is a ring, and the center of the ring is the like button, so that the player can be set to highlight the like button to improve the possibility of like of the video viewer.
In one embodiment, the motion trajectory of the player may be set as required, the shape of the trajectory may be a regular shape, such as a circle, a triangle, a hexagon, a trapezoid, or the like, or an irregular shape, for example, a video creator may divide a background board of the display player into a plurality of grids, then set a mark with a sequence for each grid, and then set the player to move in the corresponding grid according to the sequence of the marks.
And for the motion trajectory, the video creator may also set the frequency at which the player moves along the motion trajectory, for example, may set the motion once per frame, or set the motion once per second.
Fig. 6 is a scene schematic diagram illustrating still another video playing method according to an embodiment of the present disclosure.
In one embodiment, since the motion trajectory of the player can be set as required, the motion trajectory of the player can be set so that the motion trajectory of the player and the target content in the page form a preset relationship to highlight the target content in the page, for example, as shown in fig. 6, the player moves along a circle, the center of the circle is the like key, and accordingly, the player is set, the like key can be highlighted, so as to improve the possibility of like of the video viewer.
Fig. 7 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure. As shown in fig. 7, the parameter includes a plurality of target numbers, and the displaying the player according to the parameter includes:
in step S1031, determining a priority of each of a plurality of the players;
in step S1032, when there are overlapping players among a plurality of the players, the overlapping players are displayed according to the priority of each of the overlapping players.
In one embodiment, when there are multiple players, there may be an overlap between the players, and due to the overlap of the players, the video played by the players may be overlaid, so that a video creator may set a priority of each player, or set a priority of the video, and then determine the priority of the player based on the priority of the video played by the players, and when there is an overlap between the players, the overlapping players may be displayed according to the priority, for example, the player with the highest priority is displayed on the uppermost layer, so that when there are multiple players, the video creator may set the priority of the player as needed, avoid the player with the highest priority being blocked, and ensure that the content displayed by the player with the highest priority is preferentially viewed by the viewers.
Fig. 8 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure. As shown in fig. 8, the parameter includes a target number, and the target number is plural, and the method further includes:
in step S108, positions of a plurality of the players are determined;
in step S109, determining a target area for displaying the bullet screen according to the position;
in step S110, a bullet screen is displayed in the target area.
In an embodiment, in the process of playing a video by a player, a bullet screen may be displayed, where the bullet screen may be a covered bullet screen, that is, the bullet screen is only displayed in the player, or the bullet screen may be a non-covered bullet screen, that is, the bullet screen is only displayed outside the player, or the bullet screen may be a mixed bullet screen, that is, the bullet screen may be both displayed in the player and outside the player.
For the non-covering bullet screen, in the embodiment, when the number of the players is multiple, the target area for displaying the bullet screen can be determined according to the positions of the multiple players, and then the bullet screen is displayed in the target area. For example, for a plurality of players, a slit area exists between each two players, and the target area may be the slit area, so that the bullet screen may be displayed in the slit area. Therefore, the method and the device are beneficial to ensuring that the position of the bullet screen is matched with the position of the player, so that the bullet screen and the player have good display effects.
Fig. 9 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure. As shown in fig. 9, the parameter includes a shape, and the displaying the player according to the parameter includes:
in step S1033, a cover layer is generated according to the shape and a default shape of the player, where a shape of an occlusion region in the cover layer is the default shape of the player, and a shape of a transmission region in the cover layer is the shape;
in step S1034, the player is displayed according to the default shape of the player, and the cover layer is overlaid on the player.
In one embodiment, to set the shape of the player, in addition to directly adjusting the shape of the player, a masking layer may be overlaid on the playing of the default shape to change the shape of the player as viewed by the video viewer.
Specifically, the cover layer includes two partial regions, one is a shielding region, the other is a transparent region, the transparent region is located inside the shielding region, the cover layer can be generated according to the shape and the default shape of the player, so that the shape of the shielding region in the cover layer is the default shape of the player, for example, a rectangle, and the shape of the transparent region is the shape, and then the player is displayed according to the default shape of the player, and the cover layer is overlaid on the player.
Fig. 10 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure. As shown in fig. 10, the parameter includes a shape, the shape changes during the playing of the video, and the playing of the video by the player includes:
in step S1041, when the parameter further includes first synchronization information, synchronously controlling a shape of an object displayed by the video to change with a change in a shape of the player.
In an embodiment, the video creator may further set first synchronization information in the parameter, where the first synchronization information is used to indicate that the video needs to change with the change of the shape, and then, in the presence of the first synchronization information in the parameter, the shape of the object displayed by the video may be synchronously controlled to change with the change of the shape, for example, the shape of the player may be enlarged according to a preset scale during playing, and then the shape of the object displayed by the video is enlarged with the enlargement of the shape of the player.
And under the condition that the parameter does not include the first synchronization information, the shape of the object displayed by the video does not need to be synchronously controlled to change along with the change of the shape, namely the shape of the player can be changed, but the video does not change, for example, the shape is enlarged according to a preset proportion in the playing process, the content displayed by the video is not enlarged, and only the content with a larger area in the video is displayed in the player in the shape enlarging process.
Therefore, whether the shape of the object displayed by the video changes along with the shape change of the player can be controlled by selectively setting or not setting the first synchronization information, so that the adjustment mode of the content displayed by the video has higher flexibility, and the required display effect can be obtained.
Fig. 11 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure. As shown in fig. 11, the parameter includes a shape, the shape changes during the playing of the video, and the playing of the video by the player includes:
in step S1042, when the parameter further includes second synchronization information, audio information of the video is obtained;
in step S1043, the shape of the player is synchronously controlled to change with the change of the audio information.
In an embodiment, the video creator may further set second synchronization information in the parameter, where the second synchronization information is used to indicate that the shape of the player needs to be changed according to a change of audio information in the video, and then, in a case where the second synchronization information exists in the parameter, the audio information of the video may be acquired, and then, the shape of the player is synchronously controlled according to the change of the audio information, for example, the audio information may include volume, and then, the shape of the player may be controlled to be larger according to the increase of the volume, for example, the audio information may include frequency, and then, the shape of the edge of the player may be controlled to be changed according to the frequency, for example, the higher the frequency is, the lower the flatness of the edge of the player is, so that the user may experience a change of the audio in both visual and auditory aspects.
Therefore, whether the audio information in the video changes along with the change of the shape of the player can be controlled by selectively setting or not setting the second synchronous information, so that the adjustment mode of the audio information in the video has higher flexibility, and the required sound effect can be obtained.
Fig. 12 is a schematic flow chart diagram illustrating yet another video playing method according to an embodiment of the present disclosure. As shown in fig. 12, the parameter includes a first motion trajectory, and the method further includes:
in step S111, determining a second motion trajectory of the bullet screen according to the first motion trajectory;
in step S112, the movement of the bullet screen is controlled according to the second movement track.
In one embodiment, the bullet screen may be displayed during playing of the video, and the second motion track of the bullet screen may be determined according to the first motion track of the player, for example, the second motion track may be the same as the first motion track, for example, the first motion track is clockwise along the edge of the page as shown in fig. 2, and then the bullet screen may be controlled to move clockwise along the edge of the page. Or the second motion track can be a track obtained after the first motion track is reduced according to a preset proportion, and then the movement of the bullet screen is controlled according to the second motion track, and the corresponding relation between the second motion track and the first motion track can be set according to needs. Therefore, the method and the device are beneficial to ensuring that the movement track of the bullet screen is adaptive to the movement track of the player so as to ensure that the bullet screen and the player have good display effects.
Correspondingly to the foregoing embodiment of the video playing method, the present disclosure also provides an embodiment of a video playing apparatus.
Fig. 13 is a schematic block diagram illustrating a video playback device according to an embodiment of the present disclosure. The video playing apparatus shown in this embodiment may be applied to a client of a video playing application in an electronic device such as a mobile phone, or may be applied to a browser that can access a website for playing a video, or may be applied to the client or a server corresponding to the website.
As shown in fig. 13, the video playback apparatus may include:
a first receiving module 101 configured to execute a play instruction for receiving a play video;
the parameter query module 102 is configured to execute querying parameters of a player for playing the video according to a pre-stored association relationship between the video and the parameters;
a player display module 103 configured to perform displaying the player according to the parameter;
a video playing module 104 configured to execute playing the video through the player.
Fig. 14 is a schematic block diagram illustrating another video playback device according to an embodiment of the present disclosure. As shown in fig. 14, the apparatus further includes:
a second receiving module 105 configured to perform receiving the video and the parameter and the association.
Optionally, the player display module 103 is further configured to display the player according to the default parameters before receiving the playing instruction for playing the video, and display the player according to the parameters after receiving the playing instruction for playing the video.
Optionally, the parameter comprises at least one of:
number, shape, motion trajectory, time.
Optionally, the parameter includes a target number, and the target number is multiple, and the player display module is configured to perform determining a priority of each of multiple players; when there are overlapping players among a plurality of the players, the overlapping players are displayed according to the priority of each of the overlapping players.
Fig. 15 is a schematic block diagram illustrating still another video playback device according to an embodiment of the present disclosure. As shown in fig. 15, the parameter includes a target number, and the target number is plural, the apparatus further includes:
a position determination module 107 configured to perform determining positions of a plurality of the players;
a region determination module 108 configured to perform determining a target region for displaying the bullet screen according to the position;
and a bullet screen display module 109 configured to display bullet screens in the target area.
Optionally, the parameter includes a shape, and the player display module is configured to execute generating a cover layer according to the shape and a default shape of the player, where a shape of an occlusion region in the cover layer is the default shape of the player, and a shape of a transmission region in the cover layer is the shape; displaying the player according to the default shape of the player, and overlaying the overlay on the player.
Optionally, the parameter includes a shape, the shape changes during the video playing process, and the video playing module is configured to perform synchronous control on the shape of the object displayed by the video to change with the change of the shape of the player if the parameter further includes first synchronization information.
Optionally, the parameter includes a shape, the shape changes during the video playing process, and the video playing module is configured to execute, under the condition that the parameter further includes second synchronization information, acquiring audio information of the video; synchronously controlling the shape of the player to change along with the change of the audio information.
Fig. 16 is a schematic block diagram illustrating yet another video playback device according to an embodiment of the present disclosure. As shown in fig. 16, the parameter includes a first motion trajectory, and the apparatus further includes:
a trajectory determination module 110 configured to perform determining a second motion trajectory of the bullet screen according to the first motion trajectory;
and a bullet screen control module 111 configured to execute the control of bullet screen movement according to the second movement track.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the related method, and will not be described in detail here.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
An embodiment of the present disclosure also provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video playing method according to any of the above embodiments.
Embodiments of the present disclosure also provide a storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to execute the video playing method according to any of the above embodiments.
Embodiments of the present disclosure further provide a computer program product configured to execute the video playing method according to any of the above embodiments.
Fig. 17 is a schematic block diagram illustrating an electronic device in accordance with an embodiment of the present disclosure. For example, the electronic device 1700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 17, electronic device 1700 may include one or more of the following components: processing component 1702, memory 1704, power component 1706, multimedia component 1708, audio component 1710, input/output (I/O) interface 1712, sensor component 1714, and communications component 1716.
The processing component 1702 generally controls the overall operation of the electronic device 1700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1702 may include one or more processors 1720 to execute instructions to perform all or a portion of the steps of the video playback method described above. Further, processing component 1702 may include one or more modules that facilitate interaction between processing component 1702 and other components. For example, processing component 1702 may include a multimedia module to facilitate interaction between multimedia component 1708 and processing component 1702.
The memory 1704 is configured to store various types of data to support operations at the electronic device 1700. Examples of such data include instructions for any application or method operating on the electronic device 1700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1706 provides power to the various components of the electronic device 1700. The power components 1706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1700.
The multimedia component 1708 includes a screen that provides an output interface between the electronic device 1700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 1700 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1710 is configured to output and/or input audio signals. For example, audio component 1710 includes a Microphone (MIC) configured to receive external audio signals when electronic device 1700 is in an operational mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1704 or transmitted via the communication component 1716. In some embodiments, audio component 1710 also includes a speaker for outputting audio signals.
The I/O interface 1712 provides an interface between the processing component 1702 and peripheral interface modules, such as a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1714 includes one or more sensors for providing various aspects of state assessment for the electronic device 1700. For example, sensor assembly 1714 may detect an open/closed state of electronic device 1700, the relative positioning of components, such as a display and keypad of electronic device 1700, the sensor assembly 1714 may also detect a change in the position of electronic device 1700 or a component of electronic device 1700, the presence or absence of user contact with electronic device 1700, orientation or acceleration/deceleration of electronic device 1700, and a change in the temperature of electronic device 1700. The sensor assembly 1714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1716 is configured to facilitate communications between the electronic device 1700 and other devices in a wired or wireless manner. The electronic device 1700 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, the electronic device 1700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described video playing method.
In an embodiment of the present disclosure, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1704 comprising instructions, executable by the processor 1720 of the electronic device 1700 to perform the video playback method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
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. 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.
The method and apparatus provided by the embodiments of the present disclosure are described in detail above, and the principles and embodiments of the present disclosure are explained herein by applying specific examples, and the above description of the embodiments is only used to help understanding the method and core ideas of the present disclosure; meanwhile, for a person skilled in the art, based on the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.

Claims (10)

1. A video playback method, comprising:
receiving a playing instruction for playing a video;
inquiring parameters of a player for playing the video according to the association relationship between the pre-stored video and the parameters;
displaying the player according to the parameters;
and playing the video through the player.
2. The method of claim 1, wherein prior to said receiving a play instruction to play a video, the method further comprises:
and receiving the video, the parameters and the association relation.
3. The method of claim 2, wherein prior to receiving a play instruction to play a video, the method comprises:
displaying the player according to default parameters;
and after receiving a playing instruction for playing the video, displaying the player according to the parameters.
4. The method according to any one of claims 1 to 3, wherein the parameter comprises at least one of:
number, shape, motion trajectory, time.
5. The method of claim 4, wherein the parameter comprises a target number, and wherein the target number is multiple, and wherein displaying the player according to the parameter comprises:
determining a priority for each of a plurality of the players;
when there are overlapping players among a plurality of the players, the overlapping players are displayed according to the priority of each of the overlapping players.
6. The method of claim 4, wherein the parameter comprises a target number, and wherein the target number is a plurality, the method further comprising:
determining a plurality of positions of the players;
determining a target area for displaying the bullet screen according to the position;
and displaying the bullet screen in the target area.
7. The method of claim 4, wherein the parameter comprises a shape, and wherein displaying the player according to the parameter comprises:
generating a cover layer according to the shape and a default shape of the player, wherein the shape of an occlusion region in the cover layer is the default shape of the player, and the shape of a transmission region in the cover layer is the shape;
displaying the player according to the default shape of the player, and overlaying the overlay on the player.
8. A video playback apparatus, comprising:
the first receiving module is configured to execute a playing instruction for receiving a playing video;
the parameter query module is configured to execute the query of parameters of a player for playing the video according to the association relationship between the pre-stored video and the parameters;
a player display module configured to perform displaying the player according to the parameter;
a video playing module configured to execute playing the video through the player.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video playback method of any of claims 1 to 7.
10. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the video playback method of any one of claims 1 to 7.
CN202010955580.5A 2020-09-11 2020-09-11 Video playing method and device, electronic equipment and storage medium Pending CN112135179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010955580.5A CN112135179A (en) 2020-09-11 2020-09-11 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010955580.5A CN112135179A (en) 2020-09-11 2020-09-11 Video playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112135179A true CN112135179A (en) 2020-12-25

Family

ID=73846548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010955580.5A Pending CN112135179A (en) 2020-09-11 2020-09-11 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112135179A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709538A (en) * 2021-07-09 2021-11-26 北京达佳互联信息技术有限公司 Multimedia data playing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514202A (en) * 2012-06-25 2014-01-15 北京新媒传信科技有限公司 Method and device for achieving webpage display
CN105898570A (en) * 2016-04-13 2016-08-24 乐视控股(北京)有限公司 Method, device, and equipment of invoking media player
CN106385632A (en) * 2016-09-21 2017-02-08 微鲸科技有限公司 Video playing method and video playing device
CN108024155A (en) * 2017-12-15 2018-05-11 北京小度互娱科技有限公司 The video broadcasting method and device of adaptive video the ratio of width to height
CN109600653A (en) * 2017-09-30 2019-04-09 杭州海康威视数字技术股份有限公司 Playback method, device and the electronic equipment of video file
CN110730320A (en) * 2018-07-16 2020-01-24 杭州海康威视数字技术股份有限公司 Video recording and playing methods, devices and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514202A (en) * 2012-06-25 2014-01-15 北京新媒传信科技有限公司 Method and device for achieving webpage display
CN105898570A (en) * 2016-04-13 2016-08-24 乐视控股(北京)有限公司 Method, device, and equipment of invoking media player
CN106385632A (en) * 2016-09-21 2017-02-08 微鲸科技有限公司 Video playing method and video playing device
CN109600653A (en) * 2017-09-30 2019-04-09 杭州海康威视数字技术股份有限公司 Playback method, device and the electronic equipment of video file
CN108024155A (en) * 2017-12-15 2018-05-11 北京小度互娱科技有限公司 The video broadcasting method and device of adaptive video the ratio of width to height
CN110730320A (en) * 2018-07-16 2020-01-24 杭州海康威视数字技术股份有限公司 Video recording and playing methods, devices and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709538A (en) * 2021-07-09 2021-11-26 北京达佳互联信息技术有限公司 Multimedia data playing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106527867B (en) Method and device for moving suspension layer interface
EP3182716A1 (en) Method and device for video display
US20210405952A1 (en) Screen projection method, screen projection device, and storage medium
US20170344192A1 (en) Method and device for playing live videos
CN110929054B (en) Multimedia information application interface display method and device, terminal and medium
CN111770381B (en) Video editing prompting method and device and electronic equipment
CN106791893A (en) Net cast method and device
CN107888984B (en) Short video playing method and device
CN112256169B (en) Content display method and device, electronic equipment and storage medium
CN107562349B (en) Method and device for executing processing
CN110636355B (en) Video switching method, device, terminal and storage medium
CN106095300B (en) Method and device for adjusting playing progress
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
CN107566878B (en) Method and device for displaying pictures in live broadcast
CN106775210B (en) Wallpaper changing method and device
JP2017500677A (en) Image deletion method, image deletion apparatus, program, and recording medium
CN112135179A (en) Video playing method and device, electronic equipment and storage medium
CN110399082B (en) Terminal attribute control method and device, electronic equipment and medium
CN108829473B (en) Event response method, device and storage medium
CN107920015B (en) Method and device for publishing picture
CN115963929A (en) VR display method, device and storage medium
CN106354464B (en) Information display method and device
CN111246012B (en) Application interface display method and device and storage medium
CN114416015A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN113515251A (en) Content processing method and device, electronic equipment and storage medium

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