WO2015196571A1 - Method, system, server and storing medium for playing multimedia - Google Patents

Method, system, server and storing medium for playing multimedia Download PDF

Info

Publication number
WO2015196571A1
WO2015196571A1 PCT/CN2014/086320 CN2014086320W WO2015196571A1 WO 2015196571 A1 WO2015196571 A1 WO 2015196571A1 CN 2014086320 W CN2014086320 W CN 2014086320W WO 2015196571 A1 WO2015196571 A1 WO 2015196571A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia stream
server
data information
multimedia
interaction interface
Prior art date
Application number
PCT/CN2014/086320
Other languages
French (fr)
Chinese (zh)
Inventor
陈俊霖
张徐瑜
张华强
汪翼
梁亮
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015196571A1 publication Critical patent/WO2015196571A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast

Definitions

  • the present invention relates to cloud computing technologies, and in particular, to a method and system for playing multimedia, a server, and a storage medium.
  • the remote virtual interface adopts a client-server mode, and virtualizes a set of virtual interfaces required by the user on the server in the cloud, that is, the remote data center, and displays the virtual interface on the client.
  • the client and the virtual interface are the same as the operation interface on the general host; in the case where the Internet is becoming more and more popular, the remote virtual interface technology can save resources and flexibly allocate hardware resources.
  • the virtual interface needs to be shared with many users at the same time.
  • the user corresponding to the demo is typically accessed by a user who needs to demonstrate.
  • the virtual interface system performs relevant operations, and then pushes the virtual interface to other clients through the server corresponding to the virtual interface system for other users to view.
  • the virtual interface that needs to be shared is directly mirrored to the presentation client, and the audio and video that are finally presented on the virtual interface are respectively encoded into a stream in a fixed format and sent to the viewing client.
  • the above solution can meet the needs of users for general demonstration operations; however, for playing multimedia information, especially high-definition multimedia information, the user experience is greatly reduced due to insufficient fluency of audio and video;
  • the multimedia player 12 first reads the pre-played original multimedia source 11 and decodes the data corresponding to the original multimedia source 11 and presents it to the virtual interface 13 corresponding to the presenter.
  • the fluency of the multimedia information on the virtual interface of the client is greatly reduced; and, because the frame rate of the multimedia stream is higher, the frame rate in the virtual interface system is lower, and if the multimedia information corresponding to the multimedia stream is presented more smoothly, then
  • the frequency of the multimedia stream needs to be increased, which will increase the unnecessary and repeated desktop image encoding transmission process, which will increase the overhead of the server, and thus the fluency of the multimedia information presented on the virtual interface of the client is reduced;
  • the frequency of the multimedia stream is presented in the stream of multimedia information on the virtual interface of the client. Degree will be greatly reduced.
  • the embodiments of the present invention provide a method and system for playing multimedia, a server, and a storage medium, which can overcome the problem that the multimedia information presented on the client is not smooth due to excessive server overhead.
  • the embodiment of the invention provides a method for playing multimedia, which is applied to a server; the method includes:
  • the method before the acquiring the multimedia stream, the method further includes:
  • the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
  • the acquiring the pre-played multimedia stream includes:
  • a pre-played multimedia stream is determined based on the identification.
  • the embodiment of the invention further provides a method for playing multimedia, the method relates to a server and N clients; the method includes:
  • the N clients respectively receive data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
  • the method before the server obtains the pre-played multimedia stream, the method further includes:
  • the server sets a virtual interaction interface, and presents the virtual interaction interface on the N clients;
  • the server acquires the identifier, and determines a pre-played multimedia stream corresponding to the identifier.
  • the method further includes:
  • the N clients corresponding to the preset multicast group display the data information received by themselves on their own virtual interactive interface.
  • the embodiment of the invention further provides a server, the server comprising:
  • a first acquiring unit configured to acquire a pre-played multimedia stream
  • a second acquiring unit configured to acquire, according to the multimedia stream, data information corresponding to the multimedia stream
  • the sending unit is configured to send the data information corresponding to the multimedia stream by using a multicast manner.
  • the server further includes:
  • the setting unit is configured to set a virtual interaction interface; the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
  • a third acquiring unit configured to acquire, by using the virtual interaction interface, an identifier corresponding to the multimedia stream
  • the first acquiring unit is further configured to determine a pre-played multimedia stream according to the identifier.
  • the embodiment of the invention further provides a system for playing multimedia, the system comprising: a server and N clients; wherein
  • the server is configured to obtain the pre-played multimedia stream, and obtain the data information corresponding to the multimedia stream, and send the data information corresponding to the multimedia stream to the N clients corresponding to the preset multicast group by using a multicast mode.
  • the client is configured to receive the data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
  • the server is further configured to set a virtual interaction interface, and present the virtual interaction interface on the N clients.
  • a client configured to determine, by using the virtual interaction interface, an identifier of the pre-played multimedia stream; correspondingly,
  • the server is further configured to acquire the identifier, and determine a pre-played multimedia stream corresponding to the identifier.
  • the client is further configured to display the data information received by itself on its own virtual interactive interface.
  • the method and system for playing multimedia, the server, and the storage medium strip the multimedia stream from the system corresponding to the virtual interaction interface, so that the multimedia stream is not decoded by the system corresponding to the virtual interaction interface.
  • the code is not encoded by the server corresponding to the virtual interactive interface, but the original undecoded multimedia stream is directly sent to the multicast mode.
  • On each client corresponding to the multicast group each client is decoded and presented on the virtual interaction interface of each client. Therefore, the problem that the multimedia information presented on the client is not smooth due to excessive server overhead can be overcome.
  • FIG. 1 is a schematic flowchart of an implementation process of a method for playing multimedia in the prior art
  • FIG. 2 is a schematic flowchart 1 of an implementation process of a method for playing multimedia according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 4 is a second schematic diagram of an implementation process of a method for playing multimedia according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart 3 of an implementation process of a method for playing multimedia according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a system for playing multimedia according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a specific implementation of a method for playing multimedia according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a system for playing multimedia according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of an implementation of a method for playing multimedia according to an embodiment of the present invention; the method is applied to a server; and the server can send data to a multicast group corresponding to the multicast group according to a preset multicast group.
  • Step 201 Acquire a pre-played multimedia stream.
  • Step 202 Acquire data information corresponding to the multimedia stream according to the multimedia stream, and send data information corresponding to the multimedia stream by using a multicast manner.
  • the method before the acquiring the multimedia stream, the method further includes:
  • the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
  • the acquiring the pre-played multimedia stream includes:
  • a pre-played multimedia stream is determined based on the identification.
  • the data information corresponding to the multimedia stream includes data information corresponding to the multimedia stream, format information, time information, and location information of the multimedia stream.
  • the server is connected to each client corresponding to the preset multicast group, and then the server sets a virtual interaction system, and displays a virtual interaction interface corresponding to the virtual interaction system on each client.
  • a pre-presented client in the client determines an identifier of the pre-played multimedia stream through its virtual interaction interface, and sends the identifier to the server through the virtual interaction interface, the server according to the identifier Determining a pre-played multimedia stream, and reading the multimedia stream through a multimedia player in the server, when the multimedia player reads the multimedia stream, the multimedia stream is used by the multimedia stream capturer in the server Capture, the multimedia stream capturer identifies format information, time information, and location information of the captured multimedia stream, and encapsulates the information and the data information of the multimedia stream, and directly sends the data to the corresponding multicast group.
  • the server sets a virtual interaction system, and displays a virtual interaction interface corresponding to the virtual interaction system on each client.
  • a pre-presented client in the client determines an
  • the multimedia player in the server of the embodiment of the present invention does not need to decode the pre-played multimedia stream and is presented to the pre-demo, as compared with the prior art, because the multimedia stream obtained by the server is not encoded by the virtual interactive system.
  • the multimedia stream is not required to be encoded, but the multimedia stream is directly sent to each client corresponding to the preset multicast group through the multimedia stream capture device; at this time, the settings are set in each client.
  • a multi-format decoder which decodes each received multimedia stream and its format information, time information, and location information by the multi-format decoder, and presents the multimedia stream to its own corresponding according to the time information and the location information.
  • the embodiment of the present invention can overcome the service
  • the overhead of the server is too large, and the multimedia information presented on the client is not smooth. .
  • the embodiment of the present invention further provides a server corresponding to the foregoing method, where the server can send data to each client corresponding to the multicast group by using a multicast mode according to a preset multicast group.
  • the server includes:
  • the first obtaining unit 31 is configured to acquire a pre-played multimedia stream.
  • the second obtaining unit 32 is configured to acquire, according to the multimedia stream, data information corresponding to the multimedia stream;
  • the sending unit 33 is configured to send the data information corresponding to the multimedia stream in a multicast manner.
  • the server further includes:
  • the setting unit is configured to set a virtual interaction interface; the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
  • a third acquiring unit configured to acquire, by using the virtual interaction interface, an identifier corresponding to the multimedia stream
  • the first obtaining unit 31 is further configured to determine a pre-played multimedia stream according to the identifier.
  • the first obtaining unit, the second obtaining unit, the sending unit, the setting unit, and the third obtaining unit may all run on a computer, and may be a central processing unit (CPU) or a microprocessor (MPU) located on the computer. Or a digital signal processor (DSP), or a programmable gate array (FPGA) implementation; for example, the function of the first acquisition unit can be implemented by a multimedia player in a computer; the function of the second acquisition unit can be operated Implemented in the multimedia capture device.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA programmable gate array
  • the embodiment of the present invention further provides a first computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method for playing multimedia according to the first embodiment of the present invention.
  • FIG. 4 is a schematic flowchart 2 of an implementation process of a method for playing multimedia according to an embodiment of the present invention; the method is applied to a client; the method includes:
  • Step 401 Receive data information corresponding to the multimedia stream.
  • Step 402 Decode the data information, and present the decoded data information corresponding to the multimedia stream.
  • a pre-presented client in the client passes its virtual interaction.
  • the interface determines an identifier of the pre-played multimedia stream, and sends the identifier to the server by using the virtual interaction interface, where the server determines the pre-played multimedia stream according to the identifier, and acquires the multimedia stream according to the multimedia stream.
  • the multi-format decoder in the terminal itself decodes the data information, and presents the decoded data information corresponding to the multimedia stream in its corresponding virtual interaction interface.
  • each client since the data information of the multimedia stream sent by the server includes data information corresponding to the multimedia stream, and format information, time information, and location information of the multimedia stream, each client may use its own multi-format decoder.
  • the data information corresponding to the received multimedia stream and its format information, time information and location information are decoded, and the multimedia stream is presented in its corresponding virtual interaction interface according to the time information and the location information.
  • FIG. 5 is a schematic flowchart 3 of an implementation process of a method for playing multimedia according to an embodiment of the present invention; the method relates to a server and N clients; and the server can send data to the The N clients corresponding to the multicast group; as shown in FIG. 5, the method includes:
  • Step 501 The server acquires a pre-played multimedia stream, and acquires the multimedia stream pair. Sending, by the multicast data, the data information corresponding to the multimedia stream to the N clients corresponding to the preset multicast group;
  • Step 502 The N clients respectively receive data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
  • the method before the server obtains the pre-played multimedia stream, the method further includes:
  • the server sets a virtual interaction interface, and presents the virtual interaction interface on the N clients;
  • the server acquires the identifier, and determines a pre-played multimedia stream corresponding to the identifier.
  • the method further includes:
  • the N clients corresponding to the preset multicast group display the data information received by themselves on their own virtual interactive interface.
  • an embodiment of the present invention further provides a system for playing multimedia corresponding to the foregoing method.
  • the system includes: a server 61 and N clients 62;
  • a multicast group is configured to send data to the N clients corresponding to the multicast group by using a multicast mode, where
  • the server 61 is configured to acquire a pre-played multimedia stream, and obtain data information corresponding to the multimedia stream, and send the data information corresponding to the multimedia stream to the N customers corresponding to the preset multicast group by using a multicast mode. end;
  • the client 62 is configured to receive data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
  • the server 61 is further configured to set a virtual interaction interface, and present the virtual interaction interface on the N clients.
  • the client 62 is configured to determine, by using the virtual interaction interface, an identifier of the pre-played multimedia stream; correspondingly,
  • the server 61 is further configured to acquire the identifier, and determine a pre-played multimedia stream corresponding to the identifier.
  • the client 62 is further configured to display the data information received by itself on its own virtual interactive interface.
  • the embodiment of the present invention further provides a second computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method for playing multimedia according to the third embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a specific implementation of a method for playing multimedia according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of a specific structure of a system for playing multimedia according to an embodiment of the present invention
  • FIG. 7 is a schematic flowchart of a specific implementation of a method for playing multimedia according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of a specific structure of a system for playing multimedia according to an embodiment of the present invention
  • FIG. In the remote virtual interactive interface of multi-way push, the specific steps of the method for efficiently playing multimedia include:
  • Step 701 The client corresponding to the user is logged into the virtual interaction system 81, and the virtual interaction interface 89 is displayed on the presentation user client 86.
  • Step 702 Each viewing user client 87 is connected to the server 80 and added to the multicast group corresponding to the virtual interaction interface.
  • steps 701 and 702 can be reversed.
  • Step 703 On the presentation user client 86, the original pre-played original multimedia source 82 of the multimedia player 83 is opened through the virtual interaction interface 89;
  • Step 704 The multimedia player 83 acquires a multimedia stream corresponding to the original multimedia source 82.
  • Step 705 The multimedia stream in the multimedia player 83 is captured by the multimedia stream capture unit 84 in the server 80, and the multimedia stream capture unit 84 reads the format letter of the multimedia stream.
  • the information, the time information, and the location information are encapsulated, and the data information corresponding to the multimedia stream and the format information, the time information, and the location information of the multimedia stream are encapsulated and then multicasted to each viewing user client corresponding to the multicast group.
  • end 87 On end 87;
  • the encapsulated data information corresponding to the multimedia stream and the format information, time information and location information of the multimedia stream are sent to the viewing user client 87 through the communication module 85 in the server 80;
  • the multimedia player Under the condition that the operating system of the server is the Windows operating system, the multimedia player generally uses the media Foundation architecture for multimedia playback. Each time the multimedia is played, a media session object and a Topology object are created, and the media session object is used to Playback controls; the Topology object includes a series of interconnected playback components, such as media source, stream, decoder, etc. Each play component describes the data flow of the entire playback process and allows customization of the Topology object.
  • the multimedia stream capturer is a specially customized Topology object under the media Foundation framework, and the multimedia stream capturer is loaded by the multimedia player, and then captured by the multimedia stream during playback.
  • the device directly forwards the data to the communication module in the server to forward the data through the communication module.
  • Step 706 After receiving the encapsulated data information corresponding to the multimedia stream and the format information, time information, and location information of the multimedia stream, each viewing user client 87 uses its own multi-format decoder 88 according to the format information. The multimedia stream is decoded, and then the decoded multimedia stream is presented to the virtual interactive interface 89 of each viewing user client 87 for viewing by the user according to the time information and the location information.
  • the multimedia stream read from the original multimedia source can theoretically be in any format, a multi-format decoder is used in the client instead of the fixed-format decoder in the prior art.
  • the multimedia stream is usually soft-solved using the CPU in the client, but if the hardware of the client allows, the client will use the hard solution to speed up the decoding process.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the multimedia stream is stripped from the system corresponding to the virtual interaction interface, so that the multimedia stream is not decoded by the system corresponding to the virtual interaction interface, and is not encoded by the server corresponding to the virtual interaction interface. Rather, the original undecoded multimedia stream is directly sent to each client corresponding to the multicast group through multicast, and each client is decoded and presented on the virtual interactive interface of each client. Therefore, the server overhead can be overcome. The large resulting multimedia information presented on the client is not smooth.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed in embodiments of the present invention is a method for playing multi-media, which is applied to a server; the method includes: obtaining a pre-played multimedia stream; obtaining data information corresponding to the multimedia stream according to the multimedia stream, and transmitting the data information corresponding to the multimedia stream by multicasting. A system, server and storing medium for playing multi-media are also disclosed in the embodiments of the present invention.

