c# - VLC ActiveX in a local webpage with WPF WebBrowser control -
so seek working vlc activex v.2 under wpf webbrowser control , load locally.
and vlc activex not working...
c#
void mainwindow_loaded(object sender, routedeventargs e) { var file = system.io.path.combine(system.appdomain.currentdomain.basedirectory, "index.html"); using (streamreader sr = new streamreader(file)) { string url = sr.readtoend(); wb.navigatetostring(url); } }
html
<!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=9"> <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="tue, 01 jan 1980 1:00:00 gmt" /> <meta http-equiv="pragma" content="no-cache" /> <title></title> </head> <body> <object width="720" height="408" id='vlc1_ie' events="true" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" classid="clsid:9be31822-fdad-461b-ad51-be1d1c159921"> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="videolan.vlcplugin.2" width="720" height="408" id="vlc1"> </embed> <param name="src" value="http://content.bitsontherun.com/videos/bkaovayt-52ql9xlp.mp4" /> <param name="showdisplay" value="true" /> <param name="autoplay" value="false" /> </object> </body> </html>
please note if load remotely working fine!
also have tried utilize index.html embedded resource.
so have used
stream docstream = assembly.getexecutingassembly().getmanifestresourcestream("wpfapplication12.index.html"); wb.navigatetostream(docstream);
is possible do? wpf webbrowser command limited execute local web page activex?
any clue?
p.s. i've tried same winform webbrowser command - no joy...
p.s.#2 i've tried project http://www.codeproject.com/articles/3919/using-the-webbrowser-control-simplified , same html vlc activex working fine there. done in c++ , dont know @ all... :(
p.s. #3 i've tried ms media player , vlc activex , ms media player working fine!
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="videolan.vlcplugin.2" width="720" height="408" id="vlc1"> </embed> <object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" <param name="url" value="example.wmv" > </object>
p.s.#4 have tried create vlc activex command dynamically using this illustration no joy @ all...
regarding comment:
please note if load remotely working fine!
are using net explorer test? if so, have plugins?
i inquire question because webbrowser command (at to the lowest degree in winforms) not back upwards plugins / add-ons. because works in full-blown browser not mean work in webbrowser. if using activex plugin vlc integration, won't work in webbrowser control.
edit in response comment
when seek code (and note i've changed sec line slightly):
stream docstream = assembly.getexecutingassembly().getmanifestresourcestream("wpfapplication12.index.html"); wb.navigatetostream(docstream);
...are saying doesn't load html at all? or load, video (vlc) command doesn't work?
c# .net browser activex vlc
No comments:
Post a Comment