videoViewNew function

Widget videoViewNew(
  1. int streamId,
  2. int width,
  3. int height
)

Implementation

Widget videoViewNew(int streamId, int width, int height) {
  print("he123${width} H${height}");
  return Container(
    alignment: Alignment.center,
    width: width.toDouble(),
    height: height.toDouble(),
    padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
    decoration: BoxDecoration(
      color: Colors.black26,
      border: Border.all(color: Colors.grey,width: 2),
      borderRadius: BorderRadius.circular(10.0),
    ),
    child: AspectRatio(
      aspectRatio: 4 / 3,
      child: EnxPlayerWidget(
        streamId,
        local: false,
        zMediaOverlay: false,
        height: height,
        width: width,
      ),
    ),
  );
}