rokucommunity / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
4 stars 2 forks source link

Add support for undocumented global function `ObjFun()` #77

Open lvcabral opened 2 months ago

lvcabral commented 2 months ago

This function was discovered by the community and was discussed here: https://community.roku.com/t5/Roku-Developer-Program/objFun-no-fun/td-p/306374

a valid code is this:

    di = createObject("roDeviceInfo")
    iface = getInterface(di, "ifDeviceInfo")
    print objFun(di, iface, "getModel")
    print objFun(di, iface, "canDecodeVideo", {codec: "mpeg2"}).result