[英]MediaElement Windows Phone 8.1 does not play links to resources
MediaElement Windows Phone 8.1 does not play links to resources, for example http://kgot-fm.akacast.akamaistream.net/7/449/31707/v1/auth.akacast.akamaistream.net/kgot-fm , but plays links. MediaElement Windows Phone 8.1不播放资源链接,例如http://kgot-fm.akacast.akamaistream.net/7/449/31707/v1/auth.akacast.akamaistream.net/kgot-fm ,但播放链接。 mp3.
MP3。 Windows 8 running all references.
Windows 8运行所有引用。 What's the problem?
有什么问题? and how to fix it?
以及如何解决它? the same code.
相同的代码。
//only works in windows 8.1
<MediaElement x:Name="MediaElement"
Source="http://kgot-fm.akacast.akamaistream.net/7/449/31707/v1/auth.akacast.akamaistream.net/kgot-fm"
AutoPlay="True" Margin="199,320,114,252" Width="100" Height="100"/>
//works in windows 8, and in windows phone 8.1
<MediaElement x:Name="MediaElement"
Source="http://radio02-cn03.akadostream.ru:8114/businessfm96.mp3"
AutoPlay="True" Margin="199,320,114,252" Width="100" Height="100"/>
If you subscribe to MediaElement.MediaFailed
: 如果您订阅了
MediaElement.MediaFailed
:
MediaElement.MediaFailed += MediaElement_MediaFailed;
then you will see that using the first link you get: 然后你会看到使用你得到的第一个链接:
MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT - 0xC00D2EE0
MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED:HRESULT - 0xC00D2EE0
which means (HRESULT) that: 这意味着(HRESULT):
0xC00D2EE0 NS_E_UNKNOWN_PROTOCOL
0xC00D2EE0 NS_E_UNKNOWN_PROTOCOL
The specified protocol is not supported.
不支持指定的协议。
The list of supported audio and video formats you will find here. 您可以在此处找到支持的音频和视频格式列表。
从c#中将字符串设置为uri
MediaElement.Source = new Uri("http://kgot-fm.akacast.akamaistream.net/7/449/31707/v1/auth.akacast.akamaistream.net/kgot-fm");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.