ron533 Posted April 18, 2018 Posted April 18, 2018 Hi, (I'm new to mission building and have no knowledge in coding/scripts...) Is it possible to implement by script or other way a reference to a web page , and run audio files from there?? I want to build missions with music running in the background, like long Air refuel training missions I made, and since I don't want it to be too repetitive - I need to use large audio files which are big for the average mission. I was thinking about even streaming the music from a web site, like TuneIn Radio for example... (activating it via trigger) This way I can fly listening to live web radio stations, or link the script to a web server which holds many audio files and and thus keep the mission file small, yet add external connectivity to large audio files/streams. Thanks. Callsign SETUP
Yurgon Posted April 18, 2018 Posted April 18, 2018 I'm not aware of any way to achieve this, but it sure would be a great way to get music into missions without blowing up file sizes!
ron533 Posted April 18, 2018 Author Posted April 18, 2018 I'm not aware of any way to achieve this, but it sure would be a great way to get music into missions without blowing up file sizes! Well...too bad.... Thanks for your reply! I hope there is a way, and if not - that ED will take a look at this option. Cheers Callsign SETUP
feefifofum Posted April 18, 2018 Posted April 18, 2018 There is code specifically to forbid things like this for security reasons...allowing in-game missions to access external web servers, run external programs etc. could be easily be twisted by an individual with bad intentions, unfortunately. You can always create an internet radio station and include the link in your mission briefing, though. :) You are able to run web services in the background while playing. THE GEORGIAN WAR - OFFICIAL F-15C DLC
Yurgon Posted April 18, 2018 Posted April 18, 2018 You can always create an internet radio station and include the link in your mission briefing, though. :) You are able to run web services in the background while playing. I tend to agree about the security concerns. Then again, cross-site requests have been done on websites for ages. In fact, half of this forum wouldn't work without them, like embedding images from other sites. As long as said resources aren't executed as code (JavaScript, Lua and so on), I don't think it would be problematic per se. Being able to tune the proper radio to a virtual radio station without actually embedding the music files into a mission would be really cool. Plus, it might be a good workaround against copyright issues. I'd certainly appreciate this feature. :thumbup:
Grimes Posted April 19, 2018 Posted April 19, 2018 Might be easier to do something via export. What I mean is simple radio gets the radio information and position then uses that data to determine if you hear something or not. I'd think the same could apply to a music player of your choice if the API supports it. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts