示例#1
0
 /// <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));
 }
示例#2
0
 public static MediaItem CreateFromFile(string username, string filepath)
 {
     return(MediaItem.CreateFromFile(username, filepath, MediaType.Video));
 }