CN109889868A - Video playing method and system - Google Patents

Video playing method and system Download PDF

Info

Publication number
CN109889868A
CN109889868A CN201910288686.1A CN201910288686A CN109889868A CN 109889868 A CN109889868 A CN 109889868A CN 201910288686 A CN201910288686 A CN 201910288686A CN 109889868 A CN109889868 A CN 109889868A
Authority
CN
China
Prior art keywords
video
cdn
time
download
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910288686.1A
Other languages
Chinese (zh)
Inventor
严斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan MgtvCom Interactive Entertainment Media Co Ltd
Original Assignee
Hunan MgtvCom Interactive Entertainment Media Co Ltd
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 Hunan MgtvCom Interactive Entertainment Media Co Ltd filed Critical Hunan MgtvCom Interactive Entertainment Media Co Ltd
Priority to CN201910288686.1A priority Critical patent/CN109889868A/en
Publication of CN109889868A publication Critical patent/CN109889868A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video playing method and a video playing system, which prompt a user to download a designated video in advance, or predict the video in the hit according to the video watching behavior of the user; judging whether the storage space is more than N times of the size of the video file to be downloaded, if not, judging that the space is insufficient, and repeatedly judging whether the storage space is more than N times of the size of the video file to be downloaded; if yes, adding the video task into a download queue, judging whether the current time is at the CDN bandwidth peak time or not in the terminal network idle time, and starting downloading if the current time is not at the CDN bandwidth peak time; and judging whether the local video exists, if so, directly playing the local video, and if not, requesting the CDN to pull the video stream. The method and the device can reduce the probability that the CDN video needs to be requested in real time when the video is played, thereby reducing the probability of occurrence of blocking and playing failure and improving the playing experience; the probability of accessing the CDN within the bandwidth peak time of the CDN is reduced, so that the bandwidth cost is reduced.

Description

