videoView function

Widget videoView(
  1. int streamId,
  2. MediaQueryData mediaQueryData,
  3. BuildContext context
)

Implementation

Widget videoView(int streamId, MediaQueryData mediaQueryData, BuildContext context){
  return Container(
    decoration:
    BoxDecoration(border: Border.all(color: Colors.grey)),
    child: Center(
      child: SizedBox(
        width: 300 ,
        height: 400,
        child: AspectRatio(aspectRatio: 4/3,
          child: EnxPlayerWidget(
            streamId,
            local: false,
            zMediaOverlay: false,
            height: 300,
            width: mediaQueryData.size.width.toInt(),
          ),
        ),
      ),
    ),
  );
}