title: Serve partial content (HTTP 206) via SAP Gateway Media into SAPUI5 App
body: <p>In my SAPUI5 application I am trying to include a video, which is working very well.
  The video is from a media stream from SAP Gateway, which is built with OData V2. The video is shown in a custom SAPUI5-Control, very simple, just a html-video tag.</p>
  <p>The problem is that in Chrome or Edge, the video's progress bar doesn't work. You cannot move the slider back or forth. In Firefox, on the other hand, this is no problem and the videoplayer works as expected.</p>
  <p>I read, that Chrome and Firefox handle video processing differently. While it is Ok for Firefox to get the stream via a HTTP-200 request, Chrome requires a HTTP-206 request.</p>
  <p>Can you tell me, if it is possible inside the ABAP-Definition of the Video-Stream, I handled this in <strong>/IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM</strong>, that I serve the stream with in a manner, chrome understands it?</p>
  <p>My Stream Implementation in ABAP (the video is saved in the MIME Repo)</p>
  <pre><code>DATA LS_STREAM TYPE /IWBEP/IF_MGW_CORE_SRV_RUNTIME=&gt;TY_S_MEDIA_RESOURCE.
  DATA(LO_MIME) = CL_MIME_REPOSITORY_API=&gt;GET_API( ).
  LO_MIME-&gt;GET(
     EXPORTING
        I_URL = 'MIME_PATH/video.mp4'
     IMPORTING
        E_CONTENT = LS_STREAM-VALUE
        E_MIME_TYPE = LS_STREAM-MIMETYPE
  ).
  
  IF LS_STREAM_MIMETYPE = 'video/mp4'.
     SET_HEADER( IS_HEADER = VALUE #( NAME = 'Content-Disposition' VALUE = 'inline; filename=' &amp;&amp; |video.mp4| ) ).
  
  COPY_DATA_TO_REF(
     EXPORTING
        IS_DATA = LS_STREAM
     CHANGING
        CR_DATA = ER_STREAM
  ).
  </code></pre>
  <p>I have changed my videofile with MP4TOOLS into a fragemented mp4 too.</p>
  <p>Inside the Definition in SEGW, Media is enabled for the EntitySet.</p>
  <p>Thank you very much</p>