WO2017071642A1 - 媒体播放方法、装置和计算机存储介质 - Google Patents

媒体播放方法、装置和计算机存储介质 Download PDF

Info

Publication number
WO2017071642A1
WO2017071642A1 PCT/CN2016/103775 CN2016103775W WO2017071642A1 WO 2017071642 A1 WO2017071642 A1 WO 2017071642A1 CN 2016103775 W CN2016103775 W CN 2016103775W WO 2017071642 A1 WO2017071642 A1 WO 2017071642A1
Authority
WO
WIPO (PCT)
Prior art keywords
played
media
player
playing
operating system
Prior art date
Application number
PCT/CN2016/103775
Other languages
English (en)
French (fr)
Inventor
黄建
陈洲
易鹤声
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017071642A1 publication Critical patent/WO2017071642A1/zh

Links

Images

Classifications

    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440236Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Definitions

  • the present invention relates to the field of communications, and in particular to a media playing method, apparatus, and computer storage medium.
  • the audio and video playback functions of the Android OTT set-top box are mostly based on multimedia frameworks, such as the multimedia framework of Android.
  • Most of the original multimedia player players are MidiFile, StagefrightPlayer, and NuPlayer.
  • MidiFile Player is mainly responsible for playing midi audio files.
  • StagefrightPlayer is mainly used to play local files.
  • NuPlayer is mainly used for network file playback, including HyperText Transfer Protocol (HTTP) LiveSource and Real Time Streaming (Real Time Streaming). Protocol, referred to as RTSP) Source two sources, currently mainly supports the playback of RTSP and http protocol files.
  • HTTP HyperText Transfer Protocol
  • RTSP Real Time Streaming
  • IPTV Internet Protocol Television
  • IGMP Internet Group Management Protocol
  • RTSP Real-time Transport Protocol
  • FEC Forward Error Correction
  • ARQ Automatic Error Request
  • FCC fast channel change
  • IPTV Move and switch functions The native players on the Android multimedia framework are currently not supported.
  • Embodiments of the present invention provide a media playing method, apparatus, and computer storage medium.
  • An aspect of the present invention provides a media playing method, including: acquiring media to be played in an operating system; and playing the media to be played according to an extended interactive network television IPTV player in the operating system. .
  • Another aspect of the embodiments of the present invention further provides a media playing device, including: a first acquiring module configured to acquire a media to be played in an operating system; and a playing module connected to the acquiring module, configured to be configured according to the An extended interactive network television IPTV player in the operating system to play the media to be played.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used in the foregoing media playing method.
  • the technical solution of playing the video to be played according to the extended IPTV player in the operating system solves the problem that the IPTV player does not support the media in the related art, such as the Android system.
  • a method for quickly merging an IPTV player into a multimedia framework is proposed, which expands the protocol support and data quality recovery function of the multimedia framework.
  • FIG. 1 is a schematic flowchart of a media playing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a media playing device according to an embodiment of the present invention.
  • FIG. 3 is another schematic structural diagram of a media playing device according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing another structure of a media playing device according to an embodiment of the present invention.
  • FIG. 5 is a block diagram of an Android multimedia frame in the prior art
  • FIG. 6 is a schematic structural diagram of an IPTV player according to an embodiment of the present invention.
  • a media playing method is further provided, which acquires media to be played in an operating system; and the media to be played is played according to an extended interactive network television IPTV player in the operating system.
  • the operating system herein may include an Android operating system as well as a Window operating system and/or an IOS operating system.
  • the method further includes augmenting a specified class in a player of the operating system, wherein the specified class is for supporting a player function of the IPTV player.
  • the playing the media to be played according to the extended interactive network television IPTV player in the operating system includes: acquiring a uniform resource locator URL of the media to be played; determining the to-be-played according to the URL Whether the video needs to be played by the IPTV player; if so, the media to be played in the operating system is played according to the IPTV player.
  • the method further includes: acquiring the play data of the media to be played; and performing pre-play on the play data.
  • the method further includes: sending the play data pre-processed to the decoder, wherein the decoder performs media play according to the played pre-processed play data.
  • the playback pre-processing includes: forward error correction FEC, channel fast cut FCC.
  • FIG. 1 is a schematic flowchart of a media playing method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S102 acquiring media to be played in the Android system
  • Step S104 The media to be played is played according to the extended IPTV player in the Android system.
  • the technical solution of the technical solution for playing the video to be played according to the extended IPTV player in the Android system solves the related art, and the protocol supported by the player in the Android system is limited and cannot support the IPTV.
  • the problem of media playback a method of quickly merging an IPTV player into an Android multimedia framework, and extending the protocol support and data quality recovery function of the Android multimedia framework.
  • the method further includes: expanding a specified class in the player of the Android system, wherein the designating The class is used to support the player function of the IPTV player.
  • the implementation of the step S104 is various. In an optional example of the embodiment of the present invention, the following may be implemented: acquiring a uniform resource locator URL of the media to be played; determining the video to be played according to the URL. Whether the above IPTV player needs to be played; if yes, the media to be played in the Android system is played according to the above IPTV player, and the URL such as igmp://, http://, rtsp:// will be Priority is given to IPTV player playback.
  • the following technical solution may also be implemented: acquiring playback data of the media to be played; performing pre-processing on the playback data, and playing the pre-processed playback data.
  • the device is sent to the decoder, where the decoder performs media playback according to the play data that has been pre-processed.
  • the play pre-processing includes: forward error correction FEC, channel fast cut FCC.
  • a media playback device is also provided in the embodiment to implement the above-mentioned embodiments and preferred embodiments.
  • the descriptions of the modules involved in the device will be described below.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the embodiment provides a media playing device, including: a first acquiring module, configured to acquire a media to be played in an operating system; and a playing module connected to the acquiring module, configured to be extended according to the extended operating system
  • the network television IPTV player plays the media to be played.
  • a charging module coupled to the playing module, configured to expand a specified class in a player of the operating system, wherein the specified class is used to support a player function of an interactive network television IPTV player.
  • the playing module includes: an obtaining unit configured to acquire a uniform resource locator URL of the media to be played; and a determining unit configured to determine, according to the URL, whether the video to be played needs to be played by the IPTV player a playing unit configured to play the media to be played in the Android system according to the IPTV player when the IPTV player is required to play.
  • the device further includes: a second acquiring module configured to acquire playing data of the media to be played; and a pre-processing module connected to the second acquiring module, configured to perform pre-processing on the playing data.
  • FIG. 2 is a schematic structural diagram of a media playing device according to an embodiment of the present invention. As shown in Figure 2, the device comprises:
  • the first obtaining module 20 is configured to acquire media to be played in the Android system
  • the playing module 22 is connected to the first obtaining module 20 and configured to play the media to be played according to the extended interactive network television IPTV player in the Android system.
  • the technical solution of the technical solution for playing the video to be played according to the extended IPTV player in the Android system solves the related technology.
  • the player supported by the Android system has limited protocols and cannot support the problem of IPTV media playback.
  • a method for quickly integrating the IPTV player into the Android multimedia framework is proposed, and the protocol support and data of the Android multimedia framework are expanded. Quality recovery function.
  • FIG. 3 is another structural block diagram of a media playing device according to an embodiment of the present invention.
  • the device further includes: an expansion module 24 connected to the playing module 22, configured to be A specified class is augmented in the player of the Android system, wherein the specified class is used to support the player function of the interactive network television IPTV player.
  • the playing module 22 may further include:
  • the obtaining unit 220 is configured to obtain a uniform resource locator URL of the media to be played, and the determining unit 222 is connected to the obtaining unit 220, and configured to determine, according to the URL, whether the video to be played needs to be played by the IPTV player; the playing unit 224, and The determining unit 222 is connected to be configured to play the media to be played in the Android system according to the IPTV player when the IPTV player is required to play.
  • the device further includes: a second acquiring module 26 configured to acquire playing data of a media to be played; and a preprocessing module The device is connected to the second obtaining module 26 and configured to perform pre-processing on the playing data.
  • the device further includes: a sending module 30, connected to the pre-processing module 28, configured to send the play data pre-processed to the play to a decoder, wherein the decoder performs media playback according to the playback data after the pre-playing playback.
  • the pre-processing pre-processing of the pre-processing module includes: forward error correction FEC, channel fast cut FCC.
  • the preferred embodiment of the present invention can reuse the system framework and code of the IPTV player as much as possible.
  • the OTT set-top box supports IPTV functions and shortens the software development cycle.
  • Libmediaplayerservice.so is a Media server that implements server functionality by inheriting libmedia.so classes, while other parts of libmedia.so communicate with libmediaplayerservice.so via interprocess communication.
  • the real function of libmediaplayerservice.so is done by calling StageFrighterPlayer.
  • Play command timing based on Android native framework set data source (setdatasource), prepare (prepare), start (start), stop (stop).
  • IptvAgent class (equivalent to the specified class in the above embodiment) in MediaPlayer, and level with Nuplayer and stagefright to support the function of the IPTV player.
  • This IptvAgent acts as a player agent, as shown in Figure 6.
  • the IptvAgent and Android native player, and the player control module complete the interaction process through event feedback, where IptvAgent can act as a player agent.
  • the IptvAgent is selected for the appropriate program to play.
  • the implementation process can include:
  • Step 1 The IPTV player can be an independent process or a dynamic library.
  • Step 2 The installation package (APK) sends a broadcast message, and the setdadatasource interface carries a multicast address;
  • Step 3 In the libmediaplayerservice.so, according to the url, select the IptvAgent player to play;
  • Step 4 The IptvAgent sends a broadcast message to the IPTV player, which is actually playing the media, and has functions such as FEC and FCC;
  • Step 5 The IPTV player downloads data and performs data preprocessing (such as FEC, FCC, etc.);
  • Step 6 The IPTV player sends the data to the decoder for playback.
  • the embodiments of the present invention can be used to solve the problem in the related art that the protocol supported by the player in the Android system is limited and cannot support the IPTV media playback, and an IPTV player is quickly integrated into the Android.
  • the multimedia framework approach extends the protocol support and data quality recovery capabilities of the Android multimedia framework.
  • a software or executable program is also provided, which is used to implement the technical solutions described in the above embodiments and preferred embodiments.
  • a storage medium in which the above software or executable program is stored, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • the embodiment provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing at least one of any one of the foregoing media playing methods, such as an executable image.
  • the method shown in 1. The computer storage medium can be a non-transitory storage medium.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Abstract

