Skip to content

ERROR: Method 'stop:' not defined in Plugin 'MediaRecorder' #31

Open
@muktarsayedsaleh

Description

@muktarsayedsaleh

Expected Behaviour

I should be able to call .stop() on iOS

Actual Behaviour

ERROR: Method 'stop:' not defined in Plugin 'MediaRecorder'

Reproduce Scenario (including but not limited to)

just installed it on iOS app, instantiated a MediaStream like this:

var mediaRecorder;
navigator.mediaDevices.getUserMedia({ audio: true })
.then(stream => {
mediaRecorder = new MediaRecorder(stream);
});

now when I call mediaRecorder.stop() i am getting an error (only on iOS)

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Cordova CLI version and cordova platform version

cordova --version                                    9.0.0 ([email protected])
cordova platform version android                     Installed platforms:  ios 5.1.1

Plugin version

phonegap-plugin-media-recorder 1.1.0 "Media Recorder"
phonegap-plugin-media-stream 1.2.1 "MediaStream"

Sample Code that illustrates the problem

Logs taken while reproducing problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions