Syphon into web browser?

Home Forums Syphon Syphon Development – Developer Syphon into web browser?

This topic contains 5 replies, has 2 voices, and was last updated by  Udart 1 year, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18953

    Udart
    Participant

    I am wondering, would it be possible to somehow create a Syphon client inside a web browser context? So that you would be able to access a Syphon source in an HTML element and accessible with javascript in the code of your web page.

    To clarify I am not talking about screen capture such as Syphoner that would capture the screen of a web browser into Syphon (as per the previous thread ‘Chrome into Syphon’). I am talking about the opposite end of the food chain – getting a Syphon image into a web browser window.

    Of course this would be of limited use in regular web applications but I find that html5/wegl could be very useful for some purposes such as VJing or digital art installations – I find the HTML5/webgl technologies very powerful and approachable even for applications that just run on the local machine.

    I am just asking your general opinion on how one would approach this. Could a custom built app using WebKit be able to do this? Mind you there has to be some way to access the Syphon image with the HTML/javascript interface of the browser.

    Or would a plugin for a browser (be it Safari or chrome or other) be the right way? i have seen cool plugins such as Jazz-midi (http://jazz-soft.net) that proves to me that a general concept it is possible to write browser plugins as a bridge from javascript to data on the user system that would otherwise not be available inside the browser.
    Of course in order to leverage the full performance of Syphon one would like to avoid moving image data of the GPU – regardless of what method is chosen.

    Does anybody have any thoughts on which method is possible – plugin? modified browser? something else?

    #18954

    Udart
    Participant

    I’ll rephrase my question to a very short and more concise version:

    What applications/plugins would be required one wishes to make a syphon source available as a texture to a WebGL rendering context in a browser.

    A custom plugin? A modified web browser application?

    #18955

    vade
    Keymaster

    Ideally you’d have support native in the browser. At one point, a friend at Google mentioned they might put Syphon support right in to Chrome. I can ping them and see if its feasible at all, and point them to this thread.

    I suspect it would never get to be in an official version, but perhaps an alternative build of Chrome could have Syphon support.

    This is *not* an indication that anyone is working, will work, or ever will make such a thing, just that it was mentioned to me as a possibility. In other words, no promises now or ever :)

    #18956

    Udart
    Participant

    Yea I am not getting my hopes up but it would be worth a try I guesss. Syphon support in a standard unmodified web browser is surely never going to happen due to the obvious security concerns.
    But a custom build would do the job fine for people experimenting on the local machine making prototypes, art, games or whatever.

    #19178

    Udart
    Participant

    I am wondering if the way to go is to try and get Syphon into webRTC?
    After all Syphon can readily be used for screen ‘capture’ for video conferencing purposes.

    #19208

    Udart
    Participant

    I am talking a lot to myself here…
    Anyways it seems a screen capture feature is already built into the next version of Chrome (v26 Canary). It does seem horribly slow on the local machine probably because it’s intended for streaming and the screen image you see has already been compressed as a video.

    But it seems if Syphon was ever implemented it would be here in this API. It also is contrary to what I thought about screen capture being too much of a security risk.

    Demo:

    https://html5-demos.appspot.com/static/getusermedia/screenshare.html

    (you need Google Chrome v26 and you need to set the flag –enable-usermedia-screen-capturing)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.