本发明提供了一种媒体播放方法及装置,其中,所述方法包括:获取系统中待播放的媒体;根据所述统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体,本发明实施例还提供了一种计算机存储介质。

Description

媒体播放方法、装置和计算机存储介质 技术领域
本发明涉及通信领域,具体而言,涉及一种媒体播放方法、装置和计算机存储介质。
背景技术
随着移动互联网的迅猛发展,OTT(Over The Top)技术的推广以及各种智能终端设备的出现,通过手机、掌上电脑、机顶盒等视频终端在线收看视频,成为人们越来越普遍的休闲娱乐方式。
Android OTT机顶盒的音视频播放功能大都是基于多媒体框架实现的,例如安卓的多媒体框架。而大多数的多媒体框架原声的播放器主要有MidiFile、StagefrightPlayer、NuPlayer。MidiFile Player主要负责midi音频文件的播放,StagefrightPlayer主要用来播放本地文件,NuPlayer主要用来网络文件播放,包括超文本传输协议(HyperText Transfer Protocol,简称为HTTP)LiveSource和实时流传输协议(Real Time Streaming Protocol,简称为RTSP)Source两个source,目前主要支持RTSP和http这两种协议文件的播放。
而交互式网络电视(Internet Protocol Television,简称为IPTV)机顶盒发展到现在已经比较成熟了,对应播放器支持的传输协议比较完善:网络组管理协议(Internet Group Management Protocol,简称为IGMP)、RTSP、HTTP、和实时传输协议(Real-time Transport Protocol,简称为RTP)等协议都支持。另外,IPTV上支持的前向纠错码(Forward Error Correction简称FEC)、自动误差矫正(Automatic Error Request,简称为ARQ)恢复,频道快切(fast channel change,简称为FCC)、组播和时移相互切换等功能, 目前安卓多媒体框架上原生的播放器都是不支持的。
针对相关技术中,某些操作系统(例如,安卓系统)里不支持IPTV播放器来播放媒体的问题,尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种媒体播放方法、装置和计算机存储介质。
本发明实施例的一个方面,提供了一种媒体播放方法,包括:获取操作系统中待播放的媒体;根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。
本发明实施例的另一个方面,还提供了一种媒体播放装置,包括:第一获取模块,配置为获取操作系统中待播放的媒体;播放模块,与所述获取模块连接,配置为根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。
本发明实施例还提供、一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于前述媒体播放方法。
通过本发明实施例,通过根据操作系统中扩展的IPTV播放器来播放待播放的视频的技术方案,解决了相关技术中,例如安卓系统等操作系统里不支持IPTV播放器来播放媒体的问题,提出了一种将IPTV播放器快速融合到多媒体框架的方法,扩充多媒体框架的协议支持和数据质量恢复功能。
附图说明
图1为根据本发明实施例提供的媒体播放方法的流程示意图;
图2为根据本发明实施例提供的媒体播放装置的结构示意图;
图3为根据本发明实施例提供的媒体播放装置的另一结构示意图;
图4为根据本发明实施例提供的媒体播放装置的又一结构框示意图;
图5为现有技术中的安卓多媒体框架框图;
图6为根据本发明实施例提供的IPTV播放器的结构示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。
在本发明实施例中,还提供了一种媒体播放方法,获取操作系统中待播放的媒体;根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。这里的操作系统可包括安卓操作系统以及Window操作系统和/或IOS操作系统。例如,所述方法还包括:在所述操作系统的播放器中扩充一个指定类,其中,该指定类用于支持IPTV播放器的播放器功能。所述根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体包括:获取所述待播放的媒体的统一资源定位符URL;根据所述URL判断所述待播放的视频是否需要所述IPTV播放器播放;如果是,则根据所述IPTV播放器来播放所述操作系统中待播放的媒体。根据所述IPTV播放器来播放所述操作系统中待播放的媒体之前,还包括:获取所述待播放的媒体的播放数据;对所述播放数据进行播放预处理。对所述播放数据进行播放预处理之后,还包括:将经过播放预处理后的播放数据发送至解码器,其中,该解码器根据所述经过播放预处理后的播放数据进行媒体播放。所述播放预处理包括:前向纠错FEC、频道快切FCC。以下以操作系统为安卓系统为例进行详细说明。
图1为根据本发明实施例的媒体播放方法的流程示意图,如图1所示,包括以下步骤:
步骤S102,获取安卓系统中待播放的媒体;
步骤S104,根据上述安卓系统中扩展的IPTV播放器来播放所述待播放的媒体。
通过上述各个步骤,通过根据安卓系统中扩展的IPTV播放器来播放待播放的视频的技术方案的技术方案,解决了相关技术中,安卓系统里自带的播放器支持的协议有限进而无法支持IPTV媒体播放的问题,提出了一种将IPTV播放器快速融合到安卓多媒体框架的方法,扩充安卓多媒体框架的协议支持和数据质量恢复功能。
可选地,根据所述安卓系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体之前,上述方法还包括:在安卓系统的播放器中扩充一个指定类,其中,该指定类用于支持IPTV播放器的播放器功能。步骤S104的实现方式是多种的,在本发明实施例的一个可选示例中,可以通过以下方案实现:获取上述待播放的媒体的统一资源定位符URL;根据上述URL判断上述待播放的视频是否需要上述IPTV播放器播放;如果是,则根据上述IPTV播放器来播放上述安卓系统中待播放的媒体,像igmp://,http://,rtsp://这种格式的URL,会优先选择IPTV播放器播放。
在根据IPTV播放器来播放上述安卓系统中待播放的媒体之前,还可以执行以下技术方案:获取待播放的媒体的播放数据;对播放数据进行播放预处理,将经过播放预处理后的播放数据发送至解码器,其中,该解码器根据经过播放预处理后的播放数据进行媒体播放,在本发明实施例中,上述播放预处理包括:前向纠错FEC、频道快切FCC。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实 施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必需的。
在本实施例中还提供了一种媒体播放装置,用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述,下面对该装置中涉及到的模块进行说明。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。本实施例提供一种媒体播放装置,包括:第一获取模块,配置为获取操作系统中待播放的媒体;播放模块,与所述获取模块连接,配置为根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。充模块,与所述播放模块连接,配置为在所述操作系统的播放器中扩充一个指定类,其中,该指定类用于支持交互式网络电视IPTV播放器的播放器功能。所述播放模块,包括:获取单元,配置为获取所述待播放的媒体的统一资源定位符URL;判断单元,配置为根据所述URL判断所述待播放的视频是否需要所述IPTV播放器播放;播放单元,配置为在需要所述IPTV播放器播放时,根据所述IPTV播放器来播放所述安卓系统中待播放的媒体。所述装置,还包括:第二获取模块,配置为获取所述待播放的媒体的播放数据;预处理模块,与所述第二获取模块连接,配置为对所述播放数据进行播放预处理。
以下以操作系统为安卓系统为例进行进一步说明和介绍。
图2为根据本发明实施例的媒体播放装置的结构示意图。如图2所示,该装置包括:
第一获取模块20,配置为获取安卓系统中待播放的媒体;
播放模块22,与第一获取模块20连接,配置为根据所述安卓系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。
通过上述各个模块的综合应用,通过根据安卓系统中扩展的IPTV播放器来播放待播放的视频的技术方案的技术方案的技术方案,解决了相关技 术中,安卓系统里自带的播放器支持的协议有限进而无法支持IPTV媒体播放的问题,提出了一种将IPTV播放器快速融合到安卓多媒体框架的方法,扩充安卓多媒体框架的协议支持和数据质量恢复功能。
在一个可选示例中,图3为根据本发明实施例的媒体播放装置的另一结构框图,如图3所示,上述装置还包括:扩充模块24,与上述播放模块22连接,配置为在安卓系统的播放器中扩充一个指定类,其中,该指定类用于支持交互式网络电视IPTV播放器的播放器功能。
为了更好的实现播放模块22的功能,如图3所示,播放模块22还可以包括:
获取单元220,配置为获取待播放的媒体的统一资源定位符URL;判断单元222,与获取单元220连接,配置为根据URL判断上述待播放的视频是否需要IPTV播放器播放;播放单元224,与判断单元222连接,配置为在需要IPTV播放器播放时,根据IPTV播放器来播放上述安卓系统中待播放的媒体。
图4为根据本发明实施例的媒体播放装置的又一结构框图,如图4所示,上述装置,还包括:第二获取模块26,配置为获取待播放的媒体的播放数据;预处理模块28,与第二获取模块26连接,配置为对播放数据进行播放预处理,上述装置,还包括:发送模块30,与预处理模块28连接,配置为将经过播放预处理后的播放数据发送至解码器,其中,该解码器根据上述经过播放预处理后的播放数据进行媒体播放。
在本发明实施例中,上述预处理模块的播放预处理包括:前向纠错FEC、频道快切FCC。
为了更好的理解上述媒体播放过程,以下结合实施例对上述技术方案进行说明,如下所述:
本发明优选实施例一能尽量复用IPTV播放器的系统框架和代码,完成 OTT机顶盒对IPTV功能的支持,缩短软件开发周期。
首先,简单介绍一下安卓多媒体框架的核心MediaPlayer,如图5所示,在各个库中,l ibmedia.so位于核心的位置,它对上层的提供的接口主要是MediaPlayer类,类libmedia_jni.so通过调用MediaPlayer类提供对JAVA的接口,并且实现了android.media.MediaPlayer类。
libmediaplayerservice.so是Media的服务器,它通过继承libmedia.so的类实现服务器的功能,而libmedia.so中的另外一部分内容则通过进程间通讯和libmediaplayerservice.so进行通讯。libmediaplayerservice.so的真正功能通过调用StageFrighterPlayer来完成。
基于安卓原生框架的播放命令时序:建立数据源(setdatasource)、准备(prepare)、开始(start)、停止(stop)。
本实施例实现的大致流程可如下:
1、在MediaPlayer中扩充一个IptvAgent类(相当于上述实施例中的指定类),与Nuplayer和stagefright平级,用来支持IPTV播放器的功能,这个IptvAgent充当一个播放器代理的角色,如图6所示,IptvAgent和安卓原生播放器,与播放器控制模块之间通过事件反馈的形式完成交互过程,这里IptvAgent可以充当一个播放器代理的角色。
2、在setdatasource阶段,根据URL区分,对适合的节目选择IptvAgent进行播放。
3、在IptvAgent中完成安卓多媒体框架播放接口和IPTV播放器的对外接口的转换与对接。
4、在IptvAgent中完成IPTV播放器上报事件和安卓多媒体框架标准事件的转换。
在另一个实施中,所述实现大致流程可包括:
步骤1:IPTV播放器可以是一个独立的进程,也可以以一个动态库方式存在;
步骤2:安装包(APK)下发播放消息,setdadatasource接口中携带的是一个组播地址;
步骤3:在libmediaplayerservice.so中根据url,选择IptvAgent播放器进行播放;
步骤4:IptvAgent发送播放消息给IPTV播放器,真正进行媒体播放,具备FEC、FCC等功能;
步骤5:IPTV播放器下载数据,进行数据预处理(比如FEC,FCC等);
步骤6:IPTV播放器将数据送给解码器进行播放。
需要说明的是,上述步骤的顺序并不用来限定本发明优选实施例一的任何顺序,只是用来解释本发明优选实施例一所涉及到的技术方案。
综上所述,本发明实施例可用于解决了相关技术中,安卓系统里自带的播放器支持的协议有限进而无法支持IPTV媒体播放的问题,提出了一种将IPTV播放器快速融合到安卓多媒体框架的方法,扩充安卓多媒体框架的协议支持和数据质量恢复功能。
在另外一个实施例中,还提供了一种软件或可执行程序,该软件或可执行程序用于执行上述实施例及优选实施方式中描述的技术方案。
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件或可执行程序,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。例如,本实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执前述任意一个媒体播放方法的至少其中之一,例如可执行图1所示的方法。所述计算机存储介质可为非瞬间存储介质。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第 一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的对象在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。

