It can be done with Views rewriting options.
- Add both fields (Image before Video) to Views and exclude Image field from output.
- For Video field set “NO RESULTS BEHAVIOR” to Image field placeholdertoken:
It means that if Video field is empty Views will get value from this textarea, which contains special placeholders (in this case [field_image]
).
PlaceholdersAvailable tokens for your fieldfields can be found under “REWRITE RESULTS” fieldset:
Don't forget to uncheck “Rewrite the output of this field” flag.