TWTRTweetView video




I am having a strange issue regarding the video tweets. Let me explain the issu by examples.
These two videos are rendered differently in the TWTRTweetView:

I have checked the tweets’ object got from loadTweetWithID:

<TWTRTweet: 0x17414dcb0; tweetID = 816267588879663105; createdAt = 2017-01-03 12:58:53 +0000; text = “The marchers arrive on merrion st #apollohouse @rtenews @hom”; author = <TWTRUser 0x174a4ce70; userID = 246724581; name = “Conor Hunt”; screenName = “conorfhunt”>>

<TWTRTweet: 0x17414e230; tweetID = 811621806624935936; createdAt = 2016-12-21 17:18:12 +0000; text = “Home Sweet Home thank public for support after judge grants temporary stay on order to leave Apollo House. More:…”; author = <TWTRUser 0x17484ac80; userID = 8973062; name = “RTÉ News”; screenName = “rtenews”>>

I dont see any major difference.

The code I am using is:

       TWTRAPIClient *client = [[TWTRAPIClient alloc] initWithUserID:nil];
                   [client loadTweetWithID:tweetID completion:^(TWTRTweet *tweet, NSError *error) {
                  if (tweet && !error) {
                    TWTRTweetView *tweetView = [[TWTRTweetView alloc] initWithTweet:tweet style:TWTRTweetViewStyleRegular];
                    tweetView.frame = self.bounds;
                    [self addSubview:tweetView];
                    tweetView.hidden = YES;
                    tweetView.showActionButtons = YES;
                    tweetView.showBorder = YES;
                    self.tweetView = tweetView;
                    tweetView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
                    tweetView.layer.borderWidth = 1.0;
                    tweetView.hidden = NO;


Is this valid behaviour? If Yes, why? If not, how can i fix it…

Thank you.


I’d have to check in with the Twitter Kit team to confirm whether this is valid or intended, however the primary differences between the two Tweets are that the second is an extended Tweet (140 chars plus attached media, which I believe Twitter Kit should support), and also that it contains an Amplify video from Media Studio rather than something uploaded via the Twitter app interface. Amplify media does tend to be treated differently in the API, so there’s a chance that this is expected behaviour in Twitter Kit.