faithoflifedev / obs_websocket Goto Github PK
View Code? Open in Web Editor NEWobsWebsocket allows dart-based connections to the Open Broadcaster plugin obs-websocket.
License: MIT License
obsWebsocket allows dart-based connections to the Open Broadcaster plugin obs-websocket.
License: MIT License
File: lib/src/request/outputs.dart
line: 56
It should be change to "GetReplayBufferStatus" from "ToggleVirtualCam"
hello,
here is some feedback, it's raw note, so it could be a bit rough to read
Sorry I didn't got the time to go deeper. If I got time, I will try to make some MR. Thanks for the work
I found bug about stopRecording function at version 2.4.4.
See source lib\src\obs_websocket_base.dart line 288.
I think it should be changed to StopRecordinging -> StopRecording.
Thank you.
When running a command and the obs websocket server cannot be reached, a WebSocketChannelException is thrown, that cannot be caught.
Hello,
any plan to implements v5 of protocol?
see https://github.com/obsproject/obs-websocket/blob/release/5.0.0/docs/generated/protocol.md
thanks
Hello,
I think a nice feature using the CallVendorRequest could be a specific call for the browser.
Here is an example :
var response = await obsWebSocket.send('CallVendorRequest', {
'vendorName': 'obs-browser',
'requestType': 'emit_event',
'requestData': {
'event_name': 'obs-websocket-test-event',
'event_data': {'my':'data', 'that':'will be displayed in an event'},
},
});
print(response.toString());
print(response?.requestType);
print(response?.requestId);
print(response?.requestStatus);
print(response?.responseData);
this will display as
flutter: {"requestType":"CallVendorRequest","requestId":"e2bd885e-a382-4090-964b-98f90a76e7f9","requestStatus":{"result":true,"code":100,"comment":null},"responseData":{"requestType":"emit_event","responseData":{},"vendorName":"obs-browser"}}
flutter: CallVendorRequest
flutter: e2bd885e-a382-4090-964b-98f90a76e7f9
flutter: {"result":true,"code":100,"comment":null}
flutter: {requestType: emit_event, responseData: {}, vendorName: obs-browser}
In the browser, we can see the result
window.addEventListener('obs-websocket-test-event', function(event) {
console.log(event.detail) // {"my":"data","that":"will be displayed in an event"}
})
I think that adding an event to the browser could be really interesting, because it is a plugin that is really use everywhere.
obsproject/obs-browser#340 for the browser integration
When I use sqflite I always use the singleton pattern to create an instance of the connection and return the same instance if the openDB() function is called again and again in separate query function. Is there a way we can do the same with obs-websocket?
Can we make the connection a separate methods w/ a return statement?
I've just imported this line into my code:
import 'package:obs_websocket/obs_websocket.dart';
Then the compiler warns me when I'm running on web environment:
.../.pub-cache/hosted/pub.dartlang.org/obs_websocket-2.2.12/lib/src/obs_websocket.dart:55:37:
Error: The argument type 'WebSocket/*1*/' can't be assigned to the parameter type 'WebSocket/*2*/'.
- 'WebSocket/*1*/' is from 'package:universal_io/src/http/http.dart'
('/D:/flutter/.pub-cache/hosted/pub.dartlang.org/universal_io-2.0.4/lib/src/http/http.dart').
- 'WebSocket/*2*/' is from 'dart:_http'.
channel: IOWebSocketChannel(websocket), fallbackEvent: fallbackEvent);
^
Please help me this issue!
please change command "StopRecording"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.