triniwiz / nativescript-videorecorder

:video_camera: NativeScript plugin for Video Recording . :video_camera:
Apache License 2.0
43 stars 29 forks source link

Error saying it is not supported on iOS #1

Closed raefa closed 8 years ago

raefa commented 8 years ago

Thanks for putting the app out.

I note that when building see this in the logs: nativescript-videorecorder is not supported for ios.

It subsequently does not work because the module is not there. Can you get it to run on iOS?

triniwiz commented 8 years ago

Sorry ios is not supported atm but I'm sure someone awesome would add support for it soon 😊.

raefa commented 8 years ago

Ahhh ... sorry. I must be seeing things. I thought I read that it was cross platform already! No dramas. I am hoping someone will support it soon too. Sorry ... I don't have the skills to do it.

triniwiz commented 8 years ago

I would of but I don't own a Mac yet 😂 so I'll see if I get someone to do it

victorsosa commented 8 years ago

HI guys,

I committed a PR #2 to implemented the IOS part; this is beta.

var vr = require("nativescript-videorecorder");
var videorecorder = new vr.VideoRecorder();
var options = {
    saveToGallery:true, //default false | optional
    duration:0.0, //The maximum duration, in seconds, permitted for trimmed movies saved by the video editor. default no limit | optional
    quallity:0, //default  0-5| optional
}
videorecorder.record(options)
.then((data)=>{
    console.log(data.filePath)
})
.catch((err)=>
{console.log(err)})
triniwiz commented 8 years ago

@raefa yupdate your plugin to enjoy the ios goodness @victorsosa has added :smile:

raefa commented 8 years ago

Great stuff! Will try it out. :)

On 11 May 2016, at 10:11 AM, Osei Fortune notifications@github.com wrote:

@raefa yupdate your plugin to enjoy the ios goodness @victorsosa has added

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub