WO2017186036A1 - 一种播放处理方法、终端设备及计算机存储介质 - Google Patents

一种播放处理方法、终端设备及计算机存储介质 Download PDF

Info

Publication number
WO2017186036A1
WO2017186036A1 PCT/CN2017/081021 CN2017081021W WO2017186036A1 WO 2017186036 A1 WO2017186036 A1 WO 2017186036A1 CN 2017081021 W CN2017081021 W CN 2017081021W WO 2017186036 A1 WO2017186036 A1 WO 2017186036A1
Authority
WO
WIPO (PCT)
Prior art keywords
player
target
subfile
target subfile
nth
Prior art date
Application number
PCT/CN2017/081021
Other languages
English (en)
French (fr)
Inventor
吴峰凯
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2017186036A1 publication Critical patent/WO2017186036A1/zh
Priority to US16/025,983 priority Critical patent/US10715573B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • G06F16/745Browsing; Visualisation therefor the internal structure of a single video sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Definitions

  • the present application relates to audio and video playback technologies, and in particular, to a playback processing method, a terminal device, and a computer storage medium.
  • the existing audio and video playback technologies mainly include a whole segment of video playback and a transport stream (TS) of a Live Streaming (HLS) protocol based on a hypertext transfer protocol.
  • TS transport stream
  • HLS Live Streaming
  • the current audio and video playback technology has obvious drawbacks: 1) For the entire video playback, 1 hour of mp4 (640 * 480) video, the video decoding depends on the header information has 3M size, the player first decodes the first The frame picture takes more than 9 seconds, so the first buffering time is long; 2) For the small-segment TS stream playback based on the HLS protocol, although the first buffer time is greatly shortened, the video file must be in the TS format and fixed by 188. The byte is a media packet, and its fragmentation time and encoding mode are limited. It also needs to be organized into a m3u8 list for the player to parse and play, which seriously increases the storage I/O and decoding overhead.
  • the present application provides a playback processing method, a terminal device, and a computer storage medium to solve the problems existing in the prior art.
  • the technical solution is as follows:
  • the application provides a playback processing method, and the method includes:
  • Obtaining a first time point determining an nth target subfile from the N target subfiles based on the first time point, where n is an integer greater than or equal to 1 and less than or equal to N;
  • the controlling the first player and the second player to poll and acquire and output the nth target subfile and the following at least one target subfile including:
  • controlling the first player to acquire the nth target subfile and output the nth target subfile includes:
  • Parsing the nth target subfile Parsing the nth target subfile, switching the first player from a buffer state to an output state, and controlling output of the nth target subfile.
  • controlling the second player to acquire the n+1th target subfile adjacent to the nth target subfile in the time dimension including:
  • the detecting that the nth target subfile output of the first player ends, and controlling the second player to output the n+1th target subfile includes:
  • the second player When it is detected that the output of the nth target subfile of the first player reaches the end time, the second player is controlled to output the n+1th target subfile.
  • the determining, by the first time point, the nth target subfile from the N target subfiles includes:
  • the outputting the nth target subfile includes:
  • the nth target subfile is output based on the initial output sub-time.
  • the application further provides a terminal device, where the terminal device includes a dividing module, a determining module and a control module;
  • the dividing module is configured to divide content in the target file based on a time dimension to obtain N target subfiles, where N is an integer greater than or equal to 2;
  • the determining module is configured to obtain a first target sub-file from the N target sub-files based on the first time point, where n is an integer greater than or equal to 1 and less than or equal to N;
  • the control module is configured to set a first player and a second player, and control the first player and the second player to poll and acquire and output an nth target subfile and at least one target sub file;
  • the control module controls the first player and the second player to poll and acquire and output the nth target subfile and the following at least one target subfile, including:
  • control module is further configured to control the first player to be in a cache state; and obtain and cache the server from the server side based on the address information of the nth target subfile in the target file on the server side.
  • the nth target subfile is parsed; the nth target subfile is parsed, the first player is switched from a buffer state to an output state, and the nth target subfile is controlled to be output.
  • control module is further configured to: when the nth target subfile starts outputting, control the second player to enter a buffer state; based on the n+1th target subfile in the target file, the server The address information of the side acquires and caches the n+1th target subfile from the server side; and parses the n+1th target subfile.
  • control module is further configured to detect an nth target of the first player. a time difference between a current output time of the subfile and an end time of the nth target subfile; determining whether the time difference is less than a first preset threshold; if less, controlling the second player to switch from a cache state to Output state; when detecting that the output of the nth target subfile of the first player reaches the end time, controlling the second player to output the n+1th target subfile.
  • the determining module is further configured to determine an nth target subfile corresponding to the first time point based on a duration of the first time point and each of the N target subfiles. .
  • control module is further configured to determine an initial output sub-time for the n-th target sub-file based on the first time point and a duration of the n-th target sub-file; based on the initial The output sub-time outputs the n-th target sub-file.
  • the terminal device divides the content in the target file based on the time dimension to obtain N target sub-files; and obtains the first time point, and determines the nth from the N target sub-files based on the first time point. a target subfile; setting the first player and the second player, controlling the first player and the second player to poll and acquire and output the nth target subfile and at least one target subfile subsequent thereto.
  • the first buffering time can be greatly shortened; and, in the entire video playback process, the segmentation of the target file can be flexibly realized, and the fragmentation time is not affected. And coding and other restrictions, effectively achieve seamless switching when multi-slice video playback.
  • FIG. 1 is a schematic flowchart of an implementation process of a playback processing method according to the present application
  • FIG. 2 is a schematic diagram of controlling two players to alternately cache and play a target file according to the present application
  • FIG. 3 is a schematic diagram of playing time for controlling two players to implement seamless switching according to the present application.
  • FIG. 4 is a schematic diagram of an implementation process of a second playback processing method according to the present application.
  • FIG. 5 is a schematic diagram of an implementation process of acquiring and outputting an nth target subfile according to the present application
  • FIG. 6 is a schematic diagram of a timing at which a first player caches and plays an nth target subfile according to the present application
  • FIG. 7 is a schematic diagram of an implementation process for controlling a second player to output an n+1th target subfile according to the present application
  • FIG. 8 is a schematic diagram of an application scenario for implementing video file playback according to the present application.
  • Figure 9 is a diagram showing the drag time on the playback progress bar of the present application.
  • FIG. 10 is a schematic structural diagram of a six terminal device of the present application.
  • FIG. 11 is a schematic structural diagram of hardware of a terminal device according to the seventh application.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the present application provides a playback processing method, which is applied to a terminal device and a server for cooperative communication. As shown in FIG. 1, the method includes:
  • Step 101 The terminal device divides the content in the target file according to the time dimension, and obtains N target subfiles, where N is an integer greater than or equal to 2;
  • the target file may be an audio and video file.
  • the manner in which the terminal device divides the content in the target file based on the time dimension includes an equal division and a non-equal division.
  • the terminal device can divide the Blu-ray video file (1080P) into a video every 20 minutes, divide the movie video slice with a total duration of 1 hour into 3 sub-videos, or The high-definition (480P) video aliquot is divided into one sub-video every 5 minutes; for example, the non-equal, the terminal device can be sharded according to a predetermined division rule, such as 1 minute, 3 minutes, 5 minutes, etc.
  • the target file is non-equalized in a time-incremental manner.
  • the terminal device may further divide the target file by using a fragmentation duration or other arbitrary division rules.
  • the present application does not involve restrictions on the file format, the fragmentation duration, and the like when dividing the target file.
  • Step 102 The terminal device acquires a first time point, based on the first time point from the N
  • the nth target subfile is determined in the target subfile, and n is an integer greater than or equal to 1 and less than or equal to N;
  • the terminal device may use the beginning of the target file as the first time point by default, and may also be the first time point according to the position where the progress bar is dragged and played; after that, the terminal device starts from the first time point based on the first time point.
  • the nth target subfile is identified in the N target subfiles.
  • the terminal device uses the beginning of the target file as the first time point, the nth target subfile determined from the N target subfiles based on the first time point is the first target subfile.
  • Step 103 Set a first player and a second player, and control the first player and the second player to poll and acquire and output the nth target subfile and at least one target subfile from the server side .
  • the controlling the first player and the second player to poll and acquire the nth target subfile and the at least one target subfile from the server side including: controlling the first player from the server Obtaining an nth target subfile and outputting the nth target subfile; controlling the second player to acquire a time dimension from the server side and the nth target before the end of the output of the nth target subfile An n+1th target subfile adjacent to the subfile; detecting that the output of the nth target subfile of the first player ends, controlling the second player to output the n+1th target subfile; Before the end of the output of the n+1 target subfile, the first player is controlled to acquire, from the server side, the n+2th target subfile adjacent to the n+1th target subfile in the time dimension; and so on. Until the end of the nth target subfile and at least one target subfile after the end of the output.
  • the terminal device divides the beginning of the video file with a total duration of one hour as the first time point, and obtains four video sub-files as shown in FIG. 2, which are respectively fragmented video. 1. Fragment video 2, slice video 3, and slice video 4, and each slice duration is 15 minutes; further, as shown in FIG. 2, the terminal device sets the first player Player0 and the second player Player1. Start polling from the server side to cache and play from the beginning of the video, ie the first The sliced video subfile is sliced video 1 and subsequent sliced video 2, sliced video 3, and sliced video 4. Specifically, the terminal device controls the Player0 buffer and plays the sliced video 1.
  • the Player1 Before the playback of the sliced video 1 is completed, the Player1 is controlled to buffer the sliced video 2; the detected slice 0 of the Player0 is completed, and the Player1 is controlled to start playing the sliced video. 2; Before Player 1's sliced video 2 is played, control Player0 to buffer the sliced video 3; and so on, until Player1's sliced video 4 is played.
  • the terminal device controls the second player to acquire an n+1th target subfile adjacent to the nth target subfile in a time dimension
  • the method includes: controlling, when the nth target subfile starts to output, the second player to enter a buffer state; and based on the address information of the n+1th target subfile in the target file on the server side, from the server side Acquiring and caching the n+1th target subfile; parsing the n+1th target subfile.
  • the terminal device controls the first player to cache the nth target subfile, if the first player distance cache is detected to complete the nth target When the time of the subfile is less than 1 second, the second player is controlled to start caching the n+1th target subfile.
  • the terminal device divides the content in the target file based on the time dimension to obtain N target subfiles; obtains the first time point, and determines from the N target subfiles based on the first time point.
  • An nth target subfile setting a first player and a second player, controlling the first player and the second player to poll and acquire and output an nth target subfile and at least one target subfile subsequent thereto .
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the present application provides a playback processing method, where the method is applied to a terminal device and a server for cooperative communication. As shown in FIG. 4, the method includes:
  • Step 401 The terminal device divides the content in the target file according to the time dimension, and obtains N target subfiles, where N is an integer greater than or equal to 2;
  • the target file may be an audio and video file.
  • the manner in which the terminal device divides the content in the target file based on the time dimension includes an equal division and a non-equal division.
  • the terminal device can divide the Blu-ray video file (1080P) into a video every 20 minutes, divide the movie video slice with a total duration of 1 hour into 3 sub-videos, or The high-definition (480P) video aliquot is divided into one sub-video every 5 minutes; for example, the non-equal, the terminal device can be sharded according to a predetermined division rule, such as 1 minute, 3 minutes, 5 minutes, etc.
  • the target file is non-equalized in a time-incremental manner.
  • the terminal device may further divide the target file by using a fragmentation duration or other arbitrary division rules.
  • the present application does not involve restrictions on the file format, the fragmentation duration, and the like when dividing the target file.
  • Step 402 The terminal device acquires a first time point, and determines an nth target subfile from the N target subfiles according to the first time point, where n is an integer greater than or equal to 1 and less than or equal to N;
  • the terminal device may use the beginning of the target file as the first time point by default, and may also be the first time point according to the position where the progress bar is dragged and played; after that, the terminal device starts from the first time point based on the first time point.
  • the nth target subfile is identified in the N target subfiles.
  • the terminal device uses the beginning of the target file as the first time point, the nth target subfile determined from the N target subfiles based on the first time point is the first target subfile.
  • Step 403 Set a first player, and control the first player to acquire an nth target subfile from the server side and output the nth target subfile.
  • Step 404 Set a second player, before the end of the output of the nth target subfile, control the second player to acquire, from the server side, the n+1th adjacent to the nth target subfile in the time dimension.
  • Target subfile
  • the terminal device controls the second player to acquire an n+1th target subfile adjacent to the nth target subfile in a time dimension
  • the method includes: controlling, when the nth target subfile starts to output, the second player to enter a buffer state; and based on the address information of the n+1th target subfile in the target file on the server side, from the server side Acquiring and caching the n+1th target subfile; parsing the n+1th target subfile.
  • the terminal device controls the first player to cache the nth target subfile, if the first player distance cache is detected to complete the nth target When the time of the subfile is less than 1 second, the second player is controlled to start caching the n+1th target subfile.
  • Step 405 The end of the output of the nth target subfile of the first player is detected, and the second player is controlled to output the n+1th target subfile.
  • Step 406 Before the output of the (n+1)th target subfile ends, controlling, by the first player, the n+2 target adjacent to the n+1th target subfile in time dimension from the server side. sub file;
  • steps 404-406 are executed cyclically until the output of the nth target subfile and at least one target subfile after it ends.
  • the terminal device divides the beginning of the video file with a total duration of one hour as the first time point, and obtains four video sub-files as shown in FIG. 2, which are respectively fragmented video. 1. Fragment video 2, slice video 3, and slice video 4, and each slice duration is 15 minutes; further, as shown in FIG. 2, the terminal device sets the first player Player0 and the second player Player1. Start polling from the server side to cache and play from the beginning of the video, ie the first The sliced video subfile is sliced video 1 and subsequent sliced video 2, sliced video 3, and sliced video 4. Specifically, the terminal device controls the Player0 buffer and plays the sliced video 1.
  • the Player1 Before the playback of the sliced video 1 is completed, the Player1 is controlled to buffer the sliced video 2; the detected slice 0 of the Player0 is completed, and the Player1 is controlled to start playing the sliced video. 2; Before Player 1's sliced video 2 is played, control Player0 to buffer the sliced video 3; and so on, until Player1's sliced video 4 is played.
  • the terminal device can greatly shorten the first buffering time by controlling the two players to alternately cache and play the segmented video stream; and, in the entire video playback process, the target file can be flexibly implemented. Segment playback, regardless of fragmentation time and encoding mode, effectively achieve seamless switching when multi-slice video playback.
  • the first player that controls the first player to obtain the nth target subfile and output the nth target subfile includes:
  • Step 501 Control the first player to be in a buffer state
  • Step 502 Acquire and cache the nth target subfile from the server side based on address information of the nth target subfile in the target file on the server side.
  • Step 503 Parse the nth target subfile, switch the first player from a buffer state to an output state, and control outputting the nth target subfile.
  • the terminal device in the process of acquiring and outputting the T1 to T6 corresponding to the nth target subfile, the terminal device is based on the nth target subfile on the entire target file at time T1.
  • Corresponding time dimension sets address information of the nth target subfile on the server side, such as a Uniform Resource Locator (URL), that is, sets a play address; and controls the first player link at time T2.
  • URL Uniform Resource Locator
  • the terminal device controls the first player to parse the Nth target subtext The header information of the piece, that is, the first player is ready to play, and the first frame picture appears; at time T4 to T6, the terminal device controls the first player to play the header file of the nth target subfile, Continuing to cache the remaining portion of the nth target subfile, that is, starting playback, during the playback process, continuing to cache and play until the playback of the nth target subfile is completed; from time T6, the first The player restarts the caching and playback of the new target subfile.
  • the terminal device can start playing the nth target subfile by controlling the first player to cache the header file of the nth target subfile, so that the first cache time can be greatly shortened.
  • the output of the nth target subfile of the first player is detected, and the second player is controlled to output the n+1th target subfile.
  • Step 701 Detect a time difference between a current output time of the nth target subfile of the first player and an end time of the nth target subfile.
  • Step 702 Determine whether the time difference is less than a first preset threshold, and if not, control the second player to switch from a buffer state to an output state;
  • the value of the first preset threshold may be determined by considering the entire playback processing rate and the buffering capability of the player.
  • Step 703 When it is detected that the output of the nth target subfile of the first player reaches the end time, the second player is controlled to output the n+1th target subfile.
  • the start timer is configured to detect whether a playback end event occurs, that is, the timer is used to listen to whether the video playback of the last frame of the nth target subfile has been completed in the first player.
  • the playback end event is detected, that is, it is determined that the output of the nth target subfile of the first player reaches the end time. For example, as shown in FIG.
  • the first player starts a timer to listen to the play end event, and after detecting the play end event, removes the play snoop event, and controls the second player to start outputting The header file of the n+1 target subfile.
  • the terminal device alternately buffers and plays the sliced video stream by controlling two players, thereby effectively implementing seamless switching during multi-sliced video playback.
  • the application scenario will drag the position of the playback progress bar as the first time point, and the application is based on the first Determining the nth target subfile from the N target subfiles, including: determining the first time based on a duration of the first time point and each of the N target subfiles The nth target subfile corresponding to the point.
  • the outputting the nth target subfile according to the present application includes: determining, according to the first time point, and the duration of the nth target subfile, for the nth target subfile Initial output sub-time; outputting the n-th target sub-file based on the initial output sub-moment.
  • the present application provides a terminal device, as shown in FIG. 10, the terminal device includes a dividing module 1001, a determining module 1002, and a control module 1003;
  • the dividing module 1001 is configured to divide content in the target file based on a time dimension to obtain N target subfiles, where N is an integer greater than or equal to 2;
  • the determining module 1002 is configured to acquire a first target sub-file from the N target sub-files based on the first time point, where n is an integer greater than or equal to 1 and less than or equal to N;
  • the control module 1003 is configured to set a first player and a second player, and control the first player and the second player to poll and acquire and output an nth target subfile and at least one target subsequent thereto sub file;
  • the control module 1003 controls the first player and the second player to poll and acquire and output the nth target subfile and at least one target subfile subsequent thereto, including: The first player acquires the nth target subfile and outputs the nth target subfile; and controls the second player to acquire the time dimension and the nth before the end of the nth target subfile output An n+1th target subfile adjacent to the target subfile; detecting the end of the output of the nth target subfile of the first player, controlling the second player to output the n+1th target subfile; Before the end of the output of the n+1th target subfile, controlling the first player to acquire the n+2th target subfile adjacent to the n+1th target subfile in the time dimension; and so on, until The output of the nth target subfile and at least one of the target subfiles thereafter ends.
  • control module 1003 is further configured to control the first player to be in a cache state; and obtain, according to the address information of the nth target subfile in the target file on the server side, from the server side. And buffering the nth target subfile; parsing the nth target subfile, switching the first player from a buffer state to an output state, and controlling output of the nth target subfile.
  • control module 1003 is further configured to: when the nth target subfile starts outputting, control the second player to enter a buffer state; based on the n+1th target in the target file The address information of the file on the server side is obtained from the server side and caches the n+1th target subfile; and the n+1th target subfile is parsed.
  • control module 1003 is further configured to detect a time difference between a current output time of the nth target subfile of the first player and an end time of the nth target subfile; Whether the time difference is less than the first preset threshold, if less, controlling the second player to switch from the buffer state to the output state; detecting that the output of the nth target subfile of the first player reaches the end time, controlling The second player outputs the n+1th target subfile.
  • the determining module 1002 is further configured to determine, according to the duration of the first time point and each of the N target subfiles, the nth corresponding to the first time point. Target subfile.
  • control module 1003 is further configured to: based on the first time point, And a duration of the nth target subfile, determining an initial output subtime for the nth target subfile; and outputting the nth target subfile based on the initial output subtime.
  • the partitioning module 1001, the determining module 1002, and the control module 1003 included in the terminal device may each correspond to a processor.
  • the specific structure of the processor may be a collection of electronic components or electronic components having processing functions such as a central processing unit CPU, a microprocessor MCU, a digital signal processor DSP, or a programmable logic device PLC.
  • the processor includes executable code, the executable code is stored in a storage medium, and the processor may be connected to the storage medium through a communication interface such as a bus, when performing a corresponding function of each module. Reading and running the executable code from the storage medium.
  • the portion of the storage medium used to store the executable code is preferably a non-transitory storage medium.
  • the dividing module 1001, the determining module 1002, and the control module 1003 may be integrated corresponding to the same processor, or respectively corresponding to different processors; when the integration corresponds to the same processor, the processor processes the dividing module 1001 by time division The function corresponding to the module 1002 and the control module 1003 is determined.
  • the terminal device of the present application which provides the hardware implementation of any of the embodiments 1 to 5, can be used to implement the technical solution described in any one of the first to fifth embodiments. Similarly, by controlling two player pairs.
  • the fragmented video stream is alternately buffered and played, which can greatly shorten the first buffering time.
  • the target file can be flexibly played, which is not limited by the fragmentation time and encoding mode, and effectively achieves multiple points. Seamless switching when playing video.
  • the device includes a processor 1102, a computer storage medium 1104, and at least one external communication interface 1101.
  • the processor 1102, the computer storage medium 1104 and the external communication interface 1101 are all connected by a bus 1103.
  • the processor 1102 can be a microprocessor, Electronic components with processing functions such as a central processing unit, digital signal processor, or programmable logic array. Computer executable code is stored in the computer storage medium 1104.
  • the hardware may be the terminal device.
  • the storage medium includes a set of instructions that, when executed, cause at least one processor to perform operations including:
  • Obtaining a first time point determining an nth target subfile from the N target subfiles based on the first time point, where n is an integer greater than or equal to 1 and less than or equal to N;
  • the controlling the first player and the second player to poll and acquire and output the nth target subfile and the following at least one target subfile include: controlling the first player to acquire the nth target a subfile and outputting the nth target subfile; controlling, before the end of the output of the nth target subfile, the second player to acquire an n+1th adjacent to the nth target subfile in a time dimension a target subfile; detecting that the output of the nth target subfile of the first player ends, controlling the second player to output the n+1th target subfile; before the end of the output of the n+1th target subfile Controlling, by the first player, an n+2th target subfile adjacent to the n+1th target subfile in a time dimension; and so on until the nth target subfile and subsequent At least one target subfile is outputted at the end.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the components shown or discussed are mutually
  • the coupling, or direct coupling, or communication connection may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making a A computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, such as the present application.
  • the program may be stored in a storage medium of a computer system and executed by at least one processor in the computer system to implement a process comprising an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a ROM, a RAM, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种播放处理方法、终端设备及计算机存储介质,所述方法包括:基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件。

Description

一种播放处理方法、终端设备及计算机存储介质
相关申请的交叉引用
本申请基于申请号为201610289582.9、申请日为2016年05月05日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及音视频播放技术,尤其涉及一种播放处理方法、终端设备及计算机存储介质。
背景技术
现有的音视频播放技术主要包括整段视频播放和基于超文本传输协议的流媒体直播(HTTP Live Streaming,HLS)协议的小段传输流(Transport Stream,TS)播放。
然而,目前的音视频播放技术存在明显缺陷:1)对于整段视频播放而言,1个小时的mp4(640*480)视频,视频解码依赖的头信息有3M大小,播放器首次解码第一帧画面需要9秒多钟,故首次缓冲时间久;2)对于基于HLS协议的小段TS流播放而言,虽然大大缩短了首次缓存时间,但是视频文件必须是TS格式,且以188个的固定字节为一个媒体包,其分片时间和编码方式均受限,还需要组织成m3u8列表给播放器解析播放,严重增加存储I/O和解码开销。
发明内容
有鉴于此,本申请为解决现有技术中存在的问题而提供一种播放处理方法、终端设备及计算机存储介质。所述技术方案如下:
本申请提供一种播放处理方法,所述方法包括:
基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件;
其中,所述控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件,包括:
控制第一播放器获取到第n目标子文件并输出所述第n目标子文件;在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;在所述第n+1目标子文件输出结束之前,控制所述第一播放器获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;以此类推,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
上述方案中,所述控制第一播放器获取到第n目标子文件并输出所述第n目标子文件,包括:
控制所述第一播放器处于缓存状态;
基于所述目标文件中第n目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n目标子文件;
解析所述第n目标子文件,将所述第一播放器由缓存状态切换至输出状态,控制输出所述第n目标子文件。
上述方案中,在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件,包括:
在所述第n目标子文件开始输出时,控制所述第二播放器进入缓存状态;
基于所述目标文件中第n+1目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n+1目标子文件;
解析所述第n+1目标子文件。
上述方案中,所述检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件,包括:
检测所述第一播放器的第n目标子文件的当前输出时刻与所述第n目标子文件的结束时刻之间的时间差;
判断所述时间差是否小于第一预设门限值,若小于,则控制第二播放器由缓存状态切换至输出状态;
检测到所述第一播放器的第n目标子文件输出达到结束时刻时,控制第二播放器输出所述第n+1目标子文件。
上述方案中,所述基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,包括:
基于所述第一时间点与所述N个目标子文件中每一个目标子文件的时长,确定所述第一时间点对应的第n目标子文件。
上述方案中,所述输出所述第n目标子文件,包括:
基于所述第一时间点、以及所述第n目标子文件的时长,确定针对所述第n目标子文件的初始输出子时刻;
基于所述初始输出子时刻输出所述第n目标子文件。
本申请还提供一种终端设备,所述终端设备包括划分模块、确定模块和控制模块;
所述划分模块,用于基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
所述确定模块,用于获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
所述控制模块,用于设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件;
其中,所述控制模块控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件,包括:
控制第一播放器获取到第n目标子文件并输出所述第n目标子文件;在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;在所述第n+1目标子文件输出结束之前,控制所述第一播放器获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;以此类推,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
上述方案中,所述控制模块,还用于控制所述第一播放器处于缓存状态;基于所述目标文件中第n目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n目标子文件;解析所述第n目标子文件,将所述第一播放器由缓存状态切换至输出状态,控制输出所述第n目标子文件。
上述方案中,所述控制模块,还用于在所述第n目标子文件开始输出时,控制所述第二播放器进入缓存状态;基于所述目标文件中第n+1目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n+1目标子文件;解析所述第n+1目标子文件。
上述方案中,所述控制模块,还用于检测所述第一播放器的第n目标 子文件的当前输出时刻与所述第n目标子文件的结束时刻之间的时间差;判断所述时间差是否小于第一预设门限值,若小于,则控制第二播放器由缓存状态切换至输出状态;检测到所述第一播放器的第n目标子文件输出达到结束时刻时,控制第二播放器输出所述第n+1目标子文件。
上述方案中,所述确定模块,还用于基于所述第一时间点与所述N个目标子文件中每一个目标子文件的时长,确定所述第一时间点对应的第n目标子文件。
上述方案中,所述控制模块,还用于基于所述第一时间点、以及所述第n目标子文件的时长,确定针对所述第n目标子文件的初始输出子时刻;基于所述初始输出子时刻输出所述第n目标子文件。
本申请中,终端设备基于时间维度对目标文件中的内容划分,得到N个目标子文件;获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件;设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件。如此,通过控制两个播放器对分片视频流进行交替缓存并播放,能够大大缩短首次缓存时间;而且,整个视频播放处理过程中,能够灵活实现目标文件的分片播放,不受分片时间和编码方式等限制,有效实现多分片视频播放时的无缝切换。
附图说明
图1为本申请一播放处理方法的实现流程示意图;
图2为本申请控制两个播放器进行交替缓存并播放目标文件的示意图;
图3为本申请控制两个播放器实现无缝切换的播放时刻示意图;
图4为本申请二播放处理方法的实现流程示意图;
图5为本申请所述获取并输出第n目标子文件的实现流程示意图;
图6为本申请第一播放器缓存并播放第n目标子文件的时刻示意图;
图7为本申请所述控制第二播放器输出第n+1目标子文件的实现流程示意图;
图8为本申请实现视频文件播放的应用场景示意图;
图9为本申请播放进度条上的拖动时间表示图;
图10为本申请六终端设备的组成结构示意图;
图11为本申请七所述终端设备的硬件结构示意图。
具体实施方式
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。
实施例一:
本申请提供一种播放处理方法,所述方法应用于终端设备和服务器进行协同通信,如图1所述,所述方法包括:
步骤101、终端设备基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
其中,所述目标文件可以为音视频文件。
这里,所述终端设备基于时间维度对目标文件中的内容划分的方式包括等份划分和非等份划分。举例来讲,以等份划分为例,终端设备可以将蓝光视频文件(1080P)切片划分成每20分钟一片的视频、将总时长为1小时的电影视频切片划分成3个分片子视频、或将高清(480P)视频等份划分为每5分钟一片的子视频;以非等份为例,终端设备可以根据预先设定的划分规则、如分别以1分钟、3分钟、5分钟等分片时长递增的方式对目标文件进行非等份划分。当然,在实际应用中,终端设备还可以以分片时长递减或其他任意划分规则对所述目标文件进行划分。
很显然,本申请与现有的基于HLS协议的小段TS流播放技术相比,在对目标文件进行划分时,并不涉及文件格式、分片时长等的限制。
步骤102、终端设备获取到第一时间点,基于所述第一时间点从所述N 个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
具体地,终端设备可以默认将目标文件的开头作为第一时间点,还可以根据拖动播放进度条所到位置处作为第一时间点;之后,终端设备基于所述第一时间点从所述N个目标子文件中确定出第n目标子文件。这里,当终端设备将目标文件的开头作为第一时间点时,基于所述第一时间点从所述N个目标子文件中确定出的第n目标子文件,即为第一目标子文件。
步骤103、设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询从服务器侧获取并输出第n目标子文件及其之后的至少一个目标子文件。
其中,所述控制所述第一播放器以及所述第二播放器轮询从服务器侧获取并输出第n目标子文件及其之后的至少一个目标子文件,包括:控制第一播放器从服务器侧获取到第n目标子文件并输出所述第n目标子文件;在所述第n目标子文件输出结束之前,控制所述第二播放器从服务器侧获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;在所述第n+1目标子文件输出结束之前,控制所述第一播放器从服务器侧获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;以此类推,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
在一应用示例中,终端设备将总时长为1小时的视频文件的开头作为第一时间点进行等份划分,得到如图2所示的4个分片的视频子文件,分别为分片视频1、分片视频2、分片视频3及分片视频4,且每个分片时长为15分钟;进一步地,如图2所示,终端设备设置第一播放器Player0和第二播放器Player1开始轮询从服务器侧缓存并播放从视频开头,即第一个 分片的视频子文件分片视频1及其之后的分片视频2、分片视频3及分片视频4。具体地,终端设备控制Player0缓存并播放分片视频1,在分片视频1播放完成之前,控制Player1缓存分片视频2;检测到Player0的分片视频1播放完成,控制Player1开始播放分片视频2;在Player1的分片视频2播放完成之前,控制Player0缓存分片视频3;以此类推,直到Player1的分片视频4播放完成为止。
在一实施方式中,终端设备在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件,包括:在所述第n目标子文件开始输出时,控制所述第二播放器进入缓存状态;基于所述目标文件中第n+1目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n+1目标子文件;解析所述第n+1目标子文件。
在一应用示例中,如图3所示,在终端设备控制所述第一播放器缓存所述第n目标子文件完毕之前,如检测有所述第一播放器距离缓存完成所述第n目标子文件的时刻小于1秒时,控制所述第二播放器启动缓存第n+1目标子文件。
通过前述播放处理方法,终端设备基于时间维度对目标文件中的内容划分,得到N个目标子文件;获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件;设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件。如此,通过控制两个播放器对分片视频流进行交替缓存并播放,能够大大缩短首次缓存时间;而且,整个视频播放处理过程中,能够灵活实现目标文件的分片播放,不受分片时间和编码方式等限制,有效实现多分片视频播放时的无缝切换。
实施例二:
本申请提供一种播放处理方法,所述方法应用于终端设备和服务器进行协同通信,如图4所述,所述方法包括:
步骤401、终端设备基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
其中,所述目标文件可以为音视频文件。
这里,所述终端设备基于时间维度对目标文件中的内容划分的方式包括等份划分和非等份划分。举例来讲,以等份划分为例,终端设备可以将蓝光视频文件(1080P)切片划分成每20分钟一片的视频、将总时长为1小时的电影视频切片划分成3个分片子视频、或将高清(480P)视频等份划分为每5分钟一片的子视频;以非等份为例,终端设备可以根据预先设定的划分规则、如分别以1分钟、3分钟、5分钟等分片时长递增的方式对目标文件进行非等份划分。当然,在实际应用中,终端设备还可以以分片时长递减或其他任意划分规则对所述目标文件进行划分。
很显然,本申请与现有的基于HLS协议的小段TS流播放技术相比,在对目标文件进行划分时,并不涉及文件格式、分片时长等的限制。
步骤402、终端设备获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
具体地,终端设备可以默认将目标文件的开头作为第一时间点,还可以根据拖动播放进度条所到位置处作为第一时间点;之后,终端设备基于所述第一时间点从所述N个目标子文件中确定出第n目标子文件。这里,当终端设备将目标文件的开头作为第一时间点时,基于所述第一时间点从所述N个目标子文件中确定出的第n目标子文件,即为第一目标子文件。
步骤403、设置第一播放器,控制第一播放器从服务器侧获取到第n目标子文件并输出所述第n目标子文件;
步骤404、设置第二播放器,在所述第n目标子文件输出结束之前,控制所述第二播放器从服务器侧获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;
在一实施方式中,终端设备在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件,包括:在所述第n目标子文件开始输出时,控制所述第二播放器进入缓存状态;基于所述目标文件中第n+1目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n+1目标子文件;解析所述第n+1目标子文件。
在一应用示例中,如图3所示,在终端设备控制所述第一播放器缓存所述第n目标子文件完毕之前,如检测有所述第一播放器距离缓存完成所述第n目标子文件的时刻小于1秒时,控制所述第二播放器启动缓存第n+1目标子文件。
步骤405、检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;
步骤406、在所述第n+1目标子文件输出结束之前,控制所述第一播放器从服务器侧获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;
步骤407、依此类推,循环执行步骤404~406,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
在一应用示例中,终端设备将总时长为1小时的视频文件的开头作为第一时间点进行等份划分,得到如图2所示的4个分片的视频子文件,分别为分片视频1、分片视频2、分片视频3及分片视频4,且每个分片时长为15分钟;进一步地,如图2所示,终端设备设置第一播放器Player0和第二播放器Player1开始轮询从服务器侧缓存并播放从视频开头,即第一个 分片的视频子文件分片视频1及其之后的分片视频2、分片视频3及分片视频4。具体地,终端设备控制Player0缓存并播放分片视频1,在分片视频1播放完成之前,控制Player1缓存分片视频2;检测到Player0的分片视频1播放完成,控制Player1开始播放分片视频2;在Player1的分片视频2播放完成之前,控制Player0缓存分片视频3;以此类推,直到Player1的分片视频4播放完成为止。
通过本申请所述播放处理方法,终端设备通过控制两个播放器对分片视频流进行交替缓存并播放,能够大大缩短首次缓存时间;而且,整个视频播放处理过程中,能够灵活实现目标文件的分片播放,不受分片时间和编码方式等限制,有效实现多分片视频播放时的无缝切换。
实施例三
如图5所示,基于实施例一和实施例二,本申请所述控制第一播放器获取到第n目标子文件并输出所述第n目标子文件,包括:
步骤501、控制所述第一播放器处于缓存状态;
步骤502、基于所述目标文件中第n目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n目标子文件;
步骤503、解析所述第n目标子文件,将所述第一播放器由缓存状态切换至输出状态,控制输出所述第n目标子文件。
在一应用示例中,如图6所示,本申请终端设备在获取并输出第n目标子文件所对应的T1~T6过程中,终端设备在T1时刻根据第n目标子文件在整个目标文件上所对应的时间维度设置所述第n目标子文件在服务器侧的地址信息,如统一资源定位符(Uniform Resource Locator,URL),即设置播放地址;在T2时刻控制所述第一播放器链接所述URL,以从所述服务器侧获取并缓存所述第n目标子文件的头信息,即所述第一播放器实现首次缓存;在T3时刻,终端设备控制所述第一播放器解析所述第n目标子文 件的头信息,即所述第一播放器准备好播放,首帧画面出现;在T4~T6时刻,终端设备控制所述第一播放器播放所述第n目标子文件的头文件的同时,继续缓存所述第n目标子文件的剩余部分,即开始播放,在播放的过程中,继续缓存并播放,直至完成所述第n目标子文件的播放为止;从T6时刻起,所述第一播放器重新开始新的目标子文件的缓存和播放。
通过本申请所述播放处理方法,终端设备通过控制第一播放器在缓存第n目标子文件的头文件后即可开始播放所述第n目标子文件,如此,能够大大缩短首次缓存时间。
实施例四
如图7所示,基于实施例一至实施例三,本申请所述检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件,包括:
步骤701、检测所述第一播放器的第n目标子文件的当前输出时刻与所述第n目标子文件的结束时刻之间的时间差;
步骤702、判断所述时间差是否小于第一预设门限值,若小于,则控制第二播放器由缓存状态切换至输出状态;
这里,所述第一预设门限值的取值可以综合考虑整个播放处理速率及播放器的缓存能力来确定。
步骤703、检测到所述第一播放器的第n目标子文件输出达到结束时刻时,控制第二播放器输出所述第n+1目标子文件。
这里,所述检测所述第一播放器的第n目标子文件输出达到结束时刻的方式有如下两种:
方式一:检测所述第一播放器播放所述第n目标子文件的当前输出时刻是否大于等于所述第n目标子文件的时长,若大于等于,则确定所述第一播放器的第n目标子文件输出达到结束时刻。举例来说,如图3所示, 检测所述第一播放器的当前输出时刻大于等于所述第n目标子文件的时长,即播放点>=时长时,切换播放渲染,即控制第二播放器输出所述第n+1目标子文件。
方式二:启动定时器侦听是否发生有播放结束事件,即通过定时器侦听所述第一播放器中是否已完成所述第n目标子文件最后一帧视频流的播放,若完成,则侦听到播放结束事件,即确定所述第一播放器的第n目标子文件输出达到结束时刻。举例来说,如图3所示,当检测有所述第一播放器的第n目标子文件的当前输出时刻与所述第n目标子文件的结束时刻之间的时间差小于第一预设门限值,如小于1.5秒时,所述第一播放器启动定时器来侦听播放结束事件,当侦听到播放结束事件后,去除所述播放侦听事件,控制第二播放器开始输出第n+1目标子文件的头文件。
通过本申请所述播放处理方法,终端设备通过控制两个播放器对分片视频流进行交替缓存并播放,有效实现多分片视频播放时的无缝切换。
实施例五
基于实施例一至实施例四,结合如图8所示的实现视频文件播放的应用场景,所述应用场景将拖动播放进度条所到位置处作为第一时间点,本申请基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,包括:基于所述第一时间点与所述N个目标子文件中每一个目标子文件的时长,确定所述第一时间点对应的第n目标子文件。
在一实施方式中,本申请所述输出所述第n目标子文件,包括:基于所述第一时间点、以及所述第n目标子文件的时长,确定针对所述第n目标子文件的初始输出子时刻;基于所述初始输出子时刻输出所述第n目标子文件。
在一应用示例中,如图9所示,对于拖动播放进度条播放处理而言,所述第一时间点对应的第n目标子文件的确定方式为:n=[相对于整个目标 文件的拖动总时长T1/分片时长S];所述基于所述第一时间点、以及所述第n目标子文件的时长,确定针对所述第n目标子文件的初始输出子时刻,即相对于单个分片文件的拖动时间T2,T2=拖动总时长T1-拖动到第几个分片n*分片时长S;进一步地,基于所述初始输出子时刻输出所述第n目标子文件,包括:如果拖动到第n个视频是当前播放Player0正在播放的分片视频,直接调用Player0的查询seek接口[seek:T2];如果是缓存播放器Player1正在缓存的视频,把Player1切换成正在播放的播放器,播放渲染View置顶,然后调用Player1的查询seek接口[seek:T2];如果非前述两种情况,则直接重置reset两个播放器Player0和Player1,即重新启动新的播放过程,设置第n片播放地址URL给Player0,由Player1缓存第n+1片视频。这里,播放进度条总时长=分片时长S*分片总数目n;进度条当前正在播放的时间T=已经播放过分片数*分片时长S+当前分片视频正在播放的时间。
实施例六
本申请提供了一种终端设备,如图10所示,所述终端设备包括划分模块1001、确定模块1002和控制模块1003;
所述划分模块1001,用于基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
所述确定模块1002,用于获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
所述控制模块1003,用于设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件;
其中,所述控制模块1003控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件,包括:控 制第一播放器获取到第n目标子文件并输出所述第n目标子文件;在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;在所述第n+1目标子文件输出结束之前,控制所述第一播放器获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;以此类推,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
在一实施方式中,所述控制模块1003,还用于控制所述第一播放器处于缓存状态;基于所述目标文件中第n目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n目标子文件;解析所述第n目标子文件,将所述第一播放器由缓存状态切换至输出状态,控制输出所述第n目标子文件。
在一实施方式中,所述控制模块1003,还用于在所述第n目标子文件开始输出时,控制所述第二播放器进入缓存状态;基于所述目标文件中第n+1目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n+1目标子文件;解析所述第n+1目标子文件。
在一实施方式中,所述控制模块1003,还用于检测所述第一播放器的第n目标子文件的当前输出时刻与所述第n目标子文件的结束时刻之间的时间差;判断所述时间差是否小于第一预设门限值,若小于,则控制第二播放器由缓存状态切换至输出状态;检测到所述第一播放器的第n目标子文件输出达到结束时刻时,控制第二播放器输出所述第n+1目标子文件。
在一实施方式中,所述确定模块1002,还用于基于所述第一时间点与所述N个目标子文件中每一个目标子文件的时长,确定所述第一时间点对应的第n目标子文件。
在一实施方式中,所述控制模块1003,还用于基于所述第一时间点、 以及所述第n目标子文件的时长,确定针对所述第n目标子文件的初始输出子时刻;基于所述初始输出子时刻输出所述第n目标子文件。
在实际应用中,所述终端设备所包括的划分模块1001、确定模块1002和控制模块1003均可对应于处理器。所述处理器具体的结构可以为中央处理器CPU、微处理器MCU、数字信号处理器DSP或可编程逻辑器件PLC等具有处理功能的电子元器件或电子元器件的集合。其中,所述处理器包括可执行代码,所述可执行代码存储在存储介质中,所述处理器可以通过总线等通信接口与所述存储介质中相连,在执行具体的各模块的对应功能时,从所述存储介质中读取并运行所述可执行代码。所述存储介质用于存储所述可执行代码的部分优选为非瞬间存储介质。
所述划分模块1001、确定模块1002和控制模块1003可以集成对应于同一处理器,或分别对应不同的处理器;当集成对应于同一处理器时,所述处理器采用时分处理所述划分模块1001、确定模块1002和控制模块1003对应的功能。
本申请六所述终端设备,为实施例一至五所述的方法提供了具体实现的硬件,能用于实现实施例一至五中任意所述的技术方案,同样的,通过控制两个播放器对分片视频流进行交替缓存并播放,能够大大缩短首次缓存时间;而且,整个视频播放处理过程中,能够灵活实现目标文件的分片播放,不受分片时间和编码方式等限制,有效实现多分片视频播放时的无缝切换。
实施例七:
本实施例基于上述实施例六中的终端设备实施例提供一个具体的硬件,如图11所示,所述装置包括处理器1102、计算机存储介质1104以及至少一个外部通信接口1101;所述处理器1102、计算机存储介质1104以及外部通信接口1101均通过总线1103连接。所述处理器1102可为微处理器、 中央处理器、数字信号处理器或可编程逻辑阵列等具有处理功能的电子元器件。所述计算机存储介质1104中存储有计算机可执行代码。
所述硬件可以为所述终端设备。
当所述硬件为所述终端设备时,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:
基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件;
其中,所述控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件,包括:控制第一播放器获取到第n目标子文件并输出所述第n目标子文件;在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;在所述第n+1目标子文件输出结束之前,控制所述第一播放器获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;以此类推,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互 之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局 限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述程序可存储于一计算机可读取存储介质中,如本申请中,该程序可存储于计算机系统的存储介质中,并被该计算机系统中的至少一个处理器执行,以实现包括如上述各方法的实施例的流程。其中,所述存储介质可为磁碟、光盘、ROM或RAM等。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (13)

  1. 一种播放处理方法,所述方法包括:
    基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
    获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
    设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件;
    其中,所述控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件,包括:
    控制第一播放器获取到第n目标子文件并输出所述第n目标子文件;在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;在所述第n+1目标子文件输出结束之前,控制所述第一播放器获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;以此类推,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
  2. 根据权利要求1所述的方法,其中,所述控制第一播放器获取到第n目标子文件并输出所述第n目标子文件,包括:
    控制所述第一播放器处于缓存状态;
    基于所述目标文件中第n目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n目标子文件;
    解析所述第n目标子文件,将所述第一播放器由缓存状态切换至输出状态,控制输出所述第n目标子文件。
  3. 根据权利要求1所述的方法,其中,在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件,包括:
    在所述第n目标子文件开始输出时,控制所述第二播放器进入缓存状态;
    基于所述目标文件中第n+1目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n+1目标子文件;
    解析所述第n+1目标子文件。
  4. 根据权利要求1所述的方法,其中,所述检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件,包括:
    检测所述第一播放器的第n目标子文件的当前输出时刻与所述第n目标子文件的结束时刻之间的时间差;
    判断所述时间差是否小于第一预设门限值,若小于,则控制第二播放器由缓存状态切换至输出状态;
    检测到所述第一播放器的第n目标子文件输出达到结束时刻时,控制第二播放器输出所述第n+1目标子文件。
  5. 根据权利要求1所述的方法,其中,所述基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,包括:
    基于所述第一时间点与所述N个目标子文件中每一个目标子文件的时长,确定所述第一时间点对应的第n目标子文件。
  6. 根据权利要求5所述的方法,其中,所述输出所述第n目标子文件,包括:
    基于所述第一时间点、以及所述第n目标子文件的时长,确定针对所述第n目标子文件的初始输出子时刻;
    基于所述初始输出子时刻输出所述第n目标子文件。
  7. 一种终端设备,所述终端设备包括划分模块、确定模块和控制模块;其中,
    所述划分模块,配置为基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
    所述确定模块,配置为获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
    所述控制模块,配置为设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件;
    其中,所述控制模块,配置为控制第一播放器获取到第n目标子文件并输出所述第n目标子文件;在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;在所述第n+1目标子文件输出结束之前,控制所述第一播放器获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;以此类推,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
  8. 根据权利要求7所述的终端设备,其中,
    所述控制模块,配置为控制所述第一播放器处于缓存状态;基于所述目标文件中第n目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n目标子文件;解析所述第n目标子文件,将所述第一播放器由缓存状态切换至输出状态,控制输出所述第n目标子文件。
  9. 根据权利要求7所述的终端设备,其中,
    所述控制模块,配置为在所述第n目标子文件开始输出时,控制所述第二播放器进入缓存状态;基于所述目标文件中第n+1目标子文件在服务器侧的地址信息,从所述服务器侧获取并缓存所述第n+1目标子文件;解析所述第n+1目标子文件。
  10. 根据权利要求7所述的终端设备,其中,
    所述控制模块,配置为检测所述第一播放器的第n目标子文件的当前输出时刻与所述第n目标子文件的结束时刻之间的时间差;判断所述时间差是否小于第一预设门限值,若小于,则控制第二播放器由缓存状态切换至输出状态;检测到所述第一播放器的第n目标子文件输出达到结束时刻时,控制第二播放器输出所述第n+1目标子文件。
  11. 根据权利要求7所述的终端设备,其中,
    所述确定模块,配置为基于所述第一时间点与所述N个目标子文件中每一个目标子文件的时长,确定所述第一时间点对应的第n目标子文件。
  12. 根据权利要求11所述的终端设备,其中,
    所述控制模块,配置为基于所述第一时间点、以及所述第n目标子文件的时长,确定针对所述第n目标子文件的初始输出子时刻;基于所述初始输出子时刻输出所述第n目标子文件。
  13. 一种计算机存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:
    基于时间维度对目标文件中的内容划分,得到N个目标子文件,N为大于等于2的整数;
    获取到第一时间点,基于所述第一时间点从所述N个目标子文件中确定第n目标子文件,n为大于等于1且小于等于N的整数;
    设置第一播放器以及第二播放器,控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件;
    其中,所述控制所述第一播放器以及所述第二播放器轮询获取并输出第n目标子文件及其之后的至少一个目标子文件,包括:
    控制第一播放器获取到第n目标子文件并输出所述第n目标子文件;在所述第n目标子文件输出结束之前,控制所述第二播放器获取时间维度上与所述第n目标子文件相邻的第n+1目标子文件;检测到所述第一播放器的第n目标子文件输出结束,控制第二播放器输出所述第n+1目标子文件;在所述第n+1目标子文件输出结束之前,控制所述第一播放器获取到时间维度上与所述第n+1目标子文件相邻的第n+2目标子文件;以此类推,直至所述第n目标子文件及其之后的至少一个目标子文件全部输出结束。
