Cannot embedd new video asset

Squiz created a video asset for us, for the sole purpose of having it as a container for video files allowing us to customize the look of video results when they show up in a search.


There is a problem that I just encountered. When using the WYSIWYG editor, and you select to embed a video file, you cannot choose video files that we have uploaded with our new video asset, but only video files that have been uploaded as generic files. Is it possible to change this, as we would like to upload all our videos with the new asset, and have our users be able to embed them with the WYSIWYG editor.



Is this something that I can fix? Or do I need to contact support?

The embed plugin only allows selection of File assets, not any other type of file (like images or word doc). You can change the code in your WYSIWYG plugin to make it work, but there is no config option to select which type of assets can be embedded. Changing the code is dangerous because it will need to be changed again with each upgrade.


I see two ways of doing this with development. First, create a config option for the WYSIWYG to allow you to select the asset types that can be embedded. The second option is to create a Movie asset, have the plugin also allow Movie assets, then change your custom video asset to extend this. The second way is probably easier and better.



I'd suggest contacting Squiz Support and getting them to help decide how you want to fix this problem.


Greg, this is what was already created for us. How would I then have the plugin allow the video assets?

A custom asset was created for you. We'd never change the embed plugin to know about custom assets. The asset I am talking about would be a generic Movie asset that custom assets (like your one) can extend. In this way, your new custom asset would be considered a "Movie" not a "File". The embed plugin would then be changed to allow Files and Movies to be embedded.



There is nothing you can do right now to have the plugin embed your custom asset without code changes, and I cannot give those to you as it may void any warranty you might have.


Ok, I have contacted support to see what they think the best option would be for us to solve this problem.