C8110 - media playback status #645
-
Hello, I can play a media clip by calling this API endoint: Is there a way that I can see whether the media clip is currently playing or that is done playing? If it is done by events, please, can you give me a direct url where I can see the status? I did not quite understand the instructions from the manual. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @MichalOplt , |
Beta Was this translation helpful? Give feedback.
-
Hi @vivekatoffice, I am planning to use C# .NET, but first I just wanted to test the API interface with Postman. Thanks |
Beta Was this translation helpful? Give feedback.
-
Thanks I would like to proceed with the AXIS Media Parser SDK: Is it a suitable way to both make the device play the stored media clips as well as capture events? Thanks |
Beta Was this translation helpful? Give feedback.
Hi @MichalOplt ,
I have never tested this using Postman but do let me know if you succeed 😄
There are two ways you can do it in C#:
1. Using AXIS Media Parser SDK:
2.Using WebSocket
This part of the API for subscribing to event like tnsaxis:MediaClip/tnsaxis:Playing (link) may be possible using Websocket in C#.
You can explore this library.
Axis Websocket events details: Event streaming over WebSocket
Adding my sample code below:
Program.cs (Please change the PayloadWithFilter according to your needs(tnsaxis:MediaClip/tnsaxis:Playing))