<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Media Session: add plumbing for delivering start/end-of-interruption events"
   href="https://bugs.webkit.org/show_bug.cgi?id=146837#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Media Session: add plumbing for delivering start/end-of-interruption events"
   href="https://bugs.webkit.org/show_bug.cgi?id=146837">bug 146837</a>
              from <span class="vcard"><a class="email" href="mailto:mrajca&#64;apple.com" title="Matt Rajca &lt;mrajca&#64;apple.com&gt;"> <span class="fn">Matt Rajca</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=146837#c7">comment #7</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=256610&amp;action=diff" name="attach_256610" title="Patch">attachment 256610</a> <a href="attachment.cgi?id=256610&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=256610&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=256610&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/API/C/WKPage.cpp:2197
&gt; &gt; +    switch (wkCategory) {
&gt; 
&gt; I realize there's only one user, but the enum conversion functions are
&gt; usually separate static methods. Maybe just keep that in mind if we end up
&gt; needing this code again?</span >

Will do.

<span class="quote">&gt; 
&gt; &gt; Source/WebKit2/WebProcess/WebPage/WebPage.h:746
&gt; &gt; +    void handleStartOfInterruptionEvent(uint32_t /* WebCore::MediaSessionInterruptingCategory */);
&gt; 
&gt; Since this is on WebPage, it should be more clear that it's about media.
&gt; Also, maybe just &quot;handleMediaInterruptionEvent&quot;, with a state/phase to
&gt; indicate whether it's starting or ending? Won't you eventually need the end
&gt; case too?</span >

I renamed it to 'handleMediaSessionInterruptionEvent' and added an enum for the event type (currently either start-of-interruption and end-of-interruption).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>