CN104125198B - Web player plug-in unit reorientation method, server and client side - Google Patents

Web player plug-in unit reorientation method, server and client side Download PDF

Info

Publication number
CN104125198B
CN104125198B CN201310146425.9A CN201310146425A CN104125198B CN 104125198 B CN104125198 B CN 104125198B CN 201310146425 A CN201310146425 A CN 201310146425A CN 104125198 B CN104125198 B CN 104125198B
Authority
CN
China
Prior art keywords
unit
web player
player plug
client
plug
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
CN201310146425.9A
Other languages
Chinese (zh)
Other versions
CN104125198A (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310146425.9A priority Critical patent/CN104125198B/en
Publication of CN104125198A publication Critical patent/CN104125198A/en
Application granted granted Critical
Publication of CN104125198B publication Critical patent/CN104125198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present embodiments relate to a kind of web player plug-in unit reorientation method, server and client side, this method includes:The installation for obtaining web player plug-in unit indicates that web player plug-in unit is for the audio-video frequency media content in the webpage of client end of playing back execution;The installation for sending web player plug-in unit to client is indicated, to cause client according to the mount message for installing instruction acquisition web player plug-in unit and be installed;Receive the installation results information for the web player plug-in unit that client is sent;When installation results information is that client has installed web player plug-in unit, the establishment information of web player plug-in unit is intercepted and captured, the establishment information of web player plug-in unit is sent to client, to cause client to create web player plug-in unit.Therefore, the present invention is realized web player plug-in unit is held consultation using server and client side after decided whether to redirect the web player plug-in unit again, so as to improve experience of the user in remote desktop.

Description

Web player plug-in unit reorientation method, server and client side
Technical field
The present invention relates to communication technical field, more particularly to a kind of web player plug-in unit reorientation method, server and Client.
Background technology
Remote desktop technology is a kind of common technique in being handled official business for current enterprise.It can pass through network connection control Another computer, and its desktop is operated in real time.Such as in windows systems mstsc.exe programs be exactly it is a kind of most Common remote desktop.It can be connected in enterprise's office, business hall, hospitals and other places computer or other equipment by LAN To the data center for possessing a large amount of servers, the daily use such as mobile device can also be connected in data by wide area network The heart.Remote desktop simultaneously refers not only to long-range screen display, can also include the skills such as remote sound transmission, the mapping of pluggable hardware Art.Remote desktop is properly termed as virtual desktop again.At least there is a server and a client computer under virtual desktop scene, Logged on by the virtual desktop client software installed in client computer on server.
After User logs in remote desktop, usually video can be played by opening video website, when these videos of broadcasting When, it is necessary to by video flowing server end intercept and capture, be then redirected to client, by client decode play, can so subtract The use of the small network bandwidth and server CPU are used, and improve Consumer's Experience.
In the prior art, when user opens browser, it is necessary to play interactive polar plot and Web animation standards Flash When, server can intercept and capture Flash content, be redirected to client, directly be played by client, and server end is no longer carried out Play.
But, redirected in the prior art just for Flash plug-in units, it is impossible to which QVOD is broadcast in support soon, and (wherein, QVOD is It is a based on quasi-video request program kernel, multi-functional, personalized player software), a sudden peal of thunder look at etc. that other players are carried out Redirect.
The content of the invention
The invention provides a kind of web player plug-in unit reorientation method, server and client side, to solve existing skill The problem of being redirected in art just for this plug-in units of Flash, and add the application scenarios that can be redirected.
In a first aspect, the invention provides a kind of web player plug-in unit reorientation method, methods described includes:Obtain The installation of web player plug-in unit indicates that the web player plug-in unit is for the audio frequency and video in the webpage of client end of playing back execution Media content;The installation for sending the web player plug-in unit to the client is indicated, to cause the client according to institute State and the mount message for indicating to obtain the web player plug-in unit is installed and installed;Receive the described of the client transmission The installation results information of web player plug-in unit;The webpage has been installed for the client when the installation results information to broadcast When putting device plug-in unit, the establishment information of the web player plug-in unit is intercepted and captured, sending the web player to the client inserts The establishment information of part, to cause the client to create the web player plug-in unit.
In the first possible implementation, before the installation for obtaining web player plug-in unit is indicated, in addition to: Determine whether the client has installed the web player plug-in unit, inserted if not, performing the acquisition web player The step of installation of part is indicated.
It is described to determine in second of possible implementation with reference to the first possible implementation of first aspect Whether the client has installed the web player plug-in unit, including:Determine the type of the web player plug-in unit;Root According to the type of the web player plug-in unit, various types of web player plug-in units of the client of itself preservation are inquired about Mount message, know whether the client has installed the web player plug-in unit.
In second aspect, the invention provides a kind of web player plug-in unit reorientation method, methods described includes:Receive The installation for the web player plug-in unit that server is sent indicates that the web player plug-in unit is used for the net that client end of playing back is performed Audio-video frequency media content in page;According to the mount message installed and indicate to obtain the web player plug-in unit;Institute is installed State web player plug-in unit;The installation results information of the web player plug-in unit sent to the server;Receive described The establishment information for the web player plug-in unit that server is sent, the web player according to the establishment information creating is inserted Part.
In the first possible implementation, the installation for the web player plug-in unit that the reception server is sent is indicated Before, in addition to:Whether the information of the web player plug-in unit is installed to the server feedback client.
It is described to institute in second of possible implementation with reference to the first possible implementation of second aspect Stating server feedback client and whether installing the information of the web player plug-in unit includes:Receive the institute that the server is sent State the type of web player plug-in unit, according to the type of the web player plug-in unit determine itself whether the webpage of respective type Whether player plug-in unit, the information of the web player plug-in unit of respective type is installed to the server feedback.
In the third aspect, the invention provides a kind of server, the server includes:Acquiring unit is used to obtain webpage The installation of player plug-in unit indicates that the web player plug-in unit is for the audio-video frequency media in the webpage of client end of playing back execution Content, and the installation instruction is transferred to transmitting element;Transmitting element is used to receive described install from the acquiring unit Indicate, the installation for sending the web player plug-in unit to the client is indicated, to cause the client according to the peace Dress is indicated to obtain the mount message of the web player plug-in unit and installed;Receiving unit is used to receive the client hair The installation results information of the web player plug-in unit sent, and by the installation results information transfer to processing unit;Place Unit is managed, for receiving the installation results information from the receiving unit, when the installation results information is the client When the web player plug-in unit has been installed, the establishment information of the web player plug-in unit is intercepted and captured, is sent out to the client The establishment information of the web player plug-in unit is sent, to cause the client to create the web player plug-in unit.
In the first possible implementation, the server also includes:Determining unit, for determining the client Whether the web player plug-in unit is installed, if not, performing what the installation for obtaining web player plug-in unit was indicated Step.
It is described to determine in second of possible implementation with reference to the first possible implementation of the third aspect Determine whether the client has installed the web player plug-in unit described in unit, including:Determine that the webpage is played The type of device plug-in unit;According to the type of the web player plug-in unit, all kinds of the client of itself preservation are inquired about Web player plug-in unit mount message, know whether the client has installed the web player plug-in unit.
In fourth aspect, the invention provides a kind of client, the client includes:First receiving unit, for connecing The installation for receiving the web player plug-in unit that server is sent indicates that the web player plug-in unit is used for what client end of playing back was performed Audio-video frequency media content in webpage, and the installation instruction is transferred to acquiring unit;Acquiring unit, for from described One receiving unit receives described install and indicated, according to the mount message installed and indicate to obtain the web player plug-in unit, And the mount message of the web player plug-in unit is transferred to installation unit;Installation unit, for from the acquiring unit The mount message of the web player plug-in unit is received, the web player plug-in unit is installed;Transmitting element, for the clothes The mounted information for the web player plug-in unit that business device is sent;Processing unit, sends for receiving the server The establishment information of the web player plug-in unit, the web player plug-in unit according to the establishment information creating.
In the first possible implementation, the client also includes:Feedback unit, sends for the reception server Web player plug-in unit installation indicate before, to the server feedback client whether install the web player insert The information of part.
With reference to the first possible implementation of fourth aspect, in second of possible implementation, the feedback The type for the web player plug-in unit that unit is sent specifically for the reception server, is inserted according to the web player The type of part determine itself whether the web player plug-in unit of respective type, whether respective type is installed to the server feedback The web player plug-in unit information.
By application web player plug-in unit reorientation method disclosed by the invention, server and client side, server is obtained The installation of web player plug-in unit is taken to indicate, wherein, the sound that web player plug-in unit is used in the webpage that client end of playing back is performed Video media content, and the installation for sending web player plug-in unit to client indicates, to cause client according to receiving The mount message for indicating to obtain web player plug-in unit is installed and installed, the establishment of server intercepts web player plug-in unit Information, the establishment information of web player plug-in unit is sent to client, to cause client to create web player plug-in unit, so that The application scenarios that adds and can redirect are realized, in addition to it can redirect Flash plug-in units, other webpages can also be redirected Player plug-in unit, improves experience of the user in remote desktop.
Brief description of the drawings
Fig. 1 is the flow chart for the web player plug-in unit reorientation method that the embodiment of the present invention one is provided;
Fig. 2 is the flow chart for the web player plug-in unit reorientation method that the embodiment of the present invention two is provided;
Fig. 3 is the schematic diagram for the server that the embodiment of the present invention three is provided;
Fig. 4 is the schematic diagram for the client that the embodiment of the present invention four is provided;
Fig. 5 is the schematic diagram for the server that the embodiment of the present invention five is provided;
Fig. 6 is the schematic diagram for the client that the embodiment of the present invention six is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of web player plug-in unit reorientation method, server and client side, server The installation instruction of web player plug-in unit is obtained, wherein, web player plug-in unit is used in the webpage that client end of playing back is performed Audio-video frequency media content, and the installation for sending web player plug-in unit to client indicates, to cause client according to receiving Installation indicate obtain web player plug-in unit mount message and installed, server receive client send webpage broadcast The installation results information of device plug-in unit is put, when the installation results information is that client has installed the web player plug-in unit, The establishment information of web player plug-in unit is intercepted and captured, the establishment information of web player plug-in unit is sent to client, to cause client End creates web player plug-in unit, it is achieved thereby that after being held consultation using server and client side to web player plug-in unit, Decided whether to redirect the web player plug-in unit again, also add the application scenarios that can be redirected, except can To redirect outside Flash plug-in units, other web player plug-in units can also be redirected, furthermore it is possible to auto negotiation and lower contained network Page player plug-in unit, so as to improve experience of the user in remote desktop.
It is worthy of note that, the plug-in unit in the present invention refers to that a kind of application programming interfaces for following certain specification are write out The program come, i.e., be used for the program of the broadcastings such as video, game or animation on webpage.In addition, the plug-in unit on webpage is a lot, including Flash plug-in units QVOD, a sudden peal of thunder are looked at.
In addition, the redirection in the present invention refers to needing being sent to client in the video that server is played, and by Client is directly played, and server end is no longer played out.
Fig. 1 is the flow chart for the web player plug-in unit reorientation method that the embodiment of the present invention one is provided.As illustrated, this The web player plug-in unit reorientation method that inventive embodiments are provided specifically includes following steps:
Step 110, server obtains the installation instruction of web player plug-in unit.Wherein, the web player plug-in unit is used Audio-video frequency media content in the webpage that client end of playing back is performed.
Step 120, the installation that server sends the web player plug-in unit to the client is indicated, described to cause Client is according to the mount message for installing the instruction acquisition web player plug-in unit and is installed.
Step 130, server receives the installation results information for the web player plug-in unit that the client is sent.Its In, installation results information has installed web player plug-in unit or client for client and can not install the web player and insert Part.When installation results information is that client has installed web player plug-in unit, show that client has successfully been installed webpage and broadcast Put device plug-in unit;When installation results information is that client can not install web player plug-in unit, show that client has performed installation Operation, but it is fitted without success.
Step 140, when the installation results information is that the client has installed the web player plug-in unit, cut The establishment information of the web player plug-in unit is obtained, server sends the establishment of the web player plug-in unit to the client Information, to cause the client to create the web player plug-in unit.
Further, it is further comprising the steps of before step 110:
Step 100, server determines whether the client has installed the web player plug-in unit, if not, holding The step of row installation for obtaining web player plug-in unit is indicated.
Specifically, user starts after the browser of server end, and browser loading hook module is Hook modules, obtains it The mark and download address of web player plug-in unit carry or user installation.Inserted in Hook module creations web player Before part, first to judge whether client has installed the web player plug-in unit.
Further, determine whether the client has been installed the web player plug-in unit and specifically wrapped in step 100 Include:Server determines the type of the web player plug-in unit, and according to the type of the web player plug-in unit, inquires about itself The mount message of various types of web player plug-in units of the client preserved, knows whether the client has pacified Fill the web player plug-in unit.
Wherein, server determines whether the client has installed the web player plug-in unit in step 100, also wraps Include:Server consults mount message of the client to various types of web player plug-in units with the client, so that The mount message for various types of web player plug-in units that the client is installed is obtained, and it is various to preserve the client The mount message of the web player plug-in unit of type.
Specifically, server inquires about the cache information of its preservation in the automatic acquisition module of web player plug-in unit of itself, When the mount message that the web player plug-in unit inquired with user needs is corresponding, illustrate that server enters with client Row was consulted, then no longer held consultation, and carried out corresponding operating according to negotiation result.Its corresponding operating is specially:When inquiring When mount message and the mount message are that client has installed the web player plug-in unit of user's needs, then client has been confirmed Through installing the web player plug-in unit that user needs, and the web player plug-in unit is redirected.Wherein, mount message is worked as When can not install web player plug-in unit i.e. client to web player plug-in unit progress install failure for client, then to this Web player plug-in unit without redirect, directly rendered by server end, i.e., the video of the web player plug-in unit by Server end is directly played.In addition, mount message ought not inquired, then illustrate that client is fitted without the webpage of user's needs Player plug-in unit, also illustrates that server and client side did not consult.
Further, step 110 also includes:Server obtains the net according to the type of the web player plug-in unit The download address of page player plug-in unit, and indicated the download address of the web player plug-in unit as installation.
Further, after step 150, in addition to:Server is by the audio frequency and video matchmaker in the webpage of the client executing Internal unit weight is directed to the client, to cause the web player plug-in unit installed in the client to regard the sound Frequency media content is played out.
After above-mentioned server is held consultation to web player plug-in unit, container and web player plug-in unit are also created, and The container and web player plug-in unit are initialized, its specific steps includes:
First, user starts after the browser of server end, browser loading Hook modules, and Hook modules intercept and capture all nets The establishment message of page player plug-in unit, will create message and is sent to client, to client according to web player plug-in unit Information is created, and combines local operating system and carries out interface conversion, and is broadcast according to the interface establishment container and webpage after conversion Put and obtain creating object information after device plug-in unit, establishment.Wherein, information is created to start the information of web player plug-in unit, and it is wrapped Include the mark and version information for creating web player plug-in unit.In addition, some customized information can also be included by creating information.
Specifically, it is the establishment information of web player plug-in unit according to the type of server end web player plug-in unit, and Suitable adaptation scheme is selected with reference to local operating system, such as:Package types are Flash Activex versions, are locally (SuSE) Linux OS, then need to turn Npapi interface methods with Active, gone to load and initialized with the Npapi interfaces after conversion Flash plug-in units.In addition, container is to provide the running environment of web player plug-in unit, and incoming relevant parameter initialization webpage is broadcast Put device plug-in unit.Such as, IE is exactly the container of a support Activex plug-in unit, and it must realize that a series of containers must be supported Interface, go to support Activex plug-in component operations, and interacted with Activex plug-in units.
Second, server receives the establishment object information that client is sent, and it is that client has been created to create object information Container and web player plug-in unit, or client do not create container and web player plug-in unit.
3rd, when it is that client has created container and web player plug-in unit to create object information, server is to visitor Family end sends the initialization information of web player plug-in unit, to initialization information pair of the client according to web player plug-in unit Container and web player plug-in unit are initialized.Wherein, initialization information includes:Web player plug-in unit plays media text Coded format, media file size and reproduction time of the address of part and the media file etc..
Specifically, after client receives the initialization information of web player plug-in unit, taken according in initialization information The media file is downloaded in the address of the media file of band, and the parameter of web player plug-in unit is set according to media file size, and Play the media file.By taking Flash plug-in units as an example, its initialization information includes Flash addresses, video size, and starts shape State, after client receives the initialization information of Flash plug-in units, according to Flash addresses foradownloaded video and is played.
4th, when user needs to play video by webpage clicking, server is to the corresponding web site requests of the webpage The video, downloads the video plug-in unit relevant information of the video, and the video plug-in unit relevant information is sent to the visitor Family end, the video is played to the client according to the video plug-in unit relevant information.
Therefore, web player plug-in unit reorientation method provided in an embodiment of the present invention, server obtains web player The installation instruction of plug-in unit, wherein, the audio-video frequency media content that web player plug-in unit is used in the webpage that client end of playing back is performed, And the installation for sending web player plug-in unit to client is indicated, to cause client to be indicated to obtain net according to the installation received The mount message of page player plug-in unit is simultaneously installed, and server receives the installation knot for the web player plug-in unit that client is sent Fruit information, when the installation results information is that client has installed the web player plug-in unit, intercepts and captures web player and inserts The establishment information of part, the establishment information of web player plug-in unit is sent to client, to cause client to create web player Plug-in unit, it is achieved thereby that after holding consultation to web player plug-in unit using server and client side, then decide whether pair The web player plug-in unit is redirected, and the application scenarios that can be redirected is also add, except that can redirect Flash plug-in units Outside, other web player plug-in units can also be redirected, furthermore it is possible to auto negotiation and download web player plug-in unit, so that Improve experience of the user in remote desktop.
Fig. 2 is the flow chart for the web player plug-in unit reorientation method that the embodiment of the present invention two is provided.As illustrated, this The web player plug-in unit reorientation method that inventive embodiments are provided specifically includes following steps:
Step 210, the installation for the web player plug-in unit that client the reception server is sent is indicated, the web player The audio-video frequency media content that plug-in unit is used in the webpage that client end of playing back is performed.
Further, it is further comprising the steps of before above-mentioned steps 210:
Step 200, whether client installs the information of the web player plug-in unit to the server feedback client. Wherein, step 200 is also specifically included:Client receives the type for the web player plug-in unit that the server is sent, root According to the type of the web player plug-in unit determine itself whether the web player plug-in unit of respective type, it is anti-to the server Whether feedback installs the information of the web player plug-in unit of respective type.
Step 220, client is according to the mount message installed and indicate to obtain the web player plug-in unit.
Further, the installation of web player plug-in unit described in step 220 indicates to include the web player plug-in unit Download address when, client according to the download address access corresponding server, from the corresponding server of the download address Obtain the mount message of the web player plug-in unit.
Step 230, client installs the web player plug-in unit.
Step 240, the installation results information for the web player plug-in unit that client is sent to the server.Its In, installation results information has installed web player plug-in unit or client for client can not install web player plug-in unit.
Specifically, when installation results information be client web player plug-in unit has been installed, show client into Work(installs web player plug-in unit;When installation results information is that client can not install web player plug-in unit, show client Installation operation has been performed, but has been fitted without success.
Step 250, client receives the establishment information for the web player plug-in unit that the server is sent, according to institute State web player plug-in unit described in establishment information creating.
Further, the establishment information of web player plug-in unit described in step 250 includes the web player plug-in unit Version information or type information when, client executing procedure below:
(1) according to the version information or type information of the web player plug-in unit, and the operation system information of itself, Determine application programming interfaces.
(2) according to the application programming interfaces of the determination, the container and the webpage of the web player plug-in unit are created Player plug-in unit, wherein, the container of the web player plug-in unit provides the running environment of the web player plug-in unit.
(3) initialization information for the web player plug-in unit that the server is sent is received, according to the initialization Information is initialized to the web player plug-in unit and the container.
Further, also include after step 250:Client receives the client executing of the server redirection Webpage in audio-video frequency media content, and pass through the web player plug-in unit and play the media content.
The establishment process of web player plug-in unit is specifically described below.
First, the establishment information for the web player plug-in unit that client the reception server is sent.Wherein, creating information includes Create the mark and version information of player.In addition, some customized information can also be included by creating information.
Second, client combines local operating system and carries out interface conversion according to creating information, and according to conversion after Interface create container and web player plug-in unit, obtain creating object information after establishment, create object information be client Container and web player plug-in unit are not created through creating container and web player plug-in unit or client.Wherein, information is created To start the information of web player plug-in unit, it includes creating the mark and version information of web player plug-in unit.In addition, creating Information can also include some customized information.
3rd, user end to server, which is sent, creates object information, is according to object information judgement is created to server It is no that web player plug-in unit is initialized.Wherein, it is that client has created container and webpage is played to create object information Device plug-in unit, or client do not create container and web player plug-in unit.It is that client has created appearance when creating object information When device and web player plug-in unit, server sends the initialization information of web player plug-in unit to client.
And, the initialization procedure of web player plug-in unit is specifically described below.
First, the initialization information for the web player plug-in unit that client the reception server is sent.Wherein, initialization information Including:Web player plug-in unit plays the address of media file and the coded format of the media file, media file size And reproduction time etc..
Second, client is carried out just according to the initialization information of web player plug-in unit to container and web player plug-in unit Beginningization.
Specifically, after client receives the initialization information of web player plug-in unit, taken according in initialization information The media file is downloaded in the address of the media file of band, and the parameter of web player plug-in unit is set according to media file size, and Play the media file.By taking Flash plug-in units as an example, its initialization information includes Flash addresses, video size, and starts shape State, after client receives the initialization information of Flash plug-in units, according to Flash addresses foradownloaded video and plays the video.
3rd, when user needs to play video by webpage clicking, the video plug-in unit correlation letter that the reception server is obtained Breath, and the video is played according to the video plug-in unit relevant information.
Therefore, web player plug-in unit reorientation method provided in an embodiment of the present invention, client the reception server is sent Web player plug-in unit installation indicate, the web player plug-in unit be used for client end of playing back perform webpage in sound regard Frequency media content, according to the mount message installed and indicate to obtain the web player plug-in unit, installs the webpage and plays Device plug-in unit, the mounted information of the web player plug-in unit sent to the server receives the server and sent The web player plug-in unit establishment information, the web player plug-in unit according to the establishment information creating, so that real Show after being held consultation using server and client side to web player plug-in unit, then decided whether to the web player Plug-in unit is redirected, and also add the application scenarios that can be redirected, and in addition to it can redirect Flash plug-in units, can also be weighed Other web player plug-in units are oriented, furthermore it is possible to auto negotiation and download web player plug-in unit, so as to improve user remote Experience in journey desktop.
Fig. 3 is the schematic diagram for the server that the embodiment of the present invention three is provided.The server is used to perform the embodiment of the present invention The one web player plug-in unit reorientation method provided.As illustrated, server provided in an embodiment of the present invention includes:Obtain single Member 31, transmitting element 32, receiving unit 33 and processing unit 34.
The installation that acquiring unit 31 is used to obtain web player plug-in unit indicates that the web player plug-in unit is used to play Audio-video frequency media content in the webpage of client executing, and the installation instruction is transferred to transmitting element 32;Send single Member 32 is used to receive the installation instruction from the acquiring unit 31, and the web player plug-in unit is sent to the client Install and indicate, to cause the client to be gone forward side by side according to the mount message for indicating to obtain the web player plug-in unit of installing Row is installed;Receiving unit 33 is used for the installation results information for receiving the web player plug-in unit that the client is sent, with And by the installation results information transfer to processing unit;Processing unit 34 is used to receive the installation knot from the receiving unit Fruit information, when the installation results information is that the client has installed the web player plug-in unit, intercepts and captures the net The establishment information of page player plug-in unit, the establishment information of the web player plug-in unit is sent to the client, to cause State client and create the web player plug-in unit.
Wherein, installation results information has installed web player plug-in unit or client for client can not install the net Page player plug-in unit.
In one embodiment, server provided in an embodiment of the present invention also includes:Determining unit.The determining unit is used Before the installation of the acquisition web player plug-in unit is indicated, determine whether the client has been installed the webpage and played Device plug-in unit, if not, performing the step of installation for obtaining web player plug-in unit is indicated.
Wherein, the determining unit is specifically for determining the type of the web player plug-in unit, and according to the webpage The type of player plug-in unit, inquires about the installation letter of various types of web player plug-in units of the client of itself preservation Breath, knows whether the client has installed the web player plug-in unit.In addition, the determining unit be additionally operable to it is described Client consults mount message of the client to various types of web player plug-in units, obtains the client and is installed Various types of web player plug-in units mount message, and preserve the various types of web player plug-in units of the client Mount message.
In another embodiment, the acquiring unit 31 is additionally operable to the type according to the web player plug-in unit, obtains Take the download address of the web player plug-in unit;Indicated the download address of the web player plug-in unit as installation.
In further embodiment, server provided in an embodiment of the present invention also includes:Redirect unit.It is described to redirect list Member is used to the audio-video frequency media content in the webpage of the client executing being redirected to the client, to be arranged on The web player plug-in unit of the client is played out to the audio-video frequency media content.
Therefore, server provided in an embodiment of the present invention, is indicated by the installation for obtaining web player plug-in unit, wherein, The audio-video frequency media content that web player plug-in unit is used in the webpage that client end of playing back is performed, and broadcast to client transmission webpage The installation for putting device plug-in unit is indicated, to cause client to indicate that the installation for obtaining web player plug-in unit is believed according to the installation received Cease and installed, server receives the installation results information for the web player plug-in unit that client is sent, when the installation results When information is that client has installed the web player plug-in unit, the establishment information of web player plug-in unit is intercepted and captured, to client End sends the establishment information of web player plug-in unit, to cause client to create web player plug-in unit, it is achieved thereby that utilizing After server and client side holds consultation to web player plug-in unit, then decided whether to carry out the web player plug-in unit Redirect, also add the application scenarios that can be redirected, in addition to it can redirect Flash plug-in units, other can also be redirected Web player plug-in unit, furthermore it is possible to auto negotiation and download web player plug-in unit, so as to improve user in remote desktop Experience.
Fig. 4 is the schematic diagram for the client that the embodiment of the present invention four is provided.The client is used to perform the embodiment of the present invention The two web player plug-in unit reorientation methods provided.As illustrated, client provided in an embodiment of the present invention includes:First connects Receive unit 41, acquiring unit 42, installation unit 43, transmitting element 44 and processing unit 45.
The installation that first receiving unit 41 is used for the web player plug-in unit that the reception server is sent indicates that the webpage is broadcast The audio-video frequency media content that device plug-in unit is used in the webpage that client end of playing back is performed is put, and the installation instruction is transferred to and obtained Take unit 42;Acquiring unit 42 is used to receive the installation instruction from first receiving unit 41, is indicated according to described install The mount message of the web player plug-in unit is obtained, and the mount message of the web player plug-in unit is transferred to installation Unit 43;Installation unit 43 is used for the mount message that the web player plug-in unit is received from the acquiring unit, installs described Web player plug-in unit;The installation results that transmitting element 44 is used for the web player plug-in unit sent to the server are believed Breath;Processing unit 45 is used for the establishment information for receiving the web player plug-in unit that the server is sent, according to the wound Build web player plug-in unit described in information creating.
Wherein, installation results information has installed web player plug-in unit or client for client can not install the net Page player plug-in unit.
In one embodiment, client provided in an embodiment of the present invention also includes:Feedback unit.
Feedback unit is used for before the installation instruction for the web player plug-in unit that the reception server is sent, to the server Whether feedback client installs the information of the web player plug-in unit.Wherein, the feedback unit is described specifically for receiving Whether the type for the web player plug-in unit that server is sent, itself is determined according to the type of the web player plug-in unit Whether the web player plug-in unit of respective type, the web player plug-in unit of respective type is installed to the server feedback Information.
In another embodiment, the installation of the web player plug-in unit indicates to include the web player plug-in unit Download address;The acquiring unit 42 according to the download address specifically for accessing corresponding server, from the download address Corresponding server obtains the mount message of the web player plug-in unit.
In further embodiment, the establishment information of the web player plug-in unit includes the version of the web player plug-in unit This information or type information;The processing unit 45 is specifically for the version information or type according to the web player plug-in unit Information, and the operation system information of itself, determine application programming interfaces;According to the application programming interfaces of the determination, create The container of the web player plug-in unit and the web player plug-in unit, wherein, the container of the web player plug-in unit is carried For the running environment of the web player plug-in unit;Receive the initialization for the web player plug-in unit that the server is sent Information, is initialized according to the initialization information to the web player plug-in unit and the container.
In further embodiment, client provided in an embodiment of the present invention also includes:Second receiving unit and broadcast unit.
The audio frequency and video that second receiving unit is used in the webpage for the client executing for receiving the server redirection Media content, and by the media content transmission to broadcast unit;Broadcast unit is used to receive from second receiving unit The media content, the media content is played by the web player plug-in unit.
Therefore, client provided in an embodiment of the present invention, the peace of the web player plug-in unit sent by the reception server Dress indicates that the web player plug-in unit is for the audio-video frequency media content in the webpage of client end of playing back execution, according to described The mount message for indicating to obtain the web player plug-in unit is installed, the web player plug-in unit is installed, to the server The mounted information of the web player plug-in unit sent, receives the web player plug-in unit that the server is sent Establishment information, according to it is described establishment information creating described in web player plug-in unit, it is achieved thereby that utilizing server and client After end holds consultation to web player plug-in unit, then decided whether to redirect the web player plug-in unit, also increased The application scenarios that can be redirected are added, in addition to it can redirect Flash plug-in units, other web players can also have been redirected and inserted Part, furthermore it is possible to auto negotiation and download web player plug-in unit, so as to improve experience of the user in remote desktop..
Fig. 5 is the schematic diagram for the server that the embodiment of the present invention five is provided.The server is used to perform the embodiment of the present invention The one web player plug-in unit reorientation method provided.As illustrated, server provided in an embodiment of the present invention includes:Server Port 51, processor 52 and memory 53.Server-bus 54 is used for connection server port 51, processor 52 and memory 53。
Service-Port 51 is connected for client.
Memory 53 can have software module in permanent memory, such as hard disk drive and flash memory, memory 53 And device driver.Software module is able to carry out the various functions module of the above method of the present invention;Device driver can be with It is network and interface drive program.
On startup, these component softwares are loaded into memory 53, are then accessed and are performed such as Fig. 1 by processor 52 Shown method.
Fig. 6 is the schematic diagram for the client that the embodiment of the present invention six is provided.The client is used to perform the embodiment of the present invention The two web player plug-in unit reorientation methods provided.As illustrated, client provided in an embodiment of the present invention includes:Client Port 61, processor 62 and memory 63.Client bus 64 is used for connection server port 61, processor 62 and memory 63。
Client port 61 is connected for server.
Memory 63 can have software module in permanent memory, such as hard disk drive and flash memory, memory 63 And device driver.Software module is able to carry out the various functions module of the above method of the present invention;Device driver can be with It is network and interface drive program.
On startup, these component softwares are loaded into memory 63, are then accessed and are performed such as Fig. 1 by processor 62 Shown method.
Professional should further appreciate that, each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, hard in order to clearly demonstrate The interchangeability of part and software, generally describes the composition and step of each example according to function in the above description. These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme. Professional and technical personnel can realize described function to each specific application using distinct methods, but this realize It is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be included Within protection scope of the present invention.

Claims (24)

1. a kind of web player plug-in unit reorientation method, it is characterised in that methods described includes:
The installation that server obtains web player plug-in unit indicates that the web player plug-in unit is used for what client end of playing back was performed Audio-video frequency media content in webpage;
The installation that the server sends the web player plug-in unit to the client is indicated, to cause the client root Indicate to obtain the mount message of the web player plug-in unit and installed according to the installation;
The server receives the installation results information for the web player plug-in unit that the client is sent;
When the installation results information is that the client has installed the web player plug-in unit, the server intercepts The establishment information of the web player plug-in unit, the establishment information of the web player plug-in unit is sent to the client, with So that the client creates the web player plug-in unit.
2. web player plug-in unit reorientation method according to claim 1, it is characterised in that the acquisition webpage is played Before the installation of device plug-in unit is indicated, in addition to:
Determine whether the client has installed the web player plug-in unit, played if not, performing the acquisition webpage The step of installation of device plug-in unit is indicated.
3. web player plug-in unit reorientation method according to claim 2, it is characterised in that the determination client Whether end has installed the web player plug-in unit, including:
Determine the type of the web player plug-in unit;
According to the type of the web player plug-in unit, the various types of webpages for inquiring about the client of itself preservation are played The mount message of device plug-in unit, knows whether the client has installed the web player plug-in unit.
4. web player plug-in unit reorientation method according to claim 3, it is characterised in that also include:
Consult mount message of the client to various types of web player plug-in units with the client;
Obtain the mount message for various types of web player plug-in units that the client is installed;
Preserve the mount message of the various types of web player plug-in units of the client.
5. web player plug-in unit reorientation method according to claim 3, it is characterised in that the acquisition webpage is played The installation instruction of device plug-in unit, including:
According to the type of the web player plug-in unit, the download address of the web player plug-in unit is obtained;
Indicated the download address of the web player plug-in unit as installation.
6. the web player plug-in unit reorientation method according to claim 1-5 any one, it is characterised in that the side Method also includes:
Audio-video frequency media content in the webpage of the client executing is redirected to the client, to be arranged on institute The web player plug-in unit for stating client is played out to the audio-video frequency media content.
7. a kind of web player plug-in unit reorientation method, it is characterised in that methods described includes:
The installation for the web player plug-in unit that the reception server is sent indicates that the web player plug-in unit is used for client end of playing back Audio-video frequency media content in the webpage of execution;
According to the mount message installed and indicate to obtain the web player plug-in unit;
The web player plug-in unit is installed;
The installation results information of the web player plug-in unit is sent to the server;
The establishment information for the web player plug-in unit that the server is sent is received, according to the establishment information creating Web player plug-in unit.
8. web player plug-in unit reorientation method according to claim 7, it is characterised in that the reception server hair Before the installation of the web player plug-in unit sent is indicated, in addition to:
Whether the information of the web player plug-in unit is installed to the server feedback client.
9. web player plug-in unit reorientation method according to claim 8, it is characterised in that described to the server The information whether feedback client installs the web player plug-in unit includes:
The type for the web player plug-in unit that the server is sent is received, according to the type of the web player plug-in unit Determine itself whether to install the web player plug-in unit of respective type, whether the institute of respective type is installed to the server feedback State the information of web player plug-in unit.
10. web player plug-in unit reorientation method according to claim 7, it is characterised in that the web player The installation of plug-in unit indicates to include the download address of the web player plug-in unit;
It is described to indicate that the mount message of the acquisition web player plug-in unit includes according to described install:
Corresponding server is accessed according to the download address, obtaining the webpage from the corresponding server of the download address plays The mount message of device plug-in unit.
11. web player plug-in unit reorientation method according to claim 7, it is characterised in that the web player The establishment information of plug-in unit includes the version information or type information of the web player plug-in unit;It is described according to the establishment information Creating the web player plug-in unit includes:
According to the version information or type information of the web player plug-in unit, and the operation system information of itself, it is determined that should Use routine interface;
According to the application programming interfaces of the determination, the container and the web player for creating the web player plug-in unit are inserted Part, wherein, the container of the web player plug-in unit provides the running environment of the web player plug-in unit;
The initialization information for the web player plug-in unit that the server is sent is received, according to the initialization information to institute State web player plug-in unit and the container is initialized.
12. web player plug-in unit reorientation method according to claim 11, it is characterised in that methods described is also wrapped Include:
Audio-video frequency media content in the webpage for the client executing for receiving the server redirection;
The media content is played by the web player plug-in unit.
13. a kind of server, it is characterised in that the server includes:
Acquiring unit, the installation for obtaining web player plug-in unit indicates that the web player plug-in unit is used to play client The audio-video frequency media content in the webpage performed is held, and the installation instruction is transferred to transmitting element;
Transmitting element, indicates, sending the webpage to the client plays for receiving described install from the acquiring unit The installation of device plug-in unit is indicated, to cause the client to install the installation for indicating to obtain the web player plug-in unit according to described Information is simultaneously installed;
Receiving unit, the installation results information for receiving the web player plug-in unit that the client is sent, and will The installation results information transfer is to processing unit;
Processing unit, for receiving the installation results information from the receiving unit, when the installation results information is described When client has installed the web player plug-in unit, the establishment information of the web player plug-in unit is intercepted and captured, to the visitor Family end sends the establishment information of the web player plug-in unit, to cause the client to create the web player plug-in unit.
14. server according to claim 13, it is characterised in that the server also includes:
Whether determining unit, before the installation for the acquisition web player plug-in unit is indicated, determine the client The web player plug-in unit is installed, if not, performing the step of installation for obtaining web player plug-in unit is indicated.
15. server according to claim 14, it is characterised in that the determining unit is specifically for determining the webpage The type of player plug-in unit, and according to the type of the web player plug-in unit, inquire about itself preservation the client it is each The mount message of the web player plug-in unit of type, knows whether the client has been installed the web player and inserted Part.
16. server according to claim 15, it is characterised in that the determining unit is additionally operable to assist with the client Client described in business is to the mount message of various types of web player plug-in units, and it is various types of that the acquisition client is installed The mount message of the web player plug-in unit of type, and preserve the installation letter of the various types of web player plug-in units of the client Breath.
17. server according to claim 15, it is characterised in that the acquiring unit is additionally operable to be broadcast according to the webpage The type of device plug-in unit is put, the download address of the web player plug-in unit is obtained;By the download of the web player plug-in unit Location is indicated as installation.
18. the server according to claim 13-17 any one, it is characterised in that the server also includes:
Unit is redirected, for the audio-video frequency media content in the webpage of the client executing to be redirected into the client End, to cause the web player plug-in unit installed in the client to play out the audio-video frequency media content.
19. a kind of client, it is characterised in that the client includes:
First receiving unit, the installation instruction of the web player plug-in unit sent for the reception server, the web player The audio-video frequency media content that plug-in unit is used in the webpage that client end of playing back is performed, and the installation instruction is transferred to acquisition list Member;
Acquiring unit, is indicated for receiving described install from first receiving unit, according to being obtained the installation instruction The mount message of web player plug-in unit, and the mount message of the web player plug-in unit is transferred to installation unit;
Installation unit, the mount message for receiving the web player plug-in unit from the acquiring unit, installs the webpage Player plug-in unit;
Transmitting element, the mounted information for sending the web player plug-in unit to the server;
Processing unit, the establishment information for receiving the web player plug-in unit that the server is sent, according to the wound Build web player plug-in unit described in information creating.
20. client according to claim 19, it is characterised in that the client also includes:
Feedback unit, it is anti-to the server before the installation of the web player plug-in unit sent for the reception server is indicated Whether feedback client installs the information of the web player plug-in unit.
21. client according to claim 20, it is characterised in that the feedback unit is specifically for receiving the service The type for the web player plug-in unit that device is sent, determines whether itself is corresponding according to the type of the web player plug-in unit Whether the web player plug-in unit of type, the letter of the web player plug-in unit of respective type is installed to the server feedback Breath.
22. client according to claim 19, it is characterised in that the installation of the web player plug-in unit indicates to include The download address of the web player plug-in unit;The acquiring unit according to the download address specifically for accessing corresponding with service Device, the mount message of the web player plug-in unit is obtained from the corresponding server of the download address.
23. client according to claim 19, it is characterised in that the establishment information of the web player plug-in unit includes The version information or type information of the web player plug-in unit;The processing unit is specifically for according to the web player The version information or type information of plug-in unit, and the operation system information of itself, determine application programming interfaces;Determined according to described Application programming interfaces, create the container and the web player plug-in unit of the web player plug-in unit, wherein, the webpage The container of player plug-in unit provides the running environment of the web player plug-in unit;Receive the webpage that the server is sent The initialization information of player plug-in unit, is carried out just according to the initialization information to the web player plug-in unit and the container Beginningization.
24. client according to claim 23, it is characterised in that the client also includes:
Second receiving unit, for the audio-video frequency media in the webpage for the client executing for receiving the server redirection Content, and by the media content transmission to broadcast unit;
Broadcast unit, for receiving the media content from second receiving unit, is broadcast by the web player plug-in unit Put the media content.
CN201310146425.9A 2013-04-25 2013-04-25 Web player plug-in unit reorientation method, server and client side Active CN104125198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310146425.9A CN104125198B (en) 2013-04-25 2013-04-25 Web player plug-in unit reorientation method, server and client side

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310146425.9A CN104125198B (en) 2013-04-25 2013-04-25 Web player plug-in unit reorientation method, server and client side

Publications (2)

Publication Number Publication Date
CN104125198A CN104125198A (en) 2014-10-29
CN104125198B true CN104125198B (en) 2017-10-24

Family

ID=51770464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310146425.9A Active CN104125198B (en) 2013-04-25 2013-04-25 Web player plug-in unit reorientation method, server and client side

Country Status (1)

Country Link
CN (1) CN104125198B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134450B (en) * 2018-02-08 2021-08-10 中兴通讯股份有限公司 Video redirection method, device and computer readable storage medium
CN108536523B (en) * 2018-04-20 2020-11-13 南京舆图科技发展有限公司 Method for normal interaction of ActiveX nested Flash in browser
CN110704767B (en) * 2019-09-30 2022-02-15 北京字节跳动网络技术有限公司 Page opening method and device, electronic equipment and storage medium
CN114422637B (en) * 2021-12-20 2023-12-29 阿里巴巴(中国)有限公司 Media request processing method and cross-platform engine system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009020640A2 (en) * 2007-08-08 2009-02-12 Swarmcast, Inc. Media player plug-in installation techniques
CN101587495A (en) * 2009-07-08 2009-11-25 伍帝州 Method and system for downloading and disposing application through browser and providing application entrance
CN102710799A (en) * 2012-06-29 2012-10-03 百度在线网络技术(北京)有限公司 Client plug-in unit installation reminding system and method based on real-time message transmission
CN102830997A (en) * 2012-08-17 2012-12-19 北京金山软件有限公司 Method, device and equipment for controlling plug-in installation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040254832A1 (en) * 2003-06-12 2004-12-16 Michael Harkin Integrated browser plug-in and user defined database
CN101561915A (en) * 2009-06-05 2009-10-21 阿里巴巴集团控股有限公司 Plug-in unit acquiring method, system and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009020640A2 (en) * 2007-08-08 2009-02-12 Swarmcast, Inc. Media player plug-in installation techniques
CN101587495A (en) * 2009-07-08 2009-11-25 伍帝州 Method and system for downloading and disposing application through browser and providing application entrance
CN102710799A (en) * 2012-06-29 2012-10-03 百度在线网络技术(北京)有限公司 Client plug-in unit installation reminding system and method based on real-time message transmission
CN102830997A (en) * 2012-08-17 2012-12-19 北京金山软件有限公司 Method, device and equipment for controlling plug-in installation

Also Published As

Publication number Publication date
CN104125198A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN101682512B (en) WEB media asset identification system and method
US9571599B2 (en) Multimedia redirection in a virtualized environment using a proxy server
US20230344886A1 (en) System and Method for Streaming Content from Multiple Servers
US8266576B2 (en) Sharing live appliances
JP2010536191A5 (en)
CN104125198B (en) Web player plug-in unit reorientation method, server and client side
US9549036B2 (en) Network injected storage redirection for embedded applications
AU3722399A (en) Processing apparatus and method
CA2792038A1 (en) System and method for two way communication and controlling content in a web browser
US9088462B2 (en) Common web accessible data store for client side page processing
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
JP3842071B2 (en) Apparatus and method for handling bookmark events for web pages
EP2176796A2 (en) Method for media discovery
CN104468834A (en) Method and device for processing Cookie data and browser client side
CN104036042B (en) information delivery method, device and system
US8839117B1 (en) Internet browser
CN104811507B (en) A kind of IP address acquisition methods and device
CN105095220A (en) Browser implementation method, terminal and virtualized agent device
JP6585853B2 (en) Threat detection method and apparatus, and network system
CN109756754B (en) Video playing method and device, storage medium and electronic device
CN110267077A (en) Offline cache method, apparatus, terminal and readable storage medium storing program for executing
WO2013032513A2 (en) Systems and methods for common application platforms utilizing shared services
CN104737550A (en) Multimedia redirection method, server and client
CN106844763B (en) A kind of method showed to the Internet media file formula of modifying and its device
EP2003852A1 (en) Method for improving output of data from a remote gateway at a mobile device and download management unit

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220210

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.