none
VideoResult.RunTime = 0 ????? RRS feed

  • Question

  • i've tried to use the Bing Api 2.0 and encountered a problem with VideoResult.
    it appears that some of the results have 'Runtime' property (the duration of clip in Ms) that equals to 0 :( :( :(
    can someone pls help...
    code:
             public List<VideoResult> FindVideosSync(string searchstring, uint numberOfMatches)
            {
                SearchRequest request = getVideoRequest(searchstring, numberOfMatches);
                SearchResponse response = m_service.Search(request);
                VideoResponse videoResponse = response.Video;
                List<VideoResult> results = new List<VideoResult>(videoResponse.Results); //some of the matches here will contain items that have runtime = 0 :( :(
                return results;
            }
             private SearchRequest getVideoRequest(string searchstring, uint numberOfMatches)
            {
                SearchRequest request = getRequest(searchstring);
                request.Sources = new SourceType[] { SourceType.Video };
                request.Video = new VideoRequest();
                request.Video.Count = numberOfMatches;
                request.Video.CountSpecified = true;
                return request;
            }

    Zack
    Thursday, August 25, 2011 8:22 PM