/// <summary> /// Note must be logged in to generate media item /// Should not use this method if not logged in /// </summary> /// <param name="filename"></param> /// <param name="type"></param> /// <returns></returns> public MediaItem CreateCurrentUsersMediaItemFromFile(string filename, MediaType type) { return(MediaItem.CreateFromFile(Username, filename, type)); }
public static MediaItem CreateFromFile(string username, string filepath) { return(MediaItem.CreateFromFile(username, filepath, MediaType.Video)); }