2023-06-04, 19:22
I have a application where I need to display a picture constantly, and when requested play a specific video.
To show the picture, I use a "Player.Open" command and it works perfectly.
When I want to play a video, I use another "Player.Open" and it also works perfectly.
My problem is the video plays behind the picture. I keeping seeing the static picture.
If I send a command "Player.GetActivePlayers", I receive these answer:
1 - Is there any command like "Player.Show/Hide Player ID"?
2 - I tried to Stop the playerid 2 (the picture), but it stop's the playerid 1 together - looks like a bug to me.
3 - If I play a video first and then play the picture, it stops the video player and keeps only the picture player. If the opposite would be the same, it would also be a solution. (Play the picture, and when play the video it stops the picture player - it doesn't happen)
To show the picture, I use a "Player.Open" command and it works perfectly.
When I want to play a video, I use another "Player.Open" and it also works perfectly.
My problem is the video plays behind the picture. I keeping seeing the static picture.
If I send a command "Player.GetActivePlayers", I receive these answer:
json:
{
"id": "1",
"jsonrpc": "2.0",
"result": [
{
"playerid": 1,
"playertype": "internal",
"type": "video"
},
{
"playerid": 2,
"playertype": "internal",
"type": "picture"
}
]
}
1 - Is there any command like "Player.Show/Hide Player ID"?
2 - I tried to Stop the playerid 2 (the picture), but it stop's the playerid 1 together - looks like a bug to me.
3 - If I play a video first and then play the picture, it stops the video player and keeps only the picture player. If the opposite would be the same, it would also be a solution. (Play the picture, and when play the video it stops the picture player - it doesn't happen)