question

Raashid Mohammed avatar image
0 Likes"
Raashid Mohammed asked Jacob Gillespie commented

How can I put video .mp4 or avi format in the model

Is there a way in flexsim we can link a video file so that it opens it when certain change in variable ? if so what is the code

and/ or

can we embedded video in the dashboard itself so that it plays videos inside the dashboard when triggered? or GUI

Thanks

Raashid

FlexSim 17.0.0
video
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Jacob Gillespie commented

Using html video tags, you can add video to your dashboard.

Attached is an example model that demonstrates this.

Below is a screenshot that shows the steps for how that model was set up.

The html snippet came from an example at w3.org.

If you want to point at a local file on the file system, you can do that as well:

  1. <video controls="">
  2. <source src="file:///D:/Documents/FlexSim 2017 Projects/trailer.mp4" type="video/mp4; codecs="avc1, mp4a"">
  3. </video>

To reference a file relative to the model's directory, you can use the keyword flexsimmodel in the src:

  1. <video controls="">
  2. <source src="flexsimmodel/trailer.mp4" type="video/mp4; codecs="avc1, mp4a"">
  3. </video>

dashboard-video.png (257.2 KiB)
dashboard-video.fsm (12.9 KiB)
· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.