A kind of video broadcasting method and system
Technical field
The present invention relates to video broadcasting field, specifically a kind of video broadcasting method and system.
Background technique
Video broadcasting field, user is if necessary to watch a video, by a video flowing address, from CDN(content point Hairnet network) in real time foradownloaded video data play out.During video flowing is pulled from CDN, it is possible to can be because of network jitter Or network quality it is long-term it is poor etc. there is the case where video playing Caton, cause to play experience bad, it is also possible to because making Lead to flow consumption problem with cellular network broadcasting.
User concentrates behavior using video APP having time simultaneously, will form a CDN bandwidth peak, video is caused to provide There is higher CDN network bandwidth expense in quotient.
There are following Railway Projects for the prior art:
1. viewing video is required to download in real time from CDN every time, because the probability that Caton occurs in network problem is high;
2. user's viewing time is more concentrated, bandwidth peak is formed, causes video provider CDN bandwidth costly.
Summary of the invention
The technical problem to be solved by the present invention is in view of the shortcomings of the prior art, providing a kind of video broadcasting method and being System, by way of active prompt and active predicting, in conjunction with bandwidth peak estimate of situation, in advance by video push to user terminal On, when reaching user's viewing video, without the purpose of real-time foradownloaded video.
In order to solve the above technical problems, the technical scheme adopted by the invention is that: a kind of video broadcasting method, including it is following Step:
1) prompt user downloads designated in advance, or according to the video-see behavior of user, predicts the video of hit;
2) judge whether memory space is N times or more of video file size for needing to download, if not, then it is assumed that insufficient space, Repeat step 2;If so, entering step 3);
3) downloading queue is added in video task, in terminal network free time, judges whether current time is in CDN band broad peak It is worth the time, starts downloading if being not at the CDN bandwidth peak time, the return step if in the CDN bandwidth peak time 2);
4) judge locally whether there is buffered video, have and then directly play local video, then CDN is not requested to pull video flowing.
In the present invention, N=5.
Correspondingly, the present invention also provides a kind of audio/video player systems comprising:
Prediction module, for prompting user to download designated in advance, or according to the video-see behavior of user, prediction hit Video;
First judgment module, for judging whether memory space is N times or more of video file size for needing to download, if it is not, Then think insufficient space, repetition judge whether memory space is N times or more of the video file size for needing to download, up to space Abundance executes the operation of the second judgment module;If so, executing the operation of the second judgment module;
Second judgment module judges that current time is in terminal network free time for downloading queue to be added in video task It is no to be in the CDN bandwidth peak time, start downloading if being not at the CDN bandwidth peak time, if being in CDN bandwidth peak Time then executes the operation of first judgment module;
Playing module has for judging locally whether there is buffered video and then directly plays local video, do not request CDN then Pull video flowing.
Compared with prior art, the advantageous effect of present invention is that: the needs when present invention can reduce video playing By the probability of Real time request CDN video, to reduce the probability for Caton occur, playing failure, is promoted and play experience;It reduces The probability of access CDN in the CDN bandwidth peak time, to reduce bandwidth expense.
Detailed description of the invention
Fig. 1 is that the present invention pushes away video download flow chart in advance;
Fig. 2 is that the present invention pushes away video playing flow chart in advance.
Specific embodiment
1. actively prompting user to download designated in advance in video software interface button, user chooses video necessarily to order In;Active predicting analyzes video-see behavior inside video software: according to the video-see behavior of user, predict the hit which Video.It has seen a TV play collect more before such as, and has had updated new collection of drama and then hit.Synchronous one has repeatedly been seen before such as It portion's video and does not finish watching, then hits;
2. judging whether memory space is enough after hitting video according to step 1, (memory space is desirable to memory space enough 5 times or more of the video file size of downloading) then hit, otherwise it is assumed that insufficient space, cannot influence equipment runnability;
3. after the hit of step 2 memory space, downloading queue is added in video task, in terminal network free time, judgement is worked as Whether the preceding time is in the CDN bandwidth peak time, starts downloading if being not at the CDN bandwidth peak time, if being in CDN The bandwidth peak time then continues poll;
First judge locally whether there is buffered video when video playing, has and then directly play local video, then CDN is not requested to draw Take video flowing.

Claims (4)

1. a kind of video broadcasting method, which comprises the following steps:
1) prompt user downloads designated in advance, or according to the video-see behavior of user, predicts the video of hit;
2) judge whether memory space is N times or more of video file size for needing to download, if not, then it is assumed that insufficient space, Repeat step 2;If so, entering step 3);
3) downloading queue is added in video task, in terminal network free time, judges whether current time is in CDN band broad peak It is worth the time, starts downloading if being not at the CDN bandwidth peak time, the return step if in the CDN bandwidth peak time 2);
4) judge locally whether there is buffered video, have and then directly play local video, then CDN is not requested to pull video flowing.
2. video broadcasting method according to claim 1, which is characterized in that N=5.
3. a kind of audio/video player system characterized by comprising
Prediction module, for prompting user to download designated in advance, or according to the video-see behavior of user, prediction hit Video;
First judgment module, for judging whether memory space is N times or more of video file size for needing to download, if it is not, Then think insufficient space, repetition judge whether memory space is N times or more of the video file size for needing to download, up to space Abundance executes the operation of the second judgment module;If so, executing the operation of the second judgment module;
Second judgment module judges that current time is in terminal network free time for downloading queue to be added in video task It is no to be in the CDN bandwidth peak time, start downloading if being not at the CDN bandwidth peak time, if being in CDN bandwidth peak Time then executes the operation of first judgment module;
Playing module has for judging locally whether there is buffered video and then directly plays local video, do not request CDN then Pull video flowing.
4. audio/video player system according to claim 3, which is characterized in that N=5.
CN201910288686.1A 2019-04-11 2019-04-11 Video playing method and system Pending CN109889868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910288686.1A CN109889868A (en) 2019-04-11 2019-04-11 Video playing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910288686.1A CN109889868A (en) 2019-04-11 2019-04-11 Video playing method and system

