CN112040298A - Video playing processing method and device, electronic equipment and storage medium - Google Patents
Video playing processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112040298A CN112040298A CN202010910835.6A CN202010910835A CN112040298A CN 112040298 A CN112040298 A CN 112040298A CN 202010910835 A CN202010910835 A CN 202010910835A CN 112040298 A CN112040298 A CN 112040298A
- Authority
- CN
- China
- Prior art keywords
- video
- view
- playing
- played
- video data
- 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
- 238000003672 processing method Methods 0.000 title claims description 22
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000009877 rendering Methods 0.000 claims abstract description 20
- 238000004088 simulation Methods 0.000 claims description 58
- 238000004590 computer program Methods 0.000 claims description 4
- 230000009191 jumping Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 description 29
- 238000010586 diagram Methods 0.000 description 6
- 238000005034 decoration Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000036316 preload Effects 0.000 description 2
- 241000282376 Panthera tigris Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static 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/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/47202—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 requesting content on demand, e.g. video on demand
-
- 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
-
- 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/482—End-user interface for program selection
- H04N21/4825—End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
-
- 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/485—End-user interface for client configuration
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The method comprises the steps of obtaining video data of a video to be played after receiving a selection operation of the video to be played, synchronously creating an analog view and starting a movable assembly of a video detail page, playing the video to be played through the analog view, and switching the video to be played from the analog view to a view container in the movable assembly for playing after the movable assembly is started. According to the technical scheme, the video frame is rendered without waiting for the completion of the starting of the movable assembly, the rendering efficiency of the video is improved, and the time for a user to wait for the playing of the video is reduced.
Description
Technical Field
The present application relates to the field of video processing, and in particular, to a method and an apparatus for processing video playing, an electronic device, and a storage medium.
Background
With the continuous development of video technology, users can watch various videos through video websites or video clients. Taking a video client as an example, a video list is displayed on a home page interface of the video client, and a user selects a certain video in the video list and enters a video detail page of the video to play the video.
However, in the related art, it often takes a long time to enter a video detail page to pull video data to a first frame image of a video rendered by a video player, and a user needs to wait for a long time to view the video, which affects user experience.
Disclosure of Invention
The object of the present application is to solve at least one of the above technical drawbacks, in particular the problem of long video play-up time.
In a first aspect, an embodiment of the present application provides a method for playing a video frame, including the following steps:
after receiving a selection operation of a video to be played, acquiring video data of the video to be played, and synchronously creating a simulation view and initializing a movable assembly;
playing the video data through the simulated view;
and after the active component is started, switching the video data from the simulation view to a view container in the active component for playing.
In one embodiment, the step of acquiring the video data of the video to be played includes:
and jumping a display interface to the video detail page of the video to be played, and acquiring the video data of the video to be played.
In one embodiment, before the step of obtaining the video data of the video to be played, the method further includes:
displaying a video list on a display interface;
and pulling video data in advance for the video to be played on the video list, and storing the video data.
In one embodiment, the processing method for video playing further includes:
and starting a player through the video data when the active components for creating the simulation view and starting the video detail page are synchronously created, and automatically loading the player.
In one embodiment, the step of playing the video data through the simulated view comprises:
and acquiring the video data through a player, and rendering and playing the video frame corresponding to the video data by using the simulated view.
In one embodiment, the step of switching the video data from the simulated view to the active component for playing after the active component is started comprises:
determining that the active component is started completely, and adding a player view into a view container of the active component;
the player stops outputting the video frame to the simulation view, switches to output to the movable assembly, and renders the video frame for playing by using the view container.
In one embodiment, the step of creating a virtual view includes:
if the video detail page starts a floating window playing permission, creating the simulation view in the floating window, and adding the simulation view to a window manager;
in one embodiment, the step of creating a virtual view further comprises:
and if the video detail page does not open the floating window playing permission, creating the simulation view in the root layout of the active component of the current display interface.
In a second aspect, an embodiment of the present application further provides a processing apparatus for video playing, including:
the view creation module is used for acquiring video data of a video to be played after receiving a selection operation of the video to be played, and synchronously creating a simulation view and starting a movable assembly;
the view playing module is used for playing the video data through the simulation view;
and the video switching module is used for switching the video data from the simulation view to the view container in the movable assembly for playing after the movable assembly is started.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: and executing the video playing processing method.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the processing method for video playback.
In the video playing processing method, the video playing processing device, the electronic device, and the storage medium provided in the above embodiments, after receiving a selection operation of a video to be played, video data of the video to be played is acquired, and a simulation view and a movable component for starting a video detail page are created synchronously.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic interface diagram of a video list;
FIG. 2 is a flow diagram of a method for processing video playback according to an embodiment;
FIG. 3 is another flow diagram of a method for processing video playback according to an embodiment;
fig. 4 is a schematic structural diagram of a processing apparatus for video playback according to an embodiment.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Prior to describing particular embodiments of the present application, techniques related to video playback are first described. In the video playing Application, a user logs in an Application program (App) related to video playing, including live broadcast Application programs such as tiger live broadcast and YY live broadcast, or movie and television playing Application programs such as Tencent video, and the like, and after the user opens the Application program, a display page is displayed on a display interface of the Application program, wherein the display page is a page which is generated by a server and is displayed in a mobile terminal and contains video information. Furthermore, the display page can be a video list page, a video list is displayed on the video list page, and the user slides the screen of the mobile terminal through fingers to browse the video list and selects at least one video to be played from the video list to play.
Illustratively, FIG. 1 is an interface diagram of a video list, the video list being a list presented in blocks, one video for each block. As shown in fig. 1, the video list includes a video 1 to be played, a video 2 to be played, a video 3 to be played, a video 4 to be played, a video 5 to be played, and a video 6 to be played.
In the related art, when a user selects a certain video to be played, if the user clicks the video 1 to be played, the user jumps to a video detail page of the video 1 to be played, and simultaneously starts an active component (i.e., activity) of the video detail page, where a view container is located inside the activity. The player requests to pull the video stream of the video 1 to be played and generates a video frame, and after the activity assembly is started, the video frame is rendered through the activity assembly to play the video frame to be played.
As can be seen from the above, in the related art, from the time when the user clicks the video to be played to request playing to actually play the video to be played, the video frame is rendered for playing after the activity is started, and the time for starting the activity is long, so that the user needs to wait for a long time to watch the video, which affects the watching experience.
Based on this, the embodiment of the present disclosure provides a processing scheme for video playing, which can accelerate the rendering speed and the playing speed of a video, and reduce the time for a user to wait for the video to be played. The play starting speed refers to the speed from the moment when a user clicks the video to start playing to the moment when the first frame of video is played.
Fig. 2 is a flowchart of a processing method for video playing, which may be executed in a processing device for video playing and may be executed by a client according to an embodiment.
Specifically, as shown in fig. 2, the processing method for playing the video may include the following steps:
s210, after receiving the selection operation of the video to be played, acquiring the video data of the video to be played, and synchronously creating a simulation view and starting a movable assembly.
The selection operation includes, but is not limited to, a single click, a double click, a long press, a sliding operation and the like which are performed by a user on a position corresponding to a video to be played on the display interface, and the selection operation can be performed in a sliding or shaking-shaking manner and the like.
Illustratively, a video list is displayed on the display interface, and a user can select a video to be played by clicking the video. The video to be played may be a video on a video list, or a video on other display pages with video information, such as a history browsing record page.
For example, a user clicks a to-be-played video 1 in a video list to select the to-be-played video 1 for playing, after the client acquires the click operation of the to-be-played video 1 by the user, the client acquires video data of the to-be-played video, and synchronously creates a simulation view and starts an activity component, that is, the acquisition of the video data, the creation of the simulation view and the start of the activity component are processed in parallel, and it is not necessary to execute the next one after one or both of the acquisition of the video data, the creation of the simulation view and the start of the activity.
In an embodiment, after a client receives a selection operation of a user on a video to be played, video data of the video to be played is acquired, a display interface is jumped from a video list to a video detail page of the video to be played, a simulated view (fake view) is created while an active component of the video detail page is started, and the simulated view is used for rendering a video frame before the active component is started.
In this embodiment, the position of the created simulation view may be determined according to whether the video detail page opens the floating window playing permission. Opening the floating window means that the user can play the video through the floating window. The user can open or close the floating window through the floating window switch control arranged on the video detail page.
Based on whether the corresponding two conditions are open, the step of creating the virtual view comprises:
s2101, if the floating window playing permission is opened on the video detail page, the simulated view is created in the floating window and added to a window manager.
In this embodiment, if it is detected that the floating Window play right is opened on the video detail page, the video to be played may be played in the floating Window, a simulation view is created in the floating Window, and after the creation of the simulation view is completed, the simulation view is added to a Window Manager (Window Manager). The window manager is used for adding the simulation view, and the simulation view is global, is independent from each application and does not influence each other, so that the normal work of the floating window is not influenced.
S2102, if the floating window playing permission is not opened on the video detail page, creating the simulation view in the root layout of the active component of the current display interface.
In this embodiment, if it is detected that the floating window play right item is not opened on the video detail page, a simulation view is added to the current display interface, that is, the root layout (i.e., decoview) of activity on the current stack top.
S220, video data of the video to be played are obtained, and the video data are played through the simulation view.
In this embodiment, the player obtains video data of a video to be played, where the video data may be video data that is pulled/preloaded in the local area in advance before the user selects the video to be played, or video data that is pulled from the server by the player request after the user selects the video to be played. After the player obtains the video data, the player decodes the video data to generate a video frame, and renders the video frame through a view.
Because the created simulation view is smaller, the structure is simple, the normal watching of the video is not influenced, the initialization speed is faster than the starting of the movable assembly, the simulation view is initialized before the movable assembly is started, and at the moment, the video frame is rendered through the simulation view for playing.
And S230, after the activity component is started, switching the video data from the simulation view to a view container in the activity component for playing.
In this embodiment, after the active component is started, the video frame is stopped from being output to the analog view, the video frame is switched to be output to the active component, the previous analog view is replaced by the active component, and the video frame is rendered for playing through the view container in the active component.
It should be noted that, the simulated view is a view with a width different from zero, so as to avoid that the simulated view is too large to affect the user to watch the video, and the view width is not zero, and the player can perform rendering, so the simulated view should be as small as possible, optionally, in this embodiment, the simulated view is a 1-pixel view, that is, the size of the simulated view is 1 pixel wide and 1 pixel high.
In the processing method for video playing provided by this embodiment, after receiving a selection operation of a video to be played, video data of the video to be played is acquired, a simulation view is created and a movable assembly is started synchronously, the video to be played is played through the simulation view, and after the movable assembly is started, the video to be played is switched from the simulation view to the movable assembly for playing, so that a video frame is not required to be rendered after the movable assembly is started, the rendering efficiency of the video is improved, and the time of a user waiting for video playing is reduced.
Compared with the related art, a user clicks and selects a video to be played, a movable assembly of a video detail page where the video to be played is located is started, after the movable assembly is completed, a video frame is rendered by the movable assembly to play the video to be played, all actions in the process are executed in series, the starting time of the video to be played is long due to the long starting time of the movable assembly, and the user needs to spend a long time waiting for the video to be played. However, according to the scheme provided by this embodiment, after the user clicks and selects the video to be played, the activity component is started and the analog view is created at the same time, the video stream pulled by the player is rendered through the analog view with a high initialization speed, and after the activity component is started, the video stream pulled by the player is switched to the video stream pulled by the activity component rendering player, so that the video stream is rendered in advance, rendering is not required to be performed after the activity component is started, and the time for the user to wait for the video to be played is reduced.
In order to make the technical solution clearer and easier to understand, specific implementation processes and modes of a plurality of steps in the technical solution are described in detail below.
In an embodiment, before the step S210 obtains the video data of the video to be played, the method further includes the step S200: the video data is preloaded.
Wherein, the step S200 may include the steps of:
s2001, displaying a video list on a display interface;
and displaying a video list on a display interface, wherein the video list comprises one or a plurality of videos to be played. In this embodiment, a video cover is presented at a position corresponding to each video to be played on the video list, where the video cover may be a static video cover or a dynamic video cover, or may be a cached video clip of the video to be played.
And S2002, pulling video data for the video to be played on the video list in advance, and storing the video data.
In this embodiment, before the user clicks the video to be played for playing, the video data capable of playing for several seconds is downloaded in advance and stored locally, so as to preload the video to be played. When the user clicks playing, the player can load the video data from the local to improve the acquisition speed of the video data, and then continue to pull the video data from the network in the playing start stage (i.e. the stage after the user clicks playing), so that the influence of the network state on the playing start speed is reduced in the playing start stage, the playing start speed is further improved, and the waiting time of the user is reduced.
In an embodiment, the processing method for video playing further includes:
and S210a, starting a player through the video data when the active components of the simulation view and the video detail page are synchronously created and started, and automatically loading the player.
In this embodiment, the preloaded video data of the video to be played is stored locally, that is, before the user clicks the video to be played to play, the video data in the local is downloaded in advance, and usually, the video data can be played for a period of several seconds. When a user selects a video to be played for playing, the player is started through the preloaded video, video frames corresponding to the preloaded video data are generated by the player, and the video frames are rendered by the aid of the simulated view. In the embodiment, the player is started through the local preloaded data, and the video frame is rendered by using the simulated view, so that the influence of a network state caused by directly pulling the video from the network and then rendering is avoided, the starting time of the video is further shortened, and the time for a user to wait for the video to be played is shortened.
It should be noted that, in this embodiment, the three active components of starting the player through the video data, creating the simulation view, and starting the video detail page are performed in parallel, so as to save the processing time of video playing.
In an embodiment, the playing the video data through the simulated view in step S220 may include:
s2201, obtaining the video data through a player, and rendering and playing the video frame corresponding to the video data by using the simulation view.
The video data may be video data pre-loaded in the local before the user selects the video to be played, or video data pulled from the server after the user selects the video to be played.
The player obtains the video data, and correspondingly processes the video data to generate a video frame. The player needs to render the video frame through the view for playing after generating the video frame, and since the activity component is not started, the video frame cannot be rendered by using the related view container therein, and then the video frame is rendered by using the created simulated view and played in the player.
In an embodiment, the step S230, after the active component is started, switching the video data from the simulated view to a view container in the active component for playing, may include the following steps:
s2301, determining that the active component is started completely, and adding the player view into the view container of the active component.
The active component contains a view container, and a player view in the player is added to the view container to perform the rendering of the video frame. The player view is a view used by a player to render a video frame, and needs to be added to a view container in an active component for work.
S2302, the player terminates outputting the video frame to the simulation view, switches to output to the movable component, and renders the video frame for playing by using the view container of the movable component.
And the video frame generated by the player through acquiring the video data is not output to the simulation view for rendering, but is switched to be output to the player view added to the view container of the activity component for rendering and playing.
Fig. 3 is another flowchart of a processing method for video playback according to an embodiment. In order to make the technical solutions provided by the embodiments of the present disclosure clearer, an example of a processing method for video playing is set forth below with reference to fig. 3.
As shown in fig. 3, the video list shows videos to be played, and the videos to be played in the video list carry locally stored video streams.
After clicking the video to be played, the user enters a video detail page of the video to be played, wherein the following operations are performed in parallel:
(1) starting player by using video data carried by video to be played
(2) Activity to launch a video detail page
(3) Initializing created fake views
In the process of creating the fake view, different creating modes are corresponding to the video detail page according to whether the floating window right item is opened or not:
if the video detail page starts the floating window playing authority, adding the fake view of 1 pixel in the floating window to a window manager, putting a Surface container into a player, and realizing that the floating window presents a video image through the Surface container;
if the floating window playing authority is not opened on the video detail page, searching activity (view of a current display interface) at the current stack top, adding 1-pixel face view to decoview (root layout of the activity display interface) at the activity at the stack top, putting a Surface container into a player, and presenting a video image through the Surface container. Wherein, the fake view is a simulated view container.
When the activity is not started, rendering a video frame corresponding to the video data by using fake view to play; and after the activity is started, adding the player view into the activity view container to render a video frame for playing.
According to the scheme provided by the embodiment, after a user clicks and selects a video to be played, a fake view is created while the activity is started, the video frame corresponding to the video stream pulled by the player is rendered by initializing the fake view and using the fake view, and after the activity is started, the video frame is switched to be rendered by the activity, so that the video frame is rendered in advance by using the fake view without needing to wait for the rendering after the activity component is started, and the time of the user waiting for the video playing is reduced.
The above examples are merely used to assist in explaining the technical solutions of the present disclosure, and the drawings and specific flows related thereto do not constitute a limitation on the usage scenarios of the technical solutions of the present disclosure.
The following describes in detail a related embodiment of the processing apparatus for video playback.
Fig. 4 is a schematic structural diagram of a processing apparatus for video playback according to an embodiment, and as shown in fig. 4, the processing apparatus 200 for video playback may include: a view creation module 210, a view play module 220, and a video switching module 230.
The view creating module 210 is configured to, after receiving a selection operation of a video to be played, acquire video data of the video to be played, and synchronously create a simulation view and start a movable component;
the view playing module 220 is configured to obtain video data of the video to be played, and play the video data through the simulated view;
and a video switching module 230, configured to switch the video data from the simulated view to a view container in the active component for playing after the active component is started.
In the processing apparatus for playing video provided in the above embodiment, after receiving the selection operation of the video to be played, the view creating module 210 obtains video data of the video to be played, and creates a simulation view and a movable component for starting a video detail page synchronously, the view playing module 220 first plays the video to be played through the simulation view, and the video switching module 230 switches the video to be played from the simulation view to the movable component for playing after the movable component is started, so that it is not necessary to render a video frame after the movable component is started, thereby improving the rendering efficiency of the video, and reducing the time for a user to wait for playing the video.
In one embodiment, the view creating module 210 includes a jump obtaining unit, configured to jump the display interface to a video detail page of the video to be played, and obtain video data of the video to be played.
In one embodiment, the processing device 200 for video playing further includes: a pre-load module; the preloading module comprises a list display unit and a video pulling unit;
the list display unit is used for displaying the video list on the display interface;
and the video pulling unit is used for pulling video data for the video to be played on the video list in advance and storing the video data.
In one embodiment, the processing device 200 for video playing further includes: and the player starting module is used for starting a player through the video data and automatically loading the player when the active components of the simulation view and the video detail page are synchronously created.
In one embodiment, the view playing module 220 includes: and the video rendering unit is used for acquiring the video data through a player, and rendering and playing the video frame corresponding to the video data by using the simulation view.
In one embodiment, the video switching module 230 includes: a view adding unit and a video playing unit;
the view adding unit is used for determining that the starting of the movable assembly is completed and adding the player view into a view container of the movable assembly;
and the video playing unit is used for stopping outputting the video frame to the simulation view by the player, switching and outputting the video frame to the movable assembly, and rendering the video frame for playing by utilizing the view container of the movable assembly.
In one embodiment, the view creation module 210 includes: a first creating unit and a second creating unit;
the first creating unit is used for creating the simulation view in the floating window and adding the simulation view to a window manager if the floating window playing permission is opened on the video detail page;
and the second creating unit is used for creating the simulation view in the root layout of the active component of the current display interface if the floating window playing permission is not opened in the video detail page.
The video playing processing device in the embodiments of the present disclosure may execute the video playing processing method provided in the embodiments of the present disclosure, and the implementation principle is similar, the actions executed by each module in the video playing processing device in each embodiment of the present disclosure correspond to the steps in the video playing processing method in each embodiment of the present disclosure, and for the detailed functional description of each module of the video playing processing device, reference may be specifically made to the description in the corresponding video playing processing method shown in the foregoing, and details are not repeated here.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the program, the processor implements the processing method for video playing in any of the above embodiments.
When the computer device provided by the above-mentioned embodiment executes the video playing processing method provided by any of the above-mentioned embodiments, the computer device has corresponding functions and beneficial effects.
An embodiment of the present invention provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a processing method for video playback, including:
after receiving a selection operation of a video to be played, acquiring video data of the video to be played, and synchronously creating a simulation view and initializing a movable assembly;
playing the video data through the simulated view;
and after the active component is started, switching the video data from the simulation view to a view container in the active component for playing.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the above-described operations of the video playing processing method, and has corresponding functions and advantages.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute the processing method of video playing according to any embodiment of the present invention.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps. The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (11)
1. A method for playing video pictures is characterized by comprising the following steps:
after receiving a selection operation of a video to be played, acquiring video data of the video to be played, and synchronously creating a simulation view and starting a movable assembly;
playing the video data through the simulated view;
and after the active component is started, switching the video data from the simulation view to a view container in the active component for playing.
2. The method for processing video playing according to claim 1, wherein the step of obtaining the video data of the video to be played comprises:
and jumping a display interface to the video detail page of the video to be played, and acquiring the video data of the video to be played.
3. The method for processing video playing according to claim 1, wherein before the step of obtaining the video data of the video to be played, the method further comprises:
displaying a video list on a display interface;
and pulling video data in advance for the video to be played on the video list, and storing the video data.
4. The method for processing video playing according to claim 2, further comprising:
and starting a player through the video data when the active components for creating the simulation view and starting the video detail page are synchronously created, and automatically loading the player.
5. The method of claim 1, wherein the step of playing the video data through the simulated view comprises:
and acquiring the video data through a player, and rendering and playing the video frame corresponding to the video data by using the simulated view.
6. The processing method of claim 5, wherein the step of switching the video data from the simulated view to the view container in the active component for playing after the active component is started up comprises:
determining that the active component is started completely, and adding a player view into a view container of the active component;
and the player terminates outputting the video frame to the simulation view, switches and outputs the video frame to the movable assembly, and renders the video frame for playing by using the view container of the movable assembly.
7. The method for processing video playing according to claim 1, wherein the step of creating a virtual view comprises:
and if the video detail page starts the floating window playing permission, creating the simulation view in the floating window, and adding the simulation view to a window manager.
8. The method for processing video playing according to claim 7, further comprising:
and if the video detail page does not open the floating window playing permission, creating the simulation view in the root layout of the active component of the current display interface.
9. A video playback processing apparatus, comprising:
the view creation module is used for acquiring video data of a video to be played after receiving a selection operation of the video to be played, and synchronously creating a simulation view and starting a movable assembly;
the view playing module is used for playing the video data through the simulation view;
and the video switching module is used for switching the video data from the simulation view to the view container in the movable assembly for playing after the movable assembly is started.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: a processing method of performing video playback according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for processing video playback according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010910835.6A CN112040298A (en) | 2020-09-02 | 2020-09-02 | Video playing processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010910835.6A CN112040298A (en) | 2020-09-02 | 2020-09-02 | Video playing processing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112040298A true CN112040298A (en) | 2020-12-04 |
Family
ID=73591247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010910835.6A Pending CN112040298A (en) | 2020-09-02 | 2020-09-02 | Video playing processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112040298A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112770168A (en) * | 2020-12-23 | 2021-05-07 | 广州虎牙科技有限公司 | Video playing method and related device and equipment |
CN113365150A (en) * | 2021-06-04 | 2021-09-07 | 上海哔哩哔哩科技有限公司 | Video processing method and video processing device |
CN113923503A (en) * | 2021-11-24 | 2022-01-11 | 京东方科技集团股份有限公司 | Picture playing method and device and computer readable storage medium |
CN116962832A (en) * | 2023-07-28 | 2023-10-27 | 加客云科技(河北)有限公司 | Multi-page switching continuous video playing method, terminal and medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106303692A (en) * | 2016-08-22 | 2017-01-04 | 乐视控股(北京)有限公司 | Video loading method and device |
WO2017096961A1 (en) * | 2015-12-11 | 2017-06-15 | 乐视控股(北京)有限公司 | Video playing processing method, player, and terminal device |
-
2020
- 2020-09-02 CN CN202010910835.6A patent/CN112040298A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017096961A1 (en) * | 2015-12-11 | 2017-06-15 | 乐视控股(北京)有限公司 | Video playing processing method, player, and terminal device |
CN106303692A (en) * | 2016-08-22 | 2017-01-04 | 乐视控股(北京)有限公司 | Video loading method and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112770168A (en) * | 2020-12-23 | 2021-05-07 | 广州虎牙科技有限公司 | Video playing method and related device and equipment |
CN112770168B (en) * | 2020-12-23 | 2023-10-17 | 广州虎牙科技有限公司 | Video playing method, related device and equipment |
CN113365150A (en) * | 2021-06-04 | 2021-09-07 | 上海哔哩哔哩科技有限公司 | Video processing method and video processing device |
CN113365150B (en) * | 2021-06-04 | 2023-02-07 | 上海哔哩哔哩科技有限公司 | Video processing method and video processing device |
CN113923503A (en) * | 2021-11-24 | 2022-01-11 | 京东方科技集团股份有限公司 | Picture playing method and device and computer readable storage medium |
CN113923503B (en) * | 2021-11-24 | 2024-05-24 | 京东方科技集团股份有限公司 | Picture playing method, device and computer readable storage medium |
CN116962832A (en) * | 2023-07-28 | 2023-10-27 | 加客云科技(河北)有限公司 | Multi-page switching continuous video playing method, terminal and medium |
CN116962832B (en) * | 2023-07-28 | 2024-02-27 | 加客云科技(河北)有限公司 | Multi-page switching continuous video playing method, terminal and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112040298A (en) | Video playing processing method and device, electronic equipment and storage medium | |
TWI776066B (en) | Picture generating method, device, terminal, server and storage medium | |
US11620784B2 (en) | Virtual scene display method and apparatus, and storage medium | |
CN105979339B (en) | Window display method and client | |
US10735817B2 (en) | Video playback method and apparatus, and computer readable storage medium | |
CN104837051B (en) | Video broadcasting method and client | |
CN112637670B (en) | Video generation method and device | |
CN105187939A (en) | Method and device of playing video in webpage game | |
CN112437353B (en) | Video processing method, video processing device, electronic apparatus, and readable storage medium | |
CN103986938B (en) | The method and system of preview based on video playback | |
US11941728B2 (en) | Previewing method and apparatus for effect application, and device, and storage medium | |
CN109348155A (en) | Video recording method, device, computer equipment and storage medium | |
CN110209975B (en) | Method, apparatus, device and storage medium for providing object | |
CN112169319B (en) | Application program starting method, device, equipment and storage medium | |
CN114666648B (en) | Video playing method and electronic equipment | |
CN116489441A (en) | Video processing method, device, equipment and storage medium | |
CN114125560A (en) | Video playing method and device, electronic equipment and storage medium | |
RU2690888C2 (en) | Method, apparatus and computing device for receiving broadcast content | |
CN109788338A (en) | Monitoring method, device, computer equipment and the storage medium of video playing | |
US20240155175A1 (en) | Method and apparatus for generating interactive video | |
CN112866779A (en) | Video display method, device, computer equipment and medium | |
US20120301106A1 (en) | Generating content data for a video file | |
CN117579898B (en) | Video processing method, device, electronic equipment and storage medium | |
WO2024222443A1 (en) | Multimedia resource processing method and apparatus, device, and storage medium | |
CN118503520A (en) | Multimedia resource processing method, device, 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201204 |