Filename from variable instead of text string?

Hello. I am using MZ. I am using DK_Video_Player plugin to play a video.
Is it possible to get the video's filename from a variable instead of a text string?

If I set variable 2320 to "tv" and put $gameVariables.value(2320) in the video file name slot, it tries to play $gameVariables.value(2320).mp4 instead of tv.mp4

How do I get plugin to read the filename from the variable?

Just as a sidenote, the tv.mp4 works and will play when called by string. Nothing is wrong with the file or the plugin, I just don't know how to recognize a variable instead of a string.
It's hard to give you help without a link to the plugin or a picture of how you're using it. For example, we don't know what "video file name slot" means - is it a plugin parameter? A plugin command?

The general answer to your question is you would have to use the direct script call for the function to bypass anything that's going to convert what you type into a string.

The plugin may not be written to allow that, in which case you're asking the author (or someone) to modify it for your needs, or looking for another plugin that better suits what you want.
Thank you for responding!

(Script is free but I'm not sure the rules about posting code so here is a link)

This is what I mean by the video slot:
01.png

02.png
Thank you for responding!

(Script is free but I'm not sure the rules about posting code so here is a link)

This is what I mean by the video slot:
View attachment 268905
View attachment 268906
Plugin commands don't always work well with scripts in the parameters. Look up the equivalent script call for that plugin command and put it in there.
Unfortunately, I can't seem to get this working via scriptcall either.

LoadVideo $gameVariables.value(2320) 1 tv is not working for me. I guess I'll contact the script author.

Thank you anyway, though!
What about a script call like this?
Code:
VideoManager.loadVideo(1, $gameVariables.value(2320))
Unfortunately, I can't seem to get this working via scriptcall either.

LoadVideo $gameVariables.value(2320) 1 tv is not working for me. I guess I'll contact the script author.

Thank you anyway, though!
That's not a script call. It's still formatted like a plugin command. A script call would look like what TheoAllen posted.
What about a script call like this?
Code:
VideoManager.loadVideo(1, $gameVariables.value(2320))
Thank you so much, this is exactly what I needed. It works like a charm!
That's not a script call. It's still formatted like a plugin command. A script call would look like what TheoAllen posted.
Thank you as well. I didn't even realize it was still formated like a plugin command. I've been here since 2013 so I'm used to working in VXAce. I only started MZ recently and plugins still are very new to me.

Thanks all around, I don't have to bother the script author. Thread can be closed!

Original thread: https://forums.rpgmakerweb.com/threads/filename-from-variable-instead-of-text-string.159155/