docstr: Display a video player.
  
  Parameters
  ----------
  data : str, bytes, BytesIO, numpy.ndarray, or file
      Raw video data, filename, or URL pointing to a video to load.
      Includes support for YouTube URLs.
      Numpy arrays and raw data formats must include all necessary file
      headers to match specified file format.
  format : str
      The mime type for the video file. Defaults to 'video/mp4'.
      See https://tools.ietf.org/html/rfc4281 for more info.
  start_time: int
      The time from which this element should start playing.
  
  Example
  -------
  >>> import streamlit as st
  >>>
  >>> video_file = open('myvideo.mp4', 'rb')
  >>> video_bytes = video_file.read()
  >>>
  >>> st.video(video_bytes)
  
  .. output::
     https://doc-video.streamlit.app/
     height: 700px
  
  .. note::
     Some videos may not display if they are encoded using MP4V (which is an export option in OpenCV), as this codec is
     not widely supported by browsers. Converting your video to H.264 will allow the video to be displayed in Streamlit.
     See this `StackOverflow post <https://stackoverflow.com/a/49535220/2394542>`_ or this
     `Streamlit forum post <https://discuss.streamlit.io/t/st-video-doesnt-show-opencv-generated-mp4/3193/2>`_
     for more information.
docstr_tok: ["Display","a","video","player",".","Parameters","--","--","--","--","--","data",":","str",",","bytes",",","BytesIO",",","numpy.ndarray",",","or","file","Raw","video","data",",","filename",",","or","URL","pointing","to","a","video","to","load",".","Includes","support","for","YouTube","URLs",".","Numpy","arrays","and","raw","data","formats","must","include","all","necessary","file","headers","to","match","specified","file","format",".","format",":","str","The","mime","type","for","the","video","file",".","Defaults","to","'video\/mp4","'",".","See","https",":","\/\/tools.ietf.org\/html\/rfc4281","for","more","info",".","start_time",":","int","The","time","from","which","this","element","should","start","playing",".","Example","--","--","--","-",">",">",">","import","streamlit","as","st",">",">",">",">",">",">","video_file","=","open","(","'myvideo.mp4","'",",","'rb","'",")",">",">",">","video_bytes","=","video_file.read","(",")",">",">",">",">",">",">","st.video","(","video_bytes",")","..","output",":",":","https",":","\/\/doc-video.streamlit.app\/","height",":","700px","..","note",":",":","Some","videos","may","not","display","if","they","are","encoded","using","MP4V","(","which","is","an","export","option","in","OpenCV",")",",","as","this","codec","is","not","widely","supported","by","browsers",".","Converting","your","video","to","H.264","will","allow","the","video","to","be","displayed","in","Streamlit",".","See","this","`","StackOverflow","post","<","https",":","\/\/stackoverflow.com\/a\/49535220\/2394542",">","`","_","or","this","`","Streamlit","forum","post","<","https",":","\/\/discuss.streamlit.io\/t\/st-video-doesnt-show-opencv-generated-mp4\/3193\/2",">","`","_","for","more","information","."]
code: def video(
      self,
      data: MediaData,
      format: str = "video/mp4",
      start_time: int = 0,
  ) -> "DeltaGenerator":
      """Display a video player.
  
      Parameters
      ----------
      data : str, bytes, BytesIO, numpy.ndarray, or file
          Raw video data, filename, or URL pointing to a video to load.
          Includes support for YouTube URLs.
          Numpy arrays and raw data formats must include all necessary file
          headers to match specified file format.
      format : str
          The mime type for the video file. Defaults to 'video/mp4'.
          See https://tools.ietf.org/html/rfc4281 for more info.
      start_time: int
          The time from which this element should start playing.
  
      Example
      -------
      >>> import streamlit as st
      >>>
      >>> video_file = open('myvideo.mp4', 'rb')
      >>> video_bytes = video_file.read()
      >>>
      >>> st.video(video_bytes)
  
      .. output::
         https://doc-video.streamlit.app/
         height: 700px
  
      .. note::
         Some videos may not display if they are encoded using MP4V (which is an export option in OpenCV), as this codec is
         not widely supported by browsers. Converting your video to H.264 will allow the video to be displayed in Streamlit.
         See this `StackOverflow post <https://stackoverflow.com/a/49535220/2394542>`_ or this
         `Streamlit forum post <https://discuss.streamlit.io/t/st-video-doesnt-show-opencv-generated-mp4/3193/2>`_
         for more information.
  
      """
      video_proto = VideoProto()
      coordinates = self.dg._get_delta_path_str()
      marshall_video(coordinates, video_proto, data, format, start_time)
      return self.dg._enqueue("video", video_proto)
  
imports: import io
  import re
  from typing import TYPE_CHECKING, Optional, Tuple, Union, cast
  from typing_extensions import Final, TypeAlias
  import streamlit
  from streamlit import runtime, type_util
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Audio_pb2 import Audio
  from streamlit.proto.Video_pb2 import Video
  from streamlit.runtime import caching
  from streamlit.runtime.metrics_util import gather_metrics
label_desc: Use image node_id 2 for calling the MediaMixin obj's underlying member method code with example usage: obj.video(data, format, start_time) and returns: self