github

begeekmyfriend / yasea

  • вторник, 7 июня 2016 г. в 03:12:54
https://github.com/begeekmyfriend/yasea

Java
RTMP streaming client in pure Java for Android for those who hate JNI.



Yet Another Stream Encoder for Android

Android Arsenal

Yasea is an Android streaming client written in pure Java. It is based on the source of both srs-sea and SimpleRtmp. It uses hard encoder for H.264/AAC and transmits over RTMP. Moreover, it runs on Android mini API 16 (Android 4.1).

Feature

  • Android mini API 16.
  • H.264/AAC hard encoding.
  • RTMP streaming with state callback handler.
  • Portrait and landscape dynamic orientation.
  • Front and back cameras hot switch.
  • Recording to MP4 while streaming.
  • Authentication for RTMP server.

Test

You may watch the live broadcasting at srs.net. Remember to modify the URL by yourself. Have fun!

NOTE if you feel high latency, it might be the frame cache of the server or player. So you need to open the player first and then publish to see the effect.

Other Branch

If you want to stay in portrait mode ignoring dynamic orientation change when streaming, clone yasea on brach portrait-forever.