Description

播放多媒体的方法及系统、服务器、存储介质Method and system for playing multimedia, server, storage medium 技术领域Technical field
本发明涉及云计算技术,尤其涉及一种播放多媒体的方法及系统、服务器、存储介质。The present invention relates to cloud computing technologies, and in particular, to a method and system for playing multimedia, a server, and a storage medium.
背景技术Background technique
远程虚拟界面,采用客户端-服务器的模式,在云端,即远程数据中心的服务器上虚拟出一套用户需要的虚拟界面,并将所述虚拟界面显示于客户端上,此时,用户使用所述客户端与所述虚拟界面,就像使用一般主机上的操作界面一样;在互联网越来越普及的情况下,所述远程虚拟界面技术即能节省资源,又能灵活地分配硬件资源。The remote virtual interface adopts a client-server mode, and virtualizes a set of virtual interfaces required by the user on the server in the cloud, that is, the remote data center, and displays the virtual interface on the client. The client and the virtual interface are the same as the operation interface on the general host; in the case where the Internet is becoming more and more popular, the remote virtual interface technology can save resources and flexibly allocate hardware resources.
在很多的应用场景下,比如:教育,会议等场景,需要把虚拟界面共享给很多用户同时使用,在这种场景下,一般是由某个需要演示的用户将演示用户对应的客户端接入虚拟界面系统并进行相关操作,然后通过所述虚拟界面系统对应的服务器将所述虚拟界面推送到其他客户端上,供其他用户进行观看。In many application scenarios, such as education, conferences, etc., the virtual interface needs to be shared with many users at the same time. In this scenario, the user corresponding to the demo is typically accessed by a user who needs to demonstrate. The virtual interface system performs relevant operations, and then pushes the virtual interface to other clients through the server corresponding to the virtual interface system for other users to view.
在现有方案中,通常将需要共享的虚拟界面直接镜像推送至观看客户端上呈现,即将最终呈现在虚拟界面上的音频和视频,各自编码成固定格式的一个流,并发送至观看客户端上呈现。上述方案,对于一般的演示操作,能够满足用户需求;但是,对于播放多媒体信息,特别是高清多媒体信息,则会因为音频和视频的流畅度不足导致用户体验大大降低;其原因在于,如图1所示,在现有虚拟界面系统18里,多媒体播放器12会先读取预播放的原始多媒体源11,并将所述原始多媒体源11对应的数据解码后呈现到演示者对应的虚拟界面13上,然后在虚拟界面对应的服务器19的 编码器14中将播放有所述原始多媒体源的整个虚拟界面中的音频和视频再一次分别编码成一个流,将各流通过通信模块15发送至各观看客户端10的各解码模块16上,经各编码模块16解码后呈现于各客户端的虚拟界面17上;如此,在虚拟界面系统中和所述虚拟界面系统对应的服务器中均多次编码、解码所述原始多媒体源,导致最终呈现在客户端的虚拟界面上的多媒体信息的流畅度大大降低;而且,由于多媒体流的帧率较高,但虚拟界面系统中的帧率较低,若要较流畅地呈现多媒体流对应的多媒体信息,则需要提升多媒体流的频率,从而会增加很多不必要的、重复的桌面影像编码传输过程,如此会增加服务器的开销,进而导致呈现于客户端的虚拟界面上的多媒体信息的流畅度降低;若不提升多媒体流的频率,则呈现于客户端的虚拟界面上的多媒体信息的流畅度则会大大下降。In the existing solution, the virtual interface that needs to be shared is directly mirrored to the presentation client, and the audio and video that are finally presented on the virtual interface are respectively encoded into a stream in a fixed format and sent to the viewing client. Presented on. The above solution can meet the needs of users for general demonstration operations; however, for playing multimedia information, especially high-definition multimedia information, the user experience is greatly reduced due to insufficient fluency of audio and video; As shown, in the existing virtual interface system 18, the multimedia player 12 first reads the pre-played original multimedia source 11 and decodes the data corresponding to the original multimedia source 11 and presents it to the virtual interface 13 corresponding to the presenter. On, then on the virtual interface corresponding to the server 19 The audio and video in the entire virtual interface in which the original multimedia source is played are once again encoded into one stream, and the streams are sent to the decoding modules 16 of the viewing clients 10 through the communication module 15 in the encoder 14 . After being decoded by each encoding module 16, it is displayed on the virtual interface 17 of each client; thus, the original multimedia source is encoded and decoded multiple times in the virtual interface system and the server corresponding to the virtual interface system, resulting in final rendering. The fluency of the multimedia information on the virtual interface of the client is greatly reduced; and, because the frame rate of the multimedia stream is higher, the frame rate in the virtual interface system is lower, and if the multimedia information corresponding to the multimedia stream is presented more smoothly, then The frequency of the multimedia stream needs to be increased, which will increase the unnecessary and repeated desktop image encoding transmission process, which will increase the overhead of the server, and thus the fluency of the multimedia information presented on the virtual interface of the client is reduced; The frequency of the multimedia stream is presented in the stream of multimedia information on the virtual interface of the client. Degree will be greatly reduced.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种播放多媒体的方法及系统、服务器、存储介质,能克服服务器开销过大而导致的呈现于客户端的多媒体信息不流畅的问题。In order to solve the existing technical problems, the embodiments of the present invention provide a method and system for playing multimedia, a server, and a storage medium, which can overcome the problem that the multimedia information presented on the client is not smooth due to excessive server overhead.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种播放多媒体的方法,应用于服务器;所述方法包括:The embodiment of the invention provides a method for playing multimedia, which is applied to a server; the method includes:
获取预播放的多媒体流;Obtain a pre-played multimedia stream;
根据所述多媒体流获取所述多媒体流对应的数据信息,并通过组播方式发送所述多媒体流对应的数据信息。Acquiring the data information corresponding to the multimedia stream according to the multimedia stream, and transmitting the data information corresponding to the multimedia stream by using a multicast manner.
上述方案中,所述获取多媒体流之前,所述方法还包括:In the foregoing solution, before the acquiring the multimedia stream, the method further includes:
设置虚拟交互界面;所述虚拟交互界面能够显示于预设组播组对应的各客户端上;Setting a virtual interaction interface; the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
通过所述虚拟交互界面获取多媒体流对应的标识; Obtaining an identifier corresponding to the multimedia stream by using the virtual interaction interface;
对应地,所述获取预播放的多媒体流,包括:Correspondingly, the acquiring the pre-played multimedia stream includes:
根据所述标识确定预播放的多媒体流。A pre-played multimedia stream is determined based on the identification.
本发明实施例还提供了一种播放多媒体的方法,所述方法涉及到服务器和N个客户端;所述方法包括:The embodiment of the invention further provides a method for playing multimedia, the method relates to a server and N clients; the method includes:
所述服务器获取预播放的多媒体流,并获取所述多媒体流对应的数据信息,通过组播方式将多媒体流对应的数据信息发送至预设组播组对应的所述N个客户端;Obtaining, by the server, the pre-played multimedia stream, and acquiring the data information corresponding to the multimedia stream, and transmitting the data information corresponding to the multimedia stream to the N clients corresponding to the preset multicast group by using a multicast manner;
所述N个客户端分别接收多媒体流对应的数据信息,解码所述数据信息,并呈现解码后的所述多媒体流对应的数据信息。The N clients respectively receive data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
上述方案中,所述服务器获取预播放的多媒体流之前,所述方法还包括:In the above solution, before the server obtains the pre-played multimedia stream, the method further includes:
所述服务器设置虚拟交互界面,并将所述虚拟交互界面呈现于所述N个客户端上;The server sets a virtual interaction interface, and presents the virtual interaction interface on the N clients;
所述N个客户端中的任一客户端通过所述虚拟交互界面确定预播放的所述多媒体流的标识;Determining, by the virtual interaction interface, the identifier of the pre-played multimedia stream by using any one of the N clients;
所述服务器获取所述标识,并确定所述标识对应的预播放的多媒体流。The server acquires the identifier, and determines a pre-played multimedia stream corresponding to the identifier.
上述方案中,所述方法还包括:In the above solution, the method further includes:
所述预设组播组对应的所述N个客户端将自身接收的数据信息显示于自身的虚拟交互界面上。The N clients corresponding to the preset multicast group display the data information received by themselves on their own virtual interactive interface.
本发明实施例还提供了一种服务器,所述服务器包括:The embodiment of the invention further provides a server, the server comprising:
第一获取单元,配置为获取预播放的多媒体流;a first acquiring unit, configured to acquire a pre-played multimedia stream;
第二获取单元,配置为根据所述多媒体流获取所述多媒体流对应的数据信息;a second acquiring unit, configured to acquire, according to the multimedia stream, data information corresponding to the multimedia stream;
发送单元,配置为通过组播方式发送所述多媒体流对应的数据信息。The sending unit is configured to send the data information corresponding to the multimedia stream by using a multicast manner.
上述方案中,所述服务器还包括: In the above solution, the server further includes:
设置单元,配置为设置虚拟交互界面;所述虚拟交互界面能够显示于预设组播组对应的各客户端上;The setting unit is configured to set a virtual interaction interface; the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
第三获取单元,配置为通过所述虚拟交互界面获取多媒体流对应的标识;a third acquiring unit, configured to acquire, by using the virtual interaction interface, an identifier corresponding to the multimedia stream;
对应地,所述第一获取单元,还配置为根据所述标识确定预播放的多媒体流。Correspondingly, the first acquiring unit is further configured to determine a pre-played multimedia stream according to the identifier.
本发明实施例还提供了一种播放多媒体的系统,所述系统包括:服务器和N个客户端;其中,The embodiment of the invention further provides a system for playing multimedia, the system comprising: a server and N clients; wherein
所述服务器,配置为获取预播放的多媒体流,并获取所述多媒体流对应的数据信息,通过组播方式将多媒体流对应的数据信息发送至预设组播组对应的所述N个客户端;And the server is configured to obtain the pre-played multimedia stream, and obtain the data information corresponding to the multimedia stream, and send the data information corresponding to the multimedia stream to the N clients corresponding to the preset multicast group by using a multicast mode. ;
客户端,配置为接收多媒体流对应的数据信息,解码所述数据信息,并呈现解码后的所述多媒体流对应的数据信息。The client is configured to receive the data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
上述方案中,所述服务器,还配置为设置虚拟交互界面,并将所述虚拟交互界面呈现于所述N个客户端上;In the above solution, the server is further configured to set a virtual interaction interface, and present the virtual interaction interface on the N clients.
客户端,配置为通过所述虚拟交互界面确定预播放的所述多媒体流的标识;对应地,a client, configured to determine, by using the virtual interaction interface, an identifier of the pre-played multimedia stream; correspondingly,
所述服务器,还配置为获取所述标识,并确定所述标识对应的预播放的多媒体流。The server is further configured to acquire the identifier, and determine a pre-played multimedia stream corresponding to the identifier.
上述方案中,客户端,还配置为将自身接收的数据信息显示于自身的虚拟交互界面上。In the above solution, the client is further configured to display the data information received by itself on its own virtual interactive interface.
本发明实施例所提供的播放多媒体的方法及系统、服务器、存储介质,将多媒体流从虚拟交互界面对应的系统中剥离出来,使所述多媒体流不通过所述虚拟交互界面对应的系统进行解码,也不通过虚拟交互界面对应的服务器进行编码,而是把原始未解码的多媒体流直接通过组播方式发送至 组播组对应的各客户端上,并将各客户端解码,在各客户端的虚拟交互界面上呈现,因此,能够克服服务器开销过大而导致的呈现于客户端的多媒体信息不流畅的问题。The method and system for playing multimedia, the server, and the storage medium provided by the embodiment of the present invention strip the multimedia stream from the system corresponding to the virtual interaction interface, so that the multimedia stream is not decoded by the system corresponding to the virtual interaction interface. The code is not encoded by the server corresponding to the virtual interactive interface, but the original undecoded multimedia stream is directly sent to the multicast mode. On each client corresponding to the multicast group, each client is decoded and presented on the virtual interaction interface of each client. Therefore, the problem that the multimedia information presented on the client is not smooth due to excessive server overhead can be overcome.
附图说明DRAWINGS
图1为现有技术中播放多媒体的方法的实现流程示意图;1 is a schematic flowchart of an implementation process of a method for playing multimedia in the prior art;
图2为本发明实施例播放多媒体的方法的实现流程示意图一;2 is a schematic flowchart 1 of an implementation process of a method for playing multimedia according to an embodiment of the present invention;
图3为本发明实施例服务器的结构示意图;3 is a schematic structural diagram of a server according to an embodiment of the present invention;
图4为本发明实施例播放多媒体的方法的实现流程示意图二;4 is a second schematic diagram of an implementation process of a method for playing multimedia according to an embodiment of the present invention;
图5为本发明实施例播放多媒体的方法的实现流程示意图三;5 is a schematic flowchart 3 of an implementation process of a method for playing multimedia according to an embodiment of the present invention;
图6为本发明实施例播放多媒体的系统的结构示意图;6 is a schematic structural diagram of a system for playing multimedia according to an embodiment of the present invention;
图7为本发明实施例播放多媒体的方法的具体实现的流程示意图;FIG. 7 is a schematic flowchart of a specific implementation of a method for playing multimedia according to an embodiment of the present invention;
图8为本发明实施例播放多媒体的系统的具体的结构示意图。FIG. 8 is a schematic structural diagram of a system for playing multimedia according to an embodiment of the present invention.
具体实施方式detailed description
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。The embodiments of the present invention are described in detail with reference to the accompanying drawings.
实施例一Embodiment 1
图2为本发明实施例播放多媒体的方法的实现流程示意图;所述方法应用于服务器中;所述服务器能够根据预设组播组,通过组播方式将数据发送至所述组播组对应的各客户端;如图2所述,所述方法包括:2 is a schematic flowchart of an implementation of a method for playing multimedia according to an embodiment of the present invention; the method is applied to a server; and the server can send data to a multicast group corresponding to the multicast group according to a preset multicast group. Each client; as described in FIG. 2, the method includes:
步骤201:获取预播放的多媒体流;Step 201: Acquire a pre-played multimedia stream.
步骤202:根据所述多媒体流获取所述多媒体流对应的数据信息,并通过组播方式发送所述多媒体流对应的数据信息。Step 202: Acquire data information corresponding to the multimedia stream according to the multimedia stream, and send data information corresponding to the multimedia stream by using a multicast manner.
上述方案中,所述获取多媒体流之前,所述方法还包括: In the foregoing solution, before the acquiring the multimedia stream, the method further includes:
设置虚拟交互界面;所述虚拟交互界面能够显示于预设组播组对应的各客户端上;Setting a virtual interaction interface; the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
通过所述虚拟交互界面获取多媒体流对应的标识;Obtaining an identifier corresponding to the multimedia stream by using the virtual interaction interface;
对应地,所述获取预播放的多媒体流,包括:Correspondingly, the acquiring the pre-played multimedia stream includes:
根据所述标识确定预播放的多媒体流。A pre-played multimedia stream is determined based on the identification.
这里,所述多媒体流对应的数据信息包括多媒体流对应的数据信息、以及多媒体流的格式信息、时间信息和位置信息等。Here, the data information corresponding to the multimedia stream includes data information corresponding to the multimedia stream, format information, time information, and location information of the multimedia stream.
这里,所述服务器与所述预设组播组对应的各客户端进行连接,随后,所述服务器设置虚拟交互系统,并将所述虚拟交互系统对应的虚拟交互界面显示于各客户端上,客户端中一个预演示的客户端通过自身的虚拟交互界面确定预播放的多媒体流的标识,并将通过所述虚拟交互界面,将所述标识发送至所述服务器,所述服务器根据所述标识确定预播放的多媒体流,并通过所述服务器中的多媒体播放器读取所述多媒体流,当所述多媒体播放器读取到多媒体流时,多媒体流被所述服务器中的多媒体流捕获器所捕获,所述多媒体流捕获器识别所捕获的多媒体流的格式信息、时间信息和位置信息,并将上述信息和多媒体流的数据信息进行封装后直接发送至所述预设组播组对应的各客户端上。Here, the server is connected to each client corresponding to the preset multicast group, and then the server sets a virtual interaction system, and displays a virtual interaction interface corresponding to the virtual interaction system on each client. A pre-presented client in the client determines an identifier of the pre-played multimedia stream through its virtual interaction interface, and sends the identifier to the server through the virtual interaction interface, the server according to the identifier Determining a pre-played multimedia stream, and reading the multimedia stream through a multimedia player in the server, when the multimedia player reads the multimedia stream, the multimedia stream is used by the multimedia stream capturer in the server Capture, the multimedia stream capturer identifies format information, time information, and location information of the captured multimedia stream, and encapsulates the information and the data information of the multimedia stream, and directly sends the data to the corresponding multicast group. On the client.
这里,与现有技术相比,由于服务器获取到的多媒体流未经虚拟交互系统编码,因此,本发明实施例服务器中的多媒体播放器无需对预播放的多媒体流进行解码后呈现至预演示的客户端的虚拟交互界面上,也无需对多媒体流进行编码,而是直接将多媒体流通过多媒体流捕获器发送至所述预设组播组对应的各客户端上;此时,各客户端中设置多格式解码器,通过所述多格式解码器将各自接收到的多媒体流及其格式信息、时间信息和位置信息解码,并根据所述时间信息和位置信息将所述多媒体流呈现于自身对应的虚拟交互界面中,供用户观看,因此,本发明实施例能够克服服 务器开销过大而导致的呈现于客户端的多媒体信息不流畅的问题。。Here, the multimedia player in the server of the embodiment of the present invention does not need to decode the pre-played multimedia stream and is presented to the pre-demo, as compared with the prior art, because the multimedia stream obtained by the server is not encoded by the virtual interactive system. On the virtual interactive interface of the client, the multimedia stream is not required to be encoded, but the multimedia stream is directly sent to each client corresponding to the preset multicast group through the multimedia stream capture device; at this time, the settings are set in each client. a multi-format decoder, which decodes each received multimedia stream and its format information, time information, and location information by the multi-format decoder, and presents the multimedia stream to its own corresponding according to the time information and the location information. In the virtual interaction interface, for the user to watch, therefore, the embodiment of the present invention can overcome the service The overhead of the server is too large, and the multimedia information presented on the client is not smooth. .
为实现上述方法,本发明实施例还提供了一种对应于上述方法的服务器,所述服务器能够根据预设组播组,通过组播方式将数据发送至所述组播组对应的各客户端;如图3所示,所述服务器包括:In order to implement the foregoing method, the embodiment of the present invention further provides a server corresponding to the foregoing method, where the server can send data to each client corresponding to the multicast group by using a multicast mode according to a preset multicast group. As shown in FIG. 3, the server includes:
第一获取单元31,配置为获取预播放的多媒体流;The first obtaining unit 31 is configured to acquire a pre-played multimedia stream.
第二获取单元32,配置为根据所述多媒体流获取所述多媒体流对应的数据信息;The second obtaining unit 32 is configured to acquire, according to the multimedia stream, data information corresponding to the multimedia stream;
发送单元33,配置为通过组播方式发送所述多媒体流对应的数据信息。The sending unit 33 is configured to send the data information corresponding to the multimedia stream in a multicast manner.
上述方案中,所述服务器还包括:In the above solution, the server further includes:
设置单元,配置为设置虚拟交互界面;所述虚拟交互界面能够显示于预设组播组对应的各客户端上;The setting unit is configured to set a virtual interaction interface; the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
第三获取单元,配置为通过所述虚拟交互界面获取多媒体流对应的标识;a third acquiring unit, configured to acquire, by using the virtual interaction interface, an identifier corresponding to the multimedia stream;
对应地,所述第一获取单元31,还配置为根据所述标识确定预播放的多媒体流。Correspondingly, the first obtaining unit 31 is further configured to determine a pre-played multimedia stream according to the identifier.
这里,所述第一获取单元、第二获取单元、发送单元,设置单元,第三获取单元均可以运行于计算机上,可由位于计算机上的中央处理器(CPU)、或微处理器(MPU)、或数字信号处理器(DSP)、或可编程门阵列(FPGA)实现;例如,所述第一获取单元的功能可以通过计算机中的多媒体播放器实现;所述第二获取单元的功能可以运行于所述多媒体捕获器实现。Here, the first obtaining unit, the second obtaining unit, the sending unit, the setting unit, and the third obtaining unit may all run on a computer, and may be a central processing unit (CPU) or a microprocessor (MPU) located on the computer. Or a digital signal processor (DSP), or a programmable gate array (FPGA) implementation; for example, the function of the first acquisition unit can be implemented by a multimedia player in a computer; the function of the second acquisition unit can be operated Implemented in the multimedia capture device.
本发明实施例还提供了第一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例一所述的播放多媒体的方法。The embodiment of the present invention further provides a first computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method for playing multimedia according to the first embodiment of the present invention.
实施例二 Embodiment 2
图4为本发明实施例播放多媒体的方法的实现流程示意图二;所述方法应用于客户端;所述方法包括:4 is a schematic flowchart 2 of an implementation process of a method for playing multimedia according to an embodiment of the present invention; the method is applied to a client; the method includes:
步骤401:接收多媒体流对应的数据信息;Step 401: Receive data information corresponding to the multimedia stream.
步骤402:解码所述数据信息,并呈现解码后的所述多媒体流对应的数据信息。Step 402: Decode the data information, and present the decoded data information corresponding to the multimedia stream.
这里,当所述服务器设置虚拟交互系统,并将所述虚拟交互系统对应的虚拟交互界面显示于组播组对应的各客户端上后,客户端中一个预演示的客户端通过自身的虚拟交互界面确定预播放的多媒体流的标识,并将通过所述虚拟交互界面,将所述标识发送至所述服务器,所述服务器根据所述标识确定预播放的多媒体流,根据所述多媒体流获取所述多媒体流对应的数据信息,并通过组播方式将所述多媒体流对应的数据信息发送至预设组播组对应的各客户端中,各客户端接收多媒体流对应的数据信息;并通过客户端自身中的多格式解码器解码所述数据信息,并在自身对应的虚拟交互界面中呈现解码后的所述多媒体流对应的数据信息。Here, after the virtual interactive system is set up by the server, and the virtual interactive interface corresponding to the virtual interactive system is displayed on each client corresponding to the multicast group, a pre-presented client in the client passes its virtual interaction. The interface determines an identifier of the pre-played multimedia stream, and sends the identifier to the server by using the virtual interaction interface, where the server determines the pre-played multimedia stream according to the identifier, and acquires the multimedia stream according to the multimedia stream. Transmitting the data information corresponding to the multimedia stream, and transmitting the data information corresponding to the multimedia stream to each client corresponding to the preset multicast group by using a multicast mode, and each client receives the data information corresponding to the multimedia stream; The multi-format decoder in the terminal itself decodes the data information, and presents the decoded data information corresponding to the multimedia stream in its corresponding virtual interaction interface.
具体地,由于所述服务器发送的多媒体流的数据信息包括多媒体流对应的数据信息、以及多媒体流的格式信息、时间信息和位置信息,因此,各客户端可以通过自身的多格式解码器,将接收的多媒体流对应的数据信息及其格式信息、时间信息和位置信息进行解码,并根据所述时间信息和位置信息将所述多媒体流呈现于自身对应的虚拟交互界面中。Specifically, since the data information of the multimedia stream sent by the server includes data information corresponding to the multimedia stream, and format information, time information, and location information of the multimedia stream, each client may use its own multi-format decoder. The data information corresponding to the received multimedia stream and its format information, time information and location information are decoded, and the multimedia stream is presented in its corresponding virtual interaction interface according to the time information and the location information.
实施例三Embodiment 3
图5为本发明实施例播放多媒体的方法的实现流程示意图三;所述方法涉及到服务器和N个客户端;所述服务器能够根据预设组播组,通过组播方式将数据发送至所述组播组对应的所述N个客户端;如图5所示,所述方法包括:5 is a schematic flowchart 3 of an implementation process of a method for playing multimedia according to an embodiment of the present invention; the method relates to a server and N clients; and the server can send data to the The N clients corresponding to the multicast group; as shown in FIG. 5, the method includes:
步骤501:所述服务器获取预播放的多媒体流,并获取所述多媒体流对 应的数据信息,通过组播方式将多媒体流对应的数据信息发送至预设组播组对应的所述N个客户端;Step 501: The server acquires a pre-played multimedia stream, and acquires the multimedia stream pair. Sending, by the multicast data, the data information corresponding to the multimedia stream to the N clients corresponding to the preset multicast group;
步骤502:所述N个客户端分别接收多媒体流对应的数据信息,解码所述数据信息,并呈现解码后的所述多媒体流对应的数据信息。Step 502: The N clients respectively receive data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
上述方案中,所述服务器获取预播放的多媒体流之前,所述方法还包括:In the above solution, before the server obtains the pre-played multimedia stream, the method further includes:
所述服务器设置虚拟交互界面,并将所述虚拟交互界面呈现于所述N个客户端上;The server sets a virtual interaction interface, and presents the virtual interaction interface on the N clients;
所述N个客户端中的任一客户端通过所述虚拟交互界面确定预播放的所述多媒体流的标识;Determining, by the virtual interaction interface, the identifier of the pre-played multimedia stream by using any one of the N clients;
所述服务器获取所述标识,并确定所述标识对应的预播放的多媒体流。The server acquires the identifier, and determines a pre-played multimedia stream corresponding to the identifier.
上述方案中,所述方法还包括:In the above solution, the method further includes:
所述预设组播组对应的所述N个客户端将自身接收的数据信息显示于自身的虚拟交互界面上。The N clients corresponding to the preset multicast group display the data information received by themselves on their own virtual interactive interface.
为实现上述方法,本发明实施例还提供了一种对应于上述方法的播放多媒体的系统,如图6所示,所述系统包括:服务器61和N个客户端62;所述服务器能够根据预设组播组,通过组播方式将数据发送至所述组播组对应的所述N个客户端;其中,In order to implement the above method, an embodiment of the present invention further provides a system for playing multimedia corresponding to the foregoing method. As shown in FIG. 6, the system includes: a server 61 and N clients 62; A multicast group is configured to send data to the N clients corresponding to the multicast group by using a multicast mode, where
所述服务器61,配置为获取预播放的多媒体流,并获取所述多媒体流对应的数据信息,通过组播方式将多媒体流对应的数据信息发送至预设组播组对应的所述N个客户端;The server 61 is configured to acquire a pre-played multimedia stream, and obtain data information corresponding to the multimedia stream, and send the data information corresponding to the multimedia stream to the N customers corresponding to the preset multicast group by using a multicast mode. end;
客户端62,配置为接收多媒体流对应的数据信息,解码所述数据信息,并呈现解码后的所述多媒体流对应的数据信息。The client 62 is configured to receive data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
上述方案中,所述服务器61,还配置为设置虚拟交互界面,并将所述虚拟交互界面呈现于所述N个客户端上; In the above solution, the server 61 is further configured to set a virtual interaction interface, and present the virtual interaction interface on the N clients.
客户端62,配置为通过所述虚拟交互界面确定预播放的所述多媒体流的标识;对应地,The client 62 is configured to determine, by using the virtual interaction interface, an identifier of the pre-played multimedia stream; correspondingly,
所述服务器61,还配置为获取所述标识,并确定所述标识对应的预播放的多媒体流。The server 61 is further configured to acquire the identifier, and determine a pre-played multimedia stream corresponding to the identifier.
上述方案中,客户端62,还配置为将自身接收的数据信息显示于自身的虚拟交互界面上。In the above solution, the client 62 is further configured to display the data information received by itself on its own virtual interactive interface.
本发明实施例还提供了第二种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例三所述的播放多媒体的方法。The embodiment of the present invention further provides a second computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method for playing multimedia according to the third embodiment of the present invention.
实施例四Embodiment 4
图7为本发明实施例播放多媒体的方法的具体实现的流程示意图;服务器预先设置虚拟交互系统;图8为本发明实施例播放多媒体的系统的具体的结构示意图;如图7,图8所示,在多路推送的远程虚拟交互界面中,高效的播放多媒体的方法的具体步骤包括:FIG. 7 is a schematic flowchart of a specific implementation of a method for playing multimedia according to an embodiment of the present invention; FIG. 8 is a schematic diagram of a specific structure of a system for playing multimedia according to an embodiment of the present invention; FIG. In the remote virtual interactive interface of multi-way push, the specific steps of the method for efficiently playing multimedia include:
步骤701:演示用户对应的客户端登录到虚拟交互系统81中,且在演示用户客户端86上显示虚拟交互界面89;Step 701: The client corresponding to the user is logged into the virtual interaction system 81, and the virtual interaction interface 89 is displayed on the presentation user client 86.
步骤702:各观看用户客户端87与服务器80连接,并加入到虚拟交互界面对应的组播组中;Step 702: Each viewing user client 87 is connected to the server 80 and added to the multicast group corresponding to the virtual interaction interface.
这里,步骤701和步骤702的执行顺序可以调换。Here, the order of execution of steps 701 and 702 can be reversed.
步骤703:在演示用户客户端86上,通过虚拟交互界面89打开多媒体播放器83的中预播放的原始多媒体源82;Step 703: On the presentation user client 86, the original pre-played original multimedia source 82 of the multimedia player 83 is opened through the virtual interaction interface 89;
步骤704:所述多媒体播放器83获取所述原始多媒体源82对应的多媒体流;Step 704: The multimedia player 83 acquires a multimedia stream corresponding to the original multimedia source 82.
步骤705:所述多媒体播放器83中的多媒体流被服务器80中的多媒体流捕获器84所捕获,所述多媒体流捕获器84读取所述多媒体流的格式信 息、时间信息及位置信息,并将所述多媒体流对应的数据信息以及多媒体流的格式信息、时间信息和位置信息封装后,通过组播方式推送至所述组播组对应的各观看用户客户端87上;Step 705: The multimedia stream in the multimedia player 83 is captured by the multimedia stream capture unit 84 in the server 80, and the multimedia stream capture unit 84 reads the format letter of the multimedia stream. The information, the time information, and the location information are encapsulated, and the data information corresponding to the multimedia stream and the format information, the time information, and the location information of the multimedia stream are encapsulated and then multicasted to each viewing user client corresponding to the multicast group. On end 87;
这里,封装后的所述多媒体流对应的数据信息以及多媒体流的格式信息、时间信息和位置信息通过所述服务器80中的通信模块85发送至各观看用户客户端87;Here, the encapsulated data information corresponding to the multimedia stream and the format information, time information and location information of the multimedia stream are sent to the viewing user client 87 through the communication module 85 in the server 80;
在服务器的操作系统为windows操作系统的条件下,多媒体播放器一般采用media Foundation架构进行多媒体播放,在每次播放多媒体的时候,会创建一个media session对象和一个Topology对象,media session对象用来对播放进行控制;而Topology对象则包括一系列相互连接的播放组件,例如media source、stream、decoder等等,各播放组件描述整个播放流程的数据流向,并且允许对Topology对象进行定制。在这种情况下,所述多媒体流捕获器就是在media Foundation框架下的特殊定制的Topology对象,所述多媒体流捕获器会被多媒体播放器加载到,然后在播放时,通过所述多媒体流捕获器直接转发数据到服务器里面的通信模块,以通过所述通信模块将数据转发出去。Under the condition that the operating system of the server is the Windows operating system, the multimedia player generally uses the media Foundation architecture for multimedia playback. Each time the multimedia is played, a media session object and a Topology object are created, and the media session object is used to Playback controls; the Topology object includes a series of interconnected playback components, such as media source, stream, decoder, etc. Each play component describes the data flow of the entire playback process and allows customization of the Topology object. In this case, the multimedia stream capturer is a specially customized Topology object under the media Foundation framework, and the multimedia stream capturer is loaded by the multimedia player, and then captured by the multimedia stream during playback. The device directly forwards the data to the communication module in the server to forward the data through the communication module.
步骤706:各观看用户客户端87接收到封装后的所述多媒体流对应的数据信息以及多媒体流的格式信息、时间信息和位置信息后,使用自身的多格式解码器88根据所述格式信息,对所述多媒体流进行解码,随后,根据所述时间信息和位置信息将解码后的所述多媒体流呈现至各观看用户客户端87的虚拟交互界面89中,供观看用户观看。Step 706: After receiving the encapsulated data information corresponding to the multimedia stream and the format information, time information, and location information of the multimedia stream, each viewing user client 87 uses its own multi-format decoder 88 according to the format information. The multimedia stream is decoded, and then the decoded multimedia stream is presented to the virtual interactive interface 89 of each viewing user client 87 for viewing by the user according to the time information and the location information.
由于从原始多媒体源里读出的多媒体流,理论上可以是任何格式的,所以客户端中使用了一个多格式的解码器代替了现有技术中固定格式的解码器。这里,通常一般会使用客户端中的CPU对多媒体流进行软解,但如果客户端的硬件允许,则所述客户端会使用硬解加速解码过程。 Since the multimedia stream read from the original multimedia source can theoretically be in any format, a multi-format decoder is used in the client instead of the fixed-format decoder in the prior art. Here, the multimedia stream is usually soft-solved using the CPU in the client, but if the hardware of the client allows, the client will use the hard solution to speed up the decoding process.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例中,将多媒体流从虚拟交互界面对应的系统中剥离出来,使所述多媒体流不通过所述虚拟交互界面对应的系统进行解码,也不通过虚拟交互界面对应的服务器进行编码,而是把原始未解码的多媒体流直接通过组播方式发送至组播组对应的各客户端上,并将各客户端解码,在各客户端的虚拟交互界面上呈现,因此,能够克服服务器开销过大而导致的呈现于客户端的多媒体信息不流畅的问题。 In the embodiment of the present invention, the multimedia stream is stripped from the system corresponding to the virtual interaction interface, so that the multimedia stream is not decoded by the system corresponding to the virtual interaction interface, and is not encoded by the server corresponding to the virtual interaction interface. Rather, the original undecoded multimedia stream is directly sent to each client corresponding to the multicast group through multicast, and each client is decoded and presented on the virtual interactive interface of each client. Therefore, the server overhead can be overcome. The large resulting multimedia information presented on the client is not smooth.