Publications (1)

Publication Number Publication Date
CN109889868A true CN109889868A (en) 2019-06-14

Family

ID=66936880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910288686.1A Pending CN109889868A (en) 2019-04-11 2019-04-11 Video playing method and system

Country Status (1)

Country Link
CN (1) CN109889868A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184021A (en) * 2007-12-14 2008-05-21 华为技术有限公司 A method, device and system for realizing streaming media cache replacement
CN103037260A (en) * 2005-12-29 2013-04-10 联合视频制品公司 System and method for resolving conflicts and managing system resources of a multimedia distribution system
US20150181299A1 (en) * 2008-09-02 2015-06-25 Qualcomm Incorporated Deployment and Distribution Model for Improved Content Delivery System
CN104754384A (en) * 2015-04-02 2015-07-01 乐视致新电子科技(天津)有限公司 Video playing method and device based on intelligent router
CN107566857A (en) * 2017-08-31 2018-01-09 北京奇艺世纪科技有限公司 A kind of method for downloading video, device, system, server and terminal
CN107644068A (en) * 2017-09-06 2018-01-30 咪咕音乐有限公司 A kind of multimedia file processing method, device, system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037260A (en) * 2005-12-29 2013-04-10 联合视频制品公司 System and method for resolving conflicts and managing system resources of a multimedia distribution system
CN101184021A (en) * 2007-12-14 2008-05-21 华为技术有限公司 A method, device and system for realizing streaming media cache replacement
US20150181299A1 (en) * 2008-09-02 2015-06-25 Qualcomm Incorporated Deployment and Distribution Model for Improved Content Delivery System
CN104754384A (en) * 2015-04-02 2015-07-01 乐视致新电子科技(天津)有限公司 Video playing method and device based on intelligent router
CN107566857A (en) * 2017-08-31 2018-01-09 北京奇艺世纪科技有限公司 A kind of method for downloading video, device, system, server and terminal
CN107644068A (en) * 2017-09-06 2018-01-30 咪咕音乐有限公司 A kind of multimedia file processing method, device, system and storage medium

Similar Documents

Publication Publication Date Title
CN111641866B (en) Method, system, and medium for inserting auxiliary media items into a primary media stream
CN111135569B (en) Cloud game processing method and device, storage medium and electronic equipment
US9055502B2 (en) Content-based handover method and system
CN103024456A (en) Online video playing method and video playing server
WO2017063399A1 (en) Video playback method and device
US8244897B2 (en) Content reproduction apparatus, content reproduction method, and program
US20100175079A1 (en) Video ad delivery using configurable video ad policies
CN111083514B (en) Live broadcast method and device, electronic equipment and storage medium
CN103024440A (en) Video quality evaluation and fault diagnosis method aiming at HAS (HTTP Adaptive Streaming)
CN103686375A (en) Video sharing method and device
JP2010004309A (en) Server, method, and program for generating digest video of moving image content
US8176195B2 (en) Media distribution with service continuity
CN105072480B (en) A kind of net cast method and device
CN105916030A (en) A method, device and system for recording video-on-demand breakpoint information
CN105187895A (en) Data-caching method and system for playing videos on mobile platform by means of hardware acceleration
CN105916008A (en) Video buffering method and device
CN105791987B (en) media data playing method and terminal
CN111385660B (en) Video on demand method, device, equipment and storage medium
CN103248921B (en) Advertisement broadcast method, Apparatus and system
US11870831B2 (en) Method and apparatus for playing multimedia streaming data
CN106612462B (en) Fast forward and fast backward processing method and terminal
CN107484040A (en) A kind of method for realizing network acceleration
WO2015117291A1 (en) Method and device for switching network television program, and television system
CN112866755B (en) Video playing method and device, electronic equipment and storage medium
CN109889868A (en) Video playing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614