connect failed

djuka

Member
Hi,

I have issue to make connect request and WS response shows FAILED with next error:


{
"status": "FAILED",
"info": "com.flashphoner.rest.server.exception.IncorrectJsonFormatException, Bad Request, Invalid UTF-8 middle byte 0x6e, ts: 1709299573899, path: /apps/RoomApp/connect",
"apiMethod": "ConnectionStatusEvent"
}

Stream name has umlaut character. How to enable such characters in stream name?
 

djuka

Member
How I can change the font mixer is using to get special characters in captions like ö, ä, ü ......
For example to use Dejavu Sans.
 

Max

Administrator
Staff member
You can set the mixer font by the following parameter in flashphoner.properties file
Code:
mixer_text_font=Dejavu Sans
or in offline-mixer.json for multirecording mixer
Code:
{
  ...,
  "mixerTextFont": "Dejavu Sans"
}
Please note that the font should be installed in system and should be in the X11 fonts list
Code:
fc-list | grep X11
You should also enable characters decoding:
for mixer
Code:
mixer_decode_stream_name=true
for multirecording mixer
Code:
{
  ...,
  "mixerDecodeStreamName": true
}
 
Last edited:

djuka

Member
I have set Dejavu Sans font and all the settings you advised for character decoding, but still, I do not have umlaut characters in the final mixer output.

This comes from the front client: 'Stefan%20v%C3%B6n%20Hubert'
But in the mixed output video, I have 'Stefan von Hubert' and not 'Stefan vön Hubert'
 

Max

Administrator
Staff member
We tested on demo server with settings
Code:
mixer_display_stream_name=true
mixer_decode_stream_name=true
mixer_text_font=Dejavu Sans
Publishing stream with encoded characters and automatically adding it to mixer:
1709692268206.png

Playing the mixer stream
1709692345637.png

Maybe your font have no o with umlaut character. WCS does not render a font itself, it just uses a standard Java functions to draw the characters on canvas. Under the hoods, if there are no character in the font, a closer character is used.
You may try to use a default mixer font setting
Code:
mixer_text_font=Serif
or find an X11 font which includes umlaut characters, install and use it.
 
Top