.:HyPeX:. Posted November 9, 2013 Share Posted November 9, 2013 Hello, i was wondering, is there a better method to stream an image? becouse i know i can create one with dxDraw from an external link wich could be updated/changed and make dxDraw delete it and re-create it every X time. This is basically to create a "video" inside the game, but assuming we can do this and getting stable refresh (timer with speed 50), it would need an extremly big upload/download speed to work out. the other idea was to make it client-sided the upload/download stuff, but it would be still, very hard to make it work. Any idea? PD: if i'm not being enought clear, please let me know. Link to comment
tosfera Posted November 9, 2013 Share Posted November 9, 2013 You want to create a movie thing ingame? That can be done, but you might want to checkout if you can include an iframed page of youtube in your game. Which would be an easier way. As far as I can tell you right now, you need to use get_file_contents in php. ( it's been a long time, can be another one. Sorry for that. ) Link to comment
.:HyPeX:. Posted November 9, 2013 Author Share Posted November 9, 2013 Well thats what i'm asking, how can i create a movie ingame?.. Supposing i do not know anything about HTML. Link to comment
tosfera Posted November 9, 2013 Share Posted November 9, 2013 Well thats what i'm asking, how can i create a movie ingame?.. Supposing i do not know anything about HTML. well you don't need any HTML knowledge after this post. All you need to do is save this as a file; <html><body><iframe width="420" height="315" src="//www.youtube.com/embed/qneehBzpJKg" frameborder="0" allowfullscreen></iframe></body></html> Then, upload it somewhere everyone can see it. All you need to do, is write the lua script. I believe there is a computer system on the community which uses the same function to load pages. Link to comment
.:HyPeX:. Posted November 9, 2013 Author Share Posted November 9, 2013 Where should i upload that? a webpage? where? Then into the lua side, i should use wich function to display it? Thanks HyPeX Link to comment
xXMADEXx Posted November 10, 2013 Share Posted November 10, 2013 You don't need HTML at all... However, you have to have a web host. fetchRemote -- on client side Link to comment
tosfera Posted November 10, 2013 Share Posted November 10, 2013 You don't need HTML at all... However, you have to have a web host. fetchRemote -- on client side Well, you can use the fetchRemote from your webhost and keep taking images from it and pay a shitload for your bandwidth... or you can create a single php script or html page which only contains an iframe with a youtube video which doesn't take your bandwidth away. :3 ( some images can be in HD and take alot of bandwidth! ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now