No problem at all
Yes, if it’s a promo video that won’t be changed frequently, you can use a custom state instead of storing the video in the database.
For example, on the test page there is now just a “watch” button and a popup with one video element. To do this, we can set a custom state on the Video Player, which will be of type: text (list: no), and the value will be the Vimeo ID of your promo video. Setting the state is similar to displaying data, but instead the video is playing based on the value of the custom state (which is the Video ID of your promo video) that you can type/set manually, instead of retrieving using a database query. Hopefully that isn’t too confusing! Here’s the link and a step-by-step:
- When Watch is clicked -->
Element Actions --> Set State
The element we’re setting this custom state on is Video A:
And then we create the custom state by clicking “Create a new custom state…”:
You can name this anything you prefer, but I just chose “VideoID” to remember that’s what text should be entered as the value:
Then the value is empty by default:
And we can just type in a video ID for the value (or paste the text there)
The next step is to ‘Show’ the popup right after the state is set:
Then, to ensure the video plays the video we set in the custom state, we can just set the VideoID data source to be the custom state we just set (Video A’s VideoID):
And then we need to make sure the state gets set to empty when the video is closed, so we can use the ‘set state’ action again, leaving the value empty:
And that should work!