Because H264 live streaming code using C# and Xamarin.Forms(and Xamarin.Android) is not found on the Internet.
I list my source files as example or sample code :-)
sorry, I don't explain about my codes.
please read these under one's own power :-)
- encoding with OpenH264(used OpenH264Lib.NET on Windows)
- https://github.com/ryogrid/RemoteDesktopOneWindowForNovelGrame/blob/f1a95cfece72544eff7156060d227c4fd762a3e0/OpenH264Lib/AVI/ExtractedH264Encoder.cs
- https://github.com/ryogrid/RemoteDesktopOneWindowForNovelGrame/blob/f1a95cfece72544eff7156060d227c4fd762a3e0/RemoteDesktop.Server.XamaOk/MainApplicationContext.cs#L367
- decoding with MediaCodec class of Xamarin.Android and render it with Skia (Xamarin.Forms and Xamarin.Android)
- https://github.com/ryogrid/RemoteDesktopOneWindowForNovelGrame/blob/f1a95cfece72544eff7156060d227c4fd762a3e0/RemoteDesktop.Client.Android/RemoteDesktop.Client.Android.Android/PlatformVideoDecoderAndroid.cs#L137
- https://github.com/ryogrid/RemoteDesktopOneWindowForNovelGrame/blob/f1a95cfece72544eff7156060d227c4fd762a3e0/RemoteDesktop.Client.Android/RemoteDesktop.Client.Android/PlatformVideoDecoder.cs
- https://github.com/ryogrid/RemoteDesktopOneWindowForNovelGrame/blob/f1a95cfece72544eff7156060d227c4fd762a3e0/RemoteDesktop.Android.Core/Utils.cs#L181
- https://github.com/ryogrid/RemoteDesktopOneWindowForNovelGrame/blob/f1a95cfece72544eff7156060d227c4fd762a3e0/RemoteDesktop.Client.Android/RemoteDesktop.Client.Android/MainPage.xaml.cs#L113
#Running Android app video capture
Video capture of my Android app (the app render screen capture of remote PC on 1FPS) pic.twitter.com/AT4TRgCj4t
— ryo_grid@UZOMUZOを宜しく (@ryo_grid) 2019年1月19日