Claims (12)

  1. 一种播放多媒体的方法,应用于服务器;所述方法包括:A method for playing multimedia, applied to a server; the method includes:
    获取预播放的多媒体流;Obtain a pre-played multimedia stream;
    根据所述多媒体流获取所述多媒体流对应的数据信息,并通过组播方式发送所述多媒体流对应的数据信息。Acquiring the data information corresponding to the multimedia stream according to the multimedia stream, and transmitting the data information corresponding to the multimedia stream by using a multicast manner.
  2. 根据权利要求1所述的方法,其中,所述获取多媒体流之前,所述方法还包括:The method of claim 1, wherein before the obtaining the multimedia stream, the method further comprises:
    设置虚拟交互界面;所述虚拟交互界面能够显示于预设组播组对应的各客户端上;Setting a virtual interaction interface; the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
    通过所述虚拟交互界面获取多媒体流对应的标识;Obtaining an identifier corresponding to the multimedia stream by using the virtual interaction interface;
    对应地,所述获取预播放的多媒体流,包括:Correspondingly, the acquiring the pre-played multimedia stream includes:
    根据所述标识确定预播放的多媒体流。A pre-played multimedia stream is determined based on the identification.
  3. 一种播放多媒体的方法,所述方法涉及到服务器和N个客户端;所述方法包括:A method of playing multimedia, the method involving a server and N clients; the method comprising:
    所述服务器获取预播放的多媒体流,并获取所述多媒体流对应的数据信息,通过组播方式将多媒体流对应的数据信息发送至预设组播组对应的所述N个客户端;Obtaining, by the server, the pre-played multimedia stream, and acquiring the data information corresponding to the multimedia stream, and transmitting the data information corresponding to the multimedia stream to the N clients corresponding to the preset multicast group by using a multicast manner;
    所述N个客户端分别接收多媒体流对应的数据信息,解码所述数据信息,并呈现解码后的所述多媒体流对应的数据信息。The N clients respectively receive data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
  4. 根据权利要求3所述的方法,其中,所述服务器获取预播放的多媒体流之前,所述方法还包括:The method of claim 3, wherein before the server obtains the pre-played multimedia stream, the method further comprises:
    所述服务器设置虚拟交互界面,并将所述虚拟交互界面呈现于所述N个客户端上;The server sets a virtual interaction interface, and presents the virtual interaction interface on the N clients;
    所述N个客户端中的任一客户端通过所述虚拟交互界面确定预播放的 所述多媒体流的标识;Determining pre-played by the virtual interaction interface by any one of the N clients The identifier of the multimedia stream;
    所述服务器获取所述标识,并确定所述标识对应的预播放的多媒体流。The server acquires the identifier, and determines a pre-played multimedia stream corresponding to the identifier.
  5. 根据权利要求4所述的方法,其中,所述方法还包括:The method of claim 4 wherein the method further comprises:
    所述预设组播组对应的所述N个客户端将自身接收的数据信息显示于自身的虚拟交互界面上。The N clients corresponding to the preset multicast group display the data information received by themselves on their own virtual interactive interface.
  6. 一种服务器,所述服务器包括:A server, the server comprising:
    第一获取单元,配置为获取预播放的多媒体流;a first acquiring unit, configured to acquire a pre-played multimedia stream;
    第二获取单元,配置为根据所述多媒体流获取所述多媒体流对应的数据信息;a second acquiring unit, configured to acquire, according to the multimedia stream, data information corresponding to the multimedia stream;
    发送单元,配置为通过组播方式发送所述多媒体流对应的数据信息。The sending unit is configured to send the data information corresponding to the multimedia stream by using a multicast manner.
  7. 根据权利要求6所述的服务器,其中,所述服务器还包括:The server of claim 6, wherein the server further comprises:
    设置单元,配置为设置虚拟交互界面;所述虚拟交互界面能够显示于预设组播组对应的各客户端上;The setting unit is configured to set a virtual interaction interface; the virtual interaction interface can be displayed on each client corresponding to the preset multicast group;
    第三获取单元,配置为通过所述虚拟交互界面获取多媒体流对应的标识;a third acquiring unit, configured to acquire, by using the virtual interaction interface, an identifier corresponding to the multimedia stream;
    对应地,所述第一获取单元,还配置为根据所述标识确定预播放的多媒体流。Correspondingly, the first acquiring unit is further configured to determine a pre-played multimedia stream according to the identifier.
  8. 一种播放多媒体的系统,所述系统包括:服务器和N个客户端;其中,A system for playing multimedia, the system comprising: a server and N clients; wherein
    所述服务器,配置为获取预播放的多媒体流,并获取所述多媒体流对应的数据信息,通过组播方式将多媒体流对应的数据信息发送至预设组播组对应的所述N个客户端;And the server is configured to obtain the pre-played multimedia stream, and obtain the data information corresponding to the multimedia stream, and send the data information corresponding to the multimedia stream to the N clients corresponding to the preset multicast group by using a multicast mode. ;
    客户端,配置为接收多媒体流对应的数据信息,解码所述数据信息,并呈现解码后的所述多媒体流对应的数据信息。The client is configured to receive the data information corresponding to the multimedia stream, decode the data information, and present the decoded data information corresponding to the multimedia stream.
  9. 根据权利要求8所述的系统,其中,所述服务器,还配置为设置虚 拟交互界面,并将所述虚拟交互界面呈现于所述N个客户端上;The system of claim 8 wherein said server is further configured to set a virtual Defining an interaction interface, and presenting the virtual interaction interface on the N clients;
    客户端,配置为通过所述虚拟交互界面确定预播放的所述多媒体流的标识;对应地,a client, configured to determine, by using the virtual interaction interface, an identifier of the pre-played multimedia stream; correspondingly,
    所述服务器,还配置为获取所述标识,并确定所述标识对应的预播放的多媒体流。The server is further configured to acquire the identifier, and determine a pre-played multimedia stream corresponding to the identifier.
  10. 根据权利要求8所述的系统,其中,客户端,还配置为将自身接收的数据信息显示于自身的虚拟交互界面上。The system of claim 8, wherein the client is further configured to display the data information received by itself on its own virtual interactive interface.
  11. 第一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行前述权利要求1或2所述的播放多媒体的方法。A first type of computer storage medium having stored therein a computer program for performing the method of playing multimedia according to claim 1 or 2.
  12. 第二种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行前述权利要求3至5任一项所述的播放多媒体的方法。 A second type of computer storage medium having stored therein a computer program for performing the method of playing multimedia according to any of the preceding claims 3 to 5.
