What type is publishVideo : videoDimensions?

What is the type of videoDimensions in publishVideo?
I cast it to a string and pass it, but I keep getting a NullPointerException error.
How should I send the videoDimensions?