IPTV multimedia playing method, equipment and storage medium

文档序号:439947 发布日期:2021-12-24 浏览:11次 中文

阅读说明:本技术 一种iptv多媒体播放方法、设备及储存介质 (IPTV multimedia playing method, equipment and storage medium ) 是由 李桂林 施晟 朱圣东 于 2020-06-24 设计创作,主要内容包括:本申请公开一种IPTV多媒体播放方法、设备及储存介质,该方法包括:解析从客户端获取到的多媒体节目播放请求,得到多媒体节目组播信息;根据所述多媒体节目组播信息,向IPTV平台发送组播组加入请求;获取所述IPTV平台针对所述组播组加入请求反馈的组播数据流;将所述组播数据流转换为预设流媒体协议的数据流,并发送所述预设流媒体协议的数据流给所述客户端;其中,所述预设流媒体协议的数据流用于被所述客户端解析以实现多媒体节目的播放。本申请的技术方案,可以克服现有IPTV多媒体节目播放存在的设备冗余问题,实现减少设备,降低成本。(The application discloses an IPTV multimedia playing method, equipment and a storage medium, wherein the method comprises the following steps: analyzing a multimedia program playing request acquired from a client to obtain multimedia program multicast information; sending a multicast group joining request to an IPTV platform according to the multimedia program multicast information; acquiring a multicast data stream fed back by the IPTV platform aiming at the multicast group joining request; converting the multicast data stream into a data stream of a preset streaming media protocol, and sending the data stream of the preset streaming media protocol to the client; and the data stream of the preset streaming media protocol is used for being analyzed by the client to realize the playing of the multimedia program. The technical scheme of the application can overcome the problem of equipment redundancy in the existing IPTV multimedia program playing, and can reduce equipment and cost.)

1. An IPTV multimedia playing method is characterized in that based on a gateway device, the method comprises the following steps:

analyzing a multimedia program playing request acquired from a client to obtain multimedia program multicast information;

sending a multicast group joining request to an IPTV platform according to the multimedia program multicast information;

acquiring a multicast data stream fed back by the IPTV platform aiming at the multicast group joining request;

converting the multicast data stream into a data stream of a preset streaming media protocol, and sending the data stream of the preset streaming media protocol to the client; and the data stream of the preset streaming media protocol is used for being analyzed by the client to realize the playing of the multimedia program.

2. The method according to claim 1, further comprising, before said parsing the multimedia program playing request obtained from the client to obtain the multimedia program multicast information,

receiving the multimedia program playing request sent by the client through the preset streaming media protocol;

the multimedia program multicast information is obtained by analyzing the multimedia program playing request acquired from the client, including,

and analyzing the multimedia program playing request to obtain the multimedia program multicast information.

3. The method of claim 2, wherein the multimedia program multicast information comprises: a multicast group address and a port corresponding to the multicast group address.

4. The method according to claim 1, wherein said sending a multicast group join request to an IPTV platform according to the multimedia program multicast information comprises:

and sending a multicast group joining message based on an Internet group management protocol to the IPTV platform according to the multimedia program multicast information.

5. The method according to claim 1, wherein the acquiring the multicast data stream fed back by the IPTV platform for the multicast group join request comprises:

and acquiring a multicast data stream based on a User Datagram Protocol (UDP) fed back by the IPTV platform.

6. The method of claim 1, wherein converting the multicast data stream into a data stream of a preset streaming media protocol and sending the data stream of the preset streaming media protocol to the client comprises:

caching the multicast data stream;

reading the multicast data stream and converting the multicast data stream into a data stream of the preset streaming media protocol;

and sending the data stream of the preset streaming media protocol to the client.

7. The method according to any one of claims 1 to 6, wherein before the converting the multicast data stream into a data stream of a preset streaming media protocol and transmitting the data stream of the preset streaming media protocol to the client, the method further comprises:

judging whether the acquired multicast information of the multicast data stream is matched with the multicast information of the multimedia program;

and under the condition that the multicast information of the multicast data stream is matched with the multicast information of the multimedia program, converting the multicast data stream into a data stream of a preset streaming media protocol and sending the data stream to the client.

8. The method according to any one of claims 1 to 6, wherein after the converting the multicast data stream into a data stream of a preset streaming media protocol and transmitting the data stream of the preset streaming media protocol to the client, the method further comprises:

receiving multimedia program closing information sent by the client;

sending a multicast group leaving request to the IPTV platform according to the multimedia program closing information;

and deleting the multimedia program playing information configured locally.