Claims (13)

  1. 一种媒体播放方法,包括:
    获取操作系统中待播放的媒体;
    根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。
  2. 根据权利要求1所述的方法,其中,
    所述获取操作系统中待播放的媒体,包括:
    获取安卓系统中待播放的媒体;
    所述根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体,包括:
    根据所述安卓系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。
  3. 根据权利要求1或2所述的方法,其中,根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体之前,所述方法还包括:
    在所述操作系统的播放器中扩充一个指定类,其中,该指定类用于支持IPTV播放器的播放器功能。
  4. 根据权利要求1或2所述的方法,其中,根据所述IPTV播放器来播放所述操作系统中待播放的媒体,包括:
    获取所述待播放的媒体的统一资源定位符URL;
    根据所述URL判断所述待播放的视频是否需要所述IPTV播放器播放;
    如果是,则根据所述IPTV播放器来播放所述操作系统中待播放的媒体。
  5. 根据权利要求1或2所述的方法,其中,根据所述IPTV播放器 来播放所述操作系统中待播放的媒体之前,还包括:
    获取所述待播放的媒体的播放数据;
    对所述播放数据进行播放预处理。
  6. 根据权利要求5所述的方法,其中,对所述播放数据进行播放预处理之后,还包括:
    将经过播放预处理后的播放数据发送至解码器,其中,该解码器根据所述经过播放预处理后的播放数据进行媒体播放。
  7. 根据权利要求5或6所述的方法,其中,所述播放预处理包括:
    前向纠错FEC、频道快切FCC。
  8. 一种媒体播放装置,包括:
    第一获取模块,配置为获取操作系统中待播放的媒体;
    播放模块,与所述获取模块连接,配置为根据所述操作系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。
  9. 根据权利要求8所述的装置,其中,
    所述第一获取模块,配置为获取安卓系统中待播放的媒体;
    所述播放模块,配置为根据所述安卓系统中扩展的交互式网络电视IPTV播放器来播放所述待播放的媒体。
  10. 根据权利要求8或9所述的装置,其中,所述装置还包括:
    扩充模块,与所述播放模块连接,配置为在所述操作系统的播放器中扩充一个指定类,其中,该指定类用于支持交互式网络电视IPTV播放器的播放器功能。
  11. 根据权利要求8或9所述的装置,其中,所述播放模块,包括:
    获取单元,配置为获取所述待播放的媒体的统一资源定位符URL;
    判断单元,配置为根据所述URL判断所述待播放的视频是否需要所 述IPTV播放器播放;
    播放单元,配置为在需要所述IPTV播放器播放时,根据所述IPTV播放器来播放所述安卓系统中待播放的媒体。
  12. 根据权利要求8或9所述的装置,其中,所述装置,还包括:
    第二获取模块,配置为获取所述待播放的媒体的播放数据;
    预处理模块,与所述第二获取模块连接,配置为对所述播放数据进行播放预处理。
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至6提的媒体播放方法的至少其中之一。
PCT/CN2016/103775 2015-10-28 2016-10-28 媒体播放方法、装置和计算机存储介质 WO2017071642A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510716161.5A CN106658149A (zh) 2015-10-28 2015-10-28 媒体播放方法及装置
CN201510716161.5 2015-10-28

