mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Issue #80 - De-unify dom/media part 1 (updated reland)
This de-unifies up to and including dom/media/platforms with the exception of dom/media/platforms/wmf, because that one throws weird errors in the Win SDK which don't have a clear cause (yet)
This commit is contained in:
parent
294a1da59b
commit
527ad10c12
41 changed files with 81 additions and 50 deletions
|
|
@ -15,24 +15,6 @@
|
|||
|
||||
namespace mozilla {
|
||||
|
||||
class CaptureTask::MediaStreamEventListener : public MediaStreamTrackListener
|
||||
{
|
||||
public:
|
||||
explicit MediaStreamEventListener(CaptureTask* aCaptureTask)
|
||||
: mCaptureTask(aCaptureTask) {};
|
||||
|
||||
// MediaStreamListener methods.
|
||||
void NotifyEnded() override
|
||||
{
|
||||
if(!mCaptureTask->mImageGrabbedOrTrackEnd) {
|
||||
mCaptureTask->PostTrackEndEvent();
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
CaptureTask* mCaptureTask;
|
||||
};
|
||||
|
||||
CaptureTask::CaptureTask(dom::ImageCapture* aImageCapture)
|
||||
: mImageCapture(aImageCapture)
|
||||
, mEventListener(new MediaStreamEventListener(this))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue