Jump to content

Running audio in missions from external sources possible??


Recommended Posts

Posted

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

Posted
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

Posted

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.

Posted
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:

Posted

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...