CN108769816B - Video playing method, device and storage medium - Google Patents
Video playing method, device and storage medium Download PDFInfo
- Publication number
- CN108769816B CN108769816B CN201810401575.2A CN201810401575A CN108769816B CN 108769816 B CN108769816 B CN 108769816B CN 201810401575 A CN201810401575 A CN 201810401575A CN 108769816 B CN108769816 B CN 108769816B
- Authority
- CN
- China
- Prior art keywords
- video
- playing
- data
- display
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000003860 storage Methods 0.000 title claims abstract description 12
- 238000002360 preparation method Methods 0.000 claims description 87
- 238000012545 processing Methods 0.000 claims description 48
- 238000004458 analytical method Methods 0.000 claims description 30
- 238000007405 data analysis Methods 0.000 claims description 19
- 238000010586 diagram Methods 0.000 description 13
- 230000015654 memory Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000009826 distribution Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000036316 preload Effects 0.000 description 1
- 230000004044 response 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/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
-
- 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/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
-
- 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/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a video playing method, a video playing device and a storage medium; the embodiment of the invention can display the video play list on the screen, wherein the video play list comprises video identification information of at least one video; updating the display of the video playlist in the screen according to the display update operation when the display update operation for the video playlist is detected; in the process of updating and displaying a video playlist, when a staying display event of a screen is detected, a video playing address corresponding to target video identification information currently displayed on the screen is acquired; and when the video corresponding to the target video identification information needs to be played, playing the video according to the obtained video playing address. According to the scheme, the time consumed by loading of video playing can be reduced, and the starting speed of live video is increased.
Description
Technical Field
The invention relates to the technical field of live broadcasting, in particular to a video playing method, a video playing device and a storage medium.
Background
With the continuous development of network technology, live video is more and more popular with users; the video live broadcast refers to live broadcast by utilizing the internet and a streaming media technology, and the video is combined with rich elements such as images, characters and sounds, has a luxuriant sound and a good effect, and gradually becomes a mainstream expression mode of the internet.
However, in the current video live broadcasting technology, when video playing is started, it takes a long time to start playing video data, which reduces the starting speed of video live broadcasting.
Disclosure of Invention
The embodiment of the invention provides a video playing method, a video playing device and a storage medium, which can improve the starting speed of live video.
The embodiment of the invention provides a video playing method, which comprises the following steps:
displaying a video playlist on a screen, wherein the video playlist comprises video identification information of at least one video;
when a display updating operation aiming at the video playlist is detected, updating the display of the video playlist in the screen according to the display updating operation;
in the process of updating and displaying the video playlist, when a staying display event of the screen is detected, acquiring a video playing address corresponding to target video identification information currently displayed on the screen;
and when a video corresponding to the target video identification information needs to be played, playing the video according to the obtained video playing address.
Correspondingly, an embodiment of the present invention further provides a video playing apparatus, including:
the display unit is used for displaying a video play list on a screen, wherein the video play list comprises video identification information of at least one video;
an updating unit configured to update display of the video playlist in the screen according to a display update operation when the display update operation for the video playlist is detected;
the address acquisition unit is used for acquiring a video playing address corresponding to target video identification information currently displayed on the screen when a staying display event of the screen is detected in the process of updating and displaying the video playing list;
and the playing unit is used for playing the video according to the acquired video playing address when the video corresponding to the target video identification information needs to be played.
Correspondingly, the embodiment of the present invention further provides a storage medium, where the storage medium stores instructions, and the instructions, when executed by a processor, implement the steps of any of the methods provided in the embodiment of the present invention.
The embodiment of the invention adopts the steps that a video play list is displayed on a screen, and the video play list comprises video identification information of at least one video; updating the display of the video playlist in the screen according to the display update operation when the display update operation for the video playlist is detected; in the process of updating and displaying a video playlist, when a staying display event of a screen is detected, a video playing address corresponding to target video identification information currently displayed on the screen is acquired; and when the video corresponding to the target video identification information needs to be played, playing the video according to the acquired video playing address. According to the scheme, the playing address of the video can be acquired before the video is played, and the video can be played directly according to the acquired playing address when the video is played subsequently; therefore, the time consumed by loading the video playing can be reduced, and the starting speed of the video live broadcast is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a scene schematic diagram of a live broadcast system provided in an embodiment of the present invention;
fig. 1b is a schematic view of another scene of a live broadcast system provided in an embodiment of the present invention;
fig. 2a is a schematic flowchart of a video playing method according to an embodiment of the present invention;
FIG. 2b is a schematic view of a live interface provided in an embodiment of the present invention;
FIG. 2c is a diagram of a drag playlist provided by an embodiment of the present invention;
FIG. 2d is a diagram illustrating refreshing a playlist according to an embodiment of the present invention;
FIG. 3a is a diagram of a conventional video playback;
FIG. 3b is a diagram illustrating live address preloading according to an embodiment of the present invention;
FIG. 4a is a schematic diagram of a data playing process provided by an embodiment of the present invention;
FIG. 4b is a schematic flow chart of playing data according to an embodiment of the present invention;
fig. 5a is another schematic flowchart of a video playing method according to an embodiment of the present invention;
FIG. 5b is a schematic diagram of a video loading page according to an embodiment of the present invention;
fig. 6a is a schematic structural diagram of a video playback device according to an embodiment of the present invention;
fig. 6b is a schematic structural diagram of a second video playback device according to an embodiment of the present invention;
fig. 6c is a schematic structural diagram of a video playback device according to an embodiment of the present invention;
fig. 6d is a schematic diagram of a fourth structure of a video playing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a video playing method, a video playing device and a storage medium.
The embodiment of the invention provides a live broadcast system, which can comprise any video playing device provided by the embodiment of the invention. The video playing device can be integrated in a terminal. The live system may also include other devices, such as servers and the like.
For example, referring to fig. 1a, there is provided a live system comprising: a terminal 10, an address server 20, and a data server 40; the address server 20 is connected to the terminal 10 via a network, and the data server 40 is connected to the terminal 10 via a network. The network includes network entities such as routers and gateways, which are shown schematically in the figure.
The address server 20 is configured to manage a video playing address and provide the video playing address for the terminal 10; the data server 40 is used for storing audio and video data and providing the audio and video data for the terminal 10; the address server 20 and the data server 40 may perform data interaction with the terminal 10 through a wired network or a wireless network. The address server 20 and the data server 40 are integrated together and implemented by one device such as a server, or may be separately provided.
The terminal 10 may be configured to acquire a video playing address and download corresponding audio/video data according to the video playing address for playing, and the terminal 10 may be connected to the address server 20 and the data server 40 through a network. The terminal 10 may be a mobile phone, a tablet computer, a notebook computer, a wearable device, etc., and fig. 1a illustrates the terminal 10 as a mobile phone. Various applications required by the user, such as an application with an entertainment function (e.g., a live application, an audio playing application, a game application, and reading software), and an application with a service function (e.g., a map navigation application, a group purchase application, and the like), may also be installed in the terminal 10.
For another example, referring to fig. 1b, another live system is provided, the live system comprising: a recording end 11 for recording video, a streaming server 12, a distribution server 13, a Content Delivery Network (CDN) 14, a playing end 15 for playing video, a redirect server 16, and the like. The content delivery network comprises a plurality of stages of CDN servers.
The recording terminal 11 is configured to record audio and video data and upload the recorded audio and video data to the streaming server 12, the recording terminal 11 may be connected to the streaming server 12 through a network, and the recording terminal 11 may be a terminal or other device with an audio and video recording function, for example, a mobile phone, a tablet computer, a notebook computer, a wearable device, or the like.
The streaming server 12 is configured to receive the audio and video data uploaded by the recording end 11, convert the audio and video data into an audio and video data stream in a streaming media format, and then send the audio and video data stream to the distribution server 13; the streaming server 12 may be located between the recording end 11 and the distribution server 13, and connected to the recording end 11 and the distribution server 13, respectively.
The delivery server 13 is configured to deliver the audio and video data stream, and specifically, deliver the received audio and video data stream to a corresponding CDN server in the CDN network; the delivery servers 13 are connected to CDN servers in the CDN network, respectively.
The CDN server 14 is located in the CDN network, and configured to distribute the received audio and video data streams, and specifically, distribute the audio and video data streams to corresponding lower CDN servers. And each CDN server in the CDN network is connected in a cascading mode.
And the redirection server 16 is configured to manage the video playing address, and provide the video playing address to the playing terminal 15 in response to the address request of the playing terminal 15. The redirection server 16 may be located outside the CDN network and connected to the playout end 15.
And the playing terminal 15 is configured to obtain a video playing address from the redirection server 16, download corresponding audio and video data from the CDN server according to the video playing address, and play the audio and video data. The playing end 15 may be connected to the CDN server 14 and the redirect server 16, respectively. The playing terminal 15 may be a terminal or other device having an audio/video playing function, for example, a mobile phone, a tablet computer, a notebook computer, a wearable device, or the like.
The above example of fig. 1a and fig. 1b is only one example of a system architecture for implementing the embodiment of the present invention, and the embodiment of the present invention is not limited to the system architecture shown in fig. 1a or fig. 1b, and various embodiments of the present invention are proposed based on the system architecture.
In an embodiment, there is provided a video playing method, which can be executed by a processor of a terminal, as shown in fig. 2a, the video playing method includes:
201. displaying a video playlist on a screen, the video playlist including video identification information of at least one video.
Wherein the video playlist may include video identification information for one or more videos. The video identification information may include: the name of the video, cover information for the video (e.g., cover pictures), anchor information (e.g., anchor name, etc.), and so forth.
Wherein the video playlist may be displayed in the form of a page in the screen, for example, referring to fig. 2b, a live page may be displayed in the screen, the live page includes the video playlist, and the current video playback may include video identification information (such as a name, a cover picture, and a main broadcast name) of video a, video b, video c, and video d.
202. When a display update operation for the video playlist is detected, the display of the video playlist in the screen is updated in accordance with the display update operation.
The display updating operation may be set according to actual requirements, and may include, for example, a dragging operation, a sliding operation, a clicking operation, a pressing operation, a shaking operation, and the like.
In an embodiment, updating the display of the video playlist in the screen may include: and displaying the undisplayed video identification information in the video playlist on a screen. For example, the step "updating the display of the video playlist in the screen according to the display update operation" may include:
determining target video identification information to be displayed from a video play list according to display updating operation;
target video identification information is displayed in the screen.
For example, the video identification information of the new video may be selected from the video playlist, that is, the video identification information to be displayed is determined from the non-displayed video identification information, and so on. The new video is a video that does not currently display identification information.
There are various ways to determine the target video identification information according to the display updating operation, for example, the target video identification information may be determined according to the operation parameters of the display updating operation, such as based on the operation distance, the operation duration, and the like. For example, when the operation is a drag operation, the operation may be determined based on parameters such as a drag distance, a drag duration, and an end position of the drag corresponding to the drag operation.
For example, the video playlist includes video identification information of video a, video b, video c, video d, video e, video f, and video g; referring to fig. 2b, video identification information of video a, video b, video c, video d is initially displayed in the screen; when the user performs a drag operation on the screen, such as dragging a page upwards, the terminal may determine that the video identification information of the videos e and f is displayed in the screen, and with reference to fig. 2c, display the video identification information of the videos e and f in the current screen. From the perspective of the user, the user can display the video information of the new video in the video playlist by dragging the page upwards.
In an embodiment, updating the display of the video playlist in the screen may include: and updating the video play list, and displaying the updated video play list in the screen.
For example, the video identification information of the new video may be acquired from the server, the current video playlist may be updated according to the video identification information of the new video, and the updated video playlist may be displayed on the screen.
For example, a video playlist includes video a, video b, video c, video d; referring to fig. 2b and 2d, the video identification information of video a, video b, video c, video d is initially displayed in the screen; when a user performs dragging operation on a screen, such as dragging a page downwards, the terminal can pull video identification information of a new video, such as video identification information of a video e, a video f, a video g and a video h, from the server; then, the current video playlist is updated, and at this time, the video playlist includes: video identification information of a video e, a video f, a video g and a video h; and displays the updated video playlist in the screen.
From the perspective of the user, the user can refresh the video information displayed on the screen by dragging the page downwards.
203. In the process of updating and displaying the video playlist, when a staying display event of the screen is detected, a video playing address corresponding to the target video identification information currently displayed on the screen is acquired.
For example, a video playing address corresponding to the target video identification information currently displayed on the screen may be acquired from the address server.
The stay display event is an event that the screen stays for a certain time to display the content in the process of updating and displaying the video playlist, for example, the time may be set according to actual requirements, for example, 2s and the like.
For example, in the process of updating the display of the video playlist, the screen stays for displaying for 2s for the current video identification information, and then a stay display event is triggered.
The address server may provide a video playing address, for example, a redirect server 16 in a live system, referring to the live system shown in fig. 1 b.
The video playing address may be a video playing URL (Uniform Resource Locator), and for example, may include a CDN server address.
For example, referring to fig. 2c, when the user drags the video playlist upward multiple times (i.e., the user drags the playlist upward multiple times), the terminal updates the video identification information in the displayed video playlist in the screen multiple times based on the dragging operation, and assuming that the user stops the dragging operation when the video identification information of the video e and f is displayed on the screen, the user continues the dragging operation after the screen is displayed for 2s (second), at this time, the terminal detects the stop display event, and the terminal may obtain the video playing addresses of the videos a, b, e, and f from the address server.
For another example, referring to fig. 2d, when the user drags the video playlist downwards for multiple times, the terminal may continuously update and display the video playlist (that is, the user drags the video playlist downwards for multiple times), assuming that the user stops dragging operation when the video identifier information of the video e, the video f, the video g, and the video h is displayed on the screen, and the user continues dragging operation after the screen is displayed for 2 seconds, at this time, the terminal detects a stop display event, and the terminal may obtain the video identifier information of the video e, the video f, the video g, and the video h from the address server.
In an embodiment, in order to improve the identification of the video of interest of the user more accurately and save resources, a preset duration is set, and when the stay display duration corresponding to the stay display event is longer than the preset duration, it is considered that the user is interested in the currently displayed video information, and a subsequent user may play the video, so that a play address of the video needs to be loaded in advance.
Specifically, the step of "acquiring a video playing address corresponding to the target video identification information currently displayed on the screen" may include:
acquiring a stay display duration corresponding to the stay display event;
and when the stay time is longer than the preset time, acquiring a video playing address corresponding to the target video identification information currently displayed in the screen.
The preset duration may be set according to an actual requirement, or may be set according to behavior feature information of a user playing a video, for example, 5 s.
For example, referring to fig. 2c, when the user drags the video playlist upward for multiple times (i.e., the user drags the playlist upward for multiple times), the terminal updates the video identifier information in the displayed video playlist in the screen based on the dragging operation for multiple times, assuming that the user stops the dragging operation when the video identifier information of the video e and f is displayed on the screen, the user continues the dragging operation after the screen is displayed for 6s, at this time, the terminal detects the stay display event, and determines that the stay display duration 6s is greater than the preset duration 5s, at this time, the terminal may obtain the video playing addresses of the videos a, b, e, and f from the address server.
204. And when the video corresponding to the target video identification information needs to be played, playing the video according to the obtained video playing address.
For example, in an embodiment, when a play instruction corresponding to the target video identification information is received, that is, a video corresponding to the target video identification information needs to be played is determined, and at this time, video playing can be performed according to the obtained video playing address.
The target video identification information can also comprise a video playing link of the target video; at this time, a corresponding play instruction may be triggered based on a triggering operation (e.g., a click operation) for the video play link.
The video playing address may be a video playing URL (Uniform Resource Locator), and for example, may include a CDN server address.
For example, the video data may be downloaded from the corresponding CDN server according to a video playing address obtained in advance, and the downloaded video data may be decoded and played.
The video playing scheme provided by the embodiment of the invention can acquire the video playing address of the video in advance, and then directly acquire video data according to the video playing address acquired in advance for playing when the video is played; compared with the traditional video playing scheme, the scheme can save the time consumed by loading the video playing address, reduce the time consumed by loading the video playing, and improve the starting speed of the video live broadcast.
For example, taking the live broadcast system shown in fig. 1a as an example, by using the method of the embodiment of the present invention, the terminal 10 may display a video playlist on the screen, where the video playlist includes at least one piece of video identification information; updating the display of the video playlist in the screen according to the display update operation when the display update operation for the video playlist is detected; in the process of updating and displaying the video playlist, when a staying display event of a screen is detected, a video playing address corresponding to target video identification information currently displayed on the screen is obtained from the address server 20 in advance; when a video corresponding to the target video identification information needs to be played, audio and video data is obtained from the data server 40 according to a video playing address obtained in advance for playing the video. Compared with the traditional video playing scheme, the video playing scheme adopted by the terminal 10 in the live broadcast system can save the loading time of the video playing address, reduce the loading time of the video playing and improve the starting speed of the video live broadcast.
For example, taking the live broadcast system shown in fig. 1b as an example, by using the method in the embodiment of the present invention, the playing terminal 15 may display a video playlist on the screen, where the video playlist includes at least one piece of video identification information; updating the display of the video playlist in the screen according to the display update operation when the display update operation for the video playlist is detected; in the process of updating and displaying the video playlist, when a staying display event of the screen is detected, a video playing address, namely a CDN address, corresponding to target video identification information currently displayed on the screen is obtained from the redirection server 16 in advance; when a video corresponding to the target video identification information needs to be played, audio and video data is acquired from the CDN server 14 according to a video playing address acquired in advance for playing. Compared with the traditional video playing scheme, the video playing scheme adopted by the playing terminal 15 in the live broadcasting system can save the loading time of the video playing address, reduce the loading time of the video playing and improve the starting speed of the video live broadcasting.
Referring to fig. 3a, for a conventional video playing scheme, when a user clicks to play a video, a player on a terminal needs to access a redirection server to obtain a video playing address, and then the player follows the video playing address to play the video, where an average time consumed for the player to access the redirection server to obtain the address is 400ms, a time consumed for loading the video playing is large, and a starting speed is slow.
Referring to fig. 3b, in the video playing scheme provided by the embodiment of the present invention, in the process of dragging the video playlist by the user, if a stop display event is detected, the video playing address of the video is obtained in advance, and when the user clicks and plays the video at the obtained video playing address, the player can directly play the video according to the video playing address obtained in advance, so that a process of accessing the redirection server to obtain the address is omitted, time consumed for loading the video playing address is saved, time consumed for loading the video playing is reduced, and the start speed of live video broadcast is increased.
In an embodiment, in order to improve the fluency and quality of video playing, a playing preparation process may be performed on the video data first, when the preparation process is completed, the video data is downloaded according to a video playing address obtained in advance, and the downloaded video data is played according to video playing parameter information obtained by the playing preparation process.
For example, referring to fig. 4a, a flow for playing a video is loaded for a player. Specifically, the player SDK sends a preparation parsing instruction (prepareAsync) to the playback kernel, the playback kernel sends the instruction to a preparation parsing Thread (preparethread), and the playback preparation parsing Thread (preparethread) calls openFile to perform playback preparation processing according to the instruction, for example, findstreamlnfo is executed to parse video data to obtain video playback parameter information.
For example, the analysis preparation thread may call openFile to download audio and video data (preload) to be analyzed, separate the downloaded audio and video data through a fft Demuxer to obtain video data and audio data, and then analyze the video data and the audio data.
When the analysis of the video data is completed, returning a preparation completion notification message (such as onPreppred) to the player SDK, calling Start by the player SDK to Start a downloading Thread (such as a read packet Thread ReadPacket Thread), downloading the video data according to a video playing address through the downloading Thread, and decoding and playing the downloaded video data through a video decoding Thread (such as a video DeodeThread and an Audio DeodeThread).
As can be seen from the flow shown in fig. 4a for loading and playing video, since the data downloading thread, such as the reading package thread, must be started after the audio and video data analysis is completed, i.e., the playing preparation process is completed, however, the audio and video data analysis needs to spend more real scenes, which results in that the data downloading thread is started later, such as the reading package thread, the loading time of video playing is increased, and the starting speed of video playing is reduced.
In an embodiment, the data downloading thread may be started, for example, the read packet thread downloads the audio/video data to be played, while the play preparation processing is performed. That is, the step "performing video playing according to the video playing address obtained in advance" may include:
carrying out playing preparation processing according to a video playing address acquired in advance, and simultaneously downloading audio and video data to be played from a data server;
and when the playing preparation processing is finished, playing the downloaded audio and video data.
For example, a play ready analysis Thread (prepare Thread) is started, and a data download Thread (e.g., a read packet Thread ReadPacket Thread) is started at the same time; performing play preparation processing according to a video play address acquired in advance through a play preparation analysis Thread (prepare Thread); downloading audio and video data to be played from a data server through a data downloading Thread (such as a read packet Thread) according to a video playing address
For example, referring to fig. 4b, a play preparation Thread (e.g., prepare Thread) may be started to call OpenFile and simultaneously start a packet reading Thread, so as to avoid that the packet reading Thread is started to download data after findStramInfo and oncompressed are needed in a conventional flow, reduce data downloading time, reduce time consumed for loading video, and thus improve video starting speed. Through practical tests, the time consumption of about 200ms can be saved by adopting the scheme to optimize the playing process.
The process of the playing preparation processing may include a process of obtaining sample audio/video data according to the video playing address, and analyzing the sample audio/video data to obtain video playing parameter information. That is, the step of "performing play preparation processing according to a video play address acquired in advance, and downloading audio/video data to be played from the data server at the same time" may include:
downloading sample audio and video data from a data server according to the video playing address, analyzing the downloaded sample audio and video data, and downloading audio and video data to be played from the data server;
when the data analysis is successful, determining that the playing preparation processing is completed;
the step of playing the downloaded audio/video data when the play preparation process is completed may include:
and when the playing preparation processing is finished, playing the downloaded audio and video data according to the video playing parameter information obtained by analysis.
The sample audio/video data can be selected from the audio/video data of the video to be played according to actual requirements, for example, the sample audio/video data can be audio/video data of a certain time length in front of the video, and the like. E.g. audiovisual data of the first few seconds of video, etc.
The video playing parameter information may include: resolution of video, frame rate, audio playback parameters, etc.
In an embodiment, when the data analysis is successful, the downloading of the sample audio/video data may also be stopped.
In one embodiment, when the data analysis fails, the sample audio/video data can be downloaded continuously with the video playing address.
For example, referring to fig. 4b, after the play ready analysis Thread (e.g., prepare Thread) is started, the play ready analysis Thread calls OpenFile implementation: downloading sample audio and video data from a corresponding CDN server according to the video playing address, and then analyzing the downloaded sample audio and video data; when the data analysis is successful, it is determined that the playback preparation process is completed, and preparation completion notification information (e.g., onPreppred) is returned to the player SDK. After receiving the preparation completion notification information (e.g., onPreppred), the player SDK starts a video/audio decoding thread (e.g., VideoDeodeThread, Audio DeodeThread) to decode the downloaded audio/video data, and plays the decoded data according to the video playing parameter information obtained by the playing preparation processing.
As can be seen from the above description, the playback preparation process is required before playing back the video, and the data needs to be downloaded for analysis during the playback preparation process. The large amount of data analyzed in the process of preparing the playing process can lead to long loading time, and the starting speed of video playing is reduced.
In order to reduce the loading time and increase the starting speed of video playing, in an embodiment, the data volume analyzed in the playing preparation process can also be reduced. For example, the step "analyzing the downloaded sample audio/video data" may include:
analyzing the currently downloaded sample audio/video data;
when the data analysis fails, acquiring the accumulated frame number of the currently analyzed sample video data;
judging whether the accumulated frame number is greater than a preset frame number or not; if so, determining that the playing preparation processing is finished.
In an embodiment, when the accumulated frame number is greater than the preset frame number, the downloading of the sample audio/video data may also be stopped.
The preset frame number may be obtained according to an actual test, for example, may be 5 frames.
For example, referring to fig. 4b, after a play preparation analysis Thread (e.g., prepare Thread) is started, the play preparation analysis Thread invokes OpenFile to download sample audio/video data from a corresponding CDN server according to a video play address, analyzes the downloaded sample audio/video data, determines that the play preparation process is completed when the analysis is successful, acquires the number of frames of video data currently analyzed accumulatively when the analysis is failed, stops downloading the sample audio/video data when the number of frames is greater than a preset number of frames (e.g., 5 frames), and returns preparation completion notification information (e.g., onprepped) to the player SDK.
Therefore, the embodiment of the invention can reduce the analyzed data volume, greatly reduce the actual data downloading, reduce the loading time consumption of video playing and greatly improve the starting speed of video playing. The reduced analyzed data volume optimization may optimize the loading time of approximately 700 ms.
As can be seen from the above, the embodiment of the present invention displays the video playlist on the screen, where the video playlist includes video identification information of at least one video; updating the display of the video playlist in the screen according to the display update operation when the display update operation for the video playlist is detected; in the process of updating and displaying a video playlist, when a staying display event of a screen is detected, a video playing address corresponding to target video identification information currently displayed on the screen is acquired; and when the video corresponding to the target video identification information needs to be played, playing the video according to the video playing address acquired in advance. The scheme can acquire the playing address of the video in advance before the video is played, and the video can be played directly according to the pre-acquired playing address when the video is played subsequently; therefore, the time consumed by loading the video playing can be reduced, and the starting speed of the video live broadcast is improved.
The embodiment of the invention can also optimize the playing flow of the playing end, trigger the downloading of the audio and video data while performing the playing preparation processing, reduce the time consumption for downloading the data, further reduce the time consumption for loading the video playing, and improve the starting speed of the live video.
In addition, the embodiment of the invention can also reduce the number of analysis in the playing preparation processing, further reduce the time consumption for loading the video playing and greatly improve the starting speed of the video live broadcast.
The method described in the above embodiments is further illustrated in detail by way of example.
In an embodiment, the video playing method of the present invention will be described in detail by taking an example in which a video playing device is integrated in a terminal.
As shown in fig. 5a, the specific flow of the video playing method may be as follows:
501. the terminal displays a video play list on a screen, wherein the video play list comprises video identification information of at least one video.
Wherein the video playlist may include video identification information for one or more videos. The video identification information may include: the name of the video, cover information for the video (e.g., cover pictures), anchor information (e.g., anchor name, etc.), and so forth.
Wherein the video playlist may be displayed in the form of a page in the screen, for example, referring to fig. 2b, a live page may be displayed in the screen, the live page includes the video playlist, and the current video playback may include video identification information (such as a name, a cover picture, and a main broadcast name) of video a, video b, video c, and video d.
502. When the display updating operation aiming at the video playlist is detected, the terminal updates the display of the video playlist in the screen according to the display updating operation.
The display updating operation may be set according to actual requirements, and may include, for example, a dragging operation, a sliding operation, a clicking operation, a pressing operation, a shaking operation, and the like.
In an embodiment, updating the display of the video playlist in the screen may include: and displaying the undisplayed video identification information in the video playlist on a screen. For example, the terminal determines the identification information of the target video to be displayed from the video play list according to the display updating operation; displaying determined video identification information in a screen
For example, the video playlist includes video identification information of video a, video b, video c, video d, video e, video f, and video g; referring to fig. 2b, video identification information of video a, video b, video c, video d is initially displayed in the screen; when the user performs a drag operation on the screen, such as dragging a page upwards, the terminal may determine that the video identification information of the videos e and f is displayed in the screen, and with reference to fig. 2c, display the video identification information of the videos e and f in the current screen. From the perspective of the user, the user can display the video information of the new video in the video playlist by dragging the page upwards.
503. In the process of updating and displaying the video playlist, when a staying display event of a screen is detected, the terminal acquires a video playing address corresponding to the target video identification information currently displayed on the screen from the redirection server in advance.
The stay display event is an event that the screen stays for a certain time to display the content in the process of updating and displaying the video playlist, for example, the time may be set according to actual requirements, for example, 2s and the like.
For example, in the process of updating the display of the video playlist, the screen stays for displaying for 2s for the current video identification information, and then a stay display event is triggered.
The video playing address may be a video playing URL (Uniform Resource Locator), and for example, may include a CDN server address.
For example, referring to fig. 2c, when the user drags the video playlist upward multiple times (i.e., the user drags the playlist upward multiple times), the terminal updates the video identification information in the displayed video playlist in the screen multiple times based on the dragging operation, and assuming that the user stops the dragging operation when the video identification information of the video e and f is displayed on the screen, the user continues the dragging operation after the screen is displayed for 2s, at this time, the terminal detects a stay display event, and the terminal may obtain the video playing addresses of the videos a, b, e, and f from the address server.
In an embodiment, in order to improve the identification of the video of interest of the user more accurately and save resources, a preset duration is set, and when the stay display duration corresponding to the stay display event is longer than the preset duration, it is considered that the user is interested in the currently displayed video information, and the subsequent user may play the video. For example, the terminal acquires a stay display duration corresponding to a stay display event; and when the stay time is longer than the preset time, acquiring a video playing address corresponding to the target video identification information displayed in the screen from the address server in advance.
The preset duration may be set according to an actual requirement, or may be set according to behavior feature information of a user playing a video, for example, 5 s.
504. When a video corresponding to the target video identification information needs to be played, the terminal performs playing preparation processing according to a video playing address acquired in advance, and simultaneously downloads audio and video data to be played from the CDN server.
The process of the playing preparation processing may include a process of obtaining sample audio/video data according to the video playing address, and analyzing the sample audio/video data to obtain video playing parameter information.
The video playing parameter information may include: resolution of video, frame rate, audio playback parameters, etc.
For example, sample audio and video data is downloaded from a corresponding CDN server according to a video playing address, and the downloaded sample audio and video data is analyzed;
when the analysis is successful, determining that the playing preparation processing is completed, and stopping downloading the sample audio and video data;
and when the analysis fails, continuing to download the sample audio and video data, and stopping downloading the analyzed audio and video data until the analysis is successful or a preset termination condition is met.
For example, referring to fig. 4b, after the play ready analysis Thread (e.g., prepare Thread) is started, the play ready analysis Thread calls OpenFile implementation: downloading sample audio and video data from a corresponding CDN server according to the video playing address, and then analyzing the downloaded sample audio and video data; when the data analysis is successful, it is determined that the playback preparation process is completed, and preparation completion notification information (e.g., onPreppred) is returned to the player SDK. After receiving the preparation completion notification information (e.g., onPreppred), the player SDK starts a video/audio decoding thread (e.g., VideoDeodeThread, Audio DeodeThread) to decode the downloaded audio/video data, and plays the decoded data according to the video playing parameter information obtained by the playing preparation processing.
In an embodiment, in order to reduce the analysis data amount and reduce the loading time of video playing, the cumulative frame number of the currently analyzed sample video data can be obtained when the current audio/video data is failed to be analyzed; judging whether the accumulated frame number is greater than a preset frame number or not; if so, determining that the playing preparation processing is finished, and stopping data downloading analysis.
For example, referring to fig. 4b, after a play preparation analysis Thread (e.g., prepare Thread) is started, the play preparation analysis Thread invokes OpenFile to download sample audio/video data from a corresponding CDN server according to a video play address, analyzes the downloaded sample audio/video data, determines that the play preparation process is completed when the analysis is successful, acquires the number of frames of video data currently analyzed accumulatively when the analysis is failed, stops downloading the sample audio/video data when the number of frames is greater than a preset number of frames (e.g., 5 frames), and returns preparation completion notification information (e.g., onprepped) to the player SDK.
505. And when the playing preparation processing is finished, playing the downloaded audio and video data.
In an embodiment, when the sample audio/video data is successfully analyzed, the downloaded audio/video data can be played according to the video playing parameter information obtained by the playing preparation processing.
For example, when the playback preparation process is completed, the downloaded audio/video data may be decoded, and the decoded data may be played according to the video playback parameter information.
For example, referring to fig. 4b, when receiving the preparation completion notification information (e.g., onprepped), the player SDK starts a video/audio decoding thread (e.g., videodeodeodethread, audiodeodeodethread) to decode the downloaded video/audio data, and plays the decoded data.
As can be seen from the above, the video playing method provided in the embodiment of the present invention can obtain the playing address of the video in advance before the video is played, and can directly play the video according to the obtained playing address when the video is played again; therefore, the time consumed by loading the video playing can be reduced, and compared with the traditional playing scheme, the starting speed of the video live broadcast can be increased.
The embodiment of the invention can also optimize the playing flow of the playing end, trigger the downloading of the audio and video data while performing the playing preparation processing, reduce the time consumption for downloading the data, further reduce the time consumption for loading the video playing, and improve the starting speed of the live video.
In addition, the embodiment of the invention can also reduce the number of analysis in the playing preparation processing, further reduce the time consumption for loading the video playing and greatly improve the starting speed of the video live broadcast.
Through practical tests, the video playing scheme provided by the embodiment of the invention can enable the playing end to averagely reduce the loading time consumption by about 1.1S, wherein the CDN address is preloaded for about 200ms (millisecond ), the playing flow is optimized for about 200ms, and the analysis data size is optimized for about 700ms of loading time consumption. Referring to fig. 5b, compared with the conventional playing scheme, live video broadcasting can be started quickly, in fig. 5b, for the same video, the video is still loaded when the video is live broadcast by the conventional playing scheme (refer to the left diagram in fig. 5 b), but the video playing scheme provided by the embodiment of the present invention is used to start playing the video.
In order to better implement the above method, an embodiment of the present invention further provides a video playing apparatus, where the video playing apparatus may be applied to a terminal, and as shown in fig. 6a, the video playing apparatus may include: the display unit 601, the update unit 602, the address acquisition unit 603, and the playback unit 604 are as follows:
a display unit 601 configured to display a video playlist on a screen, where the video playlist includes video identification information of at least one video;
an updating unit 602, configured to update display of the video playlist in the screen according to a display update operation when the display update operation for the video playlist is detected;
an address obtaining unit 603, configured to, in a process of updating and displaying the video playlist, obtain a video playing address corresponding to target video identification information currently displayed on the screen when a staying display event of the screen is detected;
the playing unit 604 is configured to play a video according to the obtained video playing address when a video corresponding to the target video identification information needs to be played.
In an embodiment, referring to fig. 6b, the updating unit 602 may include:
a determining subunit 6021, configured to determine, when a display update operation for the video playlist is detected, target video identification information that needs to be displayed from the video playlist according to the display update operation;
an update display subunit 6022 for displaying the target video identification information in the screen.
In an embodiment, referring to fig. 6c, the address obtaining unit 603 may include:
a duration obtaining subunit 6031, configured to, when a display update operation for the video playlist is detected, obtain a stay display duration corresponding to the stay display event;
an address obtaining subunit 6032, configured to, when the duration of the stay is longer than a preset duration, obtain a video playing address corresponding to the target video identification information currently displayed in the screen.
In an embodiment, referring to fig. 6d, the playing unit 604 includes:
a play preparation subunit 6041, configured to perform play preparation processing according to the obtained video play address, and download audio and video data to be played from the data server at the same time;
a play sub-unit 6042 configured to play the downloaded audio/video data when the play preparation processing is completed.
In an embodiment, the play preparation subunit 6041 may be configured to:
downloading sample audio and video data from a data server according to the video playing address, analyzing the downloaded sample audio and video data, and downloading audio and video data to be played from the data server; when the data analysis is successful, determining that the playing preparation processing is completed;
the playing sub-unit 6042 may be configured to play the downloaded audio and video data according to the video playing parameter information obtained by the data analysis when the playing preparation processing is completed.
In an embodiment, the play preparation subunit 6041 may be configured to:
downloading sample audio and video data from a data server according to the video playing address;
analyzing the currently downloaded sample audio/video data;
when the data analysis is successful, determining that the playing preparation processing is completed;
when the data analysis fails, acquiring the accumulated frame number of the currently analyzed sample video data;
judging whether the accumulated frame number is greater than a preset frame number or not; if so, determining that the playing preparation processing is finished.
In an embodiment, the play preparation subunit 6041 may be configured to:
performing play preparation processing according to the acquired video play address through the play preparation analysis thread;
and downloading audio and video data to be played from a data server through a data downloading thread according to the video playing address.
The steps performed by the above units may refer to the description of the above method embodiments.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
The video playing apparatus may be specifically integrated in a terminal, for example, integrated in the terminal in the form of a client, and the terminal may be a device such as a mobile phone and a tablet computer.
As can be seen from the above, the video playing apparatus in the embodiment of the present invention displays a video playlist on a screen through the display unit 601, where the video playlist includes video identification information of at least one video; updating, by an updating unit 602, when a display updating operation for the video playlist is detected, display of the video playlist in the screen according to the display updating operation; in the process of updating and displaying the video playlist, when a stay display event of the screen is detected, an address obtaining unit 603 obtains a video playing address corresponding to target video identification information currently displayed on the screen from an address server; when the video corresponding to the target video identification information needs to be played, the playing unit 604 plays the video according to the obtained video playing address.
The scheme can acquire the playing address of the video in advance before the video is played, and the video can be played directly according to the pre-acquired playing address when the video is played subsequently; therefore, the time consumed by loading the video playing can be reduced, and the starting speed of the video live broadcast is improved.
The embodiment of the invention can also optimize the playing flow of the playing end, trigger the downloading of the audio and video data while performing the playing preparation processing, reduce the time consumption for downloading the data, further reduce the time consumption for loading the video playing, and improve the starting speed of the live video.
In addition, the embodiment of the invention can also reduce the number of analysis in the playing preparation processing, further reduce the time consumption for loading the video playing and greatly improve the starting speed of the video live broadcast.
Referring to fig. 7, an embodiment of the present invention provides a terminal 700, which may include one or more processors 701 of a processing core, one or more memories 702 of a computer-readable storage medium, a Radio Frequency (RF) circuit 703, a power supply 704, an input unit 705, and a display unit 706. Those skilled in the art will appreciate that the terminal structure shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 701 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 702 and calling data stored in the memory 702, thereby performing overall monitoring of the terminal. Optionally, processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 701.
The memory 702 may be used to store software programs and modules, and the processor 701 executes various functional applications and data processing by operating the software programs and modules stored in the memory 702.
The RF circuit 703 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by the one or more processors 701; in addition, data relating to uplink is transmitted to the base station.
The terminal also includes a power supply 704 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 701 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 704 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The terminal may further include an input unit 705, and the input unit 705 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input in relation to user settings and function control.
The terminal may further include a display unit 706, and the display unit 706 may be used to display information input by the user or provided to the user and various graphical user interfaces of the terminal, which may be formed of graphics, text, icons, video, and any combination thereof. The Display unit 708 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Specifically, in this embodiment, the processor 701 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 702 according to the following instructions, and the processor 701 runs the application program stored in the memory 702, thereby implementing various functions as follows:
displaying a video playlist on a screen, wherein the video playlist comprises video identification information of at least one video;
when a display updating operation aiming at the video playlist is detected, updating the display of the video playlist in the screen according to the display updating operation;
in the process of updating and displaying the video playlist, when a staying display event of the screen is detected, acquiring a video playing address corresponding to target video identification information currently displayed on the screen;
and when a video corresponding to the target video identification information needs to be played, playing the video according to the video playing address acquired in advance.
The embodiment of the invention provides a terminal which displays a video play list on a screen, wherein the video play list comprises video identification information of at least one video; when a display updating operation aiming at the video playlist is detected, updating the display of the video playlist in the screen according to the display updating operation; in the process of updating and displaying the video playlist, when a staying display event of the screen is detected, acquiring a video playing address corresponding to target video identification information currently displayed on the screen; and when a video corresponding to the target video identification information needs to be played, playing the video according to the obtained video playing address. The scheme can acquire the playing address of the video in advance before the video is played, and the video can be played directly according to the pre-acquired playing address when the video is played subsequently; therefore, the time consumed by loading the video playing can be reduced, and the starting speed of the video live broadcast is improved.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The video playing method, device and system provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (14)
1. A video playback method, comprising:
displaying a video playlist on a screen, wherein the video playlist comprises video identification information of at least one video;
when a display updating operation aiming at the video playlist is detected, updating the display of the video playlist in the screen according to the display updating operation;
in the process of updating and displaying the video playlist, when a stay display event of the screen is detected and the stay display duration of the stay display event is longer than a preset duration, a video playing address corresponding to the target video identification information currently displayed on the screen is obtained in advance, wherein the stay display event is an event that the screen stays for a certain time to display the content in the process of updating and displaying the video playlist every time;
and when a video corresponding to the target video identification information needs to be played, playing the video according to the obtained video playing address.
2. The video playing method according to claim 1, wherein the updating the video identification information of the screen display according to the display updating operation when the display updating operation for the video playlist is detected includes:
when the display updating operation aiming at the video playlist is detected, determining target video identification information needing to be displayed from the video playlist according to the display updating operation;
displaying the target video identification information in the screen.
3. The video playing method according to claim 1, wherein before the obtaining of the video playing address corresponding to the target video identification information currently displayed on the screen, the method further comprises:
and acquiring the stay display duration corresponding to the stay display event.
4. The video playing method according to claim 1, wherein the playing the video according to the obtained video playing address includes:
carrying out playing preparation processing according to the obtained video playing address, and simultaneously downloading audio and video data to be played from a data server;
and when the playing preparation processing is finished, playing the downloaded audio and video data.
5. The video playing method according to claim 4, wherein the performing of the playing preparation process according to the obtained video playing address and the downloading of the audio/video data to be played from the data server at the same time comprises:
downloading sample audio and video data from a data server according to the video playing address, analyzing the downloaded sample audio and video data, and downloading audio and video data to be played from the data server;
when the data analysis is successful, determining that the playing preparation processing is completed;
when the playing preparation processing is completed, playing the downloaded audio and video data, including:
and when the playing preparation processing is finished, playing the downloaded audio and video data according to the video playing parameter information obtained by data analysis.
6. The video playback method of claim 5, wherein said analyzing the downloaded sample audio-video data comprises:
analyzing the currently downloaded sample audio/video data;
when the data analysis fails, acquiring the accumulated frame number of the currently analyzed sample video data;
judging whether the accumulated frame number is greater than a preset frame number or not; if so, determining that the playing preparation processing is finished.
7. The video playing method according to claim 4, wherein the performing of the playing preparation process according to the obtained video playing address and the downloading of the audio/video data to be played from the data server at the same time comprises:
starting a play preparation analysis thread and simultaneously starting a data downloading thread;
performing play preparation processing according to the video play address acquired in advance through the play preparation analysis thread;
and downloading audio and video data to be played from a data server through a data downloading thread according to the video playing address.
8. A video playback apparatus, comprising:
the display unit is used for displaying a video play list on a screen, wherein the video play list comprises video identification information of at least one video;
an updating unit configured to update display of the video playlist in the screen according to a display update operation when the display update operation for the video playlist is detected;
the address acquisition unit is used for acquiring a video playing address corresponding to target video identification information currently displayed on the screen in advance when a staying display event of the screen is detected and the staying display duration of the staying display event is longer than a preset duration in the process of updating and displaying the video playlist, wherein the staying display event is an event that the screen stays for a certain time to display content in the process of updating and displaying the video playlist every time;
and the playing unit is used for playing the video according to the acquired video playing address when the video corresponding to the target video identification information needs to be played.
9. The video playback apparatus of claim 8, wherein the update unit includes:
the determining subunit is used for determining target video identification information to be displayed from the video playlist according to the display updating operation when the display updating operation aiming at the video playlist is detected;
and the updating display subunit is used for displaying the target video identification information in the screen.
10. The video playback apparatus of claim 8, wherein the address acquisition unit includes:
the duration obtaining subunit is configured to, when a display update operation for the video playlist is detected, obtain a stay display duration corresponding to the stay display event;
and the address acquisition subunit is used for acquiring a video playing address corresponding to the target video identification information currently displayed in the screen when the stay display duration is longer than a preset duration.
11. The video playback apparatus of claim 8, wherein the playback unit includes:
the playing preparation subunit is used for carrying out playing preparation processing according to the acquired video playing address and simultaneously downloading audio and video data to be played from a data server;
and the playing subunit is used for playing the downloaded audio and video data when the playing preparation processing is finished.
12. The video playing device according to claim 11, wherein the playing preparation subunit is configured to download the sample audio/video data from the data server according to the video playing address, analyze the downloaded sample audio/video data, and download the audio/video data to be played from the data server; when the data analysis is successful, determining that the playing preparation processing is completed;
and the playing subunit is used for playing the downloaded audio and video data according to the video playing parameter information obtained by data analysis when the playing preparation processing is finished.
13. The video playback device of claim 12, wherein the playback preparation subunit is configured to:
downloading sample audio and video data from a data server according to the video playing address;
analyzing the currently downloaded sample audio/video data;
when the data analysis is successful, determining that the playing preparation processing is completed;
when the data analysis fails, acquiring the accumulated frame number of the currently analyzed sample video data;
judging whether the accumulated frame number is greater than a preset frame number or not; if so, determining that the playing preparation processing is finished.
14. A storage medium storing instructions which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810401575.2A CN108769816B (en) | 2018-04-28 | 2018-04-28 | Video playing method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810401575.2A CN108769816B (en) | 2018-04-28 | 2018-04-28 | Video playing method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108769816A CN108769816A (en) | 2018-11-06 |
| CN108769816B true CN108769816B (en) | 2021-08-31 |
Family
ID=64008711
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810401575.2A Active CN108769816B (en) | 2018-04-28 | 2018-04-28 | Video playing method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108769816B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110278452A (en) * | 2019-06-24 | 2019-09-24 | 北京字节跳动网络技术有限公司 | Video Acceleration of starting method, apparatus, storage medium, terminal and server |
| CN112243155B (en) * | 2019-07-16 | 2022-09-30 | 腾讯科技(深圳)有限公司 | Live broadcast processing method and device |
| CN111432278A (en) * | 2020-02-27 | 2020-07-17 | 北京达佳互联信息技术有限公司 | Video control method, device, terminal and storage medium |
| CN112770124B (en) * | 2020-12-22 | 2023-10-31 | Oppo广东移动通信有限公司 | Methods and devices, storage media and electronic equipment for entering the live broadcast room |
| CN112788353B (en) * | 2020-12-28 | 2022-06-14 | 未来电视有限公司 | Live broadcast time shifting processing method and device, electronic equipment and readable storage medium |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9349413B2 (en) * | 2013-02-05 | 2016-05-24 | Alc Holdings, Inc. | User interface for video preview creation |
| CN103634686A (en) * | 2013-12-19 | 2014-03-12 | 北京奇艺世纪科技有限公司 | Method and device for previewing video |
| CN106131644A (en) * | 2016-07-13 | 2016-11-16 | 青岛海信电器股份有限公司 | The player method of audio frequency and video and display device |
-
2018
- 2018-04-28 CN CN201810401575.2A patent/CN108769816B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN108769816A (en) | 2018-11-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108769816B (en) | Video playing method, device and storage medium | |
| US20220103904A1 (en) | Bullet screen delivery method for live broadcast playback and live video bullet screen playback method | |
| CN108391179B (en) | Live broadcast data processing method and device, server, terminal and storage medium | |
| CN102647634B (en) | Multi-fragment video playing method and device based on hypertext markup language (HTML) 5 video | |
| US20180315098A1 (en) | Information processing method, server, and computer storage medium | |
| CN110324671B (en) | Webpage video playing method and device, electronic equipment and storage medium | |
| US20130263182A1 (en) | Customizing additional content provided with video advertisements | |
| WO2015062435A1 (en) | Method and device for adjusting video playback interface | |
| CN103533396B (en) | A kind of video content interaction, apparatus and system | |
| US12058387B2 (en) | Video processing method and apparatus, computer device, and storage medium | |
| US20230412723A1 (en) | Method and apparatus for generating imagery record, electronic device, and storage medium | |
| US20210321149A1 (en) | Method of playing video, computing device, and computer program product | |
| WO2016188276A1 (en) | Video playing method, client and computer storage medium | |
| US20120227067A1 (en) | Method and device for providing complementary information | |
| WO2019052395A1 (en) | Multimedia data presentation method, storage medium and computer device | |
| US10419825B2 (en) | Queue to display information for entities during video playback | |
| US20150268808A1 (en) | Method, Device and System for Multi-Speed Playing | |
| JP2024545639A (en) | VIDEO PROCESSING METHOD, APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIUM | |
| WO2015035957A1 (en) | Video resource obtaining method, backend server, video client, and system | |
| US20140006450A1 (en) | Progressive playback | |
| CN112449250B (en) | Method, device, equipment and medium for downloading video resources | |
| WO2023284428A1 (en) | Live video playback method and apparatus, electronic device, storage medium, and program product | |
| JP2025120286A (en) | Server-Side Ad Insertion (SSAI) with Additional Metadata and Client Functionality | |
| CN103648034A (en) | Method and device for playing resources in intelligent television | |
| CN112770168A (en) | Video playing method and related device and equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |