CN102761603B - Webpage flash video redirection method in VDI environment - Google Patents

Webpage flash video redirection method in VDI environment Download PDF

Info

Publication number
CN102761603B
CN102761603B CN201210187694.5A CN201210187694A CN102761603B CN 102761603 B CN102761603 B CN 102761603B CN 201210187694 A CN201210187694 A CN 201210187694A CN 102761603 B CN102761603 B CN 102761603B
Authority
CN
China
Prior art keywords
video
flash
webpage
request
client
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
CN201210187694.5A
Other languages
Chinese (zh)
Other versions
CN102761603A (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.)
Fujian Centerm Information Co Ltd
Original Assignee
Fujian Centerm Information 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 Fujian Centerm Information Co Ltd filed Critical Fujian Centerm Information Co Ltd
Priority to CN201210187694.5A priority Critical patent/CN102761603B/en
Publication of CN102761603A publication Critical patent/CN102761603A/en
Application granted granted Critical
Publication of CN102761603B publication Critical patent/CN102761603B/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

A webpage flash video redirection method in a VDI (Virtual Desktop Infrastructure) environment comprises the following steps: analyzing webpage text data and acquiring both a file of a Flash video player on a present webpage and parameters used during video play; intercepting a webpage HTTP (Hyper Text Transport Protocol) request and acquiring a video request of the present webpage; analyzing a request data packet and reversely positioning to a Flash control issuing the requests through the group of requests; sending the Flash video player embedded into the webpage to a client side and dynamically building a Flash video play environment the same as the present webpage on the client side according to the structure of the present webpage; generating a network request by the operating Flash video player on the client side; and sending corresponding video streaming to the client side for play by a VDI server which receives the video request from the client side. By adopting the webpage flash video redirection method provided by the invention, the burdens of both the VDI server and the client side are greatly reduced and the quality of watched videos is improved.

Description