PCT/CN2017/081021 2016-04-29 2017-04-19 一种播放处理方法、终端设备及计算机存储介质 WO2017186036A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/025,983 US10715573B2 (en) 2016-04-29 2018-07-02 Media playing method, terminal device, and computer storage medium based on two players

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610289582.9A CN105898625B (zh) 2016-04-29 2016-04-29 一种播放处理方法及终端设备
CN201610289582.9 2016-04-29

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/025,983 Continuation US10715573B2 (en) 2016-04-29 2018-07-02 Media playing method, terminal device, and computer storage medium based on two players

Publications (1)

Publication Number Publication Date
WO2017186036A1 true WO2017186036A1 (zh) 2017-11-02

Family

ID=56702131

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081021 WO2017186036A1 (zh) 2016-04-29 2017-04-19 一种播放处理方法、终端设备及计算机存储介质

Country Status (3)

Country Link
US (1) US10715573B2 (zh)
CN (1) CN105898625B (zh)
WO (1) WO2017186036A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898625B (zh) 2016-04-29 2020-03-17 腾讯科技(深圳)有限公司 一种播放处理方法及终端设备
CN109688473B (zh) * 2018-12-07 2020-12-22 广州市百果园信息技术有限公司 多视频播放方法及存储介质、计算机设备
CN111526404B (zh) * 2020-04-27 2022-07-08 杭州海康威视系统技术有限公司 单帧播放方法、视频播放装置、监控设备以及存储介质
CN114915850B (zh) * 2022-04-22 2023-09-12 网易(杭州)网络有限公司 一种视频播放控制方法、装置、电子设备及存储介质
CN115474096A (zh) * 2022-09-09 2022-12-13 广州励丰文化科技股份有限公司 多媒体播放方法、电子设备终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120170642A1 (en) * 2011-01-05 2012-07-05 Rovi Technologies Corporation Systems and methods for encoding trick play streams for performing smooth visual search of media encoded for adaptive bitrate streaming via hypertext transfer protocol
CN102622196A (zh) * 2012-02-10 2012-08-01 江苏清投视讯科技有限公司 基于网络传输的多屏幕显示系统画面同步技术
CN104202684A (zh) * 2014-08-27 2014-12-10 珠海全志科技股份有限公司 一种分段网络视频无缝播放方法和装置
CN105430425A (zh) * 2015-11-18 2016-03-23 深圳Tcl新技术有限公司 单分片视频播放加速方法及装置
CN105898625A (zh) * 2016-04-29 2016-08-24 腾讯科技(深圳)有限公司 一种播放处理方法及终端设备

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7668099B2 (en) * 2003-06-13 2010-02-23 Apple Inc. Synthesis of vertical blanking signal
US9077526B2 (en) * 2008-09-30 2015-07-07 Apple Inc. Method and system for ensuring sequential playback of digital media
US8400918B2 (en) * 2009-08-06 2013-03-19 Georgia Tech Research Corporation Video traffic smoothing
US8918533B2 (en) * 2010-07-13 2014-12-23 Qualcomm Incorporated Video switching for streaming video data
US9456015B2 (en) * 2010-08-10 2016-09-27 Qualcomm Incorporated Representation groups for network streaming of coded multimedia data
US9369512B2 (en) * 2010-10-06 2016-06-14 Electronics And Telecommunications Research Institute Apparatus and method for providing streaming content
US20140025710A1 (en) * 2012-07-23 2014-01-23 Espial Group Inc. Storage Optimizations for Multi-File Adaptive Bitrate Assets
CN104080014B (zh) * 2013-03-28 2018-09-28 浙江大华技术股份有限公司 一种实时视频处理方法和装置
KR101569510B1 (ko) * 2013-10-22 2015-11-17 네이버 주식회사 적응적 실시간 트랜스코딩 방법 및 이를 위한 스트리밍 서버
CN104683831A (zh) * 2013-12-02 2015-06-03 青岛永通电梯工程有限公司 一种视频播放装置
EP2963651A1 (en) * 2014-07-03 2016-01-06 Samsung Electronics Co., Ltd Method and device for playing multimedia
CN105245945A (zh) * 2014-07-07 2016-01-13 深圳市云帆世纪科技有限公司 网络多媒体数据的播放方法及播放系统
CN105657520A (zh) * 2014-11-18 2016-06-08 乐视网信息技术(北京)股份有限公司 一种视频清晰度切换方法和视频播放器
US10298985B2 (en) * 2015-05-11 2019-05-21 Mediamelon, Inc. Systems and methods for performing quality based streaming
US10237195B1 (en) * 2015-05-13 2019-03-19 Cox Communications, Inc. IP video playback
US10620810B2 (en) * 2015-05-15 2020-04-14 Spotify Ab Method and a system for performing scrubbing in a video stream
US9270724B1 (en) * 2015-06-25 2016-02-23 Amarone Partners, Llc System and method for content streaming with feature detection
KR102515269B1 (ko) * 2016-03-05 2023-03-30 삼성전자주식회사 전자장치에서의 비디오 스트리밍 장치 및 방법
US10116713B2 (en) * 2016-03-31 2018-10-30 Jamdeo Canada, Ltd. System and methods for content streaming with a content buffer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120170642A1 (en) * 2011-01-05 2012-07-05 Rovi Technologies Corporation Systems and methods for encoding trick play streams for performing smooth visual search of media encoded for adaptive bitrate streaming via hypertext transfer protocol
CN102622196A (zh) * 2012-02-10 2012-08-01 江苏清投视讯科技有限公司 基于网络传输的多屏幕显示系统画面同步技术
CN104202684A (zh) * 2014-08-27 2014-12-10 珠海全志科技股份有限公司 一种分段网络视频无缝播放方法和装置
CN105430425A (zh) * 2015-11-18 2016-03-23 深圳Tcl新技术有限公司 单分片视频播放加速方法及装置
CN105898625A (zh) * 2016-04-29 2016-08-24 腾讯科技(深圳)有限公司 一种播放处理方法及终端设备

Also Published As

Publication number Publication date
CN105898625B (zh) 2020-03-17
CN105898625A (zh) 2016-08-24
US10715573B2 (en) 2020-07-14
US20180316737A1 (en) 2018-11-01

Similar Documents

Publication Publication Date Title
WO2017186036A1 (zh) 一种播放处理方法、终端设备及计算机存储介质
US11706483B2 (en) Video playing method and apparatus, and electronic device
US9076493B2 (en) Video processing method apparatus
JP7100175B2 (ja) 送信方法及び送信装置
WO2016131223A1 (zh) 一种视频帧丢帧方法及视频发送装置
WO2019062050A1 (zh) 直播管控方法、装置及电子设备
WO2016141847A1 (zh) 多编码格式节目流的自适应切换方法及系统
WO2016011823A1 (zh) 获取直播视频切片的方法、服务器及存储介质
CN108174280B (zh) 一种音视频在线播放方法及系统
JP6563424B2 (ja) ストリームメディアデータ伝送方法、クライアント及びサーバ
JP2015533058A5 (zh)
CN107517400B (zh) 流媒体播放方法及流媒体播放器
CN103596036B (zh) 一种流媒体播放器智能缓冲方法
US20180192090A1 (en) Method of implementing audio and video live broadcast and server
WO2017096885A1 (zh) 视频播放方法及装置
US11843812B2 (en) High-speed real-time data transmission method and apparatus, device, and storage medium
CN111447455A (zh) 直播视频流回放处理方法、装置及计算设备
CN106791994B (zh) 一种低延时快速开播方法及装置
WO2017071604A1 (zh) 一种播放方法、装置及存储介质
JP7246508B2 (ja) Httpによる動的適応ストリーミングのための方法及び装置
WO2015169172A1 (zh) 网络视频播放的方法和装置
US11540028B2 (en) Information presenting method, terminal device, server and system
US9356981B2 (en) Streaming content over a network
US20170223424A1 (en) Selection and alignment of video segments for adaptive streaming
WO2016112641A1 (zh) 客户端、流媒体数据接收方法和流媒体数据传输系统

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17788688

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17788688

Country of ref document: EP

Kind code of ref document: A1