9. A gateway device, characterized in that the gateway device comprises a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for enabling connection communication between the processor and the memory, the program, when executed by the processor, implementing the IPTV multimedia playing method of any of claims 1-8.

10. A storage medium for computer-readable storage, wherein the storage medium stores one or more programs, which are executable by one or more processors to implement the IPTV multimedia playback method of any of claims 1-8.

Technical Field

The present invention relates to the field of network communications, and in particular, to a method, device, and storage medium for playing IPTV multimedia.

Background

With the rapid development of optical networks, Internet Protocol Television (IPTV) has entered into thousands of households under the push of communication operators. At present, home IPTV service needs an Ethernet Passive Optical Network (EPON) or a Gigabit-Capable Passive Optical Network (GPON), and a gateway, a set-top box and a television, where the set-top box is used to forward video stream data provided by an IPTV platform to the television for video playing. The set-top box requires the user to pay for the use, which results in increased user cost. In addition, when the IPTV environment has problems, the operation and maintenance personnel need more detection devices and spend a lot of time to determine the problems due to the numerous devices, which also increases the operation and maintenance cost.

Disclosure of Invention

The present disclosure provides an IPTV multimedia playing method, an IPTV multimedia playing device, and a storage medium, which are used to reduce the number of IPTV multimedia program playing devices and reduce the cost.

The embodiment of the application provides an IPTV multimedia playing method, which is based on gateway equipment and comprises the following steps:

analyzing a multimedia program playing request acquired from a client to obtain multimedia program multicast information;

sending a multicast group joining request to an IPTV platform according to the multimedia program multicast information;

acquiring a multicast data stream fed back by the IPTV platform aiming at the multicast group joining request;

converting the multicast data stream into a data stream of a preset streaming media protocol, and sending the data stream of the preset streaming media protocol to the client; and the data stream of the preset streaming media protocol is used for being analyzed by the client, so that the multimedia program is played.

The embodiment of the present application further provides a gateway device, where the gateway device includes a memory, a processor, a program stored on the memory and capable of running on the processor, and a data bus for implementing connection communication between the processor and the memory, and when the program is executed by the processor, the IPTV multimedia playing method provided in the embodiment is implemented.

The embodiment of the application also provides a storage medium for computer readable storage, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the IPTV multimedia playing method provided by the embodiment.

According to the IPTV multimedia playing method, the IPTV multimedia playing equipment and the storage medium, the gateway equipment is used for requesting the IPTV multimedia program, the multicast group video stream is converted into the number stream of the preset streaming media protocol and is sent to the client side, the IPTV multimedia program playing is completed, the problems of equipment redundancy and high cost in the existing IPTV multimedia program playing are solved, the IPTV multimedia program playing equipment is reduced, and the cost is reduced.

Drawings

Fig. 1 is a flowchart of an IPTV multimedia playing method according to an embodiment of the present application.

Fig. 2 is a block diagram of an IPTV multimedia playing system according to an embodiment of the present application.

Fig. 3 is a data flow chart of an IPTV multimedia playing system according to an embodiment of the present application.

Detailed Description

To make the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.

It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no peculiar meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.

As shown in fig. 1, the present embodiment provides an IPTV multimedia playing method, which is based on a gateway device, and includes:

s110, analyzing a multimedia program playing request acquired from a client to obtain multimedia program multicast information;

s120, sending a multicast group joining request to an IPTV platform according to the multimedia program multicast information;

s130, acquiring a multicast data stream fed back by the IPTV platform aiming at the multicast group joining request;

s140, converting the multicast data stream into a data stream of a preset streaming media protocol, and sending the data stream of the preset streaming media protocol to the client; and the data stream of the preset streaming media protocol is used for being analyzed by the client, so that the multimedia program is played.

In the implementation manner, compared with the existing IPTV multimedia program playing, the set-top box is not needed, and the multimedia program playing request of the client is obtained through the gateway equipment. The client is pre-installed in the television, when a user inputs a multimedia program which the user wants to play to the television, the client generates a corresponding multimedia program playing request according to the multimedia program which the user wants to play and sends the multimedia program playing request to the gateway equipment, and the multimedia program playing request comprises multimedia program multicast information. The gateway equipment analyzes the multimedia program playing request to obtain multimedia program multicast information. The multimedia program multicast information is information for requesting an IPTV multicast video stream, and may include a multicast group address of a multimedia program and a port corresponding to the multicast group address. The gateway device can request the IPTV platform to join the multicast group according to the multicast group address and the port corresponding to the multicast group address. After joining the multicast group, the multicast data stream fed back by the IPTV platform is received. The gateway device converts the multicast data stream into a data stream of a preset streaming media protocol which can be supported by the television, and sends the data stream of the preset streaming media protocol to the client. Therefore, after the data stream of the preset streaming media protocol is analyzed by the client, the playing of the multimedia program can be realized on the television. The gateway device may be an Optical Network Unit (ONU) installed in a home environment, and as the performance of the PON chip is higher and higher, the IPTV function may be implemented by software. The functions of the gateway and the set top box are allowed to be fused, and the set top box is reduced under the condition that the functions of the set top box are realized through the gateway equipment, so that a large amount of equipment and operation and maintenance cost can be saved.

In one implementation manner, before the analyzing the multimedia program playing request acquired from the client to obtain the multimedia program multicast information, the method further includes,

receiving the multimedia program playing request sent by the client through the preset streaming media protocol;

the multimedia program multicast information is obtained by analyzing the multimedia program playing request acquired from the client, including,

and analyzing the multimedia program playing request to obtain the multimedia program multicast information.

The preset Streaming media protocols usually supported by the tv include HyperText transfer Protocol (HTTP) and Real Time Streaming Protocol (RTSP). The gateway equipment receives a multimedia program playing request of a preset streaming media protocol sent by a client, and analyzes a multicast group address and a port corresponding to the multicast group address.

In an implementation manner, the sending a multicast group join request to an IPTV platform according to the multimedia program multicast information includes:

and sending a multicast Group join message based on an Internet Group Management Protocol (IGMP) to the IPTV platform according to the multimedia program multicast information.

The gateway device can send a multicast group join message to the IPTV platform to request to join the multicast group after analyzing the multicast group address and the port corresponding to the multicast group address, so as to obtain the multicast video stream delivered by the IPTV platform.

In one implementation manner, the acquiring the multicast data stream fed back by the IPTV platform for the multicast group join request includes:

and acquiring a multicast data stream based on a User Datagram Protocol (UDP) fed back by the IPTV platform.

Wherein, after joining the multicast group of the multimedia program, the multicast data stream fed back by the IPTV platform is received. Generally, the multicast data stream fed back by the IPTV platform is based on User Datagram Protocol (UDP).

In an implementation manner, the converting the multicast data stream into a data stream of a preset streaming media protocol and sending the data stream of the preset streaming media protocol to the client includes:

caching the multicast data stream;

reading the multicast data stream and converting the multicast data stream into a data stream of the preset streaming media protocol;

and sending the data stream of the preset streaming media protocol to the client.

After receiving the UDP multicast data stream, the UDP multicast data stream is placed in a cache of the gateway device. Then, the PON chip core sending process of the gateway device reads multicast stream data (UDP) from the cache and converts the multicast stream data (UDP) into a data stream of a preset streaming media Protocol, and sends the data stream of the preset streaming media Protocol to the client, for example, reads the multicast stream data (UDP) and converts the data stream into a data stream of TCP (Transmission Control Protocol).

In an implementation manner, before the converting the multicast data stream into a data stream of a preset streaming media protocol and sending the data stream of the preset streaming media protocol to the client, the method further includes:

judging whether the acquired multicast information of the multicast data stream is matched with the multicast information of the multimedia program;

and under the condition that the multicast information of the multicast data stream is matched with the multicast information of the multimedia program, converting the multicast data stream into a data stream of a preset streaming media protocol and sending the data stream to the client.

The gateway device receives the multicast data stream and then judges the multicast data stream to determine whether the multicast information of the multicast data stream, namely the multicast group address of the multicast data stream and the port corresponding to the multicast group address are the same as the multimedia program multicast information of the multimedia program playing request. If the multicast information of the multicast data stream is the same as the multicast information of the multimedia program, the multicast information of the multicast data stream is considered to be matched with the multicast information of the multimedia program; and if the multicast information of the multicast data stream is different from the multicast information of the multimedia program, the multicast information of the multicast data stream is not matched with the multicast information of the multimedia program. And when the multicast information of the multicast data stream is matched with the multicast information of the multimedia program, converting the multicast data stream into a data stream of a preset streaming media protocol and sending the data stream to the client. The situation of playing errors under the condition of a plurality of multimedia program playing requests is avoided.

In an implementation manner, after the converting the multicast data stream into a data stream of a preset streaming media protocol and sending the data stream of the preset streaming media protocol to the client, the method further includes:

receiving multimedia program closing information sent by the client;