The redirected method of webpage flash video under VDI environment
[technical field]
The present invention relates to computer phoneme video technique field, relate in particular to a kind of redirected method of webpage flash video under VDI environment.
[background technology]
VDI, English full name Virtual Desktop Infrastructure, i.e. virtual desktop architecture.It is not to each user, to configure the desktop PC of an operation Windows XP or Vista, but by the server operation Windows XP in data center, your desktop is carried out virtual; User calculates agreement by the client from client device (client computer or home PC) and is connected with virtual desktop, and the desktop that user accesses them similarly is that desktop is installed in the traditional this locality of access.
Along with the popularization of cloud computing technology, VDI agreement is more and more used.Under VDI environment, video playback is an insoluble problem always.Video playback under VDI environment, is subject to the restriction of VDI agreement on the one hand, is subject on the other hand the restriction of the network bandwidth, causes VDI agreement in use cannot well meet the needs of video-see.Particularly the broadcasting for webpage Flash video never has good processing method.
At present best processing mode, for tackling by being drawn in Flash video playback region and by the consecutive image compression algorithm of optimizing, this area image being carried out to special compression and process, reaches and reduces the object that bandwidth is accelerated image transmitting.
Although use said method to solve to a certain extent the slack problem of webpage Flash video playback, it also produces a lot of negative effects.
1, server, after completing original video data decoding, need to be encoded to decoded video data again, now takies great server resource;
2, when client is carried out played in full screen, server wants coded data to increase along with the increase of current display resolution, and when client is used larger resolution to connect, the cpu resource of server cannot be born the demand of compressed image;
3,, when client is carried out played in full screen, the data that need to decode due to client, along with the increase of current use resolution increases, cause client also will consume great cpu resource, finally cause client cannot bear solution code requirement;
4, due to the processing of image through compression algorithm, use said method when remote watching video, the relative original video quality of video quality will have larger reduction.
[summary of the invention]
Technical problem to be solved by this invention is to provide the webpage flash video under a kind of VDI environment redirected method, greatly reduces VDI server and client side's burden, and has improved the quality of the video of watching.
The present invention solves the problems of the technologies described above by the following technical solutions:
The redirected method of webpage flash video under VDI environment, comprises the steps:
Step 1: analyzing web page text data, obtain Flash video player file on current web page, and the parameter of using during displaying video;
Specific practice is: exploitation IE browser BHO(WebBrowser Help Object) plug-in unit, this BHO plug-in unit is for opening the Flash plug-in unit on webpage post analysis webpage at IE browser, therefrom isolate the Flash control that this webpage need to load, and the swf file of Flash video player preserved in record;
Step 2: HTTP asks by interception webpage, therefrom obtains the video request of current web page;
Step 3: analysis request packet, the response message of record request content and this request, and arrive the Flash control of the request of initiation by this group request inverted orientation;
Step 4: the Flash video player embedding on webpage is sent to client, according to the structure of current web page at the client dynamic construction Flash video playback environment the same with current web page;
Step 5: the Flash video player of client produces network request when operation, for obtaining the video data that needs broadcasting;
Step 6: if client device can directly have access to the primitive network address of video data by network, client is directly obtained video data in the video server of Flash video website, and play-overs in client; If client, because network limits cannot be accessed the video server of Flash video website, is asked by interception HTTP, the mode that forwards HTTP request is obtained video data to VDI server;
Step 7: when VDI server is received after the video request from client, send to client to play corresponding video flowing by the Flash video source address of recording before contrast with the corresponding relation of swf file.
Further, described step 2 specifically comprises: the HTML Control series A PI providing by calling Microsoft, and the HTTP that creates current page asks monitor, monitors all HTTP requests on current page; In HTTP request monitor, filter by all HTTP request of data of sending on current web page, therefrom isolate the video data request that Flash video player sends.
Further, described step 4 specifically comprises: the swf file of the Flash player in the Flash control of transmission HTTP video data request and corresponding parameter are sent to VDI client; VDI client, after receiving the swf file and parameter thereof that server sends, builds simple Flash video player and relevant parameter is set in this locality, build the Flash playing environment identical with tackling website.
The invention has the advantages that: while 1, watching Flash video under VDI environment, VDI server is only responsible for forwarding Flash video player file swf file and video initial data flows to client, on VDI server, do not carry out decoding and the compression of video data, greatly reduce the burden of VDI server.2, client is at local decode video data, and video data can not incur loss because of middle repeating process, and user can well watch video in VDI client.3, client need to not consume along with the increase of local resolution more cpu resource for video decode when decoded data, reduces the burden of VDI client.
[accompanying drawing explanation]
The invention will be further described in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method schematic flow sheet.
[embodiment]
Refer to shown in Fig. 1, the redirected method of webpage flash video under VDI environment of the present invention, comprises the steps:
Step 1: analyzing web page text data, obtain Flash video player file on current web page, and the parameter of using during displaying video;
Specific practice is: exploitation IE browser BHO(WebBrowser Help Object) plug-in unit, this BHO plug-in unit is for opening the Flash plug-in unit on webpage post analysis webpage at IE browser, therefrom isolate the Flash control that this webpage need to load, and the swf file of Flash video player preserved in record.
Step 2: HTTP asks by interception webpage, therefrom obtains the video request of current web page;
Specifically comprise: the HTML Control series A PI providing by calling Microsoft, the HTTP that creates current page asks monitor, monitors all HTTP requests on current page; In HTTP request monitor, filter by all HTTP request of data of sending on current web page, therefrom isolate the video data request that Flash video player sends.
Step 3: analysis request packet, the response message of record request content and this request, and arrive the Flash control of the request of initiation by this group request inverted orientation.
Specific practice is:
Flash control is loaded as an ActiceX control in IE browser, ActiveX control is as a com component, can derive a series of interface, the interface function that Flash video player swf file is wherein set is put_Movie, in the Mine_put_Movie function of writing to oneself by redirected this interface function of COM HOOK technology, the position of therefrom recording Flash video player swf file; By realizing the IHttpNegotiate interface of the WEB of Microsoft browser, therefrom obtain the packet of each HTTP request, thereby therefrom find the real network information of the video file that Flash player will play.
Step 4: the Flash video player embedding on webpage is sent to client, according to the structure of current web page at the client dynamic construction Flash video playback environment the same with current web page;
Specifically comprise: the swf file of the Flash player in the Flash control of transmission HTTP video data request and corresponding parameter are sent to VDI client; VDI client, after receiving the swf file and parameter thereof that server sends, builds simple Flash video player and relevant parameter is set in this locality, build the Flash playing environment identical with tackling website.
Step 5: the Flash video player of client produces network request when operation, for obtaining the video data that needs broadcasting.
Step 6: if client device can directly have access to the primitive network address of video data by network, client is directly obtained video data in the video server of Flash video website, and play-overs in client; If client, because network limits cannot be accessed the video server of Flash video website, is asked by interception HTTP, the mode that forwards HTTP request is obtained video data to VDI server.
Step 7: when VDI server is received after the video request from client, send to client to play corresponding video flowing by the Flash video source address of recording before contrast with the corresponding relation of swf file.
Beneficial effect of the present invention is: while 1, watching Flash video under VDI environment, VDI server is only responsible for forwarding Flash video player file swf file and video initial data flows to client, on VDI server, do not carry out decoding and the compression of video data, greatly reduce the burden of VDI server.2, client is at local decode video data, and video data can not incur loss because of middle repeating process, and user can well watch video in VDI client.3, client need to not consume along with the increase of local resolution more cpu resource for video decode when decoded data, reduces the burden of VDI client.
The foregoing is only preferred embodiment of the present invention, all equalizations of doing according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.

Claims (3)

1. the redirected method of webpage flash video under VDI environment, is characterized in that: comprise the steps:
Step 1: analyzing web page text data, obtain Flash video player file on current web page, and the parameter of using during displaying video;
Specific practice is: browser auxiliary object BHO plug-in unit in exploitation IE browser, this browser auxiliary object BHO plug-in unit is for opening the Flash plug-in unit on webpage post analysis webpage at IE browser, therefrom isolate the Flash control that this webpage need to load, and the swf file of Flash video player preserved in record;
Step 2: HTTP asks by interception webpage, therefrom obtains the video request of current web page;
Step 3: analysis request packet, the response message of record request content and this request, and arrive the Flash control of the request of initiation by this group request inverted orientation;
Step 4: the Flash video player embedding on webpage is sent to client, according to the structure of current web page at the client dynamic construction Flash video playback environment the same with current web page;
Step 5: the Flash video player of client produces network request when operation, for obtaining the video data that needs broadcasting;
Step 6: if client device can directly have access to the primitive network address of video data by network, client is directly obtained video data in the video server of Flash video website, and play-overs in client; If client, because network limits cannot be accessed the video server of Flash video website, is asked by interception HTTP, the mode that forwards HTTP request is obtained video data to virtual desktop architecture VDI server;
Step 7: when virtual desktop architecture VDI server is received after the video request from client, send to client to play corresponding video flowing by the Flash video source address of recording before contrast with the corresponding relation of swf file.
2. the redirected method of webpage flash video under a kind of VDI environment as claimed in claim 1, it is characterized in that: described step 2 specifically comprises: the HTML Control series A PI providing by calling Microsoft, create the HTTP request monitor of current page, monitor all HTTP requests on current page; In HTTP request monitor, filter by all HTTP request of data of sending on current web page, therefrom isolate the video data request that Flash video player sends.
3. the redirected method of webpage flash video under a kind of VDI environment as claimed in claim 1, is characterized in that: described step 4 specifically comprises: the swf file of the Flash player in the Flash control of transmission HTTP video data request and corresponding parameter are sent to virtual desktop architecture VDI client; Virtual desktop architecture VDI client, after receiving the swf file and parameter thereof that server sends, builds simple Flash video player and relevant parameter is set in this locality, build the Flash playing environment identical with tackling website.
CN201210187694.5A 2012-06-07 2012-06-07 Webpage flash video redirection method in VDI environment Active CN102761603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210187694.5A CN102761603B (en) 2012-06-07 2012-06-07 Webpage flash video redirection method in VDI environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210187694.5A CN102761603B (en) 2012-06-07 2012-06-07 Webpage flash video redirection method in VDI environment

Publications (2)

Publication Number Publication Date
CN102761603A CN102761603A (en) 2012-10-31
CN102761603B true CN102761603B (en) 2014-10-22

Family

ID=47055921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210187694.5A Active CN102761603B (en) 2012-06-07 2012-06-07 Webpage flash video redirection method in VDI environment

Country Status (1)

