obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.86k stars 707 forks source link

Bug: GetInputPropertiesListPropertyItems #1164

Closed hanxiang-li closed 1 year ago

hanxiang-li commented 1 year ago

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

29.0.x

OBS Studio Version (Other)

29.1.3

obs-websocket Version

5.1.0

OBS Studio Log URL

https://obsproject.com/logs/OvFV6qOGQflsrjkW

OBS Studio Crash Log URL

No response

Expected Behavior

obs.call('GetInputPropertiesListPropertyItems', {
    inputName: 'test',
    propertyName: 'display'
}).then(res => {
    console.log(res)
})

Display a list of displays

Current Behavior

Error: Unable to find a property by that name.

Steps to Reproduce

obs.call('GetInputPropertiesListPropertyItems', {
    inputName: 'test',
    propertyName: 'display'
}).then(res => {
    console.log(res)
})

Anything else we should know?

I cannot obtain it on Windows for testing, Mac can

hanxiang-li commented 1 year ago

The document did not indicate that the following code is correct

obs.call('GetInputPropertiesListPropertyItems', { inputName: 'Monitor' + timer, propertyName: 'monitor_id' })

AirplanegoBrr commented 1 year ago

The document did not indicate that the following code is correct

obs.call('GetInputPropertiesListPropertyItems', { inputName: 'Monitor' + timer, propertyName: 'monitor_id' })

what is timer, where do you find it?? What is monitor_id where do you find that as well??

hanxiang-li commented 1 year ago

The timer is customized by me, so I don't need to pay attention. In the Windows environment, the parameter passed to obtain the screen ID is monitor_ The ID and MAC environment are display, which is what I obtained from browsing the OSS source code

hanxiang-li commented 1 year ago

The timer is customized by me, so I don't need to pay attention. In the Windows environment, the parameter passed to obtain the screen ID is monitor_ The ID and MAC environment are display, which is what I obtained from browsing the OSS source code

--------------原始邮件-------------- 发件人:"AirplaneGoBrr @.>; 发送时间:2023年9月9日(星期六) 凌晨1:23 收件人:"obsproject/obs-websocket" @.>; 抄送:"hanxiang @.>;"State change @.>; 主题:Re: [obsproject/obs-websocket] Bug: GetInputPropertiesListPropertyItems (Issue #1164)

The document did not indicate that the following code is correct文档并没有表明下面的代码是正确的:

obs.call('GetInputPropertiesListPropertyItems', { inputName: 'Monitor' + timer, propertyName: 'monitor_id' })

what is 什么是timer, where do you find it?? What is ,你在哪里找到它??什么是monitor_id where do you find that as well??你在哪里找到的?

—和mdash Reply to this email directly, 直接回复此邮件,view it on GitHub在GitHub上查看, or ,或unsubscribe取消订阅. You are receiving this because you modified the open/close state.您收到此消息是因为您修改了打开/关闭状态。Message ID: @.***>