Publications (1)

Publication Number Publication Date
WO2017071642A1 true WO2017071642A1 (zh) 2017-05-04

Family

ID=58629890

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103775 WO2017071642A1 (zh) 2015-10-28 2016-10-28 媒体播放方法、装置和计算机存储介质

Country Status (2)

Country Link
CN (1) CN106658149A (zh)
WO (1) WO2017071642A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743632B (zh) * 2018-12-18 2021-06-04 苏宁易购集团股份有限公司 一种实现安卓多生态系统下媒体播放的多引擎接入的方法
CN111372129B (zh) * 2018-12-26 2022-01-18 Tcl科技集团股份有限公司 基于安卓系统保存播放信息的方法、智能终端及存储介质
CN111416993B (zh) * 2020-03-26 2021-10-29 四川长虹电器股份有限公司 能够播放iptv和ott视频源的播放控制方法和播放器系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343419B1 (en) * 2000-10-05 2008-03-11 Aol Llc Rerouting media to selected media applications
CN103269450A (zh) * 2013-04-25 2013-08-28 中国科学院声学研究所 一种面向Android智能电视的多媒体系统
CN103430564A (zh) * 2011-09-22 2013-12-04 Lgcns株式会社 利用在单个操作系统中包含的默认媒体播放器提供智能服务和数码电视服务的智能机顶盒和操作方法
CN103763614A (zh) * 2014-01-28 2014-04-30 苏州橡山网络科技有限公司 智能云电视iptv终端系统及其实现方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343419B1 (en) * 2000-10-05 2008-03-11 Aol Llc Rerouting media to selected media applications
CN103430564A (zh) * 2011-09-22 2013-12-04 Lgcns株式会社 利用在单个操作系统中包含的默认媒体播放器提供智能服务和数码电视服务的智能机顶盒和操作方法
CN103269450A (zh) * 2013-04-25 2013-08-28 中国科学院声学研究所 一种面向Android智能电视的多媒体系统
CN103763614A (zh) * 2014-01-28 2014-04-30 苏州橡山网络科技有限公司 智能云电视iptv终端系统及其实现方法

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NIKOLA KUZMANOVIC ET AL.: "Google's android as an application environment for DTV decoder system", IEEE 14TH INTERNATIONAL SYMPOSIUM ON CONSUMER ELECTRONICS, 2010, pages 1 - 5, XP031716441 *
WANG, LING, IPTVJIQDING3HE2 LIU2MEI2TI3 BOLFANG4QI4 SHE4JI4 YU3 SHI2XIAN4, DIAN4ZI3 JE1JI4 DA4XUE2 ZHUAN1YE4XUE2WEI4 SHUO4SHI4 XUE2WEI4 KLUN4WEN2, 15 January 2014 (2014-01-15), pages 2 and 33 - 41 *

