CN110891051B - Streaming media live broadcast method and device and computer readable storage medium - Google Patents

Streaming media live broadcast method and device and computer readable storage medium Download PDF

Info

Publication number
CN110891051B
CN110891051B CN201911039660.XA CN201911039660A CN110891051B CN 110891051 B CN110891051 B CN 110891051B CN 201911039660 A CN201911039660 A CN 201911039660A CN 110891051 B CN110891051 B CN 110891051B
Authority
CN
China
Prior art keywords
source
rtsp
source address
rtmp
streaming media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911039660.XA
Other languages
Chinese (zh)
Other versions
CN110891051A (en
Inventor
王茂国
高炜
张楠松
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201911039660.XA priority Critical patent/CN110891051B/en
Publication of CN110891051A publication Critical patent/CN110891051A/en
Application granted granted Critical
Publication of CN110891051B publication Critical patent/CN110891051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种流媒体直播播放方法、装置及计算机可读存储介质,方法包括:获取待播放流媒体直播的rtmp源,调用第一转换服务,将所述rtmp源转换为目标源,所述目标源为所述浏览器支持播放的直播源,播放所述目标源对应的流媒体直播。采用本发明的流媒体直播播放方法,通过获取待播放流媒体直播的rtmp源,调用第一转换服务,直接将所述rtmp源转换为目标源,由于目标源是浏览器能够直接播放的直播源,因此可以通过浏览器直接播放目标源对应的流媒体直播,而不需要浏览器另外安装插件以及flash支持,提高了播放流媒体直播的便捷性,并且,整个操作过程用户无感知,提高用户体验。

Figure 201911039660

The present invention provides a streaming media live broadcasting method, device and computer-readable storage medium. The method includes: acquiring an rtmp source of the streaming media live broadcast to be played, invoking a first conversion service, and converting the rtmp source into a target source; The target source is a live broadcast source supported by the browser, and the live streaming media corresponding to the target source is played. By adopting the streaming media live broadcasting method of the present invention, by acquiring the rtmp source of the streaming media live broadcast to be played, the first conversion service is invoked, and the rtmp source is directly converted into a target source, because the target source is a live broadcast source that can be played directly by the browser , so the live streaming media corresponding to the target source can be played directly through the browser, without the need to install additional plug-ins and flash support in the browser, which improves the convenience of playing live streaming media, and the entire operation process is unperceived by the user, improving user experience. .

Figure 201911039660

Description

流媒体直播播放方法、装置及计算机可读存储介质Streaming media live broadcasting method, device and computer-readable storage medium

技术领域technical field

本发明涉及视频播放技术领域,特别是涉及一种流媒体直播播放方法、装置及计算机可读存储介质。The present invention relates to the technical field of video playback, and in particular, to a streaming media live broadcast playback method, device, and computer-readable storage medium.

背景技术Background technique

随着互联网技术以及流媒体技术的发展,越来越多的人习惯通过web浏览器播放流媒体直播,通过web浏览器播放流媒体直播具有方便快捷、不必在播放前下载整个直播内容文件等优点。With the development of Internet technology and streaming media technology, more and more people are accustomed to playing live streaming media through web browsers. Playing live streaming media through web browsers is convenient and fast, and it is not necessary to download the entire live content file before playing. .

通过web浏览器播放流媒体直播需要提供流媒体直播的直播源地址,通常情况下,流媒体直播的直播源地址包括rtsp(Real Time Streaming Protocol,实时流传输协议)格式的直播源地址或者rtmp(Real Time Messaging Protocol,实时消息传输协议)格式的直播源地址,现有技术中,针对这些rtsp或者rtmp格式的直播源地址,想在浏览器上进行播放,需要一些相关的插件,并需要flash支持,但是现在的主流浏览器都在抛弃flash,无疑给通过web浏览器播放流媒体直播带来了难度,降低了播放流媒体直播的便捷性。To play live streaming media through a web browser, you need to provide the live streaming source address of live streaming media. Usually, the live streaming source address of live streaming media includes the live streaming source address in rtsp (Real Time Streaming Protocol, real-time streaming protocol) format or rtmp ( Real Time Messaging Protocol (Real Time Messaging Protocol, Real Time Messaging Protocol) format live source address, in the prior art, for these rtsp or rtmp format live source addresses, if you want to play on the browser, you need some related plug-ins and flash support , but now the mainstream browsers are abandoning flash, which undoubtedly brings difficulties to playing live streaming media through web browsers and reduces the convenience of playing live streaming media.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种流媒体直播播放方法、装置及计算机可读存储介质。In view of the above problems, the embodiments of the present invention are proposed to provide a live streaming media playback method, device and computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

为了解决上述问题,本发明实施例公开了一种流媒体直播播放方法,应用于浏览器,所述方法包括:In order to solve the above problem, an embodiment of the present invention discloses a streaming media live broadcasting method, which is applied to a browser, and the method includes:

获取待播放流媒体直播的rtmp源;Get the rtmp source of the live streaming media to be played;

调用第一转换服务,将所述rtmp源转换为目标源,所述目标源为所述浏览器支持播放的直播源;Invoke the first conversion service to convert the rtmp source into a target source, where the target source is a live broadcast source supported by the browser;

播放所述目标源对应的流媒体直播。Play the live streaming media corresponding to the target source.

可选地,在所述获取待播放流媒体直播的rtmp源之前,所述方法还包括:Optionally, before the acquisition of the rtmp source of the live streaming media to be played, the method further includes:

根据所述待播放流媒体直播的直播标识,调用流媒体直播服务接口,判断是否能够获取到待播放流媒体直播的rtsp源;According to the live broadcast identifier of the to-be-played streaming media live broadcast, the streaming media live broadcast service interface is called to determine whether the rtsp source of the to-be-played streaming media live broadcast can be obtained;

在能够获取到所述rtsp源的情况下,启动转换进程;Under the condition that the rtsp source can be obtained, start the conversion process;

所述获取待播放流媒体直播的rtmp源,包括:The obtaining of the rtmp source of the live streaming media to be played includes:

利用所述转换进程获取所述rtmp源。The rtmp source is obtained using the conversion process.

可选地,所述流媒体直播服务中建立有静态字典,所述静态字典用于存储rtsp源对应的rtsp源地址与目标源对应的目标源地址的关联关系,所述利用所述转换进程获取所述rtmp源,包括:Optionally, a static dictionary is established in the streaming media live service, and the static dictionary is used to store the association relationship between the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source, and the conversion process is used to obtain the The rtmp sources, including:

查询所述静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系;Query whether the static dictionary stores the association relationship between the rtsp source address and the target source address;

在查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,直接获取所述rtmp源。In the case that the static dictionary is queried to store the association relationship between the rtsp source address and the target source address, the rtmp source is directly acquired.

可选地,在所述查询静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系之后,所述方法还包括:Optionally, after querying whether the static dictionary stores an association relationship between the rtsp source address and the target source address, the method further includes:

在未查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,调用第二转换服务将所述rtsp源转换为所述rtmp源,同时返回目标源地址;In the case where the association between the rtsp source address and the target source address is not stored in the static dictionary, the second conversion service is called to convert the rtsp source into the rtmp source, and the target source is returned at the same time address;

获取转换后的所述rtmp源和所述目标源地址。Obtain the converted rtmp source and target source addresses.

可选地,在所述获取转换后的所述rtmp源和所述目标源地址之后,所述方法还包括:Optionally, after obtaining the converted rtmp source and the target source address, the method further includes:

建立所述rtsp源对应的rtsp源地址与所述目标源对应的目标源地址的关联关系;establishing an association relationship between the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source;

将所述rtsp源地址与所述目标源地址的关联关系加入所述静态字典;adding the association relationship between the rtsp source address and the target source address into the static dictionary;

在再次获取到所述rtsp源时,从所述静态字典中查询所述rtsp源对应的rtsp源地址与所述目标源地址的关联关系,直接获取所述rtmp源。When the rtsp source is acquired again, the association relationship between the rtsp source address corresponding to the rtsp source and the target source address is queried from the static dictionary, and the rtmp source is directly acquired.

可选地,在所述启动转换进程之后,所述方法还包括:Optionally, after the startup conversion process, the method further includes:

在利用所述转换进程不能获取所述rtmp源的情况下,退出所述转换进程,并查询静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系;In the case that the rtmp source cannot be obtained by using the conversion process, exit the conversion process, and inquire whether the association between the rtsp source address and the target source address is stored in the static dictionary;

在查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,从静态字典中删除所述rtsp源地址与所述目标源地址的关联关系。In the case that the static dictionary is queried to store the association between the rtsp source address and the target source address, the association between the rtsp source address and the target source address is deleted from the static dictionary.

可选地,所述方法还包括:Optionally, the method further includes:

周期性判断所述静态字典中存储的所述rtsp源地址与所述目标源地址的关联关系是否可用,其中,所述rtsp源地址对应的rtsp源不存在时,所述rtsp源地址与所述目标源地址的关联关系不可用;Periodically determine whether the association relationship between the rtsp source address and the target source address stored in the static dictionary is available, wherein, when the rtsp source corresponding to the rtsp source address does not exist, the rtsp source address and the The association relationship of the target source address is not available;

在所述静态字典中存储的所述rtsp源地址与所述目标源地址的关联关系不可用的情况下,从所述静态字典中删除所述rtsp源地址与所述目标源地址的关联关系。In the case that the association relationship between the rtsp source address and the target source address stored in the static dictionary is unavailable, the association relationship between the rtsp source address and the target source address is deleted from the static dictionary.

可选地,在判断是否能够获取到待播放流媒体直播的rtsp源之后,所述方法还包括:Optionally, after judging whether the rtsp source of the live streaming media to be played can be obtained, the method further includes:

在不能够获取到待播放流媒体直播的rtsp源的情况下,返回错误提示。If the rtsp source of the live streaming media to be played cannot be obtained, an error message is returned.

可选地,所述将所述rtmp源转换为目标源,包括:Optionally, the converting the rtmp source into a target source includes:

在所述浏览器应用于PC或者Android平台时,将所述rtmp源转换为websocket源;When the browser is applied to a PC or an Android platform, the rtmp source is converted into a websocket source;

在所述浏览器应用于iOS平台时,将所述rtmp源转换为m3u8源。When the browser is applied to the iOS platform, the rtmp source is converted into an m3u8 source.

本发明实施例还公开了一种流媒体直播播放装置,所述装置包括:The embodiment of the present invention also discloses a streaming media live broadcasting device, the device includes:

获取模块,用于获取待播放流媒体直播的rtmp源;The acquisition module is used to acquire the rtmp source of the live streaming media to be played;

第一转换模块,用于调用第一转换服务,将所述rtmp源转换为目标源,所述目标源为所述浏览器支持播放的直播源;The first conversion module is used to call the first conversion service, and convert the rtmp source into a target source, and the target source is a live broadcast source supported by the browser;

播放模块,用于播放所述目标源对应的流媒体直播。A playing module, configured to play the live streaming media corresponding to the target source.

可选地,所述装置还包括:Optionally, the device further includes:

第一判断模块,用于根据所述待播放流媒体直播的直播标识,调用流媒体直播服务接口,判断是否能够获取到待播放流媒体直播的rtsp源;The first judgment module is configured to call the live streaming service interface according to the live broadcast identifier of the live streaming media to be played, and judge whether the rtsp source of the live streaming media to be played can be obtained;

启动模块,用于在能够获取到所述rtsp源的情况下,启动转换进程;a startup module for starting the conversion process under the condition that the rtsp source can be obtained;

所述获取模块,包括:The acquisition module includes:

获取子模块,用于利用所述转换进程获取所述rtmp源。An obtaining submodule is used to obtain the rtmp source by using the conversion process.

可选地,所述流媒体直播服务中建立有静态字典,所述静态字典用于存储rtsp源对应的rtsp源地址与目标源对应的目标源地址的关联关系,所述获取子模块,包括:Optionally, a static dictionary is established in the streaming media live service, and the static dictionary is used to store the association relationship between the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source, and the acquisition submodule includes:

第一查询子单元,用于查询所述静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系;A first query subunit, used to query whether the static dictionary stores the association relationship between the rtsp source address and the target source address;

第一获取子单元,用于在查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,直接获取所述rtmp源。The first acquiring subunit is configured to directly acquire the rtmp source when the static dictionary is queried to store the association relationship between the rtsp source address and the target source address.

可选地,所述获取子模块还可以包括:Optionally, the obtaining submodule may also include:

rtsp源转换子单元,用于在未查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,调用第二转换服务将所述rtsp源转换为所述rtmp源,同时返回目标源地址;The rtsp source conversion subunit is configured to call the second conversion service to convert the rtsp source to the rtsp source in the case where the association relationship between the rtsp source address and the target source address is not stored in the static dictionary. Describe the rtmp source, and return the destination source address at the same time;

第二获取子单元,用于获取转换后的所述rtmp源和所述目标源地址。The second obtaining subunit is configured to obtain the converted rtmp source and the target source address.

所述获取子模块,还可以包括:The acquisition submodule may also include:

关联关系建立子单元,用于建立所述rtsp源对应的rtsp源地址与所述目标源对应的目标源地址的关联关系;an association relationship establishing subunit, for establishing an association relationship between the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source;

添加子单元,用于将所述rtsp源地址与所述目标源地址的关联关系加入所述静态字典;Adding a subunit, for adding the association relationship between the rtsp source address and the target source address to the static dictionary;

第三获取子单元,在再次获取到所述rtsp源时,从所述静态字典中查询所述rtsp源对应的rtsp源地址与所述目标源地址的关联关系,直接获取所述rtmp源。The third obtaining subunit, when obtaining the rtsp source again, queries the static dictionary for the association relationship between the rtsp source address corresponding to the rtsp source and the target source address, and directly obtains the rtmp source.

可选地,所述装置还包括:Optionally, the device further includes:

退出及查询模块,用于在利用所述转换进程不能获取所述rtmp源的情况下,退出所述转换进程,并查询静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系;The exit and query module is used to exit the conversion process under the condition that the rtmp source cannot be obtained by the conversion process, and query whether the association between the rtsp source address and the target source address is stored in the static dictionary relation;

第一删除模块,用于在查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,从静态字典中删除所述rtsp源地址与所述目标源地址的关联关系。The first deletion module is used to delete the rtsp source address and the target source from the static dictionary when the relationship between the rtsp source address and the target source address is stored in the static dictionary. address association.

可选地,所述装置还包括:Optionally, the device further includes:

第二判断模块,用于周期性判断所述静态字典中存储的所述rtsp源地址与所述目标源地址的关联关系是否可用,其中,所述rtsp源地址对应的rtsp源不存在时,所述rtsp源地址与所述目标源地址的关联关系不可用;The second judgment module is configured to periodically judge whether the association relationship between the rtsp source address and the target source address stored in the static dictionary is available, wherein when the rtsp source corresponding to the rtsp source address does not exist, the The association relationship between the rtsp source address and the target source address is unavailable;

第二删除模块,用于在所述静态字典中存储的所述rtsp源地址与所述目标源地址的关联关系不可用的情况下,从所述静态字典中删除所述rtsp源地址与所述目标源地址的关联关系。a second deletion module, configured to delete the rtsp source address and the The target source address association.

可选地,所述装置还包括:Optionally, the device further includes:

返回模块,用于在不能够获取到待播放流媒体直播的rtsp源的情况下,返回错误提示。The return module is used to return an error prompt when the rtsp source of the live streaming media to be played cannot be obtained.

可选地,所述装置还包括:Optionally, the device further includes:

第二转换模块,用于第一转换模块用于在所述浏览器应用于PC或者Android平台时,将所述rtmp源转换为websocket源;The second conversion module is used for the first conversion module to convert the rtmp source into a websocket source when the browser is applied to the PC or Android platform;

第三转换模块,用于在所述浏览器应用于iOS平台时,将所述rtmp源转换为m3u8源。The third conversion module is used to convert the rtmp source into an m3u8 source when the browser is applied to the iOS platform.

本发明实施例还公开了一种流媒体直播播放装置,包括:The embodiment of the present invention also discloses a streaming media live broadcast playback device, comprising:

一个或多个处理器;和one or more processors; and

其上存储有指令的一个或多个计算机可读介质,当由所述一个或多个处理器执行时,使得所述装置执行如本发明实施例任一所述的流媒体直播播放方法。One or more computer-readable media with instructions stored thereon, when executed by the one or more processors, cause the apparatus to execute the method for playing live streaming media according to any one of the embodiments of the present invention.

本发明实施例还公开了一种计算机可读存储介质,其存储的计算机程序使得处理器执行如本发明实施例所述的流媒体直播播放方法。The embodiment of the present invention also discloses a computer-readable storage medium, the computer program stored in the storage medium enables the processor to execute the live streaming media playback method according to the embodiment of the present invention.

本发明实施例包括以下优点:The embodiments of the present invention include the following advantages:

本实施例中,用户在浏览器上想要直接播放待播放流媒体直播时,通过获取待播放流媒体直播的rtmp源,调用第一转换服务,直接将所述rtmp源转换为目标源,由于目标源是浏览器能够直接播放的直播源,因此可以通过浏览器直接播放目标源对应的流媒体直播,而不需要浏览器另外安装插件以及flash支持,提高了播放流媒体直播的便捷性,并且,整个操作过程用户无感知,提高用户体验。In this embodiment, when the user wants to directly play the live streaming media to be played on the browser, the user obtains the rtmp source of the live streaming media to be played, calls the first conversion service, and directly converts the rtmp source into the target source. The target source is the live broadcast source that the browser can directly play, so the live streaming media corresponding to the target source can be played directly through the browser without the need for the browser to install additional plug-ins and flash support, which improves the convenience of playing live streaming media, and , the user does not perceive the entire operation process, improving the user experience.

附图说明Description of drawings

图1是本发明实施例提供的一种流媒体直播播放方法的步骤流程图;1 is a flow chart of the steps of a streaming media live broadcast method provided by an embodiment of the present invention;

图2是本发明实施例提供的一种流媒体直播服务流程图;2 is a flow chart of a streaming media live broadcast service provided by an embodiment of the present invention;

图3是本发明实施例提供的一种流媒体直播播放方法的流程图;Fig. 3 is a flow chart of a streaming media live broadcasting method provided by an embodiment of the present invention;

图4是本发明实施例提供的一种流媒体直播播放装置的结构框图。FIG. 4 is a structural block diagram of a streaming media live broadcasting device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.

现在市面上主流的浏览器,包括Google、Firefox以及Safari等,都有自己的播放流媒体直播的协议,针对流媒体直播的直播源格式,即rtsp格式的直播源(简称rtsp源)或者rtmp格式的直播源(简称rtmp源),浏览器都是无法直接打开的,即不支持浏览器直接播放rtsp源和rtmp源。Now the mainstream browsers on the market, including Google, Firefox, and Safari, have their own protocols for playing live streaming media. The live source (referred to as the rtmp source) cannot be directly opened by the browser, that is, the browser does not support the direct playback of the rtsp source and the rtmp source.

现有技术中,针对这些rtsp源或者rtmp源,想在浏览器上进行播放,都需要一些相关的插件,并需要flash支持,但是现在的主流浏览器都在抛弃flash以及去插件化,这无疑给通过web浏览器播放流媒体直播带来了难度,降低了播放流媒体直播的便捷性。In the prior art, for these rtsp sources or rtmp sources, if you want to play on the browser, some related plug-ins are required, and flash support is required, but current mainstream browsers are abandoning flash and removing plug-ins, which is undoubtedly It brings difficulty to playing live streaming media through a web browser, and reduces the convenience of playing live streaming media.

另外,不同系统支持的直播源格式不同,例如,IOS系统平台支持的直播源是m3u8格式的,PC或者Android平台可以通过websocket格式来播放直播源。In addition, different systems support different live source formats. For example, the live source supported by the IOS system platform is in m3u8 format, and the PC or Android platform can play the live source through websocket format.

基于上述相关技术的缺陷,提出了本发明实施例的核心构思之一,在获得rtsp源或者rtmp源之后,对rtsp源或者rtmp源进行转换,以使得不同系统的终端能够播放各自系统终端对应直播源格式的流媒体直播。Based on the above-mentioned defects of the related art, one of the core concepts of the embodiments of the present invention is proposed. After obtaining the rtsp source or the rtmp source, the rtsp source or the rtmp source is converted, so that the terminals of different systems can play the live broadcast corresponding to the terminals of their respective systems. Live streaming in source format.

请参考图1,图1示出了本发明实施例提供的一种流媒体直播播放方法的步骤流程图,该方法应用于浏览器,该方法具体可以包括如下步骤:Please refer to FIG. 1. FIG. 1 shows a flowchart of steps of a method for playing live streaming media provided by an embodiment of the present invention. The method is applied to a browser, and the method may specifically include the following steps:

步骤S11,获取待播放流媒体直播的rtmp源。Step S11, acquiring the rtmp source of the live streaming media to be played.

步骤S12,调用第一转换服务,将所述rtmp源转换为目标源,所述目标源为所述浏览器支持播放的直播源。Step S12, calling a first conversion service to convert the rtmp source into a target source, where the target source is a live broadcast source supported by the browser.

步骤S13,播放所述目标源对应的流媒体直播。Step S13, playing the live streaming media corresponding to the target source.

本实施例中,浏览器可以是各种设备(pc、Android、ios)上的各种浏览器,例如Chrome、Safari、Firefox、内置浏览器(微信、QQ)等。In this embodiment, the browser may be various browsers on various devices (pc, Android, ios), such as Chrome, Safari, Firefox, built-in browsers (WeChat, QQ), and the like.

待播放流媒体直播指的是用户想要在浏览器上直接播放的流媒体直播。例如某直播平台的一个直播。The live streaming media to be played refers to the live streaming media that the user wants to play directly on the browser. For example, a live broadcast of a live broadcast platform.

目标源指的是浏览器支持直接播放的流媒体直播的直播源。例如,IOS系统平台支持的直播源是m3u8格式的直播源,因此,对于应用在IOS系统平台下的浏览器需要获取m3u8格式的直播源,即通过第一转换服务将将所述rtmp源地址转换为m3u8源;pc和Android设备可以使用bilibili开源的flv.js播放websocket源,因此,对于PC或者Android平台下的浏览器需要获取websocket格式的直播源,即通过第一转换服务将所述rtmp源转换为websocket源。The target source refers to the live broadcast source of the live streaming media broadcast that the browser supports to play directly. For example, the live source supported by the IOS system platform is the live source in m3u8 format. Therefore, for the browser applied on the IOS system platform, the live source in m3u8 format needs to be obtained, that is, the rtmp source address will be converted through the first conversion service. It is m3u8 source; PC and Android devices can use bilibili open source flv.js to play websocket source. Therefore, for browsers on PC or Android platform, it is necessary to obtain the live source in websocket format, that is, the rtmp source is converted through the first conversion service. Convert to websocket source.

采用本发明实施例的方法,既能够在IOS系统平台的浏览器上直接播放流媒体直播源,也能够在PC或者Android平台的浏览器上直接播放流媒体直播源,方便快捷。By using the method of the embodiment of the present invention, the live streaming source can be directly played on the browser of the IOS system platform, and the live streaming source can be directly played on the browser of the PC or Android platform, which is convenient and quick.

本实施例中,rtsp源对应有rtsp源地址,rtmp源对应有rtmp源地址,目标源对应有目标源地址,根据rtsp源地址、rtmp源地址和目标源地址即能够找到对应的rtsp源、rtmp源或者目标源。可以通过获取待播放流媒体直播的rtmp源,再调用第一转换服务将rtmp源转换成目标源,接着浏览器便能够播放待播放流媒体直播,以供用户收看。In this embodiment, the rtsp source corresponds to an rtsp source address, the rtmp source corresponds to an rtmp source address, and the target source corresponds to a target source address. According to the rtsp source address, rtmp source address and target source address, the corresponding rtsp source and rtmp source can be found. source or target source. By acquiring the rtmp source of the live streaming media to be played, and then calling the first conversion service to convert the rtmp source into the target source, the browser can then play the live streaming media to be played for the user to watch.

本实施例中,rtmp源对应有rtmp源地址,第一转换服务可以通过rtmp源地址获取rtmp源,再将rtmp源转换为目标源。In this embodiment, the rtmp source corresponds to an rtmp source address, and the first conversion service may obtain the rtmp source through the rtmp source address, and then convert the rtmp source into the target source.

本实施例中,第一转换服务可以是Node-Media-Server服务,Node-Media-Server服务是node.js编写的一套可以将rtmp直播源转换成m3u8、websocket等目标源的脚本服务。In this embodiment, the first conversion service may be a Node-Media-Server service, and the Node-Media-Server service is a set of script services written by node.js that can convert rtmp live broadcast sources into target sources such as m3u8 and websocket.

本实施例中,用户在浏览器上想要直接播放待播放流媒体直播时,通过获取待播放流媒体直播的rtmp源,调用第一转换服务,直接将所述rtmp源转换为目标源,由于目标源是浏览器能够直接播放的直播源,因此可以通过浏览器直接播放目标源对应的流媒体直播,而不需要浏览器另外安装插件以及flash支持,提高了播放流媒体直播的便捷性,并且,整个操作过程用户无感知,提高用户体验。In this embodiment, when the user wants to directly play the live streaming media to be played on the browser, the user obtains the rtmp source of the live streaming media to be played, calls the first conversion service, and directly converts the rtmp source into the target source. The target source is the live broadcast source that the browser can directly play, so the live streaming media corresponding to the target source can be played directly through the browser without the need for the browser to install additional plug-ins and flash support, which improves the convenience of playing live streaming media, and , the user does not perceive the entire operation process, improving the user experience.

此外,考虑到在通常情况下,流媒体直播的直播源包括rtsp源和rtmp源,因此,获取到的不一定都是rtmp源,也可能存在rtsp源,参考图2,图2是本申请实施例提供的流媒体直播服务流程图,本实施例中,在步骤S11获取待播放流媒体直播的rtmp源之前,还可以包括以下步骤:In addition, considering that under normal circumstances, the live streaming sources of live streaming include rtsp sources and rtmp sources, therefore, the obtained sources are not necessarily all rtmp sources, and rtsp sources may also exist. Refer to Figure 2, which is the implementation of this application. For example, the flow chart of the live streaming service provided by the example, in this embodiment, before acquiring the rtmp source of the live streaming media to be played in step S11, the following steps may also be included:

步骤SA1,根据所述待播放流媒体直播的直播标识,调用流媒体直播服务的接口,判断是否能够获取到待播放流媒体直播的rtsp源。In step SA1, according to the live broadcast identifier of the to-be-played live streaming media live broadcast, the interface of the live streaming media live broadcast service is invoked, and it is judged whether the rtsp source of the live streaming media live broadcast to be played can be obtained.

步骤SA2,在能够获取到所述rtsp源的情况下,启动转换进程。Step SA2, in the case that the rtsp source can be obtained, start the conversion process.

步骤SA3,利用所述转换进程获取所述rtmp源。Step SA3, using the conversion process to obtain the rtmp source.

本实施中,直播标识是用户用浏览器客户端进行直播访问时,用于搜索待播放流媒体直播的标识,直播标识可以是房间ID或者直播号等,每一个流媒体直播对应一个特定的直播标识。In this implementation, the live broadcast identifier is an identifier used to search for the live streaming media to be played when the user accesses the live broadcast with the browser client. The live broadcast identifier can be a room ID or a live broadcast number, and each live streaming corresponds to a specific live broadcast. logo.

流媒体直播服务指的是根据请求的直播标识得到目标源源地址的服务,目标源地址可以供浏览器访问从而获取目标源。The live streaming service refers to the service of obtaining the source address of the target source according to the requested live broadcast identifier, and the target source address can be accessed by the browser to obtain the target source.

通过浏览器客户端进行直播访问时,请求流媒体直播服务的接口,传入直播标识,根据直播标识,调用流媒体直播服务接口,此时需要判断是否能够获取到直播标识对应的待播放流媒体直播的rtsp源,具体地,如果能够返回rtsp源,则说明正在直播,存在直播流,则能够获取到待播放流媒体直播的rtsp源,并对应获得一个rtsp源地址。When accessing the live broadcast through the browser client, request the interface of the live streaming service, pass in the live broadcast identifier, and call the live streaming service interface according to the live broadcast identifier. At this time, it is necessary to determine whether the to-be-played streaming media corresponding to the live broadcast identifier can be obtained. The rtsp source of the live broadcast, specifically, if the rtsp source can be returned, it means that the live broadcast is being performed and there is a live stream, then the rtsp source of the live streaming media to be played can be obtained, and a corresponding rtsp source address can be obtained.

由于rtsp源不能直接转换为浏览器支持的直播源,而rtmp源可以转换为浏览器支持的源,因此,用户想要在浏览器上直接播放流媒体直播源,在获取到rtsp源之后,可以启动转换进程,将rtsp源转换成rtmp源,并对应获得一个rtmp源地址,获取rtmp源之后再将rtmp源用于转换成浏览器支持的格式的直播源。Since the rtsp source cannot be directly converted to the live source supported by the browser, but the rtmp source can be converted to the source supported by the browser, therefore, if the user wants to play the live streaming source directly on the browser, after obtaining the rtsp source, you can Start the conversion process, convert the rtsp source into an rtmp source, and obtain a corresponding rtmp source address, and then use the rtmp source to convert the rtmp source into a live source in a format supported by the browser after obtaining the rtmp source.

本实施例中,转换进程可以为ffmpeg进程,并且转换进程可以包含于流媒体直播服务之内,也可以独立于流媒体直播服务,本发明实施例中以转换进程包含于流媒体直播服务之内进行详细说明。In this embodiment, the conversion process may be an ffmpeg process, and the conversion process may be included in the live streaming service, or may be independent of the live streaming service. In this embodiment of the present invention, the conversion process is included in the live streaming service. Explain in detail.

ffmpeg进程是用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序,可以被调用的Process执行。The ffmpeg process is an open source computer program used to record, convert digital audio and video, and convert it into a stream, which can be executed by the called Process.

实际中,用户可能在浏览器存在播放多个流媒体直播的需求,因此,可能同时存在多个转换进程。此时,可以使用Task,启用多线程调用Process执行ffmpeg程序,进行rtsp到rtmp源的转换过程。In practice, the user may need to play multiple live streaming media in the browser, so there may be multiple conversion processes at the same time. At this point, you can use Task to enable multithreading to call Process to execute the ffmpeg program, and perform the conversion process from rtsp to rtmp source.

采用本实施例的方法,不仅能够对rtmp源进行转换,同时也能够对rtsp源进行转换,使得浏览器能够直接播放rtmp源和rtsp源的流媒体直播。By using the method of this embodiment, not only can the rtmp source be converted, but also the rtsp source can be converted, so that the browser can directly play the live streaming media of the rtmp source and the rtsp source.

参考图3,图3是本发明实施例提供的流媒体直播播放方法流程图,本发明一种实施方式中,由于传入的直播标识对应的待播放流媒体直播可能没有在直播,不存在直播流,此时,便不能够获取到待播放流媒体直播的rtsp源,即在调用流媒体直播服务接口后返回的rtsp源为空,不会进入转换进程,并且会返回错误提示false。Referring to FIG. 3, FIG. 3 is a flowchart of a streaming media live broadcast method provided by an embodiment of the present invention. In one embodiment of the present invention, since the live streaming media live broadcast to be played corresponding to the incoming live broadcast identifier may not be live broadcast, there is no live broadcast. stream, at this time, the rtsp source of the live streaming media to be played cannot be obtained, that is, the rtsp source returned after calling the live streaming service interface is empty, it will not enter the conversion process, and an error message false will be returned.

例如,用户想要查看某直播平台的一个直播节目,该直播节目即为待播放流媒体直播,且该直播节目的房间ID(直播标识)为101,在浏览器的搜索窗口传入房间ID101,如果该直播节目没有在直播,则会向浏览器返回错误提示并显示于浏览器界面供用户查看,便于用户了解待播放流媒体直播的状态。For example, if a user wants to view a live program of a live broadcast platform, the live broadcast program is the live streaming media broadcast to be played, and the room ID (live broadcast identifier) of the live broadcast program is 101. Enter the room ID101 in the search window of the browser, If the live program is not live, an error message will be returned to the browser and displayed on the browser interface for the user to view, so that the user can know the status of the live streaming media to be played.

继续参考图3,本发明一种实施方式中,流媒体直播服务中建立有静态字典,所述静态字典用于存储所述rtsp源对应的rtsp源地址与所述目标源对应的目标源地址的关联关系,本实施例中,步骤SA3中利用所述转换进程获取所述rtmp源,具体可以包括以下步骤:Continue to refer to FIG. 3 , in an embodiment of the present invention, a static dictionary is established in the streaming media live service, and the static dictionary is used to store the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source. Association relationship, in this embodiment, in step SA3, the conversion process is used to obtain the rtmp source, which may specifically include the following steps:

步骤SB1,查询所述静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系。Step SB1, query whether the static dictionary stores the association relationship between the rtsp source address and the target source address.

步骤SB2,在查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,直接获取所述rtmp源。Step SB2, in the case that the static dictionary is queried to store the association relationship between the rtsp source address and the target source address, directly obtain the rtmp source.

本实施例中,由于能够查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址(websocket地址和m3u8地址)的关联关系,说明之前已经进行过通过ffmpeg服务将请求的直播标识对应的rtsp源转换rtmp源的操作,因此在后续查询到静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系时,能够直接获取相应的rtmp源。In this embodiment, since it can be queried that the static dictionary stores the association relationship between the rtsp source address and the target source address (websocket address and m3u8 address), it means that the requested live broadcast through the ffmpeg service has been performed before. The operation of identifying the corresponding rtsp source to convert the rtmp source, therefore, when the association relationship between the rtsp source address and the target source address is stored in the static dictionary by subsequent query, the corresponding rtmp source can be directly obtained.

通过ffmpeg服务将请求的直播标识对应的rtsp源转换rtmp源,可以返回rtsp源对应的rtsp源地址、rtmp源对应的rtmp源地址以及目标源对应的目标源地址,其中返回的目标源地址包括websocket地址和m3u8地址两种,后续利用Node-Media-Server服务根据浏览器工作的平台系统选择对应的目标源地址发送供浏览器访问,浏览器访问目标源地址以获取目标源,从而实现播放待播放流媒体直播的功能。Convert the rtsp source corresponding to the requested live broadcast ID to the rtmp source through the ffmpeg service, and can return the rtsp source address corresponding to the rtsp source, the rtmp source address corresponding to the rtmp source, and the target source address corresponding to the target source. The returned target source address includes websocket There are two kinds of address and m3u8 address, and then the Node-Media-Server service is used to select the corresponding target source address according to the platform system where the browser works and send it for the browser to access. The browser accesses the target source address to obtain the target source, so as to realize playback and waiting Live streaming capabilities.

当然,返回的目标源地址也可以先根据浏览器工作的平台系统,而只包含websocket地址或m3u8地址其中任意一种,此处不作限定。Of course, the returned target source address can also be based on the platform system on which the browser works, and only include either the websocket address or the m3u8 address, which is not limited here.

本实施例中,静态字典相当于一本书,用来存放请求的直播标识对应的rtsp源地址与目标源地址的一种对应关系或者关联关系,由于rtmp地址具有保密性,不能暴露,因此静态字典中最好建立rtsp源地址与目标源地址的关联关系。In this embodiment, the static dictionary is equivalent to a book, and is used to store a correspondence or association between the rtsp source address corresponding to the requested live broadcast identifier and the target source address. Since the rtmp address is confidential and cannot be exposed, the static dictionary In the dictionary, it is better to establish the association between the rtsp source address and the target source address.

静态字典中存储有key-value的键值对,key-value键值对可以有多个,rtsp源地址即为字典中的key,value值存放的是一个类class,这个类可以包含websocket地址和m3u8地址这两个字段。例如,以PC或者Android平台为例,请求的直播标识为1208,流媒体直播服务根据1208获取到rtsp源,并对应获得一个rtsp源地址,此处rtsp源地址即为静态字典中的key,根据该rtsp源地址可以在value中查询到一个websocket地址(PC或者Android平台浏览器访问的地址)和一个m3u8地址(iOS平台浏览器访问的地址),例如websocket地址为ws://127.0.0.1/1208.flv,m3u8地址为http://127.0.0.1:8000/1208/index.m3u8。The static dictionary stores key-value key-value pairs. There can be multiple key-value key-value pairs. The rtsp source address is the key in the dictionary. The value value stores a class class, which can contain the websocket address and These two fields of m3u8 address. For example, taking the PC or Android platform as an example, the requested live broadcast ID is 1208, the streaming media live broadcast service obtains the rtsp source according to 1208, and obtains a corresponding rtsp source address, where the rtsp source address is the key in the static dictionary, according to The rtsp source address can be queried in value to a websocket address (the address accessed by the PC or Android platform browser) and an m3u8 address (the address accessed by the iOS platform browser), for example, the websocket address is ws://127.0.0.1/ 1208.flv, the address of m3u8 is http://127.0.0.1:8000/1208/index.m3u8.

本实施例中,在获取到rtsp源地址,启动转换进程之后,首先可以查询静态字典中是否存在key为请求的直播标识对应的rtsp源地址,value为请求的直播标识对应的rtsp源地址关联的目标源地址的键值对,若查询存在该键值对,说明静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系,之前已经进行过将直播标识对应的rtsp源转换为rtmp的请求,此时,转换进程可以直接利用该关联关系,获取与rtsp源地址关联的rtmp源地址,进而访问该rtmp源地址获取所述rtmp源,利用静态字典中存储的rtsp源地址与所述目标源地址的关联关系,可以根据rtsp源直接获取到rtmp源,以及获取到相应的rtsp源地址和目标源地址,节约转换进程的转换时间。In this embodiment, after the rtsp source address is obtained and the conversion process is started, it is first possible to query whether there is an rtsp source address corresponding to the requested live broadcast identifier in the static dictionary, and the value is the value associated with the rtsp source address corresponding to the requested live broadcast identifier. The key-value pair of the target source address, if the key-value pair exists in the query, it means that the static dictionary stores the relationship between the rtsp source address and the target source address, and the rtsp source corresponding to the live broadcast identifier has been converted to rtmp request, at this time, the conversion process can directly use the association relationship to obtain the rtmp source address associated with the rtsp source address, and then access the rtmp source address to obtain the rtmp source, and use the rtsp source address stored in the static dictionary and all the rtmp source addresses. The relationship between the target source addresses can be directly obtained according to the rtsp source, and the rtmp source can be obtained, and the corresponding rtsp source address and target source address can be obtained, so as to save the conversion time of the conversion process.

继续参考图3,本发明一种实施方式中,如果在查询静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系之后,未查询到静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系,例如,流媒体直播服务是第一次执行请求直播标识对应的rtsp源的服务,此时静态字典中就没有预先存储有请求的直播标识对应的rtsp源及rtsp源地址,更不会存储有关于直播标识对应的rtsp源地址与该rtsp源地址关联的目标源地址的键值对。本实施例中,在所述查询静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系之后,还可以包括以下步骤:Continuing to refer to FIG. 3 , in an embodiment of the present invention, if the static dictionary is queried whether the association between the rtsp source address and the target source address is stored, it is not found that the rtsp source is stored in the static dictionary. The relationship between the address and the target source address. For example, the streaming media live service is the first time to execute the service that requests the rtsp source corresponding to the live broadcast identifier. At this time, there is no rtsp source corresponding to the requested live broadcast identifier pre-stored in the static dictionary. and the rtsp source address, let alone a key-value pair about the rtsp source address corresponding to the live broadcast identifier and the target source address associated with the rtsp source address. In this embodiment, after querying whether the static dictionary stores the association relationship between the rtsp source address and the target source address, the following steps may be further included:

步骤SC1,在未查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,调用第二转换服务将所述rtsp源转换为所述rtmp源,同时返回目标源地址。Step SC1, in the case where the association relationship between the rtsp source address and the target source address is not stored in the static dictionary, call a second conversion service to convert the rtsp source into the rtmp source, and at the same time Returns the destination source address.

步骤SC2,获取转换后的所述rtmp源和所述目标源地址。Step SC2: Obtain the converted rtmp source and the target source address.

本实施例中,在未查询到静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,不能直接获取获取rtmp源,此时,可以调用第二转换服务将所述rtsp源转换为所述rtmp源,同时返回目标源地址,转换之后便可以获取转换后的rtmp源。In this embodiment, if the static dictionary is not queried to store the relationship between the rtsp source address and the target source address, the rtmp source cannot be directly obtained. In this case, the second conversion service can be called to convert the The rtsp source is converted into the rtmp source, and the target source address is returned at the same time, and the converted rtmp source can be obtained after the conversion.

本实施例中,第二转换服务可以为ffmpeg进程中将rtsp源转换为rtmp源的进程的服务。In this embodiment, the second conversion service may be a service of a process in the ffmpeg process that converts the rtsp source into the rtmp source.

参考图2和图3,本实施例中,为了节约系统的计算成本,在步骤SC2中获取转换后的所述rtmp源和所述目标源地址之后,还可以包括以下步骤:Referring to FIG. 2 and FIG. 3, in this embodiment, in order to save the computing cost of the system, after acquiring the converted rtmp source and the target source address in step SC2, the following steps may be further included:

步骤SD1,建立所述rtsp源对应的rtsp源地址与所述目标源对应的目标源地址的关联关系。Step SD1, establish an association relationship between the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source.

步骤SD2,将所述rtsp源地址与所述目标源地址的关联关系加入所述静态字典。Step SD2, adding the association relationship between the rtsp source address and the target source address into the static dictionary.

步骤SD3,在再次获取到所述rtsp源时,从所述静态字典中查询所述rtsp源对应的rtsp源地址与所述目标源地址的关联关系,直接获取所述rtmp源。In step SD3, when the rtsp source is obtained again, the association relationship between the rtsp source address corresponding to the rtsp source and the target source address is queried from the static dictionary, and the rtmp source is directly obtained.

本实施例中,经过第二服务计算后,可以得到rtsp源对应的rtmp源,同时可以得到rtsp源对应的rtsp源地址以及得到目标源对应的目标源地址,因此可以建立所述rtsp源地址与所述目标源地址的关联关系,并且将建立的所述rtsp源地址与所述目标源地址的关联关系加入到静态字典中,即在静态字典中添加一个key-value的键值对,同样由于已经进行过通过ffmpeg服务将请求的直播标识对应的rtsp源转换rtmp源的操作,因此在再次根据直播标识获取到rtsp源之后,便可以查询到静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系时,因此能够直接获取相应的rtmp源,可以不必再次调用第二转换服务进行转换可以直接获取目标源地址,可以避免每次获取到rtsp源之后都调用第二转换服务进行转换,节约第二转换服务的计算成本并且可以节约转换时间。In this embodiment, after the second service calculation, the rtmp source corresponding to the rtsp source can be obtained, the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source can be obtained at the same time, so the rtsp source address and the corresponding rtsp source address can be established. The association relationship of the target source address, and the established association relationship between the rtsp source address and the target source address is added to the static dictionary, that is, a key-value key-value pair is added to the static dictionary. The operation of converting the rtsp source corresponding to the requested live broadcast identifier to the rtmp source has been performed through the ffmpeg service. Therefore, after obtaining the rtsp source according to the live broadcast identifier again, it can be queried that the static dictionary stores the rtsp source address and the described rtsp source. When the target source address is associated, the corresponding rtmp source can be obtained directly, and the target source address can be directly obtained without calling the second conversion service for conversion again, which can avoid calling the second conversion service every time the rtsp source is obtained. Conversion, saves the computational cost of the second conversion service and can save conversion time.

本发明一种实施方式中,考虑到,在转换进程运行过程中,其运行状态可以被监控,例如,在进入转换进程之后,正常情况下,rtsp源一直存在,即直播源一直存在,此时可以监控转换进程为正常,即能够持续获取到rtmp源。但是当直播源突然断开,导致rtsp源不存在时,此时可以监控转换进程为异常,即不能够获取到rtmp源。本实施例中,在启动转换进程之后,具体可以包括以下步骤:In one embodiment of the present invention, it is considered that during the running process of the conversion process, its running state can be monitored. For example, after entering the conversion process, under normal circumstances, the rtsp source always exists, that is, the live broadcast source always exists. The conversion process can be monitored as normal, that is, the rtmp source can be continuously obtained. However, when the live source is suddenly disconnected and the rtsp source does not exist, the conversion process can be monitored as abnormal, that is, the rtmp source cannot be obtained. In this embodiment, after starting the conversion process, the following steps may be specifically included:

步骤SE1,在利用所述转换进程不能获取所述rtmp源的情况下,退出所述转换进程,并查询静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系。Step SE1, in the case that the rtmp source cannot be acquired by the conversion process, exit the conversion process, and query whether the association between the rtsp source address and the target source address is stored in the static dictionary.

步骤SE2,在查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,从静态字典中删除所述rtsp源地址与所述目标源地址的关联关系。Step SE2, in the case where the association between the rtsp source address and the target source address is stored in the static dictionary, delete the association between the rtsp source address and the target source address from the static dictionary .

仍以转换进程为ffmpeg进程为例进行说明,Process调用ffmpeg可以监控ffmpeg进程的运行状态,也可以监控通过ffmpeg进程是否能够获取到rtmp源,也可以监控ffmpeg进程的退出。因此,在监控到通过ffmpeg进程不能获取到rtmp源的情况下,可以退出ffmpeg进程,同时还可以查询静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系,如果查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系,直接将静态字典中的键值对删除,如果未查询到静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系,则不需要进行任何操作,采用本实施例的方法可以及时处理静态字典中的键值对,保证静态字典中键值对的准确性,提高后续转换进程的转换效率。Taking the conversion process to an ffmpeg process as an example, Process calls ffmpeg to monitor the running status of the ffmpeg process, monitor whether the rtmp source can be obtained through the ffmpeg process, and monitor the exit of the ffmpeg process. Therefore, if it is monitored that the rtmp source cannot be obtained through the ffmpeg process, the ffmpeg process can be exited, and at the same time, the static dictionary can be queried whether the relationship between the rtsp source address and the target source address is stored. The association relationship between the rtsp source address and the target source address is stored in the static dictionary, and the key-value pair in the static dictionary is directly deleted. If the static dictionary is not queried to store the rtsp source address and the The association relationship between the target source addresses does not require any operation, and the method of this embodiment can process the key-value pairs in the static dictionary in time, ensure the accuracy of the key-value pairs in the static dictionary, and improve the conversion efficiency of the subsequent conversion process.

本发明一种实施方式中,考虑到静态字典是有大小限制的,从静态字典中读取一个数据的时候,静态字典中的数据量越小,读取速度就越快,因此静态字典中存储的表达rtsp源地址与所述目标源地址的关联关系的键值对进行管理的,静态字典例如用户同时开启播放多个直播源,当用户不想播放其中一个直播源时,正常退出其中一个直播源的转换进程,此时不会删除静态字典中表达rtsp源地址与所述目标源地址的关联关系的键值对,因此静态字典中会保留键值对,但是,在一段时间后该直播源断开,即rtsp源不存在,静态字典再存储rtsp源地址与rtmp源地址的关联关系就没有意义,本实施例中,所述方法还可以包括以下步骤:In one embodiment of the present invention, considering that the static dictionary is limited in size, when reading a piece of data from the static dictionary, the smaller the amount of data in the static dictionary, the faster the reading speed, so the static dictionary stores The key-value pair that expresses the association between the rtsp source address and the target source address is managed. For example, a static dictionary such as a user who starts playing multiple live sources at the same time, when the user does not want to play one of the live sources, normally exits one of the live sources. In this conversion process, the key-value pair expressing the association between the rtsp source address and the target source address in the static dictionary will not be deleted, so the key-value pair will be retained in the static dictionary, but the live source will be disconnected after a period of time. Open, that is, the rtsp source does not exist, and it is meaningless to store the association relationship between the rtsp source address and the rtmp source address in the static dictionary. In this embodiment, the method may also include the following steps:

步骤SF1,周期性判断所述静态字典中存储的所述rtsp源地址与所述目标源地址的关联关系是否可用,其中,所述rtsp源地址对应的rtsp源不存在时,所述rtsp源地址与所述目标源地址的关联关系不可用Step SF1, periodically judging whether the association relationship between the rtsp source address and the target source address stored in the static dictionary is available, wherein, when the rtsp source corresponding to the rtsp source address does not exist, the rtsp source address The association with the target source address is not available

步骤SF2,在所述静态字典中存储的所述rtsp源地址与所述目标源地址的关联关系不可用的情况下,从所述静态字典中删除所述rtsp源地址与所述目标源地址的关联关系。Step SF2, in the case where the association relationship between the rtsp source address and the target source address stored in the static dictionary is unavailable, delete the relationship between the rtsp source address and the target source address from the static dictionary. connection relation.

本实施例中,周期性判断静态字典中的rtsp源地址与rtmp源地址的关联关系是否可用,具体地,添加一个轮询任务,轮询字典中的key-value值是否可用,即检查rtsp源地址对应的rtsp源是否存在,不存在时则删除该键值对。In this embodiment, it is periodically determined whether the association between the rtsp source address and the rtmp source address in the static dictionary is available. Specifically, a polling task is added to check whether the key-value value in the polling dictionary is available, that is, the rtsp source is checked. Whether the rtsp source corresponding to the address exists, if not, delete the key-value pair.

本实施例中,轮询的周期可以设置为5分钟,也可以设置为10分钟,此处不作具体限定。In this embodiment, the polling period may be set to 5 minutes, or may be set to 10 minutes, which is not specifically limited here.

本实施例中,通过周期性判断静态字典中的rtsp源地址与rtmp源地址的关联关系是否可用,在不可用时删除键值对,可以及时删除静态字典中的不可用键值对,保证静态字典中的键值对处于限制范围内,提高对静态字典的查询与读取速度。In this embodiment, by periodically judging whether the association relationship between the rtsp source address and the rtmp source address in the static dictionary is available, and deleting the key-value pair when unavailable, the unavailable key-value pair in the static dictionary can be deleted in time to ensure the static dictionary The key-value pairs in are within the limited range, which improves the query and reading speed of static dictionaries.

基于相同的技术构思,请参考图4,图4示出了本发明实施例的一种流媒体直播播放装置40,所述装置包括:Based on the same technical concept, please refer to FIG. 4. FIG. 4 shows a live streaming media playback device 40 according to an embodiment of the present invention, and the device includes:

获取模块41,用于获取待播放流媒体直播的rtmp源;An acquisition module 41 is used to acquire the rtmp source of the live streaming media to be played;

第一转换模块42,用于调用第一转换服务,将所述rtmp源转换为目标源,所述目标源为所述浏览器支持播放的直播源;The first conversion module 42 is used to call the first conversion service, and convert the rtmp source into a target source, and the target source is a live broadcast source supported by the browser;

播放模块43,用于播放所述目标源对应的流媒体直播。The playing module 43 is configured to play the live streaming media corresponding to the target source.

可选地,所述装置还包括:Optionally, the device further includes:

第一判断模块,用于根据所述待播放流媒体直播的直播标识,调用流媒体直播服务接口,判断是否能够获取到待播放流媒体直播的rtsp源;The first judgment module is configured to call the live streaming service interface according to the live broadcast identifier of the live streaming media to be played, and judge whether the rtsp source of the live streaming media to be played can be obtained;

启动模块,用于在能够获取到所述rtsp源的情况下,启动转换进程;a startup module for starting the conversion process under the condition that the rtsp source can be obtained;

所述获取模块,包括:The acquisition module includes:

获取子模块,用于利用所述转换进程获取所述rtmp源。An obtaining submodule is used to obtain the rtmp source by using the conversion process.

可选地,所述流媒体直播服务中建立有静态字典,所述静态字典用于存储rtsp源对应的rtsp源地址与目标源对应的目标源地址的关联关系,所述获取子模块,包括:Optionally, a static dictionary is established in the streaming media live service, and the static dictionary is used to store the association relationship between the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source, and the acquisition submodule includes:

第一查询子单元,用于查询所述静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系;A first query subunit, used to query whether the static dictionary stores the association relationship between the rtsp source address and the target source address;

第一获取子单元,用于在查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,直接获取所述rtmp源。The first acquiring subunit is configured to directly acquire the rtmp source when the static dictionary is queried to store the association relationship between the rtsp source address and the target source address.

可选地,所述获取子模块还可以包括:Optionally, the obtaining submodule may also include:

rtsp源转换子单元,用于在未查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,调用第二转换服务将所述rtsp源转换为所述rtmp源,同时返回目标源地址;The rtsp source conversion subunit is configured to call the second conversion service to convert the rtsp source to the rtsp source in the case where the association relationship between the rtsp source address and the target source address is not stored in the static dictionary. Describe the rtmp source, and return the destination source address at the same time;

第二获取子单元,用于获取转换后的所述rtmp源和所述目标源地址。The second obtaining subunit is configured to obtain the converted rtmp source and the target source address.

所述获取子模块,还可以包括:The acquisition submodule may also include:

关联关系建立子单元,用于建立所述rtsp源对应的rtsp源地址与所述目标源对应的目标源地址的关联关系;an association relationship establishing subunit, for establishing an association relationship between the rtsp source address corresponding to the rtsp source and the target source address corresponding to the target source;

添加子单元,用于将所述rtsp源地址与所述目标源地址的关联关系加入所述静态字典;Adding a subunit, for adding the association relationship between the rtsp source address and the target source address into the static dictionary;

第三获取子单元,在再次获取到所述rtsp源时,从所述静态字典中查询所述rtsp源对应的rtsp源地址与所述目标源地址的关联关系,直接获取所述rtmp源。The third obtaining subunit, when obtaining the rtsp source again, queries the static dictionary for the association relationship between the rtsp source address corresponding to the rtsp source and the target source address, and directly obtains the rtmp source.

可选地,所述装置还包括:Optionally, the device further includes:

退出及查询模块,用于在利用所述转换进程不能获取所述rtmp源的情况下,退出所述转换进程,并查询静态字典中是否存储有所述rtsp源地址与所述目标源地址的关联关系;The exit and query module is used to exit the conversion process under the condition that the rtmp source cannot be obtained by the conversion process, and query whether the association between the rtsp source address and the target source address is stored in the static dictionary relation;

第一删除模块,用于在查询到所述静态字典中存储有所述rtsp源地址与所述目标源地址的关联关系的情况下,从静态字典中删除所述rtsp源地址与所述目标源地址的关联关系。The first deletion module is used to delete the rtsp source address and the target source from the static dictionary when the relationship between the rtsp source address and the target source address is stored in the static dictionary. address association.

可选地,所述装置还包括:Optionally, the device further includes:

第二判断模块,用于周期性判断所述静态字典中存储的所述rtsp源地址与所述目标源地址的关联关系是否可用,其中,所述rtsp源地址对应的rtsp源不存在时,所述rtsp源地址与所述目标源地址的关联关系不可用;The second judgment module is configured to periodically judge whether the association relationship between the rtsp source address and the target source address stored in the static dictionary is available, wherein when the rtsp source corresponding to the rtsp source address does not exist, the The association relationship between the rtsp source address and the target source address is unavailable;

第二删除模块,用于在所述静态字典中存储的所述rtsp源地址与所述目标源地址的关联关系不可用的情况下,从所述静态字典中删除所述rtsp源地址与所述目标源地址的关联关系。a second deletion module, configured to delete the rtsp source address and the The target source address association.

可选地,所述装置还包括:Optionally, the device further includes:

返回模块,用于在不能够获取到待播放流媒体直播的rtsp源的情况下,返回错误提示。The return module is used to return an error prompt when the rtsp source of the live streaming media to be played cannot be obtained.

可选地,所述装置还包括:Optionally, the device further includes:

第二转换模块,用于第一转换模块用于在所述浏览器应用于PC或者Android平台时,将所述rtmp源转换为websocket源;The second conversion module is used for the first conversion module to convert the rtmp source into a websocket source when the browser is applied to the PC or Android platform;

第三转换模块,用于在所述浏览器应用于iOS平台时,将所述rtmp源转换为m3u8源。The third conversion module is used to convert the rtmp source into an m3u8 source when the browser is applied to the iOS platform.

本发明实施例还提供了一种流媒体直播播放装置,包括:The embodiment of the present invention also provides a streaming media live broadcasting device, including:

一个或多个处理器;和one or more processors; and

其上存储有指令的一个或多个计算机可读,当由所述一个或多个处理器执行时,使得所述装置执行如本发明实施例任一所述的流媒体直播播放方法。One or more computers readable with instructions stored thereon, when executed by the one or more processors, cause the apparatus to execute the method for playing live streaming media according to any one of the embodiments of the present invention.

本发明实施例还提供了一种计算机可读存储介质,其存储的计算机程序使得处理器执行如本发明实施例所述的流媒体直播播放方法。The embodiment of the present invention also provides a computer-readable storage medium, and the computer program stored in the storage medium enables the processor to execute the method for playing live streaming media according to the embodiment of the present invention.

对于流媒体直播播放装置实施例而言,由于其与流媒体直播播放方法实施例基本相似,所以描述的比较简单,相关之处参见流媒体直播播放方法实施例的部分说明即可。For the embodiment of the live streaming media playback apparatus, since it is basically similar to the embodiment of the live streaming media playback method, the description is relatively simple, and for related details, please refer to the partial description of the embodiment of the live streaming media playback method.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.

本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that the embodiments of the embodiments of the present invention may be provided as a method, an apparatus, or a computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like.

本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal equipment to produce a machine that causes the instructions to be executed by the processor of the computer or other programmable data processing terminal equipment Means are created for implementing the functions specified in the flow or flows of the flowcharts and/or the blocks or blocks of the block diagrams.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising instruction means, the The instruction means implement the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby executing on the computer or other programmable terminal equipment The instructions executed on the above provide steps for implementing the functions specified in the flowchart or blocks and/or the block or blocks of the block diagrams.

尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。While preferred embodiments of the embodiments of the present invention have been described, additional changes and modifications to these embodiments may be made by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the embodiments of the present invention.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or terminal device comprising a list of elements includes not only those elements, but also a non-exclusive list of elements. other elements, or also include elements inherent to such a process, method, article or terminal equipment. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

以上对本发明所提供的一种流媒体直播播放方法、一种流媒体直播播放装置及一种计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method for live streaming media, a live streaming media playing device, and a computer-readable storage medium provided by the present invention have been described above in detail. The principles and implementations of the present invention are described in this paper using specific examples. Explanation, the description of the above embodiment is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scope. In conclusion, the content of this specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for playing live streaming media is applied to a browser, and comprises the following steps:
acquiring a rtmp source for live broadcasting of streaming media to be played;
calling a first conversion service, and converting the rtmp source into a target source, wherein the target source is a live source which is supported by the browser to play;
playing the streaming media live broadcast corresponding to the target source;
before the obtaining of the rtmp source of the streaming media to be played, the method further includes:
calling a streaming media live broadcast service interface according to the live broadcast identification of the streaming media to be played, and judging whether a rtsp source for the streaming media to be played can be obtained or not;
starting a conversion process under the condition that the rtsp source can be obtained;
the acquiring the rtmp source of the streaming media to be played comprises:
acquiring the rtmp source by utilizing the conversion process;
a static dictionary is established in the streaming media live broadcast service, the static dictionary is used for storing an incidence relation between an rtsp source address corresponding to an rtsp source and a target source address corresponding to a target source, and the obtaining of the rtmp source by using the conversion process includes:
inquiring whether the static dictionary stores the incidence relation between the rtsp source address and the target source address or not;
and under the condition that the incidence relation between the rtsp source address and the target source address is stored in the static dictionary, directly acquiring the rtmp source.
2. The method according to claim 1, wherein after the query static dictionary stores the association relationship between the rtsp source address and the target source address, the method further comprises:
under the condition that the incidence relation between the rtsp source address and the target source address is not stored in the static dictionary, calling a second conversion service to convert the rtsp source into the rtmp source and simultaneously returning the target source address;
and acquiring the rtmp source and the target source address after conversion.
3. The method of claim 2, wherein after the obtaining the converted rtmp source and destination source address, the method further comprises:
establishing an incidence relation between an rtsp source address corresponding to the rtsp source and a target source address corresponding to the target source;
adding the incidence relation between the rtsp source address and the target source address into the static dictionary;
and when the rtsp source is obtained again, inquiring the association relation between the rtsp source address corresponding to the rtsp source and the target source address from the static dictionary, and directly obtaining the rtmp source.
4. The method of claim 1, wherein after the initiating a transition process, the method further comprises:
under the condition that the rtmp source cannot be obtained by utilizing the conversion process, quitting the conversion process, and inquiring whether a static dictionary stores the incidence relation between the rtmp source address and the target source address;
and under the condition that the static dictionary is inquired to store the incidence relation between the rtsp source address and the target source address, deleting the incidence relation between the rtsp source address and the target source address from the static dictionary.
5. The method of claim 1, further comprising:
periodically judging whether the incidence relation between the rtsp source address and the target source address stored in the static dictionary is available, wherein the incidence relation between the rtsp source address and the target source address is unavailable when the rtsp source corresponding to the rtsp source address does not exist;
and under the condition that the incidence relation between the rtsp source address and the target source address stored in the static dictionary is unavailable, deleting the incidence relation between the rtsp source address and the target source address from the static dictionary.
6. The method according to claim 1, wherein after determining whether an rtsp source for live streaming media to be played can be acquired, the method further comprises:
and returning an error prompt under the condition that an rtsp source for live broadcasting of the streaming media to be played cannot be obtained.
7. The method of claim 1, wherein said converting the rtmp source to a target source comprises:
when the browser is applied to a PC or an Android platform, the rtmp source is converted into a websocket source;
when the browser is applied to the iOS platform, the rtmp source is converted into an m3u8 source.
8. A live streaming media playing device is applied to a browser, and the device comprises:
the acquisition module is used for acquiring a rtmp source for live broadcasting of streaming media to be played;
the first conversion module is used for calling a first conversion service and converting the rtmp source into a target source, wherein the target source is a live source which is supported by the browser to play;
the playing module is used for playing the streaming media live broadcast corresponding to the target source;
the device further comprises:
the first judging module is used for calling a streaming media live broadcast service interface according to the live broadcast identification of the streaming media to be played, and judging whether an rtsp source for the live broadcast of the streaming media to be played can be acquired;
the starting module is used for starting a conversion process under the condition that the rtsp source can be obtained;
the acquisition module includes:
the obtaining submodule is used for obtaining the rtmp source by utilizing the conversion process;
a static dictionary is established in the streaming media live broadcast service, the static dictionary is used for storing an incidence relation between an rtsp source address corresponding to an rtsp source and a target source address corresponding to a target source, and the obtaining of the rtmp source by using the conversion process includes:
the first query subunit queries whether the static dictionary stores the incidence relation between the rtsp source address and the target source address;
and the first acquisition subunit directly acquires the rtmp source under the condition that the association relationship between the rtmp source address and the target source address is stored in the static dictionary.
9. A live streaming media playing device is characterized by comprising:
one or more processors; and
one or more computer-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a method of live streaming media playback as recited in any of claims 1-7.
10. A computer-readable storage medium storing a computer program for causing a processor to execute the live streaming media playing method according to any one of claims 1 to 7.
CN201911039660.XA 2019-10-29 2019-10-29 Streaming media live broadcast method and device and computer readable storage medium Active CN110891051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911039660.XA CN110891051B (en) 2019-10-29 2019-10-29 Streaming media live broadcast method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911039660.XA CN110891051B (en) 2019-10-29 2019-10-29 Streaming media live broadcast method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110891051A CN110891051A (en) 2020-03-17
CN110891051B true CN110891051B (en) 2022-08-30

Family

ID=69746572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911039660.XA Active CN110891051B (en) 2019-10-29 2019-10-29 Streaming media live broadcast method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110891051B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901634B (en) * 2020-07-31 2022-07-08 北京嘀嘀无限科技发展有限公司 Stream media on-demand method, device and computer readable storage medium
CN112995698A (en) * 2021-05-19 2021-06-18 浙江华创视讯科技有限公司 Video playing method, client, service platform and intelligent conference system
CN113794932A (en) * 2021-09-15 2021-12-14 云茂互联智能科技(厦门)有限公司 Method and device for playing video stream at webpage end, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639905B (en) * 2015-02-03 2016-07-06 广西智询信息科技有限公司 A kind of wireless video monitoring method thereof suitable in iOS system live broadcast of mobile terminal
WO2018027237A1 (en) * 2016-08-05 2018-02-08 Sportscastr.Live Llc Systems, apparatus, and methods for scalable low-latency viewing of broadcast digital content streams of live events
CN108243173B (en) * 2016-12-27 2019-08-06 视联动力信息技术股份有限公司 A kind of RTMP video pushing method and device based on view networking
CN109286603A (en) * 2017-07-20 2019-01-29 深圳市道通智能航空技术有限公司 A kind of method and device for realizing network live broadcast
CN107682710A (en) * 2017-10-11 2018-02-09 湖南纽曼车联网科技有限公司 A kind of net cast method and live broadcast system
CN107995187A (en) * 2017-11-30 2018-05-04 上海哔哩哔哩科技有限公司 Video main broadcaster, live broadcasting method, terminal and system based on HTML5 browsers

Also Published As

Publication number Publication date
CN110891051A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN110891051B (en) Streaming media live broadcast method and device and computer readable storage medium
CN109474843B (en) Method for voice control of terminal, client and server
WO2020134956A1 (en) Video recommendation method and apparatus
CN105975470B (en) Historical record processing method and device
JP7551773B2 (en) Method, apparatus, device and medium for generating interaction records
CN104469528B (en) A kind of method, apparatus and browser client for carrying out video data loading
CN104539977A (en) Live broadcast previewing method and device
CN108184170B (en) Data processing method and device
WO2020042375A1 (en) Method and apparatus for outputting information
CN113014681A (en) Network card binding method and device of multi-network card server, electronic equipment and storage medium
CN104572969A (en) Cross-application related resource information acquisition method and device
WO2022110943A1 (en) Speech preview method and apparatus
CN109446445B (en) Resource acquisition method and device
US11245885B2 (en) Method and system for playing media data
JP2022536387A (en) Video data processing method, apparatus, electronic equipment and computer readable medium
WO2017092364A1 (en) Advertisement data processing method and router
WO2016155633A1 (en) Information linkage method, device, server and system
WO2016019875A1 (en) Method and device for presenting content data from network
CN110113298B (en) Data transmission method, device, signaling server and computer readable medium
WO2017167051A1 (en) File calling method and apparatus
CN109587517B (en) Multimedia file playing method and device, server and storage medium
CN109842590A (en) A kind of processing method that surveying task, device and computer readable storage medium
US10997963B1 (en) Voice based interaction based on context-based directives
CN104079990B (en) Video broadcasting method, browser and download tool
CN116415032A (en) Video file reading and storing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013

Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China