Create Live Streaming from an XNA application - xna

I would like to create an XNA application and have a live stream with the output of that application (I can render everything in a separate RenderTarget and just use that as a source).
I need this because the application will be shown on a big outdoor display and the only way to get live content there is using live streaming.
Is this possible? How much lag should I expect between the real time rendering and what is actually streamed and displayed on the big panel?

Do you really need to implement this in your application? There are plenty of tools available that will just do that for you.
See this question where software like XSplit is suggested.
It would definitely be easier for you not to have to write this!

Related

How to load a flash game from a website in an application?

How can I load a flash (ActionScript ?) game from a website through an application? I'm tired of playing in my browser and I want to make a tool which has bigger dimensions, the game screen will be centered but there will be all kinds of handy stuff all around the centered screen, to make things easier. How would I do that? I've heard things like using iframe but I have really no clue where to start.
Thanks in advance!
You can use the SwfLoader class , keep in mind that some games may have code that checks if they run in a browser and that are on the correct site so not all games will work with that.
To use swfloader you need to find the url of the sef of the game.
You could also use the HTML component (or the HTMLLoader) to load the website ,then you could write some javascript code and make it run to remove some clutter from the webpage, I am not sure if you could do a zoom.
All the above would work in an Adobe AIR application, research the class I mentioned and experiment.
If you just want the game and not add any other extras you can grab the swf and run it directly,you need to download from Adobe the standalone player (not plugin)

Server-side 3D rendering tool to use with RoR

I was wondering, are there any known 3D modeling/rendering tools which would play well with Rails?
Say, I want to make a scene of a room in my browser (client-side, using html5, for example), send it over to a rendering server (send data that describes the room, using JSON), and then have a realistic JPEG picture back from the server.
Do you know any software I can use to build such system?
I heard about Open CASCADE Community Edition, but not sure if it suits.
You can play with Ogre and, maybe, some OpenGL wrapper for Ruby.

How to write a code to read .fla file?

I was wondering so long that how can people analyze the trait of each file extension (of course open it in notepad is not readable)
For example, I want to write a program that can read everything from .fla file like timeline, movie clips, position of each MCs or all the motion tween values. And get the image embeded in it. (I'm planning to use flash as IDE for another project.)
(The reason that I tried to read proprietary format is I want to utilize their awesome editor. What I actually want to do is, I want to make an iOS game with cocos2d. There is a code to move things around in cocos2d but there is no decent editor. So I'd like to use Flash as an editor, then convert the motion to objective-C cocos2D code by reading the .fla file.)
If you would like to be able to import timeline animation from flash into cocos2d, this tool might help. More information in this thread.
The grapefrukt-exporter might also help as it can export keyframe data, and various other formats for animation.
Instead of creating the tool yourself, it might be much easier (and time saving) to use one of these and integrate it into your workflow :)
Finally, if none of the above works, how about just exporting the flash animation as an animated GIF or a movie file?
Im assuming you want to write a decompiler, this is possible and there are several available on the internet, price varies.
It is not possible for flash to achieve this, Most programs, software are built on a native language such as C, Native meaning it can independly run in its own with out initially setting up an invironment to support it.
Flash is not independent enough to be available to have this much power.
Try looking at c++ or C# as this would be possible, also these languages are a lot more powerful.

Options for embedded video on website other than YouTube?

Been having trouble with YouTube lately with regards to autoplay, looping and playlists. Currently using the AS3 embedded player and it was working fine until recently when autoplay and playlist options became mutually exclusive. I am also finding the loop option doesn't work with autoplay.
So, looking at options other than YouTube as we will have access to the video anyway and can either upload or stream using whatever technology is appropriate. My application is for touchscreen interactive kiosks which will be largely unattended and I want to be able to run embedded video with all controls turned off to prevent anyone from jumping off to some other website at any point. This is crucial! I don't mind if a touch can pause the video like it does with YouTube but links must not be available to jump out.
My web app is written in Rails 3 with HTML, CSS3 and JQuery where required. It runs on IE8/9 on the kiosks and Safari mainly during development. I'm using Heroku.com for hosting.
Hopefully I've given enough background here to attract some good answers but please let me know if I've missed anything important.
Thanks for your time,
Craig.
This service is awesome in quality and price.
http://sublimevideo.net/
If you are using heroku for your hosting, you should take advantage of their add-on. The interface is super clean and you have full flexibility to mold playlists or behavior.
Panda Stream
http://addons.heroku.com/pandastream

How to add video chat capability to my rails application?

I've been googling about how to accomplish oneline chat for rails application and I've implemented a text chat version using Juggernaut. But for video chat, I only find flash&red5 might be a solution for me, but it's flash and java, which I'm relatively not good at. Is there a better solution?
I have researched this a little and the options are not great.
There are some nice-looking packages that cost real money. Tokbox.com, ooVoo (http://www.oovoo.com, looks free at first but free version has limits), VideoWhisper.com looks interesting -- they seem to sell a 2-way video chat package for a one-time fee, but it is PHP-based.
A simple Flash-based solution is definitely a good way to go. Flash has good video support and virtually everyone has it installed already. It's not that hard to learn enough Flash basics to do a simple 2-way video chat (see http://www.derekentringer.com/blog/fms-video-chat/ for an example of a trivial video chat script that is something like 30 lines of code). And you don't need to learn Java to use Red5 unless you want to customize it -- Red5 is the open-source video streaming server that makes it so you don't need to buy really a expensive Adobe Media Streaming server system. You just need to learn enough to set it up and get it running.
I'm certain there's an open-source or low-cost Flash script out there that handles a basic 2-way video chat, but I have yet to find it. If anyone does, please post it!
Here is a rails implementation of tokbox:
http://github.com/njacobeus/tokboxer/
Try using Raydash. There is a rails gem available at https://github.com/gersh/Raydash-Ruby-on-Rails. You just need to register at http://www.raydash.com to use it.

Resources