Browser source plugin (1.0-24-g30ce603 2013/5/21)

Discussion in 'Plugins' started by Faruton, Apr 16, 2013.

Thread Status:
Not open for further replies.
  1. Faruton

    Developer

    THIS PLUGIN IS OUTDATED, USE THIS INSTEAD:
    https://obsproject.com/forum/resources/clr-browser-source-plugin.22/

    Browser Source Plugin:

    Download latest version

    Documentation

    Source

    This is a plugin that allows you to render websites (with video/animation) as a video source. All the rendering is done in memory so there is no screen scraping or offscreen windows.

    If you have any questions, comments or feature requests please let me know!

    Example of two browsers being rendering in one scene:
    [​IMG]

    If you want to try out the movie example copy these settings and uncheck asset wrapping:
    Code
    
    asset://local/plugins/BrowserSourcePlugin/movie.html
    
    1000
    600
    
    ::-webkit-scrollbar { visibility: hidden; }
    body { background-color: rgba(0, 0, 0, 0); }
    
    
    Here are some examples you can try out:

    Animated image slide show:
    http://www.twitch.tv/faruton/b/393754418
    http://catchexception.org/examples/swf- ... xample.zip

    Animated text read from a file:
    http://www.twitch.tv/faruton/b/393372910
    http://catchexception.org/examples/swf-text-example.zip

    Html5 example:
    http://catchexception.org/examples/html5-example.html

    Javascript to load text from a file every 500ms example:
    http://catchexception.org/examples/js-text-example.zip

    [​IMG]
    [​IMG]
    Last edited by a moderator: Mar 28, 2015
  2. kokarn Member

    Re: Browser source plugin

    Would you mind explaining what it does in a bit more detail?
    The screenshot is kinda hard to understand.

    Would this, as an example, allow me to render a twitch stream on my stream?
  3. Faruton

    Developer

    Re: Browser source plugin

    Yes, it can render anything that could be normally loaded in a web browser.

    It is more useful (I think), when used for dynamic overlays.

    For example here is the StreamControl plugin made originally for xsplit to control flash overlays:

    http://www.twitch.tv/faruton/b/392459325

    This worked without any modifications to their program or mine.

    It is still a bit buggy when removing browser sources or changing the settings so please be advised :-)

    John
  4. Faruton

    Developer

  5. Jack0r The Helping Squad

    Moderator

    Re: Browser source plugin

    Very nice work sir, will give it a try soon and report back if I have any ideas or suggestions :)
  6. Faruton

    Developer

  7. Domitori New Member

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    What if give access to other sources parameters (webcam position, etc) in javascript? It will allow to create animations/transitions with participation of all sources.
  8. dehixem Active Member

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    This looks really powerful, but I have trouble understanding exactly what it does when reading the first post. I start to understand after reading some other posts, would you mind please making this more clear ? :)

    Edit : I also having trouble installing this, even if I put it in the 32x > plugins folder for OBS
  9. Faruton

    Developer

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    Can you please be specific about the error that occurs? I'll also try to shore up the documentation a bit :-)
  10. dehixem Active Member

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    There isn't really an error, I'm not able to install it correctly :s
    Downloaded the lasted build on git, then unzipped and put it in plugins folder (32x version of OBS) but I don't see what to do next on the software.

    Also : I tried to get the javascript text retriever to work but doesn't work for me ^^
  11. Faruton

    Developer

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    You extracted the javascript text retriever to somewhere in your OBS installation path?

    Then you refer to it with asset://local/relative/path/to/file/file.html

    So if you install it to plugins/BrowserSourcePlugin/file.html

    The path in the source settings would be asset://local/plugins/BrowserSourcePlugin/file.html

    You would uncheck the wrap if it is checked.

    Did the built-in movie example work? You can try that with the settings mentioned in the first post.
  12. dehixem Active Member

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    Okay, so I need to put the web files in the BrowserSourcePlugin folder =)

    But I can't get anything to work, I don't have the little source editor like you do, and I noticed that the plugin didn't have it's own little .dll file in the plugins file, maybe thats why it won't show up / work with me :s
  13. Faruton

    Developer

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    The zip file contains two items, a dll called BrowserSourcePluginWrapper.dll file and a directory called BrowserSourcePlugin. You need to copy both the dll and the directory (including all subdirectories) to the plugin directory.

    I'm also on the IRC channel if you need more help.
  14. dehixem Active Member

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    Okay, after chatting on the IRC, I discovered I wasn't using the right download links. I was using the source files from github instead of the binaries from catchexception ^^

    Everything is perfectly installed now =)
  15. Domitori New Member

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    Will be awesome to add not only browser sources, but also scenes for portability and easy configuration.
  16. Faruton

    Developer

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    I'm not sure I follow what you mean. Can you explain in a little bit more detail?
  17. Domitori New Member

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    Custom browser scene to replace default markup format of scenes by html and over cool things :)
    In short merge whole scene in one html page.
  18. Shaydo Member

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    Great plugin! I got StreamControl working, but it seems to be crashing during transitions of scenes.

    Start on scene 1 with overlay
    switch to scene 2 with different overlay
    switch back to scene 1 and crash with no report

    Start on scene 1 with overlay
    switch to scene 2 with different overlay with crash and this report
    This crash appears to have occured in the 'c:\program files (x86)\obs\obsapi.dll' module.

    **** UNHANDLED EXCEPTION: c0000005
    Fault address: 5F6894CF (c:\program files (x86)\obs\obsapi.dll)
    OBS version: Open Broadcaster Software v0.50b
    Windows version: 6.1 (Build 7601) Service Pack 1

    Crashing thread stack trace:
    Stack EIP Arg0 Arg1 Arg2 Arg3 Address
    0830FDB8 5F6894CF 00000020 ABE432CD 00ED8BF8 00345084 obsapi.dll!FastAlloc::_Allocate+0x11f
    0830FDD8 5F8749CD 00000000 00000000 00000001 00345084 dshowplugin.dll!DeviceSource::ReceiveMediaSample+0x7d
    0830FE14 5F87179D 00345084 00ED8BF8 00000000 00ED88C8 dshowplugin.dll!CapturePin::Receive+0x2d
    0830FE2C 5F8717F1 00345084 00ED5CF8 00000001 0830FE64 dshowplugin.dll!CapturePin::ReceiveMultiple+0x21
    0830FE48 6C6DA8A6 00000000 00000000 0830FE98 74D433AA qcap.dll!0x6c6da8a6
    0830FE84 6C6DAB7C 00ED88C8 0830FED8 76EE9EF2 00ED88C8 qcap.dll!0x6c6dab7c
    0830FE94 74D433AA 00ED88C8 7EDC2A0C 00000000 00000000 kernel32.dll!0x74d433aa
    0830FEA0 76EE9EF2 6C6DAB66 00ED88C8 00000000 00000000 ntdll.dll!0x76ee9ef2
    0830FEE0 76EE9EC5 6C6DAB66 00ED88C8 00000000 00000000 ntdll.dll!0x76ee9ec5

    A minidump was saved to C:\Users\Shaydo\AppData\Roaming\OBS\crashDumps\OBSCrashDump2013-04-26_15.dmp.
    Please include this file when posting a crash report.

    List of loaded modules:
    Base Address Module

    I'm assuming using the 0.50b version might be the problem?

    Lastly, would it be possible at all to have an 64bit version?
  19. Faruton

    Developer

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    I just fixed the problem with allocation hours ago. I'll post a new version in just a moment.

    The 64bit version is possible, but first I have to write a wrapper since the browser I'm embedding (chrome) is a 32bit program only.

    I will get a test version of that out as soon as possible.
  20. Faruton

    Developer

    Re: Browser source plugin (1.0-9-g9517672 2013/4/23)

    Unfortunately there is no easy way to get the rendered images to the browser. It's possible to write a PPAPI plugin that somehow pulls the rendered images from OBS, but that would be a significant undertaking.
Thread Status:
Not open for further replies.