Page 1 of 1
Parameters.Alias
Posted: Tue May 17, 2022 7:58 pm
by cueiogordo
Hi
I'm setting parameters.alias but it's not appearing in the bar, as shown in the marked image
RVCamera.Parameters.Alias := 'TESTE';
RVCamView.CaptionParts := [rvccpAlias, rvccpDate, rvccpTime];
Re: Parameters.Alias
Posted: Wed Jun 15, 2022 3:36 pm
by Sergey Tkachenko
I am sorry for the delay.
As I can see, the code that composes a title string is obsolete. It assumes that Alias is read from IP camera, so it displays alias only if:
1. RVCamera.URL is empty, and
2. MJpeg file is not played by PlayVideoFile method.
This code was created in ancient time when RVCamera supported only IP cameras, and it was assumed that Alias is assigned by RVCamera.SearchCamera (Alias either is read using IP camera API (if API supports it) or is assigned to the name of a camera model that is found).
It made sense for IP camera, but now TRVCamera supports many other video sources, and this logic is not consistent: Alias is displayed for any video source except for IP camera with the specified URL.
I'll make the following changes in the next update:
1. Alias will be displayed for any video source (except for files played by PlayVideoStream)
2. An option for not updating Alias from IP camera will be added.
Re: Parameters.Alias
Posted: Mon Jun 20, 2022 6:55 pm
by Sergey Tkachenko
See
RVMedia 9.1 release.
Now, Alias is displayed for any video source, and there is an option to prevent TRVCamera to change it when a video source is changed, so you can assign a fixed string to this property.