Home  >  Q&A  >  body text

android - What is a good solution for Android native development to embed live streaming in the browser?

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_u1582phpcn_u15822722 days ago933

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-31 10:42:09

    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.

    reply
    0
  • Cancelreply