public MediaItem getMediaItem ( String id ) { DailyMotionUrl url = new DailyMotionUrl ( requestPrefix + id ) ; HttpRequest request ; try { request = requestFactory . buildGetRequest ( url ) ; DailyMotionVideo video = request . execute ( ) . parseAs ( DailyMotionVideo . class ) ; if ( video != null ) { MediaItem mediaItem = new DailyMotionMediaItem ( video ) ; return mediaItem ; } } catch ( Exception e ) { } return null ; }
Returns the retrieved media item