Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Video IFrame URL

$
0
0
filter images has tweet.Entities.Medias value set and we are able to extract the image URL.
But this same doesnot work for Videos URL's.
                var tweetList = Search.SearchTweets(searchParameter);

              
                foreach (var tweet in tweetList)
                {

....................................................................................
 foreach (var media in tweet.Entities.Medias)
                    {
                        //photo..
                        if (media.MediaType == "photo")
                        {
                            te.EntityPicURL = media.MediaURL;
                        }
                        else
                        {
                            te.EntityVideoURL = media.MediaURL;
                        }
                    }
tweet.Entities.Medias is basically null for video only searches. How do we extract video IFrame URL's ?

thanks.

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>