Interface mozIGeckoMediaPluginServiceType

Hierarchy

Properties

thread: nsIThread

The GMP thread. Callable from any thread.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Run through windows registered registered for pluginId, sending 'PluginCrashed' chrome-only event

    Parameters

    • pluginId: number
    • pluginName: string

    Returns void

  • Get a video decoder that supports the specified tags. The array of tags should at least contain a codec tag, and optionally other tags such as for EME keysystem. Callable only on GMP thread. This is an asynchronous operation, the Done method of the callback object will be called on the GMP thread with the result (which might be null in the case of failure). This method always takes ownership of the callback object, but if this method returns an error then the Done method of the callback object will not be called at all.

    Parameters

    • helper: GMPCrashHelperPtr
    • tags: TagArray
    • nodeId: string
    • callback: GetGMPVideoDecoderCallback

    Returns void

  • Get a video encoder that supports the specified tags. The array of tags should at least contain a codec tag, and optionally other tags. Callable only on GMP thread. This is an asynchronous operation, the Done method of the callback object will be called on the GMP thread with the result (which might be null in the case of failure). This method always takes ownership of the callback object, but if this method returns an error then the Done method of the callback object will not be called at all.

    Parameters

    • helper: GMPCrashHelperPtr
    • tags: TagArray
    • nodeId: string
    • callback: GetGMPVideoEncoderCallback

    Returns void

  • Gets the NodeId for a (origin, urlbarOrigin) pair.

    Parameters

    • origin: string
    • topLevelOrigin: string
    • gmpName: string
    • callback: GetNodeIdCallback

    Returns void

  • Get a plugin that supports the specified tags. Callable on any thread

    Parameters

    • api: string
    • tags: ConstTagArrayRef

    Returns boolean

Generated using TypeDoc