Audio Streaming Capabilties
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Audio Streaming Capabilties
Has anyone put together tips on how to use the new audio streaming in Maptool? I'm eager to try this.
- jfrazierjr
- Deity
- Posts: 5176
- Joined: Tue Sep 11, 2007 7:31 pm
Re: Audio Streaming Capabilties
I have not tried it but it seems fairly easy. There are two critical things to know:
1) No sound is saved or transmitted in the campaign file(and likely never will be due to copyright concerns). If you want someone on a remote machine(typically when playing with people on the internet), then you must have the sound file on some type of hosting such as Dropbox(wiki has an example) that allows a public URL.
2) The "play" macro only plays on the LOCAL machine. If you want a stream to play on someone elses(or all players for the matter), you need to use the execLink functions(I think that's what it's called) to run the "play" macro(the same for stopping audio).
There is a channel on the discord for sound as well.
1) No sound is saved or transmitted in the campaign file(and likely never will be due to copyright concerns). If you want someone on a remote machine(typically when playing with people on the internet), then you must have the sound file on some type of hosting such as Dropbox(wiki has an example) that allows a public URL.
2) The "play" macro only plays on the LOCAL machine. If you want a stream to play on someone elses(or all players for the matter), you need to use the execLink functions(I think that's what it's called) to run the "play" macro(the same for stopping audio).
There is a channel on the discord for sound as well.
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Re: Audio Streaming Capabilties
And Aliasmask created a lib token for working with audio that can be found on Discord in the #music-and-fx channel.
Re: Audio Streaming Capabilties
Thanks for the link. I downloaded mtplayer token. This is impressive! Can you recommend an online repository to place my sound files?
I'm building a d6 Star Wars framework, and the inclusion of sound will add so much. Sound fx and music is a major ingredient for Star Wars, and this capability will be fantastic.
I'm building a d6 Star Wars framework, and the inclusion of sound will add so much. Sound fx and music is a major ingredient for Star Wars, and this capability will be fantastic.
Re: Audio Streaming Capabilties
I noticed that the mtplayer is not funtioning correctly due to changes in the macro functions. Im working on a different approach, but for now here a concept version (stopSound is not working yet)
- Attachments
-
- lib_mtplayer.rptok
- (117.81 KiB) Downloaded 199 times
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Audio Streaming Capabilties
The one posted in the forums is the older one before the code changes. I made a newer one that's pinned in discord under the music section. There's actually been other changes after that one, but shouldn't affect how that one works.
There is definitely more work that can be done to make the process of using audio nicer/easier.
There is definitely more work that can be done to make the process of using audio nicer/easier.
- Attachments
-
- lib mtplayer 11-20-19.rptok
- (120.48 KiB) Downloaded 199 times
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Audio Streaming Capabilties
Thnx. Didn't know that. I had a look though and that version still has issues. that and my approach differs quite a bit.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Audio Streaming Capabilties
Ok, stop sound is now working properly. there's not much left of the original code as I've rewritten nearly everything. I'm planning to further improve this and then move it inside the BoT
- Attachments
-
- lib_mtplayer_W42_2020-02-27 v0.4.rptok
- (119.56 KiB) Downloaded 285 times
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
-
- Kobold
- Posts: 17
- Joined: Thu Sep 19, 2013 12:40 pm
Re: Audio Streaming Capabilties
I cant make this work neither with URL or local- any guides around?
Re: Audio Streaming Capabilties
have you tried the url in your browser?
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
- wyrmwood_lives
- Cave Troll
- Posts: 25
- Joined: Fri Nov 08, 2019 10:22 pm
Re: Audio Streaming Capabilties
This feature is very cool. I setup a node js server on a Virtual Box debian virtual machine and poked a hole in my router for a virtual server, which I keep off/local unless I'm hosting. I am having trouble getting it to work with https, because java wants a signed certificate, which I generated, but it doesn't match my public IP. However, the playClip and playStream work with http, so that isn't necessary (though it is for campaign repositories). I have a "jukebox" that plays random ambient sounds and music, and then when initiative starts, switches over to "battle" music. I have curated some music from soundtracks, but I tend to favor the Elder Scrolls series, as there is a clear distinction between "ambient dark" and "ambient light" and "battle" music, especially in their older games like Oblivion, Morrowind and Skyrim. I have also pulled in some resources from NWN, as they have excellent sounds for arrows, blades and spells. Their music leaves a bit to be desired.
Once you have your files on a publicly available IP, the help for playStream (especially the execLink example) is essentially all you need.
Once you have your files on a publicly available IP, the help for playStream (especially the execLink example) is essentially all you need.
Re: Audio Streaming Capabilties
is there a way, a function to check if a url is invalid
I need to know prior to execution playStream if the connection exists or not.
I need to know prior to execution playStream if the connection exists or not.
Re: Audio Streaming Capabilties
copy paste it in your browser
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Audio Streaming Capabilties
Technically not true anymore. Sound assets can be added to the campaign file and transmitted through the repository.jfrazierjr wrote: ↑Sun Feb 23, 2020 11:03 pmI have not tried it but it seems fairly easy. There are two critical things to know:
1) No sound is saved or transmitted in the campaign file(and likely never will be due to copyright concerns). If you want someone on a remote machine(typically when playing with people on the internet), then you must have the sound file on some type of hosting such as Dropbox(wiki has an example) that allows a public URL.
This has been supported by JUH (Joe's Ugly Hacks - see the User Creations -> Drop-in forum) since the first alpha.
"Joe's Ugly Hacks - Get 'em while their hot! Guaranteed ugliest hacks around or your money back!"