Also Published As

Publication number Publication date
CN106658149A (zh) 2017-05-10

Similar Documents

Publication Publication Date Title
CN103200461B (zh) 一种多台播放终端同步播放系统及播放方法
JP5668512B2 (ja) 情報処理装置、及び、情報処理方法
CN110351493B (zh) 存在网络延迟的环境中的远程基于云的视频制作系统
CN111010614A (zh) 一种显示直播字幕的方法、装置、服务器及介质
US9356985B2 (en) Streaming video to cellular phones
WO2013032787A1 (en) Media source identification
CN107484011B (zh) 一种视频资源解码方法及装置
CN112804592B (zh) 一种基于浏览器的rtsp直播视频转发方法及终端
CN112839238B (zh) 投屏播放方法、装置和存储介质
US11323768B2 (en) Reducing latency during service change and improving robustness in advanced television systems committee (ATSC) 3.0 system
WO2017071642A1 (zh) 媒体播放方法、装置和计算机存储介质
CN106657090B (zh) 一种多媒体流的处理方法、装置和嵌入式设备
WO2015180446A1 (zh) 一种多设备联动服务中的连接通道维护系统及方法
CN114040232A (zh) 投屏系统、方法、电子设备和存储介质
CN112243136B (zh) 内容播放方法、视频存储方法和设备
CN106303754A (zh) 一种音频数据播放方法及装置
WO2018019167A1 (zh) 基于机顶盒的直播共享方法及系统
US11895350B2 (en) Techniques for providing a content stream based on a delivered stream of content
US20210185381A1 (en) Reducing latency during service change and improving robustness in advanced television systems committee (atsc) 3.0 system
CN110602061A (zh) 一种安卓播放器网络协议和格式的拓展方法、系统和设备
CN106302465A (zh) 一种播放音视频数据的方法及装置
JP2017055203A (ja) 情報機器
US20230262292A1 (en) Content playing method and system
US11232816B2 (en) Multi-window viewing system including editor for reaction video and method for producing reaction video by using same
CN106303587A (zh) 一种下载音视频数据的方法及装置

Legal Events

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

Ref document number: 16859077

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16859077

Country of ref document: EP

Kind code of ref document: A1