Arma 3
Video From TV/Laptop/Screen
Hello, everyone! I want to add a script to any kind of video players in the game - tv, laptop, phone, screen. I want to use some kind of addAction script to be able to interact with the video player and when I am done a video shall start. Would you help me with the right script? I've been searching over the net for the past few days with very small success. Thank you in advance!
Last edited by [Black_Hawk_BG]_->_<-_X-Ray; Nov 10, 2018 @ 2:01am
< >
Showing 1-10 of 10 comments
Problem is I've tested them all. Nothing works right. The Youtube method is working, but not what I want. ArmA Scripting Tutorials: .ogv To Texture creates a TV (object), but I want this object to be there when I start the mission and interact with it. The multimedia tutorial is a good way to do it, but I've got an error: Script TV\tv_init.sqf is not found. I did everything I had to without mistakes or anything wrong. It just doesn't find the video file.
Fenris 89 Nov 11, 2018 @ 12:15am 
I know, as i had try it a long time ago, it has work, the script from armaholic! I try it and let you know how its work!
Fenris 89 Nov 11, 2018 @ 1:20am 
Ok, i had get it to work from the media interface script! I give you the code which i had use and change from the "Youtube folder", look into the files and see what i had change than try it!

Create in your mission folder the "TV" folder

Documents\Arma 3\missions\your_mission\TV

There create the files with the codes:
-------------------------------------
tv-init.sqf

tv addAction ["Open test", "TV\Video\Scripts\opentest.sqf"];

-----------------------

close.sqf

removeAllActions tv;
nul = execVM "TV\tv-init.sqf";

-----------------------------

Now create an "Video" folder in the "TV" folder!

Documents\Arma 3\missions\ogv%20test.Stratis\TV\Video

In this create 2 other folders: "Scripts" and "Video"

Documents\Arma 3\missions\ogv%20test.Stratis\TV\Video\Scripts
Documents\Arma 3\missions\ogv%20test.Stratis\TV\Video\Video

In the Video folder place your OGV file!

In the Scripts folder create 2 files:
-----------------------------
acion1.sqf

tv setobjecttextureglobal [0,"TV\Video\Video\test.ogv"];

["TV\Video\Video\test.ogv",[10,10]] spawn bis_fnc_playvideo; [/code]

---------------------------------------------------

opentest.sqf

removeallactions tv;

tv addAction ["Close test", "TV\close.sqf"];




tv addAction ["Watch test", "TV\Video\Scripts\action1.sqf"];

--------------------

Place an TV in the editor and paste this line in the init field:

tv addAction ["Turn ON", "TV\tv-init.sqf"];

----------------------------------

Notice: In every script where you see the word "test", change them to them what you need!

Notice2: You have to activate the TV two or three time to see the video! ( "Turn On"; "Watch TV"; "Play Test" {maybe})

Notice3: If you havent an OGV file you can find them in

Multimedia_Interface_System_script\Youtube\Videos

there are 3 ogv files!
Last edited by Fenris 89; Nov 11, 2018 @ 1:25am
Can't wait to go home and test it... THANK YOU FOR YOUR HELP!!! :)
Fenris 89 Nov 11, 2018 @ 5:50am 
No, problem!
Everything works great! :)
callofmarty Apr 8, 2019 @ 4:39am 
Hi, is it possible to force the YT video in the video to full screen?
Last edited by callofmarty; Apr 8, 2019 @ 4:41am
Fenris 89 Apr 8, 2019 @ 9:20am 
Originally posted by callofmarty:
Hi, is it possible to force the YT video in the video to full screen?


If you follow the steps from above, than use this in the "action1" sqf file:

acion1.sqf

tv setobjecttextureglobal [0,"TV\Video\Video\test.ogv"];

play = ["TV\Video\Video\test.ogv"] spawn BIS_fnc_PlayVideo;

Notice: In Full Screen you can´t close the video!








Last edited by Fenris 89; Apr 8, 2019 @ 9:38am
DeadPixel Nov 12, 2019 @ 9:03am 
Can't get it to work, no action is showing up on the screen object
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Nov 10, 2018 @ 2:00am
Posts: 10