CN105163140A - Method and system for playing online videos by using virtual machine - Google Patents
Method and system for playing online videos by using virtual machine Download PDFInfo
- Publication number
- CN105163140A CN105163140A CN201510433850.5A CN201510433850A CN105163140A CN 105163140 A CN105163140 A CN 105163140A CN 201510433850 A CN201510433850 A CN 201510433850A CN 105163140 A CN105163140 A CN 105163140A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- online video
- client
- server
- source file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25808—Management of client data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4437—Implementing a Virtual Machine [VM]
Abstract
The invention discloses a method and system for playing online videos by using a virtual machine. The method comprises steps of: logging in a virtue machine at a client, and acquiring the playing address of an online video when it is detected that the online video is opened on the virtual machine; and sending the playing address to the client in order that the client directly loads a source file of the online video according to the playing address and decodes and plays the source file. By means of the above manner, when the online video is opened on the virtual machine, the corresponding client loads the source file of the online video and decodes and plays the source file. Accordingly, the burden of a server is relieved and the resources occupied by the server are reduced.
Description
Technical field
The present invention relates to virtual machine technique field, particularly relate to method and system that a kind of virtual machine plays Online Video.
Background technology
Virtual machine refer to by software simulation have complete hardware system function, the complete computer operated in a completely isolated environment.Usually, a server can have been lodged multiple virtual machine.
In the cloud computing epoch, user likes usually at data storage server, is hosted by the virtual machine of server by client logs, carries out various operation by controlling virtual machine.Because virtual machine is hosted by server, the hardware resource that virtual machine consumes still is the hardware resource of server, therefore, when user's data large by virtual machine operations, the hardware resource of a large amount of servers can be consumed, such as, when user is by virtual machine viewing Online Video, server needs the source file loading Online Video, the source file of decoding Online Video and broadcasting Online Video, and load source file, decoding source file and broadcasting Online Video all need to consume larger hardware resource, especially when a large number of users is by virtual machine viewing Online Video, then the hardware resource spending of server will be huge, time serious, the operation of server can be affected.
Summary of the invention
The technical problem that the present invention mainly solves is to provide method and the system that a kind of virtual machine plays Online Video, when can open Online Video on a virtual machine, by the client of correspondence load Online Video source file, source file is decoded after play, reduce the burden of server, reduce the resource taking server.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of virtual machine to play the method for Online Video, be included in client logs virtual machine, and detect when opening Online Video on described virtual machine, obtain the broadcast address of described Online Video; Send described broadcast address to described client, to make described client directly load the source file of described Online Video according to broadcast address, and play after described source file is decoded.
Wherein, described client comprises the step that described Online Video is play: obtain described Online Video and be positioned at window data on the desktop of described virtual machine; Send described window data to described client, build the video window of described Online Video on the desktop of described client to make described client according to described window data.
Wherein, described method also comprises: when to when operating described video window in described client, obtain described operating data; The desktop of described virtual machine is adjusted according to described operating data.
Wherein, described send described broadcast address to described client after, described method also comprises: make described virtual machine stop load described Online Video.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of virtual machine to play the system of Online Video, comprise client and server, and on described server, boarding has virtual machine; At described client logs virtual machine, and when opening Online Video on described virtual machine, described server for obtaining the broadcast address of described Online Video, and sends described broadcast address to described client; Described client is used for the source file directly loading described Online Video according to broadcast address, and plays after decoding to described source file.
Wherein, described server is also positioned at the window data on the desktop of described virtual machine for obtaining described Online Video, and sends described window data to described client; Described client is also for building the video window of described Online Video on the desktop of described client according to described window data.
Wherein, described client also for when to when operating described video window in described client, obtains described operating data, and sends described operating data to described server; Described server is used for the desktop adjusting described virtual machine according to described operating data.
Wherein, described server is also for making described virtual machine stop loading described Online Video.
The invention has the beneficial effects as follows: the situation being different from prior art, the present invention is when opening Online Video on a virtual machine, obtain the broadcast address of Online Video, and send broadcast address to the client of correspondence, client directly loads the source file of Online Video according to broadcast address, and play after source file is decoded, make to transfer to client-side corresponding to virtual machine by the server of virtual machine to the decoding of the source file of Online Video and the work of broadcasting, reduce the burden of server, reduce the resource taking server.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that virtual machine of the present invention plays the system embodiment of Online Video;
Fig. 2 is the flow chart that virtual machine of the present invention plays the method execution mode of Online Video;
Fig. 3 is the flow process of method execution mode structure Online Video at the video window of client that virtual machine of the present invention plays Online Video.
Embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Refer to Fig. 1, the system 20 that virtual machine plays Online Video comprises client 21 and server 22, and on server 22, boarding has virtual machine 23.
Log in virtual machine 23 in client 21, and when opening Online Video on virtual machine 23, server 22 for obtaining the broadcast address of Online Video, and sends broadcast address to client 21.Client 21 for directly loading the source file of Online Video according to broadcast address, and is play after decoding to source file.Because virtual machine 23 lives with server 22, virtual machine 23 load Online Video source file, source file to be decoded and the hardware resource of playing Online Video consumption is the hardware resource of server 22.And by load Online Video source file, source file to be decoded and after the work of playing Online Video is transferred to client 21, the hardware resource then loading the source file of Online Video, decode to source file and play Online Video consumption is the hardware resource of client 21, reduce the burden of server 22, reduce the resource taking server 22.
In order to make at the source file loading Online Video in client 21 side, the work of decoding to the source file of Online Video and play Online Video as carried out on virtual machine 23, server 22 is also positioned at the window data on the desktop of virtual machine 23 for obtaining Online Video, and to client 21 send window data.Client 21 is also for building the video window of Online Video on the desktop of client 21 according to window data.Preferably, the video window of the video window of Online Video on the desktop of client 21 just with Online Video on the desktop of virtual machine 23 overlaps, as Online Video is opened on virtual machine 23.
Further, client 21 also for when to when operating at client 21 pairs of video windows, obtains operating data, and to server 22 transmit operation data.Server 22 is for the desktop according to operating data adjustment virtual machine 23, and make to operate the Online Video of client 21 to operate Online Video as on virtual machine 23, Consumer's Experience is better.
It should be noted that: after sending broadcast address to client 21, when carrying out decoding broadcasting by client 21 pairs of Online Videos, virtual machine 23 can be made to stop loading Online Video, but can retain in virtual machine 23 side the window opening Online Video; Certainly, in other alternate embodiments, also can hide the window of Online Video in virtual machine 23 side or close the window of Online Video.
In embodiments of the present invention, when opening Online Video on a virtual machine, obtain the broadcast address of Online Video, and send broadcast address to the client of correspondence, client directly loads the source file of Online Video according to broadcast address, and plays after decoding to source file, makes to transfer to client-side corresponding to virtual machine by the server of virtual machine to the decoding of the source file of Online Video and the work of broadcasting, reduce the burden of server, reduce the resource taking server.
Refer to Fig. 2, method comprises:
Step S11: at client logs virtual machine, and detect when opening Online Video on a virtual machine, obtain the broadcast address of Online Video;
Virtual machine runs on the server, and a server can run multiple virtual machine.Client can virtual machine on logon server.It should be noted that: virtual machine is the virtual subject run on the server, virtual machine make hardware resource be server self configuration hardware resource.
Step S12: send broadcast address to client, to make client directly load the source file of Online Video according to broadcast address, and play after source file is decoded;
The source file that client loads Online Video according to broadcast address refers to that client is according to broadcast address, the source file of Online Video is downloaded to this locality of client.In the process that source file has loaded or loaded, client this locality is play after decoding to source file, make the work that the hardware resource of server should be utilized to decode to source file, transfer to client-side to decode, reduce the burden of server, reduce the resource taking server.
In order to make after client is transferred in the work of playing source file, still ensure that Online Video is as play on a virtual machine in visual effect, as shown in Figure 3, client is carried out broadcasting to Online Video and is comprised:
Step S121: acquisition Online Video is positioned at the window data on the desktop of virtual machine;
Step S122: to client send window data, builds the video window of Online Video on the desktop of client to make client according to window data.
Preferably, Online Video just overlaps with the window on described Online Video on a virtual machine desktop at the window of client, presents from visual effect the effect playing Online Video at virtual machine.
Further, method also comprises:
Step S13: when to when operating video window in client, obtain operating data;
Step S14: according to the desktop of operating data adjustment virtual machine.
Operate video window in client, corresponding operation is synchronized on the desktop of virtual machine, and operate Online Video as at virtual machine, Consumer's Experience is better.
It should be noted that: after sending broadcast address to client, when decoding broadcasting being carried out to Online Video by client, make virtual machine stop loading Online Video, but the window opening Online Video can be retained at virtual pusher side; Certainly, in other alternate embodiments, the window of line video also can be hidden at virtual pusher side.
In embodiments of the present invention, when opening Online Video on a virtual machine, obtain the broadcast address of Online Video, and send broadcast address to the client of correspondence, client directly loads the source file of Online Video according to broadcast address, and plays after decoding to source file, makes to transfer to client-side corresponding to virtual machine by the server of virtual machine to the decoding of the source file of Online Video and the work of broadcasting, reduce the burden of server, reduce the resource taking server.
The present invention also provides virtual machine to play the system embodiment of Online Video.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (8)
1. virtual machine plays a method for Online Video, it is characterized in that, comprising:
At client logs virtual machine, and detect when opening Online Video on described virtual machine, obtain the broadcast address of described Online Video;
Send described broadcast address to described client, to make described client directly load the source file of described Online Video according to broadcast address, and play after described source file is decoded.
2. method according to claim 1, is characterized in that,
Described client comprises the step that described Online Video is play:
Obtain described Online Video and be positioned at window data on the desktop of described virtual machine;
Send described window data to described client, build the video window of described Online Video on the desktop of described client to make described client according to described window data.
3. method according to claim 2, is characterized in that,
Described method also comprises:
When to when operating described video window in described client, obtain described operating data;
The desktop of described virtual machine is adjusted according to described operating data.
4. method according to claim 1, is characterized in that,
Described send described broadcast address to described client after, described method also comprises:
Described virtual machine is made to stop loading described Online Video.
5. virtual machine plays a system for Online Video, it is characterized in that, comprises client and server, and on described server, boarding has virtual machine;
At described client logs virtual machine, and when opening Online Video on described virtual machine, described server for obtaining the broadcast address of described Online Video, and sends described broadcast address to described client;
Described client is used for the source file directly loading described Online Video according to broadcast address, and plays after decoding to described source file.
6. system according to claim 5, is characterized in that,
Described server is also positioned at the window data on the desktop of described virtual machine for obtaining described Online Video, and sends described window data to described client;
Described client is also for building the video window of described Online Video on the desktop of described client according to described window data.
7. system according to claim 6, is characterized in that,
Described client also for when to when operating described video window in described client, obtains described operating data, and sends described operating data to described server;
Described server is used for the desktop adjusting described virtual machine according to described operating data.
8. system according to claim 5, is characterized in that,
Described server is also for making described virtual machine stop loading described Online Video.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510433850.5A CN105163140A (en) | 2015-07-22 | 2015-07-22 | Method and system for playing online videos by using virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510433850.5A CN105163140A (en) | 2015-07-22 | 2015-07-22 | Method and system for playing online videos by using virtual machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105163140A true CN105163140A (en) | 2015-12-16 |
Family
ID=54803880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510433850.5A Pending CN105163140A (en) | 2015-07-22 | 2015-07-22 | Method and system for playing online videos by using virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105163140A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106888385A (en) * | 2017-01-17 | 2017-06-23 | 武汉噢易云计算股份有限公司 | Video broadcasting method and system of the client under virtualized environment |
CN107920259A (en) * | 2017-10-31 | 2018-04-17 | 深信服科技股份有限公司 | Virtual platform video playing accelerated method, virtual machine server and storage medium |
CN110062286A (en) * | 2019-02-22 | 2019-07-26 | 上海映云信息技术有限公司 | A method of realizing that video redirects in virtual desktop |
CN110138817A (en) * | 2018-02-08 | 2019-08-16 | 中兴通讯股份有限公司 | Flow media playing method, device, equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547394A (en) * | 2011-12-27 | 2012-07-04 | 福建升腾资讯有限公司 | Universal audio/video redirection method for cloud access devices under VDI (Video Desktop Infrastructure) environment |
CN102761603A (en) * | 2012-06-07 | 2012-10-31 | 福建升腾资讯有限公司 | Webpage flash video redirection method in VDI environment |
CN103905927A (en) * | 2012-12-26 | 2014-07-02 | 华为技术有限公司 | Video redirection method under virtual desktop scene, desktop server and system |
CN104144351A (en) * | 2014-04-04 | 2014-11-12 | 北京泰然神州科技有限公司 | Video playing method and device applying virtualization platform |
CN104168486A (en) * | 2013-05-20 | 2014-11-26 | 上海范氏科技投资发展集团有限公司 | Virtual machine and client video redirection method based on cloud computing |
-
2015
- 2015-07-22 CN CN201510433850.5A patent/CN105163140A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547394A (en) * | 2011-12-27 | 2012-07-04 | 福建升腾资讯有限公司 | Universal audio/video redirection method for cloud access devices under VDI (Video Desktop Infrastructure) environment |
CN102761603A (en) * | 2012-06-07 | 2012-10-31 | 福建升腾资讯有限公司 | Webpage flash video redirection method in VDI environment |
CN103905927A (en) * | 2012-12-26 | 2014-07-02 | 华为技术有限公司 | Video redirection method under virtual desktop scene, desktop server and system |
CN104168486A (en) * | 2013-05-20 | 2014-11-26 | 上海范氏科技投资发展集团有限公司 | Virtual machine and client video redirection method based on cloud computing |
CN104144351A (en) * | 2014-04-04 | 2014-11-12 | 北京泰然神州科技有限公司 | Video playing method and device applying virtualization platform |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106888385A (en) * | 2017-01-17 | 2017-06-23 | 武汉噢易云计算股份有限公司 | Video broadcasting method and system of the client under virtualized environment |
CN107920259A (en) * | 2017-10-31 | 2018-04-17 | 深信服科技股份有限公司 | Virtual platform video playing accelerated method, virtual machine server and storage medium |
CN110138817A (en) * | 2018-02-08 | 2019-08-16 | 中兴通讯股份有限公司 | Flow media playing method, device, equipment and computer readable storage medium |
CN110062286A (en) * | 2019-02-22 | 2019-07-26 | 上海映云信息技术有限公司 | A method of realizing that video redirects in virtual desktop |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10083054B2 (en) | Application-based computing resource management | |
CN105163140A (en) | Method and system for playing online videos by using virtual machine | |
US20170046013A1 (en) | Web-browser based desktop and application remoting solution | |
US20120317236A1 (en) | Web-Browser Based Desktop And Application Remoting Solution | |
CN102521018A (en) | Cloud-based virtual clipboard | |
US9930130B2 (en) | Processing hybrid data using a single web client | |
US11017013B2 (en) | Image cache collaboration between clients in remote desktop environments | |
CN110765744A (en) | Multi-person collaborative document editing method and system | |
US11789765B2 (en) | Collaborative hosted virtual systems and methods | |
GB2529967A (en) | Optimizing loading of web page based on aggregated user preferences for web page elements of web page | |
GB2471983B (en) | Data synchronisation | |
WO2016058534A1 (en) | Method and system for serving virtual desktop to client | |
GB0509904D0 (en) | Method, apparatus and computer program for facilitating communication between a client application and a server application | |
CN110134450B (en) | Video redirection method, device and computer readable storage medium | |
CN103501295B (en) | A kind of remote access method based on virtual machine (vm) migration and equipment | |
GB2408822B (en) | Mechanism for implementing server-side pluglets | |
US20130282560A1 (en) | Application accessibility system and method | |
Støer et al. | Reuse of controls in nested case-control studies | |
CN102724213B (en) | A kind of virtual seamless desktop and implementation method | |
CN103873924A (en) | Video redirecting method, device and system | |
KR101480140B1 (en) | Multi injection server and method thereof | |
US20160088079A1 (en) | Streaming playout of media content using interleaved media players | |
US8825739B2 (en) | Method and apparatus for controlling multiple systems in a low bandwidth environment | |
CN205450882U (en) | Computer system of many displays terminal sharing host computer | |
CN108600860A (en) | A kind of method and system accelerating video based on SPICE protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151216 |
|
RJ01 | Rejection of invention patent application after publication |