c# - MediaElement web Video doesn't stop buffering -
i m using mediaelement play web video. when left page noticed in task manager app still using 10% of network , didn't drop till finished downloading video.
i tried doing following no luck.
//open link; mediaelement.source = welcomevideourl; //when leave page onnavigatedfrom() mediaelement.stop(); mediaelement.clearvalue(mediaelement.sourceproperty); mediaelement.source = null; also tried set source dummy link still no luck.
i thought opening link stream , use mediaelement.setsource() work haven't found on that...maybe m not searching correct.
thank you.
found mediaelementwithhttpclient in other question in comment made @kiewic. can manage stream , download process , dispose it.
httprandomaccessstream videostream = await httprandomaccessstream.createasync(new windows.web.http.httpclient(), videourl); mediaelement.setsource(videostream, videostream.contenttype);
Comments
Post a Comment