tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mediasource-message-util.js (936B)


      1 // This script provides an object with common message subjects to assist main
      2 // and worker thread communication.
      3 
      4 const messageSubject = {
      5  ERROR: "error",  // info field may contain more detail
      6  OBJECT_URL: "object url", // info field contains object URL
      7  HANDLE: "handle", // info field contains the MediaSourceHandle
      8  STARTED_BUFFERING: "started buffering",
      9  FINISHED_BUFFERING: "finished buffering",
     10  VERIFY_DURATION: "verify duration", // info field contains expected duration
     11  AWAIT_DURATION: "await duration", // wait for element duration to match the expected duration in the info field
     12  VERIFY_HAVE_NOTHING: "verify have nothing readyState",
     13  VERIFY_AT_LEAST_HAVE_METADATA: "verify readyState is at least HAVE_METADATA",
     14  ACK_VERIFIED: "verified", // info field contains the message values that requested the verification
     15  WORKER_DONE: "worker done", // this lets worker signal main to successfully end the test
     16 };