PCT/CN2014/086320 2014-06-26 2014-09-11 Method, system, server and storing medium for playing multimedia WO2015196571A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410294617.9 2014-06-26
CN201410294617.9A CN105227527A (en) 2014-06-26 2014-06-26 The method and system of play multimedia, server

Publications (1)

Publication Number Publication Date
WO2015196571A1 true WO2015196571A1 (en) 2015-12-30

Family

ID=54936570

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086320 WO2015196571A1 (en) 2014-06-26 2014-09-11 Method, system, server and storing medium for playing multimedia

Country Status (2)

Country Link
CN (1) CN105227527A (en)
WO (1) WO2015196571A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095791A (en) * 2011-11-08 2013-05-08 财团法人资讯工业策进会 Cloud system for providing virtual desktop and method for playing multimedia on virtual desktop
CN103139634A (en) * 2011-11-30 2013-06-05 国云科技股份有限公司 Cloud terminal virtual desktop video playing method
CN103179431A (en) * 2013-03-21 2013-06-26 福建升腾资讯有限公司 Method for redirecting, transcoding and separating audio/video under VDI (Virtual Desktop Infrastructure) condition
WO2013116975A1 (en) * 2012-02-06 2013-08-15 华为技术有限公司 Stream media playing method, device and system
CN103873568A (en) * 2014-03-04 2014-06-18 赛特斯信息科技股份有限公司 System and method for realizing remote virtual desktop display based on cloud computing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873924B (en) * 2012-12-12 2017-09-05 华为技术有限公司 A kind of method, device, the system of video redirection
CN103888419B (en) * 2012-12-21 2017-06-09 中国电信股份有限公司 Virtual desktop terminal obtains method, system and the CDN subsystems of video content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095791A (en) * 2011-11-08 2013-05-08 财团法人资讯工业策进会 Cloud system for providing virtual desktop and method for playing multimedia on virtual desktop
CN103139634A (en) * 2011-11-30 2013-06-05 国云科技股份有限公司 Cloud terminal virtual desktop video playing method
WO2013116975A1 (en) * 2012-02-06 2013-08-15 华为技术有限公司 Stream media playing method, device and system
CN103179431A (en) * 2013-03-21 2013-06-26 福建升腾资讯有限公司 Method for redirecting, transcoding and separating audio/video under VDI (Virtual Desktop Infrastructure) condition
CN103873568A (en) * 2014-03-04 2014-06-18 赛特斯信息科技股份有限公司 System and method for realizing remote virtual desktop display based on cloud computing

