I would check out http://www.chilkatsoft.com/xml-dotnet.asp which is a free component pack for XML
( I just found this. Looks promising. My original approach was a WebClient to load an XmlDocument)
then you go something like
Chilkat.Atom a = new Chilkat.Atom();
a.DownloadAtom("http://api.mtvnservices.com/1/video/search/?term=%22buddy+holly%22");
for (int i = 0; i < a.NumEntries; i++) {
Chilkat.Atom s = a.GetEntry(i);
string title= s.GetElement("title", 0);
String LargestThumbnail = s.GetElementAttr
("media:thumbnail", s.GetElementCount("media:thumbnail") - 1, "url");
}
good luck!
thank you! i figured this out and got the listings succesfully
how about player control / events? i need to be able to detect a stop event and i see that is possble on that sample page.. just don't know how to use it here..
i cannot find any notes on using the API in c#.. is it possible? code samples? anything? thanx!
InVermont – 10 months ago
I would check out http://www.chilkatsoft.com/xml-dotnet.asp which is a free component pack for XML
( I just found this. Looks promising. My original approach was a WebClient to load an XmlDocument)
then you go something like
Chilkat.Atom a = new Chilkat.Atom();
a.DownloadAtom("http://api.mtvnservices.com/1/video/search/?term=%22buddy+holly%22");
for (int i = 0; i < a.NumEntries; i++) {
Chilkat.Atom s = a.GetEntry(i);
string title= s.GetElement("title", 0);
String LargestThumbnail = s.GetElementAttr
("media:thumbnail", s.GetElementCount("media:thumbnail") - 1, "url");
}
good luck!
FredDoolan – 10 months ago
thank you! i figured this out and got the listings succesfully
how about player control / events? i need to be able to detect a stop event and i see that is possble on that sample page.. just don't know how to use it here..
to be able to seek would be nice too :)