Country Link
CN (1) CN102761603B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014086030A1 (en) * 2012-12-07 2014-06-12 华为技术有限公司 Multimedia redirection method, multimedia server, and computer system
CN103905927B (en) * 2012-12-26 2016-08-10 华为技术有限公司 Method, desktop server and the system that under virtual desktop scene, video redirects
CN104067627B (en) * 2013-02-07 2017-08-04 华为技术有限公司 Method, device, system and computer-readable medium that a kind of video is redirected
CN104247364B (en) * 2013-03-19 2017-05-10 华为技术有限公司 Video transmission method, device, and system applied to remote desktop
CN104581401B (en) * 2013-10-10 2019-02-01 腾讯科技(深圳)有限公司 The method and device of data playback
CN103544067B (en) * 2013-10-12 2016-08-24 福建升腾资讯有限公司 The method that the flash plug-in unit of client is mutual with the page script of service end IE browser
CN104144351B (en) * 2014-04-04 2017-09-19 北京泰然神州科技有限公司 The video broadcasting method and device of application virtualization platform
CN104038778B (en) * 2014-05-23 2017-11-24 深信服科技股份有限公司 Multimedia redirects the control method and device played
CN105208406A (en) * 2014-06-11 2015-12-30 中兴通讯股份有限公司 Video data providing method and apparatus, video playing method and apparatuses, and video playing system
CN105407407A (en) * 2014-06-26 2016-03-16 广州市动景计算机科技有限公司 Video playing method and device
CN104796785A (en) * 2015-03-31 2015-07-22 北京奇虎科技有限公司 Video playing method and device in application program
CN105163140A (en) * 2015-07-22 2015-12-16 深圳市京华科讯科技有限公司 Method and system for playing online videos by using virtual machine
CN105049938B (en) * 2015-08-31 2018-06-01 河南大学 A kind of video broadcasting method based on Spice and memory sharing
US10979470B2 (en) 2015-12-28 2021-04-13 Industrial Technology Research Institute Server device, client device and dynamic image transmission method for virtual desktop infrastructure
CN106657206A (en) * 2016-06-27 2017-05-10 南京理工大学 Virtual desktop infrastructure web video redirection method
CN107707966B (en) * 2016-08-08 2021-01-22 大唐软件技术股份有限公司 Multimedia data playing method and device
CN107018137A (en) * 2017-04-07 2017-08-04 成都长天信息技术有限公司 A kind of Flash reorientation methods and device
CN110138817A (en) * 2018-02-08 2019-08-16 中兴通讯股份有限公司 Flow media playing method, device, equipment and computer readable storage medium
CN110134450B (en) * 2018-02-08 2021-08-10 中兴通讯股份有限公司 Video redirection method, device and computer readable storage medium
CN109068153B (en) * 2018-09-28 2020-10-16 华为技术有限公司 Video playing method and device and computer readable storage medium
CN109446460B (en) * 2018-10-24 2021-11-19 国云科技股份有限公司 HTML5 online video redirection system and implementation method thereof
CN111479139B (en) 2019-01-23 2022-10-04 上海哔哩哔哩科技有限公司 Video playing control method and device based on video source selection and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582926A (en) * 2009-06-15 2009-11-18 中国电信股份有限公司 Method for realizing redirection of playing remote media and system
CN102158553A (en) * 2011-03-31 2011-08-17 华为技术有限公司 Method and device for playing multi-media files for remote desktop
CN102355501A (en) * 2011-09-28 2012-02-15 华为技术有限公司 Data processing method, access review equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8891939B2 (en) * 2009-12-22 2014-11-18 Citrix Systems, Inc. Systems and methods for video-aware screen capture and compression

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582926A (en) * 2009-06-15 2009-11-18 中国电信股份有限公司 Method for realizing redirection of playing remote media and system
CN102158553A (en) * 2011-03-31 2011-08-17 华为技术有限公司 Method and device for playing multi-media files for remote desktop
CN102355501A (en) * 2011-09-28 2012-02-15 华为技术有限公司 Data processing method, access review equipment and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"桌面虚拟化研究及应用";潘松柏等;《网络技术》;20110531;全文 *
潘松柏等."桌面虚拟化研究及应用".《网络技术》.2011,

Also Published As

Publication number Publication date
CN102761603A (en) 2012-10-31

Similar Documents

Publication Publication Date Title
CN102761603B (en) Webpage flash video redirection method in VDI environment
US10567809B2 (en) Selective media playing method and apparatus according to live streaming and recorded streaming
US11089349B2 (en) Apparatus and method for playing back and seeking media in web browser
CN103139609B (en) The method and apparatus that remote application video playback is optimized
US9497492B2 (en) Distribution control system, distribution system, distribution control method, and computer-readable storage medium
US9723337B2 (en) Distribution control system and distribution system
JP6511038B2 (en) Cloud streaming service providing method and apparatus therefor
CN108337246B (en) Media playback apparatus and media service apparatus preventing playback delay
CN101582926A (en) Method for realizing redirection of playing remote media and system
CN104349177B (en) It is a kind of to turn to method, virtual machine and the system for playing multimedia file under desktop cloud
US9578079B2 (en) Distribution control system, distribution system, distribution control method, and computer-readable storage medium
US10250665B2 (en) Distribution control system, distribution system, distribution control method, and computer-readable storage medium
CN104144351A (en) Video playing method and device applying virtualization platform
JP2015530633A (en) System and method for a single KVM client supporting multiple different video compression techniques
JP2022553996A (en) Video playback method, device, equipment and computer program
KR101942269B1 (en) Apparatus and method for playing back and seeking media in web browser
CN112653700A (en) Website video communication method based on WEBRTC
Kim et al. Cloud‐based gaming service platform supporting multiple devices
CN113727184B (en) Video playing method, device, system, storage medium and electronic equipment
CN102439935B (en) Media adaptation method and apparatus
KR100596723B1 (en) Device for integrating multimedia streaming service and application streaming service and method thereof
US8868785B1 (en) Method and apparatus for displaying multimedia content
Zhang et al. A heterogeneous auto-offloading framework based on web browser for resource-constrained devices
KR102199270B1 (en) System for cloud streaming service, method of cloud streaming service based on still image and apparatus for the same
CN113453062B (en) Video metadata acquisition and processing method, device, system and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant