5E Product Walkthrough Playlist
Page 76 of 91 First ... 2666747576777886 ... Last
  1. #751
    It allows you to still run from any URL that is not file:// or data://.

    Regards,
    JPG

  2. #752
    Anyone tried setting up a local ftp- or webserver and using that?
    Should work, though a bit more setup.

  3. #753

  4. #754
    This may help as well. There is no restriction on custom handlers.

    https://stackoverflow.com/questions/...col-in-windows

    Jason

  5. #755
    There is a way to trigger VLC to playback, even with the new URL limitations. Its not a particularly good solution however, as it will open a browser tab for each sound played. The functionality is already built into VLC, it just takes some understanding on how to set it up.
    VLC documentation on the feature
    https://wiki.videolan.org/Documentat....0.0_and_later
    https://wiki.videolan.org/Control_VLC_via_a_browser/
    https://wiki.videolan.org/VLC_HTTP_requests/

    VLC has a browser interface built into it but it is turned off by default. You can turn it on by going to Preferences, select All to show all settings. and look for Interface->Main interfaces. Enable web. then click on Lua and put something in the password field. it doesnt matter what you use for the password, but it has to be set. once you do that, restart VLC.



    After restarting vlc, you should be able to access the web interface using the default url https://127.0.0.1:8080 you will be prompted for the password you selected. leave the username blank.
    you wont be using the web interface, but at least you will know its working. It looks something like this on my browser.


    To actually playback a sound, you need to create a playlist in VLC. You will want to use the same playlist each time so create one and add/remove files from the playlist as needed. The URL to being playing a sound looks like:
    Code:
    https://127.0.0.1:8080/requests/status.xml?command=pl_play&id=3
    where id=3 is the id number of the entry on the playlist. For whatever reason, vlc playlists start counting at 3, so 3 will be the first entry on the list.
    If you have trouble finding the correct id, you can use this URL
    Code:
    https://127.0.0.1:8080/requests/playlist.xml
    . each entry will have an id number assigned and the location of the file.


    So with the IDs you can use the URL above to trigger playback of the files and add them to audiooverseer. I tested it and was successful in triggering playback, but as I said above, it will create a new browser window each time.
    Last edited by mattekure; January 6th, 2022 at 02:39.
    For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e

  6. #756
    You can circumvent the new tab issue (partially) via about:config in firefox, type in browser.link and set the external window option to 1. This will stop new tabs from opening but it won't stop the browser from opening/taking focus.

    Having a play around imo the best option is to create playlist files (I used mediaplayerclassic) and then manually enter the file as a content type that always opens without prompt (I did this in firefox). Using a playlist results in instantaneous results and allows you to easy set up shuffled lists when necessary while not forcing you to disable html5 playback in the browser.

    I recommend using loudness normalisation in whatever media player you use.

    As it does kick up the browser even if it doesn't open a new tab, I recommend putting the browser window on a secondary screen and or making it smaller and setting it behind where your media player will be playing.

    As for webservers, the easiest route is probably something like node.js for most folks. Especially if they want to have a server that changes root folders between games and don't want it to be constantly running.
    Last edited by lostsanityreturned; January 6th, 2022 at 17:18.

  7. #757
    After some thought, googling and tinkering, I have found a solution that seems to work. It allows you to playback local files using VLC without creating tabs in the browser. To do this, it requires that you set up a protocol handler, and then make sure you format your path correctly.

    For the Protocol Handler, I found this on github. https://github.com/stefansundin/vlc-protocol
    I did my testing on windows using the supplied bat files. download the 3 bat files and copy them to the vlc install directory. on my machine with 64bit vlc, it was installed to C:\Program Files\VideoLAN\VLC if you install the 32bit version it may be different.
    run the vlc-protocol-register.bat file as administrator to register the protocol handler. when you do this, it will send all calls with vlc:// to be handled by the vlc-protocol.bat file. that file just opens vlc to playback the file.

    The second key part is to format your file paths correctly.
    the link should looks something like this:
    Code:
    vlc://file:///C:/Users/John/Downloads/Sound%20Effects/Halloween_Sounds_Pack_2/6_Eerie_Flutes/Data/Eerie%20Flutes.mp3
    Starts with vlc://
    next add file:///
    make sure that all \ are converted to /
    convert any spaces " " to "%20"

    if you leave any spaces in it, FG will refuse to run it.
    For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e

  8. #758
    Quote Originally Posted by mattekure View Post
    After some thought, googling and tinkering, I have found a solution that seems to work. It allows you to playback local files using VLC without creating tabs in the browser. To do this, it requires that you set up a protocol handler, and then make sure you format your path correctly.

    For the Protocol Handler, I found this on github. https://github.com/stefansundin/vlc-protocol
    I did my testing on windows using the supplied bat files. download the 3 bat files and copy them to the vlc install directory. on my machine with 64bit vlc, it was installed to C:\Program Files\VideoLAN\VLC if you install the 32bit version it may be different.
    run the vlc-protocol-register.bat file as administrator to register the protocol handler. when you do this, it will send all calls with vlc:// to be handled by the vlc-protocol.bat file. that file just opens vlc to playback the file.

    The second key part is to format your file paths correctly.
    the link should looks something like this:
    Code:
    vlc://file:///C:/Users/John/Downloads/Sound%20Effects/Halloween_Sounds_Pack_2/6_Eerie_Flutes/Data/Eerie%20Flutes.mp3
    Starts with vlc://
    next add file:///
    make sure that all \ are converted to /
    convert any spaces " " to "%20"

    if you leave any spaces in it, FG will refuse to run it.
    This is really great work. You have helped me more than you know. I am able to get it up and running again! I did have to edit the db to replace all my paths but otherwise this was fairly painless. It works in Linux to boot!

    Thank you!

  9. #759
    Quote Originally Posted by mattekure View Post
    After some thought, googling and tinkering, I have found a solution that seems to work. It allows you to playback local files using VLC without creating tabs in the browser. To do this, it requires that you set up a protocol handler, and then make sure you format your path correctly.

    For the Protocol Handler, I found this on github. https://github.com/stefansundin/vlc-protocol
    I did my testing on windows using the supplied bat files. download the 3 bat files and copy them to the vlc install directory. on my machine with 64bit vlc, it was installed to C:\Program Files\VideoLAN\VLC if you install the 32bit version it may be different.
    run the vlc-protocol-register.bat file as administrator to register the protocol handler. when you do this, it will send all calls with vlc:// to be handled by the vlc-protocol.bat file. that file just opens vlc to playback the file.

    The second key part is to format your file paths correctly.
    the link should looks something like this:
    Code:
    vlc://file:///C:/Users/John/Downloads/Sound%20Effects/Halloween_Sounds_Pack_2/6_Eerie_Flutes/Data/Eerie%20Flutes.mp3
    Starts with vlc://
    next add file:///
    make sure that all \ are converted to /
    convert any spaces " " to "%20"

    if you leave any spaces in it, FG will refuse to run it.
    Thank you, thank you, thank you!

  10. #760
    Based on some suggestions from Arnagus I've put together multi-line Trigger support. If you'd like to try out this version you can try it out switching to the Test channel in FGU. Let me know if it works for you or if you find any problems. Based on feedback I'll determine when to turn the out to the Live channel.

    My local testing seemed to show it working as expected.

    AO will now (on all triggers) be able to match across lines of chat text, not just single lines.

    Notes:
    • Triggers should generally assume that the matches will be in close proximity in chat lines.
    • Once a trigger is fired, the previous match tracking will be reset.
    • It will not cross match multiple triggers because of the previous note.
    • Repeat matches within a trigger will reset tracking of a trigger.
    • Single line matching still works.


    A sample chat output:

    Code:
    [Bob] Swings with a Longsword at Orc
    [Bob] Hits Orc 
    [Bob] Does  25 damage to Orc
    [Bob] Slays Orc!
    A trigger could have a match of

    • Longsword
    • Hit
    • Slays


    And when all 3 of those are found in near proximity it will trigger the configured sound.

    I'd like to thank Arnagus for giving me a working idea for this. Sometimes my brain doesn't see all possible options
    Last edited by celestian; January 7th, 2022 at 18:50.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in