-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thesis idea: closing gap between (anonymous) web and P2P #11
Comments
Concreet project ToDo list: prior work 4 years ago, read thesis .PDF: |
planning14 June code submission |
Note, above "webview->RunScript()" example might not work due to lack of page loading complete: http://trac.wxwidgets.org/ticket/14326 |
HTML dynamic rewriting is seen as a difficult technical problem. |
Your comments don't seem to be true, according to the ticket you referenced the runscript command will not work until the page is fully loaded. Therefore, simply waiting for the page to be fully loaded seems to be fine. If we want to replace/modify urls in the video tag, then we can simply pass all http traffic through a proxy which rewrites the html. |
after initial work and results the following target as end-goal was discussed: |
RunScript issue (mystery segfault) resolved: def execute_on_load(browser, javascript):
'''browser: wx.html2.WebView object
javascript: string containing javascript code
'''
while (browser.GetCurrentURL() == "about:blank"):
time.sleep(0.3)
wx.CallAfter(browser.RunScript, javascript) |
Status update: |
For what I can see, this is an unreleased development branch of WX. Are we planning on using this on production versions of Tribler? (and hence packaging for all our supported platforms) |
Ticket done: bsc thesis completed Abstract |
Aim: create a fully functional web browser which also support (anonymous) P2P video streaming.
Outcome: P2P-Browser for HTML5-based websites with any-format video embedding, Javascript and CSS.
Approach: build upon the new WxWidget HTML rendering in wxpython 2.9:
http://docs.wxwidgets.org/trunk/classwx_web_view.html
A browser in 800 lines: http://trac.wxwidgets.org/browser/wxWidgets/branches/SOC2011_WEBVIEW/samples/webview/webview.cpp
We can even play Youtube (and grab it for P2P seeding in Libswift it seems):
For windows, HTML5 video tag support needs IE9 libs :-(
For P2P streaming we build upon our own upcoming IETF Internet Standard work: https://datatracker.ietf.org/doc/draft-ietf-ppsp-peer-protocol/
We use VLC to PlayVideo(), render in that windows and support any video format plus HTML5 power?
Old VLC adding patch exists: http://trac.wxwidgets.org/ticket/10264
P2P streaming support appears easy to add via the wxWebViewHandler. Assuming Python we can make a call to the libswift process and present the output of the HTTPGW as the inputstream for the web engine.
VLC will be used for playback. All mainstream containers+codecs will thus be supported, so we've created a HTML5 element that can play all formats. Bittorrent swarms can thus be easily be supported.
Limitation: web sites need to be specifically created to support Youtube-like P2P streaming.
The text was updated successfully, but these errors were encountered: