MediaElementWithHttpClient
MediaElementWithHttpClient copied to clipboard
Poor performance, video hangs
Hello, I have implemented the solution to test a video playback from my test server. It opens the stream and the video starts playing but it is continuously hanging.
Both server internet connection and dev computer are connected by high speed line (300 Mb/s) and it is running on a 4GB model so I guess hardware layout is ok.
Any modifications to try to speed up the stream and to avoid these hangs?, maybe some kind of static item?, probably objects are recreated on each request to server and this affects performance?.
Thanks
Does it also hangs when using the demo video? i.e.:
http://video.ch9.ms/ch9/70cc/83e17e76-8be8-441b-b469-87cf0e6a70cc/ASPNETwithScottHunter_high.mp4
I need a little bit more info:
- Does it hangs on an specific action (for example, pause and play)?
- Is your server online so I can give it a try?
I have thought about caching in memory part of the responses to improve performance on pause and play. For other scenarios, I will need to understand first what is going on.
Thanks, Gilberto
Hello Gilberto, thanks for your reply.
The video hangs too, it loads but after some seconds it pauses, then continues and so on. I think the process is not fluent, the sensation is that the machine can’t handle it.
When trying to seek it normally breaks and returns “Player error”, I usually work with MKV videos around 5GB (will prepare some public example links for you).
Maybe it could be a good idea trying to use/increase some kind of adjustable memory/disk buffer so the RandomStream is collected from this buffer and gives more robust source to MediaElement.
Looking forward your comments.
Best Regards,