Skip to content

solar2d/com.labolado-plugin.screenRecorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In-App Video Recording + Video Sharing Plugin (Android & iOS) for Solar2d Game Engine.

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 build.settings:

{
    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()