WO2017107378A1 - 基于hls流媒体的视频数据加速下载方法及装置 - Google Patents
基于hls流媒体的视频数据加速下载方法及装置 Download PDFInfo
- Publication number
- WO2017107378A1 WO2017107378A1 PCT/CN2016/083871 CN2016083871W WO2017107378A1 WO 2017107378 A1 WO2017107378 A1 WO 2017107378A1 CN 2016083871 W CN2016083871 W CN 2016083871W WO 2017107378 A1 WO2017107378 A1 WO 2017107378A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- streaming media
- hls streaming
- fragment file
- download mode
- hls
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 239000012634 fragment Substances 0.000 claims abstract description 167
- 230000001133 acceleration Effects 0.000 claims description 84
- 230000000977 initiatory effect Effects 0.000 claims description 4
- 230000002159 abnormal effect Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 7
- 238000013467 fragmentation Methods 0.000 description 2
- 238000006062 fragmentation reaction Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4335—Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
-
- 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/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
-
- 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/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
Definitions
- the present invention relates to the field of streaming media technologies, and in particular, to a video data acceleration downloading method and apparatus based on HLS streaming media.
- HLS HTTP Live Streaming, hypertext live streaming
- HTTP-based streaming media transfer protocol that enables live streaming and on-demand streaming.
- the protocol supports media data encryption and stream switching (for example, different bit rates), media data is transmitted immediately after creation, and playback is near real time.
- the HLS playlist consists of an ordered list of media URIs and information tags, each media URI pointing to a media file (shard file), which is a segment on a single contiguous stream of media.
- media file shard file
- the client In order to play the media stream, the client first gets the playlist, then gets and plays each streaming media file in the playlist.
- video data download acceleration based on HLS streaming media can be implemented in the form of multi-tasking, that is, starting multiple tasks simultaneously downloading multiple fragment files and sequentially sending them to the client for playing;
- the rate can be increased by up to twice, but it should be noted that the speed of downloading data for each single task is reduced, and the more the number of tasks, the slower the rate of a single task, which means playing.
- the main object of the present invention is to provide a method and an apparatus for downloading video data based on HLS streaming media.
- the technical problem of abnormal playback of the client is easily caused.
- the present invention provides a video data acceleration downloading method based on HLS streaming media, the method comprising:
- the fragment file of the HLS streaming media is currently downloaded through the non-accelerated download mode; and the fragment file of the HLS streaming media is not currently downloaded through the non-accelerated download mode. Initiating a multi-threaded accelerated download mode to obtain a fragment file of the HLS streaming media from the network media server;
- the first total duration is not zero, acquiring a second total duration between the time when the first fragment file is sent within a preset time before the current time to the current time;
- the multi-threaded acceleration download mode is initiated to obtain a fragment file of the HLS streaming media from the network media server, and the counter is controlled to increment the count value by one.
- the present invention further provides a video data acceleration downloading method based on HLS streaming media, the method comprising:
- the multi-threaded accelerated download mode is initiated to obtain the fragment file of the HLS streaming media from the network media server.
- the present invention further provides a video data acceleration downloading device based on HLS streaming media, the device comprising:
- a startup module configured to: when a playback request of the HLS streaming media sent by the network media client is received, start a timer;
- a first determining module configured to determine, when the timer time is reached, whether the HLS streaming media corresponding to the play request of the HLS streaming media is downloaded;
- a first acquiring module configured to acquire, when the HLS streaming media corresponding to the playback request of the HLS streaming media is not downloaded, the amount of data in the buffer area in the video data acceleration downloading device;
- a second determining module configured to determine whether the amount of data is greater than or equal to a first preset threshold
- the first control module is configured to start the multi-threaded acceleration download mode when the data amount is greater than or equal to the first preset threshold to obtain the fragment file of the HLS streaming media from the network media server.
- the HLS streaming media-based video data acceleration downloading method and device of the present invention when a playback request of the HLS streaming media sent by the network media client is received, the timer is started cyclically; when the timer time is reached, the HLS is determined. Whether the HLS streaming media corresponding to the playback request of the streaming media is downloaded; if the HLS streaming media corresponding to the playback request of the HLS streaming media is not downloaded, the amount of data in the buffer is obtained; and determining whether the amount of data is greater than or equal to a first preset threshold; if the amount of data is greater than or equal to the first preset threshold, starting the multi-threaded accelerated download mode to obtain the fragment file of the HLS streaming media from the network media server; When good (when the amount of data in the buffer is greater than or equal to the first preset threshold), the multi-threaded accelerated download mode is started to obtain the fragment file of the HLS streaming media from the network media server, in the video data acceleration downloading device. Cache as many fragment files as possible to reduce
- FIG. 1 is a schematic flow chart of a first embodiment of a method for downloading video data based on HLS streaming media according to the present invention
- FIG. 2 is a schematic flow chart of a refinement of an embodiment of step S14 of FIG. 1;
- FIG. 3 is a schematic flow chart of a second embodiment of a method for downloading video data based on HLS streaming media according to the present invention
- FIG. 4 is a schematic structural diagram of a first embodiment of a video data acceleration downloading apparatus based on HLS streaming media according to the present invention
- FIG. 5 is a schematic diagram of a refinement structure of a first control module in a video data acceleration downloading apparatus based on HLS streaming media according to the present invention
- FIG. 6 is a schematic structural diagram of a second embodiment of a video data acceleration downloading apparatus based on HLS streaming media according to the present invention.
- FIG. 1 is a schematic flowchart of a first embodiment of a method for downloading video data based on HLS streaming media according to the present invention.
- the method includes:
- the play request may include a playlist of HLS streaming media.
- Each item in the playlist corresponds to a slice file, and each slice has a unique number, for example, one of the fragments is numbered 100, and each slice is The files are sorted in the order of playback, and the number of the slice files that are played first is small.
- the shard file corresponding to each item in the playlist corresponds to a URL address, and the corresponding shard file can be obtained from the network media server according to the URL address corresponding to the shard file.
- the cycle starts the timer, and a timing duration can be set as needed, such as a timing duration of 5 minutes.
- the network media client is disposed in the terminal, and may be a network media player inside the terminal, such as a system-equipped player or a player installed by the user.
- the terminal may be a smart mobile terminal such as a smart phone, an Ipad, or the like, or a smart TV.
- the method is mainly applied to downloading video playback data of the terminal, so as to reduce the abnormality of the client playing when the terminal starts the accelerated download of the video data.
- step S11 When the timer time is reached, it is determined whether the HLS streaming media corresponding to the playback request of the HLS streaming media is downloaded. If the HLS streaming media corresponding to the playback request of the HLS streaming media is not downloaded, step S12 is performed, otherwise execution is performed. Step S15.
- this step it is determined whether the HLS streaming media corresponding to the playback request of the HLS streaming media is downloaded. If the HLS streaming media corresponding to the playback request of the HLS streaming media is completed, the multi-threaded accelerated download mode is not required to be downloaded to download the HLS. If the HLS streaming media corresponding to the playback request of the HLS streaming media is not downloaded, the subsequent steps are performed to determine whether the multi-threaded accelerated download mode needs to be started to download the fragment file corresponding to the HLS streaming media.
- a fragment file download list is preset in the terminal, and the fragment file of the HLS streaming media corresponding to the playback request of the HLS streaming media is recorded in the fragment file download list.
- the buffer area stores a fragment file of the HLS streaming media downloaded from the network media server and not sent to the network media client.
- the fragment file of the HLS streaming media downloaded from the network media server is first saved to the buffer area, and then the fragment file of the HLS streaming media in the buffer area is distributed to the network media client, and the HLS in the buffer area is After the fragmented file of the streaming media is distributed to the network media client, the fragmented file of the distributed HLS streaming media is deleted from the buffer.
- the amount of data in the buffer area refers to the total length of the fragment file in the buffer area. For example, when there are 10 fragment files in the buffer area and the playback duration of each fragment file is 10 s, the The amount of data in the buffer is 100s.
- step S13 Determine whether the data amount is greater than or equal to a first preset threshold. If the data amount is greater than or equal to the first preset threshold, step S14 is performed.
- the first preset threshold may be set as needed, and the first preset threshold is a non-zero natural number.
- the first preset threshold can be set to 90s.
- this step it is determined whether the amount of data in the buffer area is greater than or equal to the first preset threshold. If the amount of data in the buffer area is greater than or equal to the first preset threshold, the current network status is good, Download a certain number of shard files from the network media server.
- the multi-thread accelerated download mode is started, and the maximum number of allowed tasks is created to obtain the fragment file of the HLS streaming media from the network media server, that is, when the current network status is good, as much as possible Simultaneously open multiple tasks to download the fragment file.
- the maximum number of allowed tasks is 8 tasks, then 8 tasks are started to simultaneously download the fragment file of the HLS streaming media, one task corresponds to download one fragment file, and one task downloads one fragment file. After that, continue to download another shard file.
- the fragment file of the HLS streaming media obtained from the network media server will be saved in the buffer area.
- the multi-threaded accelerated download mode is started to download as many fragment files as possible, so that the network media client can request the fragment file in time, and can provide the fragment file for the network media client in time to avoid the network media client.
- a playback exception occurs.
- the timer when the playback request of the HLS streaming media sent by the network media client is received, the timer is started cyclically; when the timer time is reached, it is determined whether the HLS streaming media corresponding to the playback request of the HLS streaming media is downloaded.
- Completing if the HLS streaming media corresponding to the playback request of the HLS streaming media is not downloaded, obtaining the data amount in the buffer area; determining whether the data amount is greater than or equal to the first preset threshold; if the data volume is greater than or equal to The first preset threshold starts the multi-thread accelerated download mode to obtain the fragment file of the HLS streaming media from the network media server; that is, when the network status is good (the amount of data in the buffer is greater than or equal to the first pre- When the threshold is set, the multi-threaded accelerated download mode is started to obtain the fragment file of the HLS streaming media from the network media server, and as many fragment files as possible are cached in the buffer area, thereby reducing the occurrence of abnormal playback of the network media client.
- FIG. 2 is a schematic diagram of the refinement process of the step S14 in FIG. 1, and the steps include:
- step S141 Determine whether the fragment file of the HLS streaming media is currently downloaded through the non-accelerated download mode. If the fragment file of the HLS streaming media is not currently downloaded through the non-accelerated download mode, step S142 is performed; otherwise, step S143 is performed.
- the download mode of the HLS streaming media includes a multi-threaded accelerated download mode and a non-accelerated download mode.
- the non-accelerated download mode the module or thread responsible for video downloading in the terminal directly transfers the fragment file obtained from the network media server.
- the network media client is not saved in the cache area from the network file server, that is, the module or thread responsible for the video download in the terminal is directly transmitted by the network media client to the network media server.
- the non-accelerated download mode takes precedence over the multi-threaded accelerated download mode. In this step, it is determined whether the terminal currently downloads the fragment file of the HLS streaming media through the non-accelerated download mode, if the terminal is currently downloading the HLS streaming media through the non-accelerated download mode. In the case of a slice file, the terminal does not simultaneously perform the multi-threaded accelerated download mode.
- the terminal starts the multi-threaded accelerated download mode and creates the maximum number of allowed tasks to obtain the fragment file of the HLS streaming media from the network media server.
- the terminal When the terminal currently downloads the fragment file of the HLS streaming media through the non-accelerated download mode, the terminal continues to transparently transmit the fragment file requested by the network media client to the network media server by the module or thread responsible for the video download according to the non-accelerated download mode. After the downloading of the non-accelerated download mode is completed, detecting whether the fragment acquisition request sent by the network media client is received, and if receiving the fragment acquisition request of the network media client, starting the multi-thread accelerated download mode, and according to the fragmentation Get the request to return the corresponding shard file to the network media client.
- the terminal can download the HLS streaming media through the non-accelerated download mode.
- the file is fragmented, continue to provide the network media client with the data to be played first according to the current download mode.
- the multi-threaded accelerated download mode is started to download more HLS streaming media.
- FIG. 3 is a schematic flowchart diagram of a second embodiment of a method for downloading video data based on HLS streaming media according to the present invention.
- the method further includes:
- step S16 If the amount of data is less than the first preset threshold, determine whether the amount of data is zero. If the amount of data is zero, step S17 is performed.
- this step it is determined whether the amount of data in the buffer area is zero. If the amount of data in the buffer area is zero, the current network status is poor, and the module or thread responsible for video downloading in the terminal does not have a slave network media server. A certain number of fragment files are downloaded, so that when the network media client requests the fragment file, the terminal cannot provide sufficient fragment files for the network media client, which may cause the network media client to fail to play normally, and the card phenomenon may occur. .
- the preset time is usually less than the timer duration of the timer.
- the first total duration of the fragment file sent to the network media client in the preset time before the current time is obtained, and the fragment file sent to the network media client in the preset time before the current time is 5, the playback duration of each fragment file is 10s, then the first total duration is 50s; if the terminal sends 0 to the network media client within the preset time before the current moment, the first is The total duration is 0.
- step S18 Determine whether the first total duration is zero. If the first total duration is not zero, execute step S19. If the first total duration is zero, step S21 is performed.
- the time when the first fragment file is sent to the network media client in the preset time before the current time is obtained, and according to the current time, the terminal sends the first fragment in the preset time before the current time.
- the interval between the files and the current time that is, the second total duration.
- the second total duration is greater than the first total duration, it indicates that the network media client has a stuck phenomenon (may be that the playback is really stuck, or the user pauses the network media client to play, or other circumstances).
- the multi-threaded accelerated download mode is started, and the maximum number of allowed tasks is created to obtain the fragment file of the HLS streaming media from the network media server.
- the counter is also controlled to increase the count value by one.
- the timer is started for the first time, the counter has a count value of 0.
- the count value of the counter is maintained or incremented according to the actual situation. This timer records the number of times the network status is poor.
- control counter increments the count value by one.
- the count value of the control count value is increased by 1, that is, the number of times the network state is inferior.
- the threshold can be set as needed, such as 5 times.
- the count value of the re-acquired count value is greater than the preset number of thresholds, it indicates that the network media client is detected after several times of the loop timer is detected after the network media client is stuck. However, the shard file has not been received. In this case, the multi-threaded download mode should be started to obtain the shard file of the HLS streaming media from the network media server.
- the first total length of the fragment file sent to the network media client according to the preset time before the current time of the terminal is used.
- the counter's count value (indicating the number of times the network status is poor) determines whether to start the multi-threaded accelerated download mode, which can more accurately determine the timing of starting the multi-threaded accelerated download mode to download more fragment files of the HLS streaming media.
- FIG. 4 is a schematic structural diagram of a first embodiment of a video data acceleration downloading apparatus based on HLS streaming media according to the present invention.
- the apparatus includes:
- the startup module 10 is configured to: when receiving a play request of the HLS streaming media sent by the network media client, start a timer;
- the first determining module 11 is configured to determine, when the timer time is reached, whether the HLS streaming media corresponding to the play request of the HLS streaming media is downloaded;
- the first obtaining module 12 is configured to acquire, when the HLS streaming media corresponding to the playback request of the HLS streaming media is not downloaded, the amount of data in the buffer area in the video data acceleration downloading device;
- the second determining module 13 is configured to determine whether the amount of data is greater than or equal to a first preset threshold
- the first control module 14 is configured to start the multi-threaded acceleration download mode to obtain the fragment file of the HLS streaming media from the network media server when the amount of data is greater than or equal to the first preset threshold.
- the play request may include a playlist of HLS streaming media.
- Each item in the playlist corresponds to a slice file, and each slice has a unique number, for example, one of the fragments is numbered 100, and each slice is The files are sorted in the order of playback, and the number of the slice files that are played first is small.
- the shard file corresponding to each item in the playlist corresponds to a URL address, and the corresponding shard file can be obtained from the network media server according to the URL address corresponding to the shard file.
- the startup module 10 cyclically starts a timer, and can set a timing duration as needed, such as a timing duration of 5 minutes.
- the network media client is disposed in the terminal, and may be a network media player inside the terminal, such as a system-equipped player or a player installed by the user.
- the terminal may be a smart mobile terminal such as a smart phone, an Ipad, or the like, or a smart TV.
- the first determining module 11 determines whether the HLS streaming media corresponding to the playback request of the HLS streaming media is downloaded. If the HLS streaming media corresponding to the playback request of the HLS streaming media is completed, the video data acceleration downloading device does not need to be started.
- the thread acceleration download mode downloads the fragment file corresponding to the HLS streaming media; if the HLS streaming media corresponding to the playback request of the HLS streaming media is not downloaded, the first obtaining module 12, the second determining module 13, and the first control module are required to be 14 determining whether it is necessary to download the multi-threaded accelerated download mode by the video data acceleration downloading device to download the fragment file corresponding to the HLS streaming media.
- a fragment file download list is preset in the video data acceleration downloading device, and the fragment file of the HLS streaming media corresponding to the playback request of the HLS streaming media is recorded in the fragment file download list.
- the first judging module 11 can determine whether the HLS streaming media corresponding to the play request of the HLS streaming media is downloaded by viewing the fragment file download list.
- the buffer area in the video data acceleration downloading device stores a fragment file of the HLS streaming media downloaded from the network media server and not sent to the network media client.
- the video data acceleration downloading device first saves the fragment file of the HLS streaming media downloaded from the network media server into the buffer area, and after distributing the fragment file of the HLS streaming media in the buffer area to the network media client, The fragmented file of the distributed HLS streaming media is deleted from the buffer.
- the video data acceleration download device is connected between the network media client and the network media server.
- the amount of data in the buffer area refers to the total length of the fragment file in the buffer area. For example, when there are 10 fragment files in the buffer area and the playback duration of each fragment file is 10 s, the The amount of data in the buffer is 100s.
- the first preset threshold may be set as needed, and the first preset threshold is a non-zero natural number.
- the first preset threshold can be set to 90s.
- the second determining module 13 determines whether the amount of data in the buffer is greater than or equal to the first preset threshold. If the amount of data in the buffer is greater than or equal to the first preset threshold, the current network status is good.
- the video data acceleration download device has downloaded a certain number of slice files from the network media server.
- the first control module 14 starts the multi-threaded acceleration download when the data amount is greater than or equal to the first preset threshold (when the data amount is greater than or equal to the first preset threshold, indicating that the current network state is good) Mode, create the maximum number of allowed tasks to get the fragment file of the HLS streaming media from the network media server.
- the maximum number of allowed tasks is 8 tasks
- the first control module 14 starts 8 tasks and simultaneously downloads the fragment file of the HLS streaming media, and one task corresponds to download one fragment file, one task. After downloading a shard file, continue to download another shard file.
- the fragment file of the HLS streaming media obtained from the network media server will be saved in the buffer area.
- the first control module 14 starts the multi-threaded accelerated download mode to download as many fragment files as possible, so that the network media client can provide the fragment file in time for the network media client to avoid the network media.
- the client has an abnormal playback condition.
- the first control module 14 is further configured to: when the judgment result of the first determining module 11 is that the HLS streaming download corresponding to the playback request of the HLS streaming media is completed, the timer is turned off.
- the video data acceleration downloading device is disposed inside the terminal, and the network media client is disposed in the same terminal as the video data acceleration downloading device, and when the corresponding video needs to be played, the playback request is sent to the video data acceleration.
- the device is downloaded to obtain corresponding video data, and the terminal obtains video data from the network media server by the video data acceleration downloading device.
- the video data acceleration downloading device can be implemented by software and/or hardware.
- the multi-thread accelerated download mode is started to obtain the fragment of the HLS streaming media from the network media server.
- Files cache as many fragment files as possible in the cache area, reducing the occurrence of abnormal playback on the network media client.
- the first control module 14 includes:
- the first determining unit 141 is configured to determine, when the data amount is greater than or equal to the first preset threshold, whether the video data acceleration downloading device currently downloads the fragment file of the HLS streaming media through the non-accelerated download mode;
- the first control unit 142 is configured to start a multi-threaded accelerated download mode to obtain the HLS streaming media from the network media server when the network media client does not currently download the fragment file of the HLS streaming media through the non-accelerated download mode. Fragment file
- the second control unit 143 is configured to: when the network media client currently downloads the fragment file of the HLS streaming media through the non-accelerated download mode, after the non-accelerated download mode download is completed, and receives the score sent by the network media client When the slice acquires the request, the multi-threaded accelerated download mode is started to obtain the fragment file of the HLS streaming media from the network media server.
- the video data acceleration downloading device may also perform a non-accelerated download mode, and in the non-accelerated download mode, the video data acceleration downloading device transmits the fragment file acquired from the network media server to the network media client, and The fragment file obtained from the network media server is not saved in the buffer area, that is, the video data downloading device only transmits the fragment file requested by the network media client to the network media server.
- the non-accelerated download mode takes precedence over the multi-threaded accelerated download mode, and the first determining unit 141 determines whether the video data acceleration downloading device currently downloads the fragment file of the HLS streaming media through the non-accelerated download mode, if The video data acceleration downloading device is currently downloading the fragment file of the HLS streaming media through the non-accelerated download mode, and the video data acceleration downloading device does not simultaneously perform the multi-threaded accelerated download mode.
- the first control unit 142 starts the multi-threaded accelerated download mode, and creates the maximum number of allowed tasks to obtain the HLS streaming media from the network media server. Fragment file.
- the second control unit 143 causes the video data acceleration downloading device to continue to transparently transmit the network media client according to the non-accelerated download mode.
- the fragment file of the network media server detects whether the fragment acquisition request sent by the network media client is received, and if the fragment acquisition request of the network media client is received, the multi-thread acceleration is started. Download the mode, and return the corresponding fragment file to the network media client according to the fragment acquisition request.
- the first control module 14 first determines whether the fragment file of the HLS streaming media is currently downloaded through the non-accelerated download mode, and determines when to start the multi-threaded accelerated download mode according to the determination result; the terminal can pass the non-accelerated download mode.
- the terminal can pass the non-accelerated download mode.
- downloading the fragment file of HLS streaming media continue to provide the network media client with the data to be played first according to the current download mode.
- FIG. 6 is a schematic structural diagram of a second embodiment of a video data acceleration downloading apparatus based on HLS streaming media according to the present invention.
- a first embodiment of the above-described HLS streaming-based video data acceleration downloading apparatus further comprising:
- the third determining module 15 is configured to determine, when the determined result of the second determining module is that the data amount is less than the first preset threshold, determine whether the data amount is zero;
- the second obtaining module 16 is configured to: when the amount of data is zero, obtain a first total duration of the fragment file sent by the video data acceleration downloading device to the network media client within a preset time before the current time;
- the third obtaining module 17 is configured to acquire, when the first total duration is not zero, between the time when the video data acceleration downloading device sends the first fragment file within a preset time before the current time to the current time. Second total length;
- the third control module 18 is configured to start a multi-threaded acceleration download mode when the second total duration is greater than the first total duration, to obtain a fragment file of the HLS streaming media from the network media server, and control the counter to count the value. plus 1;
- a fourth obtaining module 19 configured to acquire a counter value of the counter when the first total duration is zero;
- the fourth control module 20 is configured to: when the counter value of the counter is non-zero, the control counter increases the count value by one;
- the fifth control module 21 is configured to reacquire the counter value of the counter, and start the multi-thread acceleration download mode to obtain the HLS stream from the network media server when the counter value of the re-acquired counter is greater than the preset number of thresholds.
- the fragment file of the media is configured to reacquire the counter value of the counter, and start the multi-thread acceleration download mode to obtain the HLS stream from the network media server when the counter value of the re-acquired counter is greater than the preset number of thresholds.
- the third determining module 15 determines whether the amount of data in the buffer area is zero. If the amount of data in the buffer area is zero, the current network status is poor, and the video data acceleration downloading device does not download from the network media server. When a network media client requests a fragment file from the video data acceleration downloading device, the video data acceleration downloading device cannot provide sufficient fragment files for the network media client, which will result in network media. The client cannot play normally and the card is stuck.
- the preset time is usually less than the timer duration of the timer.
- the second obtaining module 16 acquires a first total duration of the fragment file sent by the video data acceleration downloading device to the network media client within a preset time before the current time, such as the preset of the video data acceleration downloading device before the current time
- the number of fragment files sent to the network media client is 5, and the duration of each fragment file is 10s, and the first total duration is 50s; if the video data accelerates the preset time of the download device before the current time
- the number of fragment files sent to the network media client is 0, and the first total duration is 0.
- the third obtaining module 17 acquires a time when the video data acceleration downloading device sends the first fragment file to the network media client within a preset time before the current time, and obtains the video data acceleration downloading device before the current time according to the current time.
- the third control module 18 controls the video data acceleration downloading device to start the multi-threaded acceleration download mode, and creates the maximum number of allowed tasks to acquire the fragment file of the HLS streaming media from the network media server.
- the third first control module 14 further controls the counter to increase the count value by one. When the timer is started for the first time, the counter has a count value of 0. When the timer is started, the count value of the counter is maintained or incremented according to actual conditions. . This timer records the number of times the network status is poor.
- the fourth control module 20 controls the count value of the count value to increase by 1, that is, the number of times the network state is inferior.
- the threshold can be set as needed, such as 5 times.
- the count value of the re-acquired count value is greater than the preset number of thresholds, it indicates that the network media client has not received the network media client after detecting that the network media client has been stuck and several cycles of the timer expires.
- the fifth control module 21 controls the video data loading device to start the multi-thread loading download mode to acquire the fragment file of the HLS streaming media from the network media server.
- the first total length of the fragment file sent to the network media client according to the preset time before the current time of the terminal is used.
- the counter count value (indicating the number of times the network status is poor) determines whether to start the multi-threaded accelerated download mode, and can more accurately determine to start the multi-threaded accelerated download mode to download more fragment files of the HLS streaming media.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种基于HLS流媒体的视频数据加速下载方法,该方法包括:在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;在定时器时间达到时,判断所述HLS流媒体的播放请求对应的HLS流媒体是否下载完成;若所述HLS流媒体的播放请求对应的HLS流媒体未下载完成,则获取缓存区中的数据量;判断所述数据量是否大于或等于第一预设阀值;若所述数据量大于或等于第一预设阀值,则启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。本发明还公开了一种基于HLS流媒体的视频数据加速下载装置。采用本发明,可减少网络媒体客户端出现播放异常的情况。
Description
技术领域
本发明涉及流媒体技术领域,尤其涉及一种基于HLS流媒体的视频数据加速下载方法及装置。
背景技术
HLS(HTTP Live
Streaming,超文本直播流)是基于HTTP的流媒体传输协议,可实现流媒体的直播和点播。协议支持媒体数据加密与流切换(例如不同码率),媒体数据创建后立即传输,播放接近实时。
HLS播放列表由一个有序的媒体URI列表和信息标签组成,每个媒体URI指向一个媒体文件(分片文件),这个媒体文件是单个连续媒体流上的一个片断。为了播放媒体流,客户端首先获取播放列表,然后获取并播放播放列表中的每个流媒体文件。
在现有技术中,基于HLS流媒体的视频数据下载加速可以通过多任务的形式实现,即启动多个任务同时下载多个分片文件并依序发送给客户端播放;在使用多个任务下载数据时,最多可以使速率提高达到两倍的程度,但是需要注意的是,每个单任务下载数据的速度反而降低了,而且是任务数越多单个任务的速率越慢,这就意味着播放视频时,不能随时随意的启动多任务进行码流的下载,如当多个任务同时下载多个分片文件时,当前需要播放的分片文件没有下载过来,而暂时不需要播放的分片文件却下载过来了,这将影响客户端正常播放。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。
发明内容
本发明的主要目的在于提供一种基于HLS流媒体的视频数据加速下载方法及装置,旨在解决的现有技术中,在启动视频数据加速下载时,容易导致客户端播放异常的技术问题。
为实现上述目的,本发明提供一种基于HLS流媒体的视频数据加速下载方法,该方法包括:
在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;
在定时器时间达到时,判断所述HLS流媒体的播放请求对应的HLS流媒体是否下载完成;
若所述HLS流媒体的播放请求对应的HLS流媒体未下载完成,则获取缓存区中的数据量;
判断所述数据量是否大于或等于第一预设阀值;
若所述数据量大于或等于第一预设阀值,则判断当前是否通过非加速下载模式下载HLS流媒体的分片文件;并在当前未通过非加速下载模式下载HLS流媒体的分片文件时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件;
若所述数据量小于第一预设阀值,则判断所述数据量是否为零;
若所述数据量为零,则获取在当前时刻之前的预设时间内发送给所述网络媒体客户端的分片文件的第一总时长;
判断所述第一总时长是否为零;
若所述第一总时长不为零,则获取在当前时刻之前的预设时间内发送第一个分片文件的时刻到当前时刻之间的第二总时长;
若所述第二总时长大于第一总时长,则启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件,并控制计数器将计数值加1。
此外,为实现上述目的,本发明还提供一种基于HLS流媒体的视频数据加速下载方法,该方法包括:
在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;
在定时器时间达到时,判断所述HLS流媒体的播放请求对应的HLS流媒体是否下载完成;
若所述HLS流媒体的播放请求对应的HLS流媒体未下载完成,则获取缓存区中的数据量;
判断所述数据量是否大于或等于第一预设阀值;以及
若所述数据量大于或等于第一预设阀值,则启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。
此外,为实现上述目的,本发明还提供一种基于HLS流媒体的视频数据加速下载装置,该装置包括:
启动模块,用于在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;
第一判断模块,用于在定时器时间达到时,判断所述HLS流媒体的播放请求对应的HLS流媒体是否下载完成;
第一获取模块,用于在所述HLS流媒体的播放请求对应的HLS流媒体未下载完成时,获取视频数据加速下载装置中的缓存区中的数据量;
第二判断模块,用于判断所述数据量是否大于或等于第一预设阀值;
第一控制模块,用于在所述数据量大于或等于第一预设阀值时,启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。
本发明的基于HLS流媒体的视频数据加速下载方法及装置,通过在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;在定时器时间达到时,判断所述HLS流媒体的播放请求对应的HLS流媒体是否下载完成;若所述HLS流媒体的播放请求对应的HLS流媒体未下载完成,则获取缓存区中的数据量;判断所述数据量是否大于或等于第一预设阀值;若所述数据量大于或等于第一预设阀值,则启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件;即可在网络状态良好时(缓存区中的数据量大于或等于第一预设阀值时),启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件,在视频数据加速下载装置中缓存尽量多的分片文件,减少网络媒体客户端出现播放异常的情况。
附图说明
图1为本发明基于HLS流媒体的视频数据加速下载方法的第一实施例的流程示意图;
图2为图1中步骤S14的一实施例的细化流程示意图;
图3为本发明基于HLS流媒体的视频数据加速下载方法的第二实施例的流程示意图;
图4为本发明基于HLS流媒体的视频数据加速下载装置的第一实施例的结构示意图;
图5为本发明基于HLS流媒体的视频数据加速下载装置中的第一控制模块的细化结构示意图;
图6为本发明基于HLS流媒体的视频数据加速下载装置的第二实施例的结构示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
参照图1,图1为本发明基于HLS流媒体的视频数据加速下载方法的第一实施例的流程示意图,该方法包括:
S10、在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器。
该播放请求中可包括HLS流媒体的播放列表,播放列表中的每一项对应一个分片文件,每个分片有一个唯一的编号,如,其中一个分片的编号为100,各个分片文件按照播放顺序进行排序,先播放的分片文件的编号较小。该播放列表中的每一项对应的分片文件对应一个URL地址,根据该分片文件对应的URL地址可从网络媒体服务器中获取到对应的分片文件。
在该步骤中,循环启动定时器,可根据需要设置一个定时时长,如定时时长5分钟。
可以理解的是,该网络媒体客户端设置在终端内,可以是终端内部的网络媒体播放器,如系统自带播放器或用户自行安装的播放器等。此处,终端可以是智能移动终端如智能手机、Ipad等或是智能电视等。本实施例中该方法主要应用于终端的视频播放数据下载,以减少终端在启动视频数据加速下载时,导致客户端播放异常情况。
S11、在定时器时间达到时,判断该HLS流媒体的播放请求对应的HLS流媒体是否下载完成,若该HLS流媒体的播放请求对应的HLS流媒体未下载完成,则执行步骤S12,否则执行步骤S15。
在该步骤中,判断该HLS流媒体的播放请求对应的HLS流媒体是否下载完成,如果该HLS流媒体的播放请求对应的HLS流媒体下载完成,则不需要启动多线程加速下载模式下载该HLS流媒体对应的分片文件;如果HLS流媒体的播放请求对应的HLS流媒体未下载完成,则执行后续步骤,以确定是否需要启动多线程加速下载模式下载该HLS流媒体对应的分片文件。
一般的,在终端中预置一个分片文件下载列表,在该分片文件下载列表中记录该HLS流媒体的播放请求对应的HLS流媒体已下载的分片文件。在该步骤中,可通过查看该分片文件下载列表确定该HLS流媒体的播放请求对应的HLS流媒体是否下载完成。
S12、获取缓存区中的数据量。
具体的,缓存区存储了从网络媒体服务器下载且未发送给网络媒体客户端的HLS流媒体的分片文件。从网络媒体服务器下载的HLS流媒体的分片文件先保存到缓存区中,然后再将缓存区中的HLS流媒体的分片文件分送给网络媒体客户端,且在将缓存区中的HLS流媒体的分片文件分送给网络媒体客户端后,将该已分送的HLS流媒体的分片文件从缓存区中删除。
需要说明的是,该缓存区中的数据量是指缓存区中的分片文件的总时长,如当缓存区中分片文件有10个,每个分片文件的播放时长为10s,则该缓存区的数据量为100s。
S13、判断该数据量是否大于或等于第一预设阀值,若该数据量大于或等于第一预设阀值,则执行步骤S14。
具体的,该第一预设阀值可根据需要设置,该第一预设阀值为非零的自然数。可选的,可将该第一预设阀值设置为90s。
在该步骤中,判断该缓存区中的数据量是否大于或等于第一预设阀值,如果该缓存区中的数据量大于或等于第一预设阀值,则说明当前网络状态良好,已从网络媒体服务器中下载到一定数量的分片文件。
S14、启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。
具体的,如果当前网络状态良好,则启动多线程加速下载模式,创建最大允许的任务个数,以从网络媒体服务器中获取HLS流媒体的分片文件,即在当前网络状态良好时,尽可能同时开启多个任务下载分片文件。如在一实施例中,最大允许的任务个数为8个任务,则启动8个任务同时下载HLS流媒体的分片文件,一个任务对应下载一个分片文件,一个任务下载完一个分片文件后,继续下载另一个分片文件。从网络媒体服务器中获取的HLS流媒体的分片文件将保存在缓存区中。
在该步骤中,启动多线程加速下载模式,以下载尽可能多的分片文件,使得在网络媒体客户端在请求分片文件,能及时为网络媒体客户端提供分片文件,避免网络媒体客户端出现播放异常的情况。
S15、关闭定时器。
采用上述实施例,通过在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;在定时器时间达到时,判断该HLS流媒体的播放请求对应的HLS流媒体是否下载完成;若该HLS流媒体的播放请求对应的HLS流媒体未下载完成,则获取缓存区中的数据量;判断该数据量是否大于或等于第一预设阀值;若该数据量大于或等于第一预设阀值,则启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件;即可在网络状态良好时(缓存区中的数据量大于或等于第一预设阀值时),启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件,缓存区中缓存尽量多的分片文件,减少网络媒体客户端出现播放异常的情况。
参照图2,图2为图1中步骤S14步骤的细化流程示意图,该步骤包括:
S141、判断当前是否通过非加速下载模式下载HLS流媒体的分片文件,若当前未通过非加速下载模式下载HLS流媒体的分片文件,则执行步骤S142,否则执行步骤S143。
具体的,HLS流媒体的下载模式包括多线程加速下载模式和非加速下载模式,在非加速下载模式下,终端中负责视频下载的模块或线程直接将从网络媒体服务器中获取的分片文件传输给网络媒体客户端,而不将从网络媒体服务器中获取的分片文件保存到缓存区中,即该终端中负责视频下载的模块或线程直接只是透传网络媒体客户端向网络媒体服务器请求的分片文件。非加速下载模式优先于多线程加速下载模式,在该步骤中,判断终端当前是否通过非加速下载模式下载HLS流媒体的分片文件,如果终端当前正通过非加速下载模式下载HLS流媒体的分片文件,则终端不会同时进行多线程加速下载模式。
S142、启动多线程加速下载模式,以从该网络媒体服务器中获取HLS流媒体的分片文件。
如当前未通过非加速下载模式下载HLS流媒体的分片文件,则终端启动多线程加速下载模式,创建最大允许的任务个数,以从网络媒体服务器中获取HLS流媒体的分片文件。
S143、在非加速下载模式下载完成后且接收到该网络媒体客户端发送的分片获取请求时,启动多线程加速下载模式,以从该网络媒体服务器中获取HLS流媒体的分片文件。
当终端当前通过非加速下载模式下载HLS流媒体的分片文件时,则终端继续按照非加速下载模式由负责视频下载的模块或线程直接透传网络媒体客户端向网络媒体服务器请求的分片文件,在非加速下载模式下载完成后,检测是否接收到网络媒体客户端发送的分片获取请求,若接收到网络媒体客户端的分片获取请求,则启动多线程加速下载模式,并根据该分片获取请求向网络媒体客户端返回对应的分片文件。
采用上述实施例,先判断当前是否通过非加速下载模式下载HLS流媒体的分片文件,根据判断结果确定何时启动多线程加速下载模式;可使得终端在通过非加速下载模式下载HLS流媒体的分片文件时,继续按照当前下载方式,为网络媒体客户端提供先要播放的数据,在非加速下载模式下载完成后,再启动多线程加速下载模式,以下载更多的HLS流媒体的分片文件。
参照图3,图3为本发明基于HLS流媒体的视频数据加速下载方法的第二实施例的流程示意图。
基于上述基于HLS流媒体的视频数据加速下载方法的第一实施例,在步骤S13之后,该方法还包括:
S16、若该数据量小于第一预设阀值,则判断该数据量是否为零,若该数据量为零,则执行步骤S17。
在该步骤中,判断该缓存区中的数据量是否为零,如果该缓存区中的数据量为零,则说明当前网络状态较差,终端中负责视频下载的模块或线程没有从网络媒体服务器中下载到一定数量的分片文件,使得当网络媒体客户端请求分片文件时,终端无法为网络媒体客户端提供足够的分片文件,将导致网络媒体客户端无法正常播放,出现卡顿现象。
S17、获取在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件的第一总时长。
该预设时间通常小于定时器的定时时长。在该步骤中,获取在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件的第一总时长,如在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件有5个,每个分片文件的播放时长为10s,则该第一总时长为50s;如终端在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件为0个,则第一总时长为0。
S18、判断该第一总时长是否为零,若该第一总时长不为零,则执行步骤S19,该第一总时长为零,则执行步骤S21。
S19、获取在当前时刻之前的预设时间内发送第一个分片文件的时刻到当前时刻之间的第二总时长。
在该步骤中,获取在当前时刻之前的预设时间内发送第一个分片文件给网络媒体客户端的时刻,并根据当前时刻,得到终端在当前时刻之前的预设时间内发送第一分片文件到当前时刻的间隔时间,即第二总时长。
S20、若该第二总时长大于第一总时长,则启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件,并控制计数器将计数值加1。
若该第二总时长大于第一总时长,则说明网络媒体客户端出现了卡顿现象(可能是播放真的卡顿了,也可能是用户暂停了网络媒体客户端播放,或其他情况)。在该步骤中,启动多线程加速下载模式,创建最大允许的任务个数,以从网络媒体服务器中获取HLS流媒体的分片文件。在该步骤中,还控制计数器将计数值加1,在初次启动定时器时,该计数器的计数值为0,在循环启动定时器时,该计数器的计数值根据实际情况保持或递增。该计时器记录网络状态较差的次数。
S21、获取计数器的计数值。
S22、若该计数器的计数值为非零,则控制计数器将计数值加1。
若该计数器的计数值为非零,则说明网络媒体客户端之前发生过卡顿现象,控制计数值的计数值加1,即递增网络状态较差的次数。
S23、重新获取计数器的计数值,并在重新获取的计数器的计数值大于预设的次数阀值时,启动多线程加速下载模式,以从该网络媒体服务器中获取HLS流媒体的分片文件。
该次数阀值可根据需要设置,如设置为5次。在该步骤中,在该重新获取的计数值的计数值大于预设的次数阀值时,则说明检测到网络媒体客户端发生卡顿后又经过数次循环定时器到时,网络媒体客户端却一直没有接收到分片文件,此时应该启动多线程加载下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。
采用上述实施例,在缓存区的数据量为零时,即该终端中未缓存到数据,则根据终端在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件的第一总时长和计数器的计数值(表示网络状态较差的次数)确定是否启动多线程加速下载模式,可更加准确的确定启动多线程加速下载模式的时机,以下载更多的HLS流媒体的分片文件。
参照图4,图4为本发明基于HLS流媒体的视频数据加速下载装置的第一实施例结构示意图,该装置包括:
启动模块10,用于在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;
第一判断模块11,用于在定时器时间达到时,判断该HLS流媒体的播放请求对应的HLS流媒体是否下载完成;
第一获取模块12,用于在该HLS流媒体的播放请求对应的HLS流媒体未下载完成时,获取视频数据加速下载装置中的缓存区中的数据量;
第二判断模块13,用于判断该数据量是否大于或等于第一预设阀值;
第一控制模块14,用于在该数据量大于或等于第一预设阀值,启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。该播放请求中可包括HLS流媒体的播放列表,播放列表中的每一项对应一个分片文件,每个分片有一个唯一的编号,如,其中一个分片的编号为100,各个分片文件按照播放顺序进行排序,先播放的分片文件的编号较小。该播放列表中的每一项对应的分片文件对应一个URL地址,根据该分片文件对应的URL地址可从网络媒体服务器中获取到对应的分片文件。
该启动模块10循环启动定时器,可根据需要设置一个定时时长,如定时时长5分钟。
可以理解的是,该网络媒体客户端设置在终端内,可以是终端内部的网络媒体播放器,如系统自带播放器或用户自行安装的播放器等。此处,终端可以是智能移动终端如智能手机、Ipad等或是智能电视等。
该第一判断模块11判断该HLS流媒体的播放请求对应的HLS流媒体是否下载完成,如果该HLS流媒体的播放请求对应的HLS流媒体下载完成,则不需要通过视频数据加速下载装置启动多线程加速下载模式下载该HLS流媒体对应的分片文件;如果HLS流媒体的播放请求对应的HLS流媒体未下载完成,则需要通过第一获取模块12、第二判断模块13和第一控制模块14确定是否需要通过视频数据加速下载装置启动多线程加速下载模式下载该HLS流媒体对应的分片文件。
一般的,在视频数据加速下载装置中预置一个分片文件下载列表,在该分片文件下载列表中记录该HLS流媒体的播放请求对应的HLS流媒体已下载的分片文件。该第一判断模块11可通过查看该分片文件下载列表确定该HLS流媒体的播放请求对应的HLS流媒体是否下载完成。
具体的,该视频数据加速下载装置中的缓存区存储了从网络媒体服务器下载且未发送给网络媒体客户端的HLS流媒体的分片文件。视频数据加速下载装置先将从网络媒体服务器下载的HLS流媒体的分片文件保存到缓存区中,在将缓存区中的HLS流媒体的分片文件分送给网络媒体客户端后,将该已分送的HLS流媒体的分片文件从缓存区中删除。该视频数据加速下载装置连接在网络媒体客户端与网络媒体服务器之间。
需要说明的是,该缓存区中的数据量是指缓存区中的分片文件的总时长,如当缓存区中分片文件有10个,每个分片文件的播放时长为10s,则该缓存区的数据量为100s。
具体的,该第一预设阀值可根据需要设置,该第一预设阀值为非零的自然数。可选的,可将该第一预设阀值设置为90s。
该第二判断模块13判断该缓存区中的数据量是否大于或等于第一预设阀值,如果该缓存区中的数据量大于或等于第一预设阀值,则说明当前网络状态良好,该视频数据加速下载装置已从网络媒体服务器中下载到一定数量的分片文件。
具体的,该第一控制模块14在该数据量大于或等于第一预设阀值(在该数据量大于或等于第一预设阀值时,说明当前网络状态良好),启动多线程加速下载模式,创建最大允许的任务个数,以从网络媒体服务器中获取HLS流媒体的分片文件。如在一实施例中,最大允许的任务个数为8个任务,则该第一控制模块14启动8个任务同时下载HLS流媒体的分片文件,一个任务对应下载一个分片文件,一个任务下载完一个分片文件后,继续下载另一个分片文件。从网络媒体服务器中获取的HLS流媒体的分片文件将保存在缓存区中。
该第一控制模块14启动多线程加速下载模式,以下载尽可能多的分片文件,使得在网络媒体客户端在请求分片文件,能及时为网络媒体客户端提供分片文件,避免网络媒体客户端出现播放异常的情况。
该第一控制模块14,还用于在该第一判断模块11的判断结果为该HLS流媒体的播放请求对应的HLS流媒体下载完成时,关闭定时器。
可以理解的是,该视频数据加速下载装置设置在终端内部,该网络媒体客户端与该视频数据加速下载装置设置在同一个终端内,当需要播放相应视频时,发送播放请求至该视频数据加速下载装置以获取相应视频数据,该终端通过该视频数据加速下载装置从网络媒体服务器获取视频数据。该视频数据加速下载装置可通过软件及/或硬件实现。
采用上述实施例,可在网络状态良好时(缓存区中的数据量大于或等于第一预设阀值时),启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件,缓存区中缓存尽量多的分片文件,减少网络媒体客户端出现播放异常的情况。
进一步的,如图5所示,该第一控制模块14包括:
第一判断单元141,用于在该数据量大于或等于第一预设阀值时,判断视频数据加速下载装置当前是否通过非加速下载模式下载HLS流媒体的分片文件;
第一控制单元142,用于在该网络媒体客户端当前未通过非加速下载模式下载HLS流媒体的分片文件时,启动多线程加速下载模式,以从该网络媒体服务器中获取HLS流媒体的分片文件;
第二控制单元143,用于在该网络媒体客户端当前通过非加速下载模式下载HLS流媒体的分片文件时,则在非加速下载模式下载完成后且接收到该网络媒体客户端发送的分片获取请求时,启动多线程加速下载模式,以从该网络媒体服务器中获取HLS流媒体的分片文件。
具体的,该视频数据加速下载装置中也可进行非加速下载模式,在非加速下载模式下,该视频数据加速下载装置将从网络媒体服务器中获取的分片文件传输给网络媒体客户端,而不将从网络媒体服务器中获取的分片文件保存到缓存区中,即该视频数据下载装置只是透传网络媒体客户端向网络媒体服务器请求的分片文件。
在视频数据加速下载装置中,非加速下载模式优先于多线程加速下载模式,该第一判断单元141判断视频数据加速下载装置当前是否通过非加速下载模式下载HLS流媒体的分片文件,如果该视频数据加速下载装置当前正通过非加速下载模式下载HLS流媒体的分片文件,则视频数据加速下载装置不会同时进行多线程加速下载模式。
如当前未通过非加速下载模式下载HLS流媒体的分片文件,则该第一控制单元142启动多线程加速下载模式,创建最大允许的任务个数,以从该网络媒体服务器中获取HLS流媒体的分片文件。
该第二控制单元143在该视频数据加速下载装置当前通过非加速下载模式下载HLS流媒体的分片文件时,则让该视频数据加速下载装置继续按照非加速下载模式透传网络媒体客户端向网络媒体服务器请求的分片文件,在非加速下载模式下载完成后,检测是否接收到网络媒体客户端发送的分片获取请求,若接收到网络媒体客户端的分片获取请求,则启动多线程加速下载模式,并根据该分片获取请求向网络媒体客户端返回对应的分片文件。
采用上述实施例,第一控制模块14先判断当前是否通过非加速下载模式下载HLS流媒体的分片文件,根据判断结果确定何时启动多线程加速下载模式;可使得终端在通过非加速下载模式下载HLS流媒体的分片文件时,继续按照当前下载方式,为网络媒体客户端提供先要播放的数据,在非加速下载模式下载完成后,再启动多线程加速下载模式,以下载更多的HLS流媒体的分片文件。
参照图6,图6为本发明基于HLS流媒体的视频数据加速下载装置的第二实施例的结构示意图。
基于上述基于HLS流媒体的视频数据加速下载装置的第一实施例,该装置还包括:
第三判断模块15,用于在该第二判断模块的判断结果为该数据量小于第一预设阀值时,判断该数据量是否为零;
第二获取模块16,用于在该数据量为零时,获取该视频数据加速下载装置在当前时刻之前的预设时间内发送给该网络媒体客户端的分片文件的第一总时长;
第三获取模块17,用于在该第一总时长不为零时,获取该视频数据加速下载装置在当前时刻之前的预设时间内发送第一个分片文件的时刻到当前时刻之间的第二总时长;
第三控制模块18,用于在该第二总时长大于第一总时长时,启动多线程加速下载模式,以从该网络媒体服务器中获取HLS流媒体的分片文件,并控制计数器将计数值加1;
第四获取模块19,用于在该第一总时长为零时,获取计数器的计数值;
第四控制模块20,用于在该计数器的计数值为非零时,控制计数器将计数值加1;
第五控制模块21,用于重新获取计数器的计数值,并在重新获取的计数器的计数值大于预设的次数阀值时,启动多线程加速下载模式,以从该网络媒体服务器中获取HLS流媒体的分片文件。
该第三判断模块15判断该缓存区中的数据量是否为零,如果该缓存区中的数据量为零,则说明当前网络状态较差,该视频数据加速下载装置没有从网络媒体服务器中下载到一定数量的分片文件,使得当网络媒体客户端向该视频数据加速下载装置请求分片文件时,该视频数据加速下载装置无法为网络媒体客户端提供足够的分片文件,将导致网络媒体客户端无法正常播放,出现卡顿现象。
该预设时间通常小于定时器的定时时长。该第二获取模块16获取视频数据加速下载装置在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件的第一总时长,如该视频数据加速下载装置在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件有5个,每个分片文件的播放时长为10s,则该第一总时长为50s;如该视频数据加速下载装置在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件为0个,则第一总时长为0。
该第三获取模块17获取视频数据加速下载装置在当前时刻之前的预设时间内发送第一个分片文件给网络媒体客户端的时刻,并根据当前时刻,得到视频数据加速下载装置在当前时刻之前的预设时间内发送第一分片文件到当前时刻的间隔时间,即第二总时长。
若该第二总时长大于第一总时长,则说明网络媒体客户端出现了卡顿现象(可能是播放真的卡顿了,也可能是用户暂停了网络媒体客户端播放,或其他情况)。该第三控制模块18控制视频数据加速下载装置启动多线程加速下载模式,创建最大允许的任务个数,以从网络媒体服务器中获取HLS流媒体的分片文件。该第三第一控制模块14还控制计数器将计数值加1,在初次启动定时器时,该计数器的计数值为0,在循环启动定时器时,该计数器的计数值根据实际情况保持或递增。该计时器记录网络状态较差的次数。
若该计数器的计数值为非零,则说明网络媒体客户端之前发生过卡顿现象,该第四控制模块20控制计数值的计数值加1,即递增网络状态较差的次数。
该次数阀值可根据需要设置,如设置为5次。在该重新获取的计数值的计数值大于预设的次数阀值时,则说明检测到网络媒体客户端发生卡顿后又经过数次循环定时器到时,网络媒体客户端却一直没有接收到分片文件,则该第五控制模块21控制视频数据加载装置启动多线程加载下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。
采用上述实施例,在缓存区的数据量为零时,即该终端中未缓存到数据,则根据终端在当前时刻之前的预设时间内发送给网络媒体客户端的分片文件的第一总时长和计数器的计数值(表示网络状态较差的次数)确定是否启动多线程加速下载模式,可更加准确的确定启动多线程加速下载模式,以下载更多的HLS流媒体的分片文件。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (15)
- 一种基于HLS流媒体的视频数据加速下载方法,其特征在于,该方法包括:在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;在定时器时间达到时,判断所述HLS流媒体的播放请求对应的HLS流媒体是否下载完成;若所述HLS流媒体的播放请求对应的HLS流媒体未下载完成,则获取缓存区中的数据量;判断所述数据量是否大于或等于第一预设阀值;若所述数据量大于或等于第一预设阀值,则判断当前是否通过非加速下载模式下载HLS流媒体的分片文件;并在当前未通过非加速下载模式下载HLS流媒体的分片文件时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件;若所述数据量小于第一预设阀值,则判断所述数据量是否为零;若所述数据量为零,则获取在当前时刻之前的预设时间内发送给所述网络媒体客户端的分片文件的第一总时长;判断所述第一总时长是否为零;若所述第一总时长不为零,则获取在当前时刻之前的预设时间内发送第一个分片文件的时刻到当前时刻之间的第二总时长;若所述第二总时长大于第一总时长,则启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件,并控制计数器将计数值加1。
- 如权利要求1所述的基于HLS流媒体的视频数据加速下载方法,其特征在于,所述判断当前是否通过非加速下载模式下载HLS流媒体的分片文件之后还包括:若当前通过非加速下载模式下载HLS流媒体的分片文件,则在非加速下载模式下载完成后且接收到所述网络媒体客户端发送的分片获取请求时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求1所述的基于HLS流媒体的视频数据加速下载方法,其特征在于,所述判断所述第一总时长是否为零的步骤之后,该方法还包括:若所述第一总时长为零,则获取计数器的计数值;若所述计数器的计数值为非零,则控制计数器将计数值加1;重新获取计数器的计数值,并在重新获取的计数器的计数值大于预设的次数阀值时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 一种基于HLS流媒体的视频数据加速下载方法,其特征在于,该方法包括:在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;在定时器时间达到时,判断所述HLS流媒体的播放请求对应的HLS流媒体是否下载完成;若所述HLS流媒体的播放请求对应的HLS流媒体未下载完成,则获取缓存区中的数据量;判断所述数据量是否大于或等于第一预设阀值;以及若所述数据量大于或等于第一预设阀值,则启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求4所述的基于HLS流媒体的视频数据加速下载方法,其特征在于,所述启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件的步骤包括:判断当前是否通过非加速下载模式下载HLS流媒体的分片文件;若当前未通过非加速下载模式下载HLS流媒体的分片文件,则启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求5所述的基于HLS流媒体的视频数据加速下载方法,其特征在于,所述启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件的步骤还包括:若当前通过非加速下载模式下载HLS流媒体的分片文件,则在非加速下载模式下载完成后且接收到所述网络媒体客户端发送的分片获取请求时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求4所述的基于HLS流媒体的视频数据加速下载方法,其特征在于,所述判断所述数据量是否大于或等于第一预设阀值的步骤之后,该方法还包括:若所述数据量小于第一预设阀值,则判断所述数据量是否为零;若所述数据量为零,则获取在当前时刻之前的预设时间内发送给所述网络媒体客户端的分片文件的第一总时长;判断所述第一总时长是否为零;若所述第一总时长不为零,则获取在当前时刻之前的预设时间内发送第一个分片文件的时刻到当前时刻之间的第二总时长;若所述第二总时长大于第一总时长,则启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件,并控制计数器将计数值加1。
- 如权利要求7所述的基于HLS流媒体的视频数据加速下载方法,其特征在于,所述判断所述第一总时长是否为零的步骤之后,该方法还包括:若所述第一总时长为零,则获取计数器的计数值;若所述计数器的计数值为非零,则控制计数器将计数值加1;重新获取计数器的计数值,并在重新获取的计数器的计数值大于预设的次数阀值时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 一种基于HLS流媒体的视频数据加速下载装置,其特征在于,该装置包括:启动模块,用于在接收到网络媒体客户端发送的HLS流媒体的播放请求时,循环启动定时器;第一判断模块,用于在定时器时间达到时,判断所述HLS流媒体的播放请求对应的HLS流媒体是否下载完成;第一获取模块,用于在所述HLS流媒体的播放请求对应的HLS流媒体未下载完成时,获取视频数据加速下载装置中的缓存区中的数据量;第二判断模块,用于判断所述数据量是否大于或等于第一预设阀值;第一控制模块,用于在所述数据量大于或等于第一预设阀值时,启动多线程加速下载模式,以从网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求9所述的基于HLS流媒体的视频数据加速下载装置,其特征在于,所述第一控制模块包括:第一判断单元,用于在所述数据量大于或等于第一预设阀值时,判断所述视频数据加速下载装置当前是否通过非加速下载模式下载HLS流媒体的分片文件;第一控制单元,用于在所述视频数据加速下载装置当前未通过非加速下载模式下载HLS流媒体的分片文件时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求10所述的基于HLS流媒体的视频数据加速下载装置,其特征在于,所述第一控制模块还包括:第二控制单元,用于在所述视频数据加速下载装置当前通过非加速下载模式下载HLS流媒体的分片文件时,则在非加速下载模式下载完成后且接收到所述网络媒体客户端发送的分片获取请求时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求9所述的基于HLS流媒体的视频数据加速下载装置,其特征在于,所述装置还包括:第三判断模块,用于在所述第二判断模块的判断结果为所述数据量小于第一预设阀值时,判断所述数据量是否为零;第二获取模块,用于在所述数据量为零时,获取所述视频数据加速下载装置在当前时刻之前的预设时间内发送给所述网络媒体客户端的分片文件的第一总时长;第三获取模块,用于在所述第一总时长不为零时,获取所述视频数据加速下载装置在当前时刻之前的预设时间内发送第一个分片文件的时刻到当前时刻之间的第二总时长;第三控制模块,用于在所述第二总时长大于第一总时长时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件,并控制计数器将计数值加1。
- 如权利要求12所述的基于HLS流媒体的视频数据加速下载装置,其特征在于,所述装置还包括:第四获取模块,用于在所述第一总时长为零时,获取计数器的计数值;第四控制模块,用于在所述计数器的计数值为非零时,控制计数器将计数值加1;第五控制模块,用于重新获取计数器的计数值,并在重新获取的计数器的计数值大于预设的次数阀值时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求12所述的基于HLS流媒体的视频数据加速下载装置,其特征在于,所述第一控制模块包括:第一判断单元,用于在所述数据量大于或等于第一预设阀值时,判断所述视频数据加速下载装置当前是否通过非加速下载模式下载HLS流媒体的分片文件;第一控制单元,用于在所述视频数据加速下载装置当前未通过非加速下载模式下载HLS流媒体的分片文件时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
- 如权利要求14所述的基于HLS流媒体的视频数据加速下载装置,其特征在于,所述第一控制模块还包括:第二控制单元,用于在所述视频数据加速下载装置当前通过非加速下载模式下载HLS流媒体的分片文件时,则在非加速下载模式下载完成后且接收到所述网络媒体客户端发送的分片获取请求时,启动多线程加速下载模式,以从所述网络媒体服务器中获取HLS流媒体的分片文件。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510991756.1A CN105611328B (zh) | 2015-12-25 | 2015-12-25 | 基于hls流媒体的视频数据加速下载方法及装置 |
CN201510991756.1 | 2015-12-25 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017107378A1 true WO2017107378A1 (zh) | 2017-06-29 |
Family
ID=55990819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/083871 WO2017107378A1 (zh) | 2015-12-25 | 2016-05-30 | 基于hls流媒体的视频数据加速下载方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105611328B (zh) |
WO (1) | WO2017107378A1 (zh) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769326A (zh) * | 2019-11-21 | 2020-02-07 | 广州华多网络科技有限公司 | 视频切片文件的加载、视频文件的播放方法和装置 |
CN112243138A (zh) * | 2019-07-16 | 2021-01-19 | 中国移动通信集团浙江有限公司 | Cdn网络故障诊断方法、装置、设备和存储介质 |
CN112527811A (zh) * | 2020-12-22 | 2021-03-19 | 山东鲁能软件技术有限公司 | 一种指标监控数据实时更新方法及系统 |
CN114679438A (zh) * | 2022-03-03 | 2022-06-28 | 上海艾策通讯科技股份有限公司 | 流媒体数据传输方法、装置、计算机设备和存储介质 |
US11622164B2 (en) | 2019-07-12 | 2023-04-04 | Carrier Corporation | System and method for streaming video/s |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611328B (zh) * | 2015-12-25 | 2019-01-01 | 深圳Tcl新技术有限公司 | 基于hls流媒体的视频数据加速下载方法及装置 |
CN109803167A (zh) * | 2017-11-17 | 2019-05-24 | 中国电信股份有限公司 | 流媒体文件传输方法、流媒体客户端和计算机可读存储介质 |
CN110149524B (zh) * | 2018-02-11 | 2021-12-14 | 腾讯科技(深圳)有限公司 | 直播流切片系统、直播流切片方法、装置及可读介质 |
CN109587580A (zh) * | 2018-11-15 | 2019-04-05 | 湖南快乐阳光互动娱乐传媒有限公司 | 基于自适应cdn的视频分段下载方法及系统 |
CN109640053A (zh) * | 2018-12-27 | 2019-04-16 | 四川九洲电器集团有限责任公司 | 一种采集多协议流媒体设备异常实时流方法 |
CN110471709B (zh) * | 2019-07-15 | 2022-12-06 | 北京字节跳动网络技术有限公司 | 一种加速网页打开速度的方法、装置、介质和电子设备 |
CN112261118B (zh) * | 2020-10-19 | 2022-03-25 | 腾讯科技(深圳)有限公司 | 多媒体数据的异常检测方法、终端及服务器 |
CN114666627A (zh) * | 2022-03-01 | 2022-06-24 | 深圳市博安智控科技有限公司 | 一种流媒体视频预加载的方法、装置、电子设备以及存储介质 |
CN116192816B (zh) * | 2022-06-01 | 2024-08-13 | 中兴通讯股份有限公司 | 数据传输方法、发送服务器、接收服务器及存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327415A (zh) * | 2013-06-05 | 2013-09-25 | 北京奇虎科技有限公司 | 一种加速网络视频下载的方法和装置 |
CN103957431A (zh) * | 2014-04-30 | 2014-07-30 | 深圳创维数字技术股份有限公司 | 一种流媒体传输控制方法及流媒体服务器 |
CN104320424A (zh) * | 2014-11-20 | 2015-01-28 | 三星电子(中国)研发中心 | 一种流媒体分片下载方法和装置 |
WO2015150812A1 (en) * | 2014-04-03 | 2015-10-08 | Orbital Multi Media Holdings Corporation | Data flow control method and system |
CN105025330A (zh) * | 2014-04-30 | 2015-11-04 | 深圳Tcl新技术有限公司 | 基于dash协议的媒体文件播控方法和装置 |
CN105611328A (zh) * | 2015-12-25 | 2016-05-25 | 深圳Tcl新技术有限公司 | 基于hls流媒体的视频数据加速下载方法及装置 |
-
2015
- 2015-12-25 CN CN201510991756.1A patent/CN105611328B/zh active Active
-
2016
- 2016-05-30 WO PCT/CN2016/083871 patent/WO2017107378A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327415A (zh) * | 2013-06-05 | 2013-09-25 | 北京奇虎科技有限公司 | 一种加速网络视频下载的方法和装置 |
WO2015150812A1 (en) * | 2014-04-03 | 2015-10-08 | Orbital Multi Media Holdings Corporation | Data flow control method and system |
CN103957431A (zh) * | 2014-04-30 | 2014-07-30 | 深圳创维数字技术股份有限公司 | 一种流媒体传输控制方法及流媒体服务器 |
CN105025330A (zh) * | 2014-04-30 | 2015-11-04 | 深圳Tcl新技术有限公司 | 基于dash协议的媒体文件播控方法和装置 |
CN104320424A (zh) * | 2014-11-20 | 2015-01-28 | 三星电子(中国)研发中心 | 一种流媒体分片下载方法和装置 |
CN105611328A (zh) * | 2015-12-25 | 2016-05-25 | 深圳Tcl新技术有限公司 | 基于hls流媒体的视频数据加速下载方法及装置 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11622164B2 (en) | 2019-07-12 | 2023-04-04 | Carrier Corporation | System and method for streaming video/s |
CN112243138A (zh) * | 2019-07-16 | 2021-01-19 | 中国移动通信集团浙江有限公司 | Cdn网络故障诊断方法、装置、设备和存储介质 |
CN112243138B (zh) * | 2019-07-16 | 2023-04-11 | 中国移动通信集团浙江有限公司 | Cdn网络故障诊断方法、装置、设备和存储介质 |
CN110769326A (zh) * | 2019-11-21 | 2020-02-07 | 广州华多网络科技有限公司 | 视频切片文件的加载、视频文件的播放方法和装置 |
CN112527811A (zh) * | 2020-12-22 | 2021-03-19 | 山东鲁能软件技术有限公司 | 一种指标监控数据实时更新方法及系统 |
CN114679438A (zh) * | 2022-03-03 | 2022-06-28 | 上海艾策通讯科技股份有限公司 | 流媒体数据传输方法、装置、计算机设备和存储介质 |
CN114679438B (zh) * | 2022-03-03 | 2024-04-30 | 上海艾策通讯科技股份有限公司 | 流媒体数据传输方法、装置、计算机设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN105611328B (zh) | 2019-01-01 |
CN105611328A (zh) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017107378A1 (zh) | 基于hls流媒体的视频数据加速下载方法及装置 | |
WO2018036057A1 (zh) | 软件后台自适应升级方法及装置 | |
WO2014187158A1 (zh) | 终端数据云分享的控制方法、服务器及终端 | |
WO2016091011A1 (zh) | 字幕切换方法及装置 | |
WO2017177524A1 (zh) | 音视频同步播放的方法及装置 | |
WO2016165556A1 (zh) | 一种视频流的数据处理方法、装置和系统 | |
WO2018018681A1 (zh) | 视频节目预览方法及装置 | |
WO2019037396A1 (zh) | 账户清结算方法、装置、设备及存储介质 | |
WO2016192270A1 (zh) | 媒体文件的快速启播方法及装置 | |
WO2019128174A1 (zh) | 音频播放方法、智能电视及计算机可读存储介质 | |
WO2016192254A1 (zh) | 网络视频在线播放的方法和装置 | |
WO2017045441A1 (zh) | 基于智能电视的音频播放方法及装置 | |
WO2019051902A1 (zh) | 终端控制方法、空调器及计算机可读存储介质 | |
WO2016090991A1 (zh) | 流媒体数据的下载方法及装置 | |
WO2017206377A1 (zh) | 同步播放节目的方法和装置 | |
WO2017088427A1 (zh) | 音频输出控制方法及装置 | |
WO2017020649A1 (zh) | 音视频播放控制方法及装置 | |
WO2017219485A1 (zh) | 智能电视及其控制方法 | |
WO2018126888A1 (zh) | 电视功能的快捷启动设置方法及装置 | |
WO2015154639A1 (en) | Method and apparatus for recording and replaying video of terminal | |
WO2018023926A1 (zh) | 电视与移动终端的互动方法及系统 | |
WO2016101252A1 (zh) | 智能电视的频道信息显示方法及装置 | |
WO2018086291A1 (zh) | 资源调度方法、装置、设备及计算机可读存储介质 | |
WO2019210574A1 (zh) | 消息处理方法、装置、设备及可读存储介质 | |
WO2018006581A1 (zh) | 智能电视的播放方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16877192 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16877192 Country of ref document: EP Kind code of ref document: A1 |