sending a multicast group leaving request to the IPTV platform according to the multimedia program closing information;

and deleting the multimedia program playing information configured locally.

After the client finishes playing the multimedia program, or the user inputs the information that the playing of the multimedia program is stopped to the client without watching the current multimedia program. The multimedia program closing information is information that the playing of the multimedia program is finished and acquired by the client, or information that the playing of the multimedia program is stopped and input by the user. The client sends the closing information of the multimedia program to the gateway equipment, and the gateway equipment requests the IPTV platform to leave the multicast group according to the closing information of the multimedia program. That is, the multicast group leaving message is sent to the corresponding multicast group and port, and all the multimedia program playing information configured locally is deleted, thereby releasing the related resources. Therefore, the resources of the gateway equipment can be released in time, and the load of the gateway equipment on the operation caused by the occupation of the gateway equipment is avoided.

In one implementation, as shown in fig. 2, the gateway device is configured with a streaming media protocol parser, a multicast stream broker, a kernel receiver, a kernel transmitter, and a buffer; the gateway device is respectively connected with a DLNA (Digital Living Network Alliance) television and an IPTV platform, IPTV multimedia is played in the implementation mode, a set top box is not required to be configured, redundant devices are reduced, and cost is reduced.

The streaming media protocol parser, the multicast streaming proxy, the kernel receiver and the sender are functionally distinct software processing modules. The streaming media protocol analyzer is responsible for carrying out streaming media protocol interaction with the client to acquire a playing request of the client; the multicast stream agent is responsible for requesting the multicast stream of the specified multicast group and port; the kernel receiver stores the appointed multicast data stream into the buffer, and the kernel sender takes out the multicast stream from the buffer, converts the multicast stream into a TCP stream and sends the TCP stream to the client. The cache size can be configured according to the size of the memory, so that the effect of balancing resources and time consumption is achieved.

In one implementation, as shown in fig. 3, the ONU is a PON upstream gateway device, a DLNA television and a mobile Terminal are hung under a WLAN (Wireless Local Area Network) port of the ONU, a WAN (Wide Area Network) port of the ONU is connected to an OLT (Optical Line Terminal) through an Optical fiber, and an OLT upstream port of the OLT is connected to servers of a plurality of IPTV platforms. The steps of the mobile terminal, the DLNA television, the ONU and the IPTV platform shown in fig. 3 for implementing IPTV multimedia program playing are as follows:

1. a user selects a played multimedia program through a control client on the mobile terminal and sends the multimedia program to the DLNA television;

2. the DLNA television requests a corresponding video file from the ONU through a streaming media protocol (such as HTTP/RTSP), wherein a multicast group address and a multicast port are carried to the ONU; for example: http://192.168.136.1:8888/udp/225.1.1.1.1:1111, wherein 225.1.1.1 denotes a multicast group address and 1111 denotes a multicast port number;

3. the ONU analyzes the request message through a streaming media protocol analyzer to obtain a multicast group address and a port;

4. the ONU requests a corresponding multicast data stream from the IPTV platform through the multicast stream agent;

5. the IPTV platform sends a corresponding multicast data stream according to the multicast group join message;

6. the ONU kernel receiver firstly judges whether the multicast data stream is a multicast data stream requested before, and puts the multicast data stream into a buffer under the condition that the multicast data stream is the multicast data stream requested before;

7. the ONU kernel transmitter converts the multicast data stream (UDP) into a video stream (TCP) and forwards the video stream (TCP) to the DLNA television;

8. and the DLNA television analyzes the video stream (TCP) and plays the multimedia program.

The embodiment of the present application provides a gateway device, where the gateway device includes a memory, a processor, a program stored on the memory and capable of running on the processor, and a data bus for implementing connection communication between the processor and the memory, and when the program is executed by the processor, the gateway device implements any one of the IPTV multimedia playing methods in the embodiments of the present application.

The embodiment of the application provides an IPTV multimedia playing system, which comprises gateway equipment, a DLNA television and an IPTV platform. The gateway equipment is respectively connected with the DLNA television and the IPTV platform, requests corresponding multicast data streams from the IPTV platform according to multimedia program requests sent by the DLNA television through the gateway equipment, converts the multicast group video streams into number streams of preset streaming media protocols and sends the number streams to the DLNA television, and IPTV multimedia playing is achieved.

The embodiment of the present application provides a storage medium for a computer-readable storage, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement any IPTV multimedia playing method in the embodiment of the present application.

One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.

In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种视频处理方法、装置、计算设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类