login vsi company logo login vsi company logo 250x40
header-04.jpg

Custom video being launched

  • darkgen
  • darkgen's Avatar Topic Author
19 Feb 2015 13:52 #2364 by darkgen
This is probably a very easy one (hopefully so!).

We need to launch a specific video directly from a file share (EG. \\Server\FileShare\Folder\Video.mp4). However I'm struggling to find the syntax to do this:-

The following runs a random video contained the content folder on the VSI Share;
# Start IE HTML5 video and watch for 90 sec
Web_Start_random("IE6", "%VSI_WebLocation%\Player", "Test", Video, %VSI_Web_Player%)
App_Focus("IE6","Title", "Video Player", "", "Maximize")
VSI_Sleep(300)
Web_Quit("IE6")

I'm assuming I just need to alter this line so it runs the specified video
Web_Start_random("IE6", "%VSI_WebLocation%\Player", "Test", Video, %VSI_Web_Player%)
Is it simply this?
Web_Start("IE6", "\\Server\FileShare\Folder\Video.mp4", %VSI_Web_Player%)

Thanks in advance!

Please Log in to join the conversation.

More
19 Feb 2015 14:31 #2365 by o.bouhaj
darkgen,

yes - if the video is being played via webpage.
no - if the video is/has to be played via direct fta.

I would use: or

- App_Start, or
- ShellExecute

- ShellExecute:
VSI_ShellExecute("Logname", "\\fs1\VSI-4\_VSI_Websites\Player\360p\Video\5.mp4", "" , "" ,"", "")

VSI_ShellExecute; Basically runs/calls the 'file' specified. There is no possibility of managing it, e.g. focus, maximizing, closing it etc. and keep on track of things...

- App_Start:
App_Start("Logname", "\\fs1\VSI-4\_VSI_Websites\Player\360p\Video", "1.mp4", "", "")

Example:
App_Start("Logname", "\\fs1\VSI-4\_VSI_Websites\Player\360p\Video", "1.mp4", "Title", "Player")
App_Focus("Logname", "Title", "Player", "", "Maximize")

Workload_Idle("Idle", 3, "Vids Time!", 1)

App_Focus("Logname", "Title", "Player")
App_Close("Logname", "Title", "Player")

Please Log in to join the conversation.

  • darkgen
  • darkgen's Avatar Topic Author
19 Feb 2015 14:49 #2366 by darkgen
Ahh ok,
So for displaying the video via IE the following syntax is correct;
Web_Start("IE6", "\\Server\FileShare\Folder\Video.mp4", %VSI_Web_Player%)
App_Focus("IE6","Title", "Video Player", "", "Maximize")
VSI_Sleep(300)
Web_Quit("IE6")
for displaying within the default VSI video player;
App_Start("VideoTest", "\\Server\FileShare\Folder", "Video.mp4", "Title", "Player")
App_Focus("VideoTest", "Title", "Player", "", "Maximize")
Workload_Idle("Idle", 3, "Vids Time!", 1)
App_Focus("Logname", "Title", "Player")
App_Close("Logname", "Title", "Player") 
[/code]

Workload_Idle("Idle", 3, "Vids Time!", 1) < What is this actually achieving?

Many thanks!

Please Log in to join the conversation.

More
19 Feb 2015 15:11 #2367 by o.bouhaj
No. Let me rephrase :)

Displaying video via IE is only possible if you serve the video via IE.
VSI does not create a video page for you. (however, that does not mean we can not abuse/use the existing IE video structure)

Thus the below action list is only support if the video files available and supported in IE.
You could place you're own video files in our Web Player though. If that is really required?
Web_Start("IE6", "\\Server\FileShare\Folder\Video.mp4", %VSI_Web_Player%)
App_Focus("IE6","Title", "Video Player", "", "Maximize")
VSI_Sleep(300)
Web_Quit("IE6")

For displaying the video via WMP, or any other kind of video player at the test machines App_start is the way to go. e.g.
This means that the below lines of actions are not being played via IE, but uses the default video player.
App_Start("VideoTest", "\\Server\FileShare\Folder", "Video.mp4", "Title", "Player")
App_Focus("VideoTest", "Title", "Player", "", "Maximize")
Workload_Idle("Idle", 3, "Vids Time!", 1)
App_Focus("Logname", "Title", "Player")
App_Close("Logname", "Title", "Player")

Does this make more sense?

Please Log in to join the conversation.

  • darkgen
  • darkgen's Avatar Topic Author
23 Feb 2015 13:26 - 23 Feb 2015 13:27 #2381 by darkgen
Yes it does.

However it would seem this line is incorrect;

Web_Start("IE6", "\\Server\FileShare\Folder\Video.mp4", %VSI_Web_Player%)

VSI suggests "Invalid parameter count for function "Web_Start"

