Skip to content

Suggestion to make it work on norihiro/obs-vnc type source #76

@amoxocillina

Description

@amoxocillina

I wrote this simple workaround to allow me to remote zoom VNC sources taken from norihiro/[obs-vnc]https://github.com/norihiro/obs-vnc)

i simply modified this section:

function populate_zoom_sources(list)
     obs.obs_property_list_clear(list)

     local sources = obs.obs_enum_sources()
     if sources ~= nil then
         local dc_info = get_dc_info()
         obs.obs_property_list_add_string(list, "<None>", "obs-zoom-to-mouse-none")
         for _, source in ipairs(sources) do
             local source_type = obs.obs_source_get_id(source)
             if source_type == dc_info.source_id or allow_all_sources then
                 local name = obs.obs_source_get_name(source)
                 obs.obs_property_list_add_string(list, name, name)
             end
        end

         obs.source_list_release(sources)
      end
end

to this one to force your plugin to show all sources (even Audios LOL)
My tests works perfectly, allowing me to zoom and follow remote screens.

function populate_zoom_sources(list)
    obs.obs_property_list_clear(list)

    local sources = obs.obs_enum_sources()
    if sources ~= nil then
        obs.obs_property_list_add_string(list, "<None>", "obs-zoom-to-mouse-none")

        for _, source in ipairs(sources) do
            local name = obs.obs_source_get_name(source)
            if name ~= nil then
                obs.obs_property_list_add_string(list, name, name)
            end
        end

        obs.source_list_release(sources)
    end
end

my Apologies for such rude implementation, i have no experience on LUA scripts, but the necessity for zooming VNC screens was mandatory in my live streams.
I hope you'll keep this suggestion in consideration for the next release version.

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions