windows - Reducing buffer length in Win 8 MediaElement -
i'm working on implementing streaming client takes audio , video streamed server on user's local network , renders in real-time. i've been using mediaelement handle receiving stream:
<mediaelement x:name="mediaelement" autoplay="true" source="{binding streamuri}" />
we need mediaelement responsive possible. user on client can send commands streaming server can alter contents of stream, , able show user results of change immediately. however, there seems hard-coded buffer length of 5 seconds, resulting in constant 5-second delay between user's action , result.
is there way can reduce or eliminate buffering time? i've found mediaelement.bufferingtime
property, seems exist in silverlight , windows phone 7.
(for legacy reasons, have use windows 8 instead of upgrading windows 8.1.)
the property realtimeplayback of mediaelement reduces delay of stream playback:
mediaelement media = new mediaelement(); media.realtimeplayback = true;
or
<mediaelement realtimeplayback="true" />
(minimum supported client: windows 8)
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh871376.aspx
Comments
Post a Comment