mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 14:37:06 +01:00
special socket for dev; defer to default otherwise (#258)
* special socket for dev; defer to default otherwise * Add write-all permissions to docker push * special socket for dev; defer to default otherwise --------- Co-authored-by: jeffvli <jeffvictorli@gmail.com>
This commit is contained in:
parent
1113ef972f
commit
d7f21b3c6b
@ -445,11 +445,14 @@ const createMpv = (data: { extraParameters?: string[]; properties?: Record<strin
|
|||||||
const params = uniq([...DEFAULT_MPV_PARAMETERS(extraParameters), ...(extraParameters || [])]);
|
const params = uniq([...DEFAULT_MPV_PARAMETERS(extraParameters), ...(extraParameters || [])]);
|
||||||
console.log('Setting mpv params: ', params);
|
console.log('Setting mpv params: ', params);
|
||||||
|
|
||||||
|
const extra = isDevelopment ? '-dev' : '';
|
||||||
|
|
||||||
const mpv = new MpvAPI(
|
const mpv = new MpvAPI(
|
||||||
{
|
{
|
||||||
audio_only: true,
|
audio_only: true,
|
||||||
auto_restart: false,
|
auto_restart: false,
|
||||||
binary: MPV_BINARY_PATH || '',
|
binary: MPV_BINARY_PATH || '',
|
||||||
|
socket: isWindows() ? `\\\\.\\pipe\\mpvserver${extra}` : `/tmp/node-mpv${extra}.sock`,
|
||||||
time_update: 1,
|
time_update: 1,
|
||||||
},
|
},
|
||||||
params,
|
params,
|
||||||
|
Loading…
Reference in New Issue
Block a user