getting an mediafile to a usercontrol

Topics: General
Jul 11, 2011 at 6:19 PM

I have made a funtion that recives an IMediaFile.

When I at it as an external funktion, I can not choose from a file selector.

Then I tryed to add it as an internal funtion(so I can choose what widgtet to use).

 public static Control VideoAfspiller(IMediaFile video)



but when it is executed I get an Error

The parameter 'video' is expecting test value of type 'Composite.Data.Types.IMediaFile', got value of type 'Composite.Data.DataReference`1[Composite.Data.Types.IMediaFile]'.
Do I have to use the paramter in another way?
In "Input parameters" I have added as "video" type DataReference<C1 Media File>

Jul 11, 2011 at 6:33 PM

Found the solution

I have to use dataRefence