c# - ExpressionPlayer does not play Azure Smooth Streaming Source -
i'm writing vod solution. time have been working ssme:smoothstreamingmediaelement testing , utilise 1 of expression players.
i'm using azure media services, smooth streaming. while these work fine in ssme can't them work expressionplayer. don't know why.
i'm @ point i'm hard coding uri try , work below:
void dataconectorpopulateplaylistdownloadcomplete(memorystream returndata, eventargs e) { <snip> var myplaylist = new expressionmediaplayer.playlist(); var playlistitem = new playlistitem(); playlistitem.mediasource = new uri("http://xxxxxms1.origin.mediaservices.windows.net/b78750fc-9e2f-448c-86e3-d5de084791ea/gopr0009.mp4-b2d2b578-3560-42c6-9927-2a791f395e19.ism/manifest",urikind.absolute); playlistitem.isadaptivestreaming = true; myplaylist.items.add(playlistitem); smoothplayerstreaming.playlist = myplaylist; <snip> }
using above returns 404 not found in player video playback window.
this valid url , valid smooth streaming uri. using exact same uri in ssme control works fine.
what have done wrong?
the expressionmediaplayer
class makes hidden call clientbin/smoothstreaming.xap
file. if don't have there - should add it.
here the link blog post can download xap file , source code of expression player. direct link
after download archive above, can find file @ path: ee4sp1silverlightdefaultwithaudiovolume.zip\templates\silverlight default -- audio volume on start\smoothstreaming.xap
if still doesn't work, should replace mediaplayer.dll
projects archive. need add (add -> existing project) 3 projects sharedv4sp1
folder: mediaplayer
, offlineshared
, pluginmssctrl
.
i've tested code in application , started work after have copied xap file , replaced dll-reference existing projects.
Comments
Post a Comment