ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

Thumbnail

Full Screen Video Player

by Synthiam

Play videos in a fullscreen window that sits on top of everything else. Great for facial animations or user messages.

How to add the Full Screen Video Player robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the User Interface category tab.
  5. Press the Full Screen Video Player icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Full Screen Video Player robot skill.

How to use the Full Screen Video Player robot skill

Play videos in a fullscreen window that sits on top of everything else. Excellent for facial animations or user messages.

Use ControlCommands to specify videos to play fullscreen. The ESC key can be pressed while a video is playing to cancel the video. Once the ESC key is pressed, this robot skill will not play another video until the Pause New Playback checkbox has been unchecked.

Robot Skill Main Window


User-inserted image



1) This checkbox will be checked when the ESC key is pressed during video playback. This feature is to prevent emergency loops that continually play videos. When ESC is pressed, this checkbox is checked. No further video playback can be done until this is unchecked by either ControlCommand or manually.

2) The logging information for errors and activity

Javascript Example


This example will play a video and demonstrate the ControlCommand syntax.

Code:



// Begin playing a full video screen
ControlCommand("Full Screen Video Player", "Play Video", "C:\\Users\\dj\\Videos\\Screen Recorder\\637427907140785293.wmv");

// wait for 3 seconds while the video is playing
sleep(3000);

// Start playing another video
ControlCommand("Full Screen Video Player", "Play Video", "C:\\Users\\dj\\Videos\\Screen Recorder\\637430717372916488.wmv");

// wait for 2 seconds while the video is playing
sleep(2000);

// Pause the video
ControlCommand("Full Screen Video Player", "Pause Video");

// Wait for 2 seconds while the video is paused
sleep(2000);

// Resume playing the video
ControlCommand("Full Screen Video Player", "Resume Video");

// wait for 3 seconds while the video has been resumed
sleep(3000);

// Stop the video and close the video player window
ControlCommand("Full Screen Video Player", "Stop Video And Close");

Resolution Scaling


There is a known issue with the 3rd party video library where the video will only display on a portion of the screen. This issue is raised when the Window's scaling resolution is set to a value other than 100%. The workaround for this issue is to set the Window's scaling resolution to 100%.

ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
USA
#10  
It was syntax forgot the double "\"
PRO
Synthiam
#11   — Edited
Even without the double \, you didn't get an error stating the file was not found? Should have hmmmm 

User-inserted image
PRO
USA
#12  
Yeah I got that message, but I couldn’t figure out why. I kept moving it around thinking it had to be in a certain place.. not that I needed a double \\ for proper location. I’m used to messing in EZ Script, don’t have any experience in JavaScript. It will take some time getting used to it!
#13  
My employer gives me access to a bunch of online training, so it looks like I need to do the Javascript course.  As an old time VB (VB 5 and 6) devoper, I was pretty comfortable with EZ Script, but if Javasript is going to be the future of ARC I need to get up to speed. 

@DJ I know you also support Python, do us old folks a favor and stick with one language for your samples.  My brain can only squeeze in so much more before I start losing older critical skills:)
PRO
Synthiam
#14  
I only post Javascript. I'll never post python because i don't like python. Let me know where you saw a mix-up and I'll fix it. But I'm 100% certain I've never posted python as an example.
PRO
Australia
#15  
When I try to use the Full Screen Video Player, it displays only a quarter of the video - the rest is white - see image. The second image is what it should display. What might be the problem here?

User-inserted image

User-inserted image
PRO
Canada
#16  
Hmmm, I just tested it with a .mp4 file in Windows 10, 1920x1040 resolution, 30fps, and it displayed in full screen as expected. I also have 2 external monitors connected.

Have you tried different resolutions and/or file types?
PRO
Australia
#17  
Just tested it with SD and HD and same result - quarter screen only. Tested with MPG, MP4, WMV and same result. Very puzzling. Might try it on a different device.
PRO
Synthiam
#18  
Hmmm. It almost looks like windows wasn’t able to render the whole video - as if it stopped part way while drawing the video box. Let me see if there’s something I can do on our end.
PRO
Australia
#19  
I tried playing a jpeg image and got a quarter screen also. Interesting.
PRO
Australia
#20  
I tried playing a jpeg image and got a quarter screen also. Interesting. Also tried reinstalling the plugin.
PRO
Synthiam
#21  
I’ll be looking at it this weekend. There’s no staff during the weekend so I’ll get it running for ya:)
PRO
Synthiam
#22  
See if this new update v6 resolves the issue
PRO
Australia
#23  
I noticed the plugin had been updated. But the problem remains.
In the meantime, I am utilising the DisplayPopup plugin as I can display Emoji using the GoogleEmoji font.
PRO
Synthiam
#24  
Oh, can you tell me what the value is for your display scaling? It’s where the video resolution can be set. It’s a number as a percentage. 

we will get to the bottom of this - although it’s a real puzzle!
PRO
Australia
#25  
Do you mean as shown in settings - see below...

User-inserted image
PRO
Synthiam
#26  
Yeah, that's what I'm looking for. Thanks - I'm wondering if the scale has something to do with it. Let me run a few more tests and see if I can reproduce it. I'm not sure what to fix if I can't reproduce it. But as usual, we'll figure it out.:)
PRO
Synthiam
#27  
I am able to reproduce it. Turns out my guess was correct about the scaling value. The video library that this skill uses does not scale correctly. I’m not certain how to fix that, however. 

But, the workaround at this time is to set the scale value to 100%
PRO
Australia
#28  
Yes, the scaling is the problem The Full Screen Video Player works properly when set to 100%.  This setting on my 10" Surface Pro tends to make text too small to read. But at least I know the cause. Thanks.
PRO
Synthiam
#29  
Well still look into it. But for the time being that’s a good workaround