Media playing method and device

A technology of media playback and playback location, applied in image communication, selective content distribution, electrical components, etc., which can solve problems such as user traffic, time and equipment power waste, complex caching or management of small slice files, and reduced user playback experience

Inactive Publication Date: 2017-03-29
SHENZHEN TENCENT COMP SYST CO LTD
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the HLS protocol has a big disadvantage: HLS requires the video stream to be divided into a large number of small TS video files. As the viewing time increases, a large number of fragmented files will be generated in the mobile phone, and the storage I/O requirements are quite demanding. , caching or managing these small slice files is very complicated, and a little careless handling will lead to accidental deletion of fragmented files, failure to find them, affecting request speed, etc., which in turn will affect the user's viewing experience
[0006] The existing technical solution will cause three problems: (1) When the user performs a seek operation in the direction of the start position of the video, the player must re-download the TS segment at the position where the seek is located, and the segment has been downloaded and played before being released, resulting in It reduces the waste of traffic and increases the waiting time for the user to play a

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Media playing method and device
  • Media playing method and device
  • Media playing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0031] The main idea of ​​the solution of the embodiment of the present invention is: when the terminal browser loads the HLS media webpage, extract the URL of the video; according to the URL of the video, find whether there is a corresponding media cache file locally in the terminal; if there is no corresponding media cache file in the terminal locally, If there is a media cache file in the HLS media web page, a download task corresponding to the URL is created, and the TS segment of the predetermined segment is pre-cached; Whether the download of the above media file is completed; when the download of the media file is not completed, find the TS segment that has not been downloaded in the media file, download it in a multi-threaded manner, and continuously play the TS segment of the downloaded media file during the d...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a media playing method and device. The method comprises the following steps: extracting a URL (Uniform Resource Locator) of a video in a webpage when a terminal browser loads an HLS (Http Live Streaming) media webpage; finding whether a corresponding media cache file exists locally in a terminal or not according to the URL of the video; if the corresponding media cache file does not exist locally in the terminal, creating a download task corresponding to the URL, and pre-caching TS fragments of a predetermined segment; when a playing instruction of a user for a media file in the HLS media webpage is received, playing the pre-cached TS fragments, and judging whether the downloading of the media file is finished or not; and when the downloading of the media file is not finished; finding TS fragments which are not downloaded in the media file, downloading the TS fragments in a multithread way, and continuously playing the downloaded TS fragments of the media file in a downloading process. Through adoption of the media playing method and device, multiplexing of caching and downloading is performed, so that cache management of the video is realized; the play waiting time of the user is shortened; traffic consumption is lowered; and the user play experience is improved.

Description

technical field [0001] The present invention relates to the technical field of media playing, in particular to a media playing method and device. Background technique [0002] At present, when a user uses a mobile client to watch a video of a video website, most of the video website will distribute the video stream based on the HLS (HTTP Live Streaming, real-time streaming) protocol. [0003] The biggest advantages of the HLS protocol are: easy deployment, easy distribution, relatively low performance requirements on the server, and support for adaptive bit rate playback. [0004] However, the HLS protocol has a big disadvantage: HLS requires the video stream to be divided into a large number of small TS video files. As the viewing time increases, a large number of fragmented files will be generated in the mobile phone, and the storage I / O requirements are quite demanding. , caching or managing these small slice files is very complicated, and a little careless handling will...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04N21/433H04N21/438H04N21/858
CPCH04N21/4331H04N21/438H04N21/8586
Inventor 应玉龙
Owner SHENZHEN TENCENT COMP SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products