android - What is a good solution for Android native development to embed live streaming in the browser?
phpcn_u1582
phpcn_u1582 2017-05-31 10:40:09
0
1
929

I want to put a video tag directly on the web page, and then play a live broadcast address such as rtmp. I found that Tencent’s x5 browser kernel has done this, and it is best to implement it yourself.

phpcn_u1582
phpcn_u1582

reply all(1)
漂亮男人

Refer to the Html5-m3u8-RTMP project.

The following is an excerpt from the official document:

RTMP and M3U8 live streaming

  • Play-RTMP-HLS-Stream(Obj-Flash)

    • [x] 1. Support live streaming: play RTMP live stream and HSL live stream

    • [x] 2. How to use: Just download it directly and use it. Note: m3u8 playback must be placed under the server

    • [x] 3. Default: RTMP playback

    • [x] 4. Delay:

      • [x] RTMP latency: 3s

      • [x] HLS latency: 20s

      • [x] VLC latency (not recommended): 18s

    • [x] 5. Cross-domain: OK

    • [x] 6. Authentication: Not possible

    • [x] Test progress

      • [April 10, 2017 16:00 PM] Test of HSL and RTMP streaming delay in LAN

        > 测试结果:RTMP 延迟:3s ,HLS 延迟: 20s 
        

The author can also use keywords like rtmp and html5 to search for more suitable open source projects on github.


PS: If the poster is in control of the overall situation, you can consider using a solution like Qiniu-Live Cloud, which supports iOS, Android, and HTML5. Convenient and fast.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!