Page 1 of 1

Custom Serviio web client with multi players

PostPosted: Fri Mar 06, 2015 12:51 pm
by Igor
Hi,
Our company have a PRO licence and developed custom web client application to view transcoded video content from SERVIIO Server. (We don’t use media browser)

API to obtain the token and video stream is written in C# and works fine. We used FlowPlayer on a client side to play transcoded stream. Whole application is written in ASP and everything works fine if we keep just one single player on a page, but if we put three players on the same page it doesn’t work!

Just to clarify: If I start playing first video it works fine, but once I start playing another content on a second player – first one stops working…. The same happens to third player, it I start third one – the second one stops working.

When I open Serviio temp folder on a server I see only one “stf” file (transcoding-temp-4768-flv_player-MEDIUM.stf). and when one by one I start playing all players on a single page I see Server simply renames the same “stf” file, but keeps only one file in Temp folder!

If I run players from different web pages server creates one “stf” file for each page and it works as it supposed to work. Please help to sort this out. I really need to keep three players on the same page. I even tried to put each player within an individual iFrame, but it didn’t help. Tried to get new token every time I start new stream, no success.

The video stream request looks like:
http://serviioserver:23424/cds/resource ... 1a69120ekb


Any advice would be much appreciated. Thank you.

Re: Custom Serviio web client with multi players

PostPosted: Fri Mar 06, 2015 2:23 pm
by zip
That's because Serviio only supports a single transcoding process per client (in this case the IP address defines the client).

You have 2 options:

- convert your videos to Flash so that Serviio doesn't have to transcode them (and only use Original quality in the player)
- read about client identification here: http://docs.serviiocds.apiary.io/#resource - i haven't tested this but it should enable you to run multiple transcoding jobs simultaneously (your CPU will struggle though)

Btw, if you are using this setup in a commercial environment, you should contact us regarding a business license.

Re: Custom Serviio web client with multi players

PostPosted: Fri Mar 06, 2015 2:56 pm
by Igor
Hi Petr,

Thank you very much for a quick reply, with the client id option it works just perfect! That was a test application and now we have everything we need to build a project. We have dedicated server to transcode the video 3 transcoding jobs is not a big issue.

Regarding business licence - somebody from my company will definitely contact you very soon to discuss it.

Thank you again.
Igor.