CN105812893B - The method and system of page video playing - Google Patents

The method and system of page video playing Download PDF

Info

Publication number
CN105812893B
CN105812893B CN201410848064.7A CN201410848064A CN105812893B CN 105812893 B CN105812893 B CN 105812893B CN 201410848064 A CN201410848064 A CN 201410848064A CN 105812893 B CN105812893 B CN 105812893B
Authority
CN
China
Prior art keywords
video
sub
virtual address
address url
player
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410848064.7A
Other languages
Chinese (zh)
Other versions
CN105812893A (en
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201410848064.7A priority Critical patent/CN105812893B/en
Publication of CN105812893A publication Critical patent/CN105812893A/en
Application granted granted Critical
Publication of CN105812893B publication Critical patent/CN105812893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses the methods of page video playing, which comprises is instructed by browser according to page video playing, is video creation memory block to be played, and is the virtual address url of memory area configuration;Corresponding video is downloaded from network server end, the video is stored to the memory block, and the virtual address url is sent to player;The player obtains the video from the memory block according to the virtual address url, and is decoded broadcasting to the video.The invention also discloses a kind of systems of page video playing.The method and system of page video playing provided by the present invention, player need to only execute the operation that video decoding plays, without executing video download and video network agreement matching operation, versatility is good, operation task is simple, greatly reduce the operating pressure of player, to improve the response speed of video playing, the experience effect that user watches video is greatly increased.

Description

The method and system of page video playing
Technical field
The present invention relates to field of video broadcasting technology more particularly to a kind of method and systems of page video playing.
Background technique
When watching video web page online on smart television, traditional processing mode is: clear when user clicks video link Device of looking at gets the address url of corresponding video, then carries out adding first-class processing to the address url, and the address url after processing is sent To player, video download is carried out according to the address url by player, player is in real time by video in a manner of notification message The state of downloading and processing feeds back to browser end, and since the network protocol of video has in very much, player is in foradownloaded video It also needs to carry out video network agreement matching operation simultaneously, video playing is carried out using matched network protocol.
The broadcast mode of existing this video web page, player need support a variety of different network protocols to meet not With the broadcast request of video, since player needs to be implemented video download, the matching of video network agreement and video decoding are played Operation, and need that current video download process state information is fed back to browser in real time.I.e. existing video web page broadcasting side The operation task of player is heavy in formula, and operating pressure is big, and thus causes response speed slow, to influence video-see effect Fruit.
Summary of the invention
It is a primary object of the present invention to solve player in the prior art to appoint in video web page playing process because operating It is engaged in heavy, operating pressure is big, and the technical issues of cause response speed slow, influence video-see effect.
To achieve the above object, the method for a kind of page video playing provided by the invention, the page video playing Method the following steps are included:
Browser is instructed according to page video playing, is video creation memory block to be played, and empty for memory area configuration The quasi- address url;
Corresponding video is downloaded from network server end, the video is stored to the memory block, and will be described virtual The address url is sent to player;
The player obtains the video from the memory block according to the virtual address url, and to the video into Row decoding plays.
Preferably, the memory partitioning is at least two subpools, and each subpool is configured with a virtual url Location.
Preferably, described to download corresponding video from network server end, the video is stored to the memory block, and The virtual address url is sent to player specifically:
Video to be played is divided into multiple sub-videos, and downloads the multiple sub-video;
Each sub-video after downloading is stored into memory block in the subpool of other not stored sub-videos;
The attribute information for carrying the corresponding virtual address url and play time of each sub-video after downloading is sent To player.
Preferably, the player obtains the video from the memory block according to the virtual address url specifically:
The player according to current play time and institute received sub-video attribute information, determine currently it is to be played The virtual address url of sub-video;
Corresponding sub-video is obtained from corresponding subpool according to the virtual address url, and acquired son is regarded Frequency is decoded and plays.
Preferably, the player obtains corresponding sub-video from corresponding subpool according to the virtual address url Later further include:
The browser carries out emptying processing to the corresponding subpool in the virtual address url, subsequent for storage The sub-video of downloading.
In addition, to achieve the above object, the present invention also provides a kind of system of page video playing, the page video is broadcast The system put includes: browser and player;
The browser includes:
Memory block creation module is video creation memory block to be played, and be for being instructed according to page video playing The virtual address url of memory area configuration;
The video is stored to described and is deposited for downloading corresponding video from network server end by video download module Storage area, and the virtual address url is sent to player;
The player includes:
Video playback module, for obtaining the video from the memory block according to the virtual address url, and to described Video is decoded broadcasting.
Preferably, the memory partitioning is at least two subpools, and each subpool is configured with a virtual url Location.
Preferably, the video download module specifically for video to be played is divided into multiple sub-videos, and is downloaded The multiple sub-video;Each sub-video after downloading is stored into memory block to the subpool of other not stored sub-videos In;The attribute information for carrying the corresponding virtual address url and play time of each sub-video after downloading is sent to and is broadcast Put device.
Preferably, the video playback module, specifically for according to current play time and received sub-video category Property information, determine the virtual address url of current sub-video to be played;According to the virtual address url from corresponding sub- storage Area obtains corresponding sub-video, and acquired sub-video is decoded and is played.
Preferably, the browser further include:
Module is removed in memory block, for obtaining phase from corresponding subpool according to the virtual address url in player After the sub-video answered, the corresponding subpool in the virtual address url is carried out emptying processing, for storage subsequent download Sub-video.
The method and system of page video playing provided by the present invention is referred to by browser according to page video playing It enables, is video creation memory block to be played, and be the virtual address url of memory area configuration;It is corresponding from network server end downloading Video, the video is stored to the memory block, and the virtual address url is sent to player;The player The video is obtained from the memory block according to the virtual address url, and is decoded the mode of broadcasting to the video, is broadcast The operation that video decoding plays need to be executed by putting device only, without executing video download and video network agreement matching operation, versatility Well, operation task is simple, the operating pressure of player is greatly reduced, to improve the response speed of video playing, greatly The earth improves the experience effect that user watches video.
Detailed description of the invention
Fig. 1 is the flow chart of one embodiment of method of page video playing of the invention;
Fig. 2 is the specific refinement flow diagram of step S20 in Fig. 1;
Fig. 3 is the refinement flow diagram of step S30 in Fig. 1;
Fig. 4 is the structural schematic diagram of one embodiment of system of page video playing of the invention.
Fig. 5 is the functional block diagram of the browser in Fig. 4;
Fig. 6 is the functional block diagram of the player in Fig. 4;
Fig. 7 is another the functional block diagram of the browser in Fig. 4.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of method of page video playing.
Referring to Fig.1, Fig. 1 is the flow chart of one embodiment of method of page video playing of the invention.In one embodiment, The method of the page video playing includes:
Step S10, browser is instructed according to page video playing, is video creation memory block to be played, and is storage Area configures the virtual address url.
Memory partitioning described in the present embodiment is at least two subpools, and each subpool is virtual configured with one The address url.Wherein the amount of capacity of each subpool can be adjusted according to actual needs.
Step S20, browser downloads corresponding video from network server end, and the video is stored to the storage Area, and the virtual address url is sent to player.
Browser described in the present embodiment carries out the operation of the video download using original download module, uses simultaneously W3C standard agreement can be compatible with multiple network agreement, therefore there's almost no the uncurrent situation of network protocol.
Referring to fig. 2, Fig. 2 is the specific refinement flow diagram of step S20 in Fig. 1.This step S20 is specifically included:
Step S21, video to be played is divided into multiple sub-videos, and downloads the multiple sub-video.
The size of multiple sub-videos described in this step S21 may be the same or different, and the size of each sub-video can With determine according to actual needs.The present embodiment, the multiple sub-video can open a download thread to the multiple sub-video It sequentially downloads, multiple threads can also be opened simultaneously while downloading multiple sub-videos.
In addition, video to be played described in this example may be one or more, when video to be played is multiple views When frequency, the play time of each video can be set according to the demand of user, such as need to be inserted into film video wide When accusing video, the time of film video broadcasting and the time of advertisement video broadcasting can be set as needed.Simultaneously when to be played Video when being multiple videos, equally each video can be divided into corresponding multiple sub-videos.
Step S22, each sub-video after downloading is stored into memory block to the subpool of other not stored sub-videos In.
The present embodiment, each subpool is served only for one sub-video of storage, when a subpool capacity is less than one Sub-video capacity, then the remainder of the sub-video can store into another subpool, another subpool is not Other sub-videos are stored again.
Step S23, by the attribute for carrying the corresponding virtual address url and play time of each sub-video after downloading Information is sent to player.
The present embodiment, each sub-video carry in the attribute information of the corresponding play time of minute book sub-video, this After each sub-video after downloading is stored subpool by step S23, the corresponding virtual address url of each sub-video can be added Into corresponding attribute information.
Step S30, the described player obtains the video from the memory block according to the virtual address url, and to institute It states video and is decoded broadcasting.
Referring to Fig. 3, Fig. 3 is the refinement flow diagram of step S30 in Fig. 1, this step S30 is specifically included:
Step S31, the described player according to current play time and received sub-video attribute information, determine current The virtual address url of sub-video to be played.
Attribute information in this step S31 due to each sub-video received records the broadcasting for having corresponding sub-video Time and the corresponding virtual address url, thus player according to current play time and received sub-video attribute information, Can determine it is current it is to be played be which sub-video and the virtual address url of the sub-video to be played.
Step S32, corresponding sub-video is obtained from corresponding subpool according to the virtual address url, and to being obtained The sub-video taken is decoded and plays.
In addition, browser described in above-described embodiment in player according to the virtual address url from corresponding sub- storage Area further includes handling as follows after obtaining corresponding sub-video: being emptied to the corresponding subpool in the virtual address url It handles, for storage the sub-video of subsequent download.
The method of the provided page video playing of above-described embodiment is instructed according to page video playing by browser, is Video creation memory block to be played, and be the virtual address url of memory area configuration;Corresponding view is downloaded from network server end Frequently, the video is stored to the memory block, and the virtual address url is sent to player;The player according to The virtual address url obtains the video from the memory block, and the mode of broadcasting, player are decoded to the video The operation that video decoding plays need to be only executed, without executing video download and video network agreement matching operation, versatility is good, grasps Make that task is simple, greatly reduces the operating pressure of player, to improve the response speed of video playing, greatly mention High user watches the experience effect of video, and the broadcasting for reducing player and browser cooperates.
The present invention further provides a kind of systems of page video playing.It is page video of the invention referring to Fig. 4, Fig. 4 The structural schematic diagram of one embodiment of system of broadcasting.In this embodiment, the system 100 of the page video playing includes: clear Look at device 110 and player 120.It is the functional block diagram of the browser in Fig. 4 referring to Fig. 5, Fig. 5.The browser 110 wraps Include memory block creation module 111 and video download module 112.Wherein, the memory block creation module 111, for according to the page Video playing instruction is video creation memory block to be played, and is the virtual address url of memory area configuration.
The video download module 112, for downloading corresponding video from network server end, by the video store to The memory block, and the virtual address url is sent to player.It is the function mould of the player in Fig. 4 referring to Fig. 6, Fig. 6 Block schematic diagram.The player 120 includes: video playback module 121.The video playback module 121, for according to the void The quasi- address url obtains the video from the memory block, and is decoded broadcasting to the video.
Browser described in the present embodiment carries out the operation of the video download using original download module, uses simultaneously W3C standard agreement can be compatible with multiple network agreement, therefore there's almost no the uncurrent situation of network protocol.
In above-described embodiment, the memory partitioning is at least two subpools, and each subpool is configured with a void The quasi- address url.Wherein the amount of capacity of each subpool can be adjusted according to actual needs.
Video download module described in above-described embodiment 112, specifically for video to be played is divided into multiple sub- views Frequently, and the multiple sub-video is downloaded;Each sub-video after downloading is stored into memory block other not stored sub-videos In subpool;By the attribute information for carrying the corresponding virtual address url and play time of each sub-video after downloading It is sent to player.
The size of multiple sub-videos described in the present embodiment may be the same or different, and the size of each sub-video can With determine according to actual needs.The present embodiment, the multiple sub-video can open a download thread to the multiple sub-video It sequentially downloads, multiple threads can also be opened simultaneously while downloading multiple sub-videos.
Video to be played described in this example may be one or more, when video to be played is multiple videos, The play time of each video can be set according to the demand of user, such as need to be inserted into advertisement video in film video When, it can be set as needed the time of film video broadcasting and the time of advertisement video broadcasting.Work as video to be played simultaneously When for multiple videos, each video can equally be divided to corresponding multiple sub-videos.
Each subpool is served only for one sub-video of storage in the present embodiment, when a subpool capacity is less than one Sub-video capacity, then the remainder of the sub-video can store into another subpool, another subpool is not Other sub-videos are stored again.
The each sub-video of the present embodiment carries in the attribute information of the corresponding play time of minute book sub-video, described After each sub-video after downloading is stored subpool by browser, the corresponding virtual address url of each sub-video can be added Into corresponding attribute information.
Video playback module 121 described in above-described embodiment are specifically used for according to the received son of current play time and institute The attribute information of video determines the virtual address url of current sub-video to be played;According to the virtual address url from corresponding Subpool obtain corresponding sub-video, and acquired sub-video is decoded and is played.
Attribute information in the present embodiment due to each sub-video received records the broadcasting for having corresponding sub-video Time and the corresponding virtual address url, thus video playback module 121 according to current play time and received sub-video Attribute information, can determine it is current it is to be played be which sub-video and the virtual address url of the sub-video to be played.
Referring to Fig. 7, Fig. 7 is another the functional block diagram of the browser in Fig. 4.Browser described in the present embodiment 110 further include: memory block empties module 113, in video playback module 121 according to the virtual address url from corresponding After subpool obtains corresponding sub-video, the corresponding subpool in the virtual address url is carried out emptying processing, with In the sub-video of storage subsequent download.
The system 100 of page video playing provided by above-described embodiment is referred to by browser according to page video playing It enables, is video creation memory block to be played, and be the virtual address url of memory area configuration;It is corresponding from network server end downloading Video, the video is stored to the memory block, and the virtual address url is sent to player;The player The video is obtained from the memory block according to the virtual address url, and is decoded the mode of broadcasting to the video, is broadcast The operation that video decoding plays need to be executed by putting device only, without executing video download and video network agreement matching operation, versatility Well, operation task is simple, the operating pressure of player is greatly reduced, to improve the response speed of video playing, greatly The earth improves user and watches the experience effect of video, and the broadcasting for reducing player and browser cooperates.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method of page video playing, which is characterized in that the method for the page video playing the following steps are included:
Browser is instructed according to page video playing, is video creation memory block to be played, and is the virtual url of memory area configuration Address;
The browser downloads corresponding video from network server end, and the video is stored to the memory block so that described Video has the corresponding virtual address url, and the virtual address url is sent to player;
The player obtains the video from the memory block according to the virtual address url, and solves to the video Code plays.
2. the method for page video playing according to claim 1, which is characterized in that the memory partitioning is at least two Subpool, each subpool are configured with a virtual address url.
3. the method for page video playing according to claim 2, which is characterized in that described to be downloaded from network server end Corresponding video stores the video to the memory block, and the virtual address url is sent to player specifically:
Video to be played is divided into multiple sub-videos, and downloads the multiple sub-video;
Each sub-video after downloading is stored into memory block in the subpool of other not stored sub-videos;
The attribute information for carrying the corresponding virtual address url and play time of each sub-video after downloading is sent to and is broadcast Put device.
4. the method for page video playing according to claim 3, which is characterized in that the player is according to described virtual The address url obtains the video from the memory block specifically:
The player determines that current son to be played regards according to the attribute information of the received sub-video of current play time and institute The virtual address url of frequency;
Obtain corresponding sub-video from corresponding subpool according to the virtual address url, and to acquired sub-video into Row is decoded and is played.
5. the method for page video playing according to claim 4, which is characterized in that the player is according to described virtual The address url is obtained from corresponding subpool after corresponding sub-video further include:
The browser carries out emptying processing to the corresponding subpool in the virtual address url, for storage subsequent download Sub-video.
6. a kind of system of page video playing, which is characterized in that the system of the page video playing includes: browser and broadcasts Put device;
The browser includes:
Memory block creation module is video creation memory block to be played for being instructed according to page video playing, and is storage Area configures the virtual address url;
Video download module stores the video to the memory block for downloading corresponding video from network server end So that the video has the corresponding virtual address url, and the virtual address url is sent to player;
The player includes:
Video playback module, for obtaining the video from the memory block according to the virtual address url, and to the video It is decoded broadcasting.
7. the system of page video playing according to claim 6, which is characterized in that the memory partitioning is at least two Subpool, each subpool are configured with a virtual address url.
8. the system of page video playing according to claim 7, which is characterized in that
The video download module specifically for video to be played is divided into multiple sub-videos, and downloads the multiple son Video;Each sub-video after downloading is stored into memory block in the subpool of other not stored sub-videos;After downloading Each sub-video carry the corresponding virtual address url and the attribute information of play time is sent to player.
9. the system of page video playing according to claim 8, which is characterized in that
The video playback module, specifically for according to current play time and institute received sub-video attribute information, determination The virtual address url of current sub-video to be played;It is obtained accordingly according to the virtual address url from corresponding subpool Sub-video, and acquired sub-video is decoded and is played.
10. the system of page video playing according to claim 9, which is characterized in that the browser further include:
Module is removed in memory block, for being obtained accordingly according to the virtual address url from corresponding subpool in player After sub-video, the corresponding subpool in the virtual address url is carried out emptying processing, for storage the son of subsequent download Video.
CN201410848064.7A 2014-12-29 2014-12-29 The method and system of page video playing Active CN105812893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410848064.7A CN105812893B (en) 2014-12-29 2014-12-29 The method and system of page video playing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410848064.7A CN105812893B (en) 2014-12-29 2014-12-29 The method and system of page video playing

Publications (2)

Publication Number Publication Date
CN105812893A CN105812893A (en) 2016-07-27
CN105812893B true CN105812893B (en) 2019-07-26

Family

ID=56420401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410848064.7A Active CN105812893B (en) 2014-12-29 2014-12-29 The method and system of page video playing

Country Status (1)

Country Link
CN (1) CN105812893B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333560A (en) * 2020-08-25 2021-02-05 深圳Tcl新技术有限公司 Webpage video analyzing and playing method, device and equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779046A (en) * 2012-07-04 2012-11-14 合一网络技术(北京)有限公司 Video playing system based on HTML5 development and video playing method thereof
CN103327410A (en) * 2013-06-03 2013-09-25 贝壳网际(北京)安全技术有限公司 Method and system for playing video in mobile terminal browser and mobile terminal
CN103956175A (en) * 2014-04-18 2014-07-30 华为技术有限公司 Playing method and equipment of multi-media files

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7234144B2 (en) * 2002-01-04 2007-06-19 Microsoft Corporation Methods and system for managing computational resources of a coprocessor in a computing system
US20050262541A1 (en) * 2004-05-21 2005-11-24 Sony Corporation Reception device, station selection method, and stream distribution system
CN101252454B (en) * 2008-03-10 2011-04-20 中国电信股份有限公司 Client end video frequency playing system and method
CN102065108A (en) * 2009-11-17 2011-05-18 中国移动通信集团广东有限公司 Method, wireless communication terminal and client browser for realizing pre-download
CN103399777A (en) * 2013-06-28 2013-11-20 华中科技大学 Virtual instrument measuring system and method based on intelligent terminal
CN103428528A (en) * 2013-08-19 2013-12-04 江苏金智教育信息技术有限公司 Cloud streaming media adaptive playing device and method
CN103702171B (en) * 2013-12-12 2017-02-08 乐视网信息技术(北京)股份有限公司 Method for downloading video stream and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779046A (en) * 2012-07-04 2012-11-14 合一网络技术(北京)有限公司 Video playing system based on HTML5 development and video playing method thereof
CN103327410A (en) * 2013-06-03 2013-09-25 贝壳网际(北京)安全技术有限公司 Method and system for playing video in mobile terminal browser and mobile terminal
CN103956175A (en) * 2014-04-18 2014-07-30 华为技术有限公司 Playing method and equipment of multi-media files

Also Published As

Publication number Publication date
CN105812893A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
CN107659825B (en) A kind of method, apparatus, server, main broadcaster end and medium that live video is retained
CN103475932B (en) Seamless online player method and device, the network television system of Internet video
CN103024456B (en) A kind of Online Video player method and video playback server
CN103765912B (en) Reception device, method of reseptance and information processing system
CN105072462B (en) Video ads inserting method and device
CN103686255B (en) Video advertisement putting method and device based on HLS protocol
CN103607634A (en) Method for reducing network video ordering terminal user waiting time
CN104091287B (en) A kind of task implementation method and device based on data-driven
CN105847941B (en) A kind of audio/video flow live broadcasting method based on HLS protocol
CN100393068C (en) Method for buffering data in stream media
CN104506950A (en) Multithread download method and download device in network streaming media play, and download equipment
WO2015050651A1 (en) Downloading media objects
CA2840106A1 (en) Offline download method, multimedia file download method and system thereof
CN102802138A (en) Video file processing method and system, and video proxy system
CN105323597B (en) MP4 document play-back method, treating method and apparatus and play system
CN103686245A (en) Video-on-demand and live broadcasting switching method and device based on HLS protocol
CN104125516A (en) Media file receiving method and apparatus, media file sending method and apparatus, and system
CN108063769A (en) A kind of implementation method of content service, device and content delivery network node
CN108337553A (en) A kind of multi-medium data pre-download method
US20150268808A1 (en) Method, Device and System for Multi-Speed Playing
CN104202652A (en) Television set top box and playback control method thereof
CN107920281A (en) A kind of network direct broadcasting video loading method and terminal
CN110139123A (en) The broadcasting of files in stream media, transmission, treating method and apparatus
CN105635753B (en) The method for down loading and device of media data
CN107205177A (en) Video broadcasting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant