Method and device for playing non-HLS (Http Live Streaming) media file

The invention discloses a method and a device for playing a non-HLS (Http Live Streaming) media file. The method comprises the following steps: playing a file request message which is sent by a play client and used for acquiring the non-HLS media file; acquiring the non-HLS media file according to t...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG ZAIHAO, XIU ZHIYUAN, GAO HAIYING, LIN HONGGANG, LIU YONGHUI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a method and a device for playing a non-HLS (Http Live Streaming) media file. The method comprises the following steps: playing a file request message which is sent by a play client and used for acquiring the non-HLS media file; acquiring the non-HLS media file according to the file request message; slicing and transcoding the non-HLS media file to obtain a ts file; generating an m3u8 file corresponding to the non-HLS media file according to the ts file, wherein the m3u8 file comprises a uniform resource locator (URL) of the non-HLS file; and transmitting the m3u8 file to the play client, so that the play client acquires the ts file of the non-HLS media file through the URL, and plays the non-HLS media file through the ts file. Through adoption of the method and the system, the technical problem that play of the non-HLS media file is not supported in an android system and an iOS system is solved. 本发明公开了种播放非HLS媒体文件的方法和装置。其中,该方法包括:接收播放客户端发送的用于获取非HLS媒体文件的文件请求消息;根据所述文件请求消息获取所述非HLS媒体文件;对所述非