Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 695 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 695 Bytes

solar2d_plugin_screen_recorder

Implement video recording and share functionality on both iOS and Android platforms. For Android development, refer to the HBRecorder library.

How to use:

Add following to your build.settings to use:

{
    plugins = {
        ["plugin.screenRecorder"] = {
            publisherId = "com.labolado"
        }
    },
}

Usage:

local SR = require("plugin.screenRecorder")

local function onStart(e)
    if e.isError then
        print(e.errorMessage)
    else
        -- do something
    end
end
-- to start recording screen
SR.start(onStart)

-- ...
-- to stop recording screen
SR.stop()