Also Published As

Publication number Publication date
CN105227527A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
US10229651B2 (en) Variable refresh rate video capture and playback
CN110476431B (en) Low latency mobile device audiovisual streaming
US10930318B2 (en) Gapless video looping
US9078012B2 (en) Viewing angle switching for live broadcasts and on demand video playback
US8938127B2 (en) Hybrid encoding/decoding for remote gaming
US10112115B2 (en) Gamecasting techniques
US9084021B2 (en) Call-in participation for a live video broadcast
WO2016197862A1 (en) Data transmission method and apparatus, and intelligent television system
WO2017125021A1 (en) Set-top box cloudification method, apparatus and system
US10805570B2 (en) System and method for streaming multimedia data
WO2018024231A1 (en) Method and apparatus for interconnecting spliced wall and mobile intelligent terminal
US9137489B2 (en) Platform for end point and digital content centric real-time shared experience for collaboration
WO2015188575A1 (en) Video data providing method, video playback method, device, and system
US11140222B2 (en) Aggregating electronic devices to provide a synchronized presentation
CN104685873B (en) Encoding controller and coding control method
CN101938626A (en) Video session terminal, system, and method
CN112399257B (en) Cloud desktop video playing method, server, terminal and storage medium
WO2017185761A1 (en) Method and device for playing back 2d video
CN114554277B (en) Multimedia processing method, device, server and computer readable storage medium
WO2024001661A1 (en) Video synthesis method and apparatus, device, and storage medium
CN108173873B (en) Solution for realizing screen recording and stream pushing with camera acquisition by Android
US20190141366A1 (en) System and method for insertion of an asset into a source dynamic media
WO2017185798A1 (en) Method and device for sharing multimedia file
CN108665749A (en) The display device and multimedia education system of multimedia education system under cloud desktop
KR20140117889A (en) Client apparatus, server apparatus, multimedia redirection system and the method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14895553

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895553

Country of ref document: EP

Kind code of ref document: A1