Ionic - custom UI class

I’m trying to implement https://github.com/niqdev/ipcam-view into ionic/cordova by creating cordova plugin. But I don’t know how I can implement this part:

  <com.github.niqdev.mjpeg.MjpegSurfaceView
  android:id="@+id/VIEW_NAME"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  stream:type="stream_default OR stream_native" />

in .html/.js file. As I know that part is custom view. So is there any possibility to “add” it and mix with cordova plugin?

Look at other Cordova plugins adding a “camera” or “video” view inside the app. Maybe they can give you an idea how to solve this. (Disclaimer: There are lot of issues with these…)