Please Log in to join the conversation.

More
23 Feb 2015 14:01 #2382 by o.bouhaj
Correct. Web_Start mandatory requirements are:

Web_Start_random("IE1", "%VSI_WebLocation%\Player", "360p", Video, %VSI_Web_Player%)

Please Log in to join the conversation.

  • darkgen
  • darkgen's Avatar Topic Author
23 Feb 2015 14:30 - 23 Feb 2015 14:32 #2383 by darkgen
OK, so getting a little confused.

Previously you used the following as an exmaple to play a video stored on a datashare;
Web_Start("IE6", "\\Server\FileShare\Folder\Video.mp4", %VSI_Web_Player%)

However the actual syntax should be
Web_Start_random("IE1", "%VSI_WebLocation%\Player", "360p", Video, %VSI_Web_Player%)

So as an example using the share path below, how do i incorporate that into the syntax
\\Server\FileShare\Folder\Video.mp4

Thanks!

Please Log in to join the conversation.

More
23 Feb 2015 14:49 #2384 by o.bouhaj
So for displaying the video via the datashare directly (call to the file type) the following syntax is correct;
App_Start("LogNameHere", "\\YourServer\YourFileShare\YourVideoFolder", "YourVideoFile.mp4", "YourVideoTitle", "VideoTitleOrTitlePlayer")
App_Focus("LogNameHere", "YourVideoTitle", "VideoTitleOrTitlePlayer", "", "Maximize")
Workload_Idle("LogNameHere", 3, "DisplayIdleNameInSession", 1)
App_Focus("LogNameHere", "YourVideoTitle", "VideoTitleOrTitlePlayer")
App_Close("LogNameHere", "YourVideoTitle", "VideoTitleOrTitlePlayer")

For displaying the video via IE (through the IE Video Player Page) the following syntax is correct;
Web_Start_random("LogNameHere", "%VSI_WebLocation%\Player", "360p", Video, %VSI_Web_Player%)
App_Focus("LogNameHere","Title", "Video Player", "", "Maximize")
VSI_Sleep(50)
Web_Quit("LogNameHere")

Detailed:
<Starts A Random Websites from Current VSISHARE>("LogNameHere", "<Configured VSI WebLocations>", "Video Folder Format", Video, %Use The VSI WebPlayer%)
App_Focus("LogNameHere", "YourVideoTitle", "VideoTitleOrTitlePlayer"), "", "Maximize")
VSI_Sleep(50)
Web_Quit("LogNameHere")

If required we can setup a quick online session. Let us know if this is required.

Please Log in to join the conversation.

  • darkgen
  • darkgen's Avatar Topic Author
23 Feb 2015 15:00 - 23 Feb 2015 15:01 #2385 by darkgen

Omar wrote: For displaying the video via IE (through the IE Video Player Page) the following syntax is correct;

Web_Start_random("LogNameHere", "%VSI_WebLocation%\Player", "360p", Video, %VSI_Web_Player%)
App_Focus("LogNameHere","Title", "Video Player", "", "Maximize")
VSI_Sleep(50)
Web_Quit("LogNameHere")

Detailed:
<Starts A Random Websites from Current VSISHARE>("LogNameHere", "<Configured VSI WebLocations>", "Video Folder Format", Video, %Use The VSI WebPlayer%)
App_Focus("LogNameHere", "YourVideoTitle", "VideoTitleOrTitlePlayer"), "", "Maximize")
VSI_Sleep(50)
Web_Quit("LogNameHere")

OK, I do understand the syntax. I suppose the question was more how do you display a specific video, streamed from a file-share in IE rather than a random video. Is that even possible? Does the syntax exist to achieve this?

Please Log in to join the conversation.

More
23 Feb 2015 15:10 #2386 by o.bouhaj
That is possible.

Create a new folder in: \_VSI_Websites\Player\*
Remember the new created folder name. Example: darkgen
Place your file(s) in that new created folder.

Adjust the syntax to:

Web_Start_random("IEVideo", "%VSI_WebLocation%\Player", "darkgen", Video, %VSI_Web_Player%)
App_Focus("IEVideo", "Title", "Video Player", "", "Maximize")
VSI_Sleep(50)
Web_Quit("IE1")

You can simply put 1 (one) video file in that folder, or, create 5 (five) identical files.
Again, if you require help we can simply setup a online meeting :)

Please Log in to join the conversation.

Start Delivering the Best End User Experience Today

Request a Demo

Login VSI, Inc.

3945 Freedom Circle
Suite 670
Santa Clara, CA 95054

Phone: +1 408 899 7418

300 Tradecenter
Suite 3460
Woburn, MA 01801

Phone: +1 408 899 7418

Login VSI B.V.

De Entree 85
1101 BH Amsterdam
The Netherlands

Phone: +31 20 705 1200