1

building a java based media browser

I have built the website at videofeedback.com
I have about 800+ flash videos and MP4s and MP3s there.
On my website index page you'll find a link to a testing page for a java based media browser.
It takes 2 pieces of information to load the thumbnail and then the video or other media.

The browser currently deafults to a yahooDemo search as described in the following snippet of code from the browser:

/**
* This Class is used to parse the data from Yahoo Image Search Web Service.
* we use the Yahoo Image Search Web Service to search the Internet for images.
* This class stores results of parsed xml data from Yahoo!'s Image Search Service
* in MetaData.
*
* This version uses the XML pullparser API of webservices
*/
public class YahooAPI extends WebSearch {

/* Construct REST query for Yahoo Image Search Web Service. */

/** The Application ID of Yahoo Image API */
def yahooSearchAppID = "IKdSrtfIkY3ETMXEihi56VAbqeDPtEQp";

/** The query to search for.
* Use + to include terms.
* - to exclude terms and
* put quotes around "exact phrase". */
var yahooSearchQuery : String;

/** The number of results to return from yahoo image search. */
def numberOfYahoooResults = 42;

/* Location of REST url for Yahoo Image Search Web Service.
* The bind is needed here because yahooSearchQuery is no longer
* hard-coded
*/
override var searchLocation = bind
"http://search.yahooapis.com/VideoSearchService/V1/videoSearch"
"?appid==IKdSrtfIkY3ETMXEihi56VAbqeDPtEQp&query=jaxbeech.yahoo.search"
"&results=50";


override var searchQuery on replace {
yahooSearchQuery = searchQuery.trim().replaceAll(" ","+");
}

// temporary variables needed during processing
var result : MetaData;

init {
// An alternative to "override var serviceName = "Yahoo!"
// since the search name (at least in this case) never changes
serviceName = "yahoo";
}


I have tried a number of things to be able to search yahoo in various ways.
1 - I have submitted a media feed:
http://www.videofeedback.com/videofeedback...videos_feed.xml

2- I recently found the developers network and have gone through the authentication html key steps to have my website spidered for content.

3 - i have, in following the feeds idea, also started to create this RSS data feed, which I am not sure is correctly formatted.

y:adjunct xmlns:y="http://search.yahoo.com/datarss/" version="1.0" name="IKdSrtfIkY3ETMXEihi56VAbqeDPtEQp" >
<y:item rel="dc:subject" resource="http://videofeedback.com/">
<y:type typeof="media:Video" resource="http://videofeedback.com/Marquis/20000_Leagues_Under_the_Sea.flv">
<y:item rel="media:thumbnail media:image" resource="http://videofeedback.com/Marquis/20000_Leagues_Under_the_Sea_thumb.JPG"/>
<y:item rel="dc:license" resource="http://example.com/terms_of_service.html" />
<y:meta property="dc:title media:title">20000 Leagues Under The Sea</y:meta>
<y:meta property="dc:description media:description">Jules Verne's Epic tale of Adventure and the Notorious Captain Nemo</y:meta>
<y:meta property="media:height" datatype="xsd:integer">464</y:meta>
<y:meta property="media:width" datatype="xsd:integer">800</y:meta>
<y:meta property="media:region">us</y:meta>
<y:meta property="media:type dc:type">application/x-shockwave-flash</y:meta>
</y:type>
</y:item>
<y:item rel="dc:subject" resource="http://videofeedback.com/">
<y:type typeof="media:Video" resource="http://videofeedback.com/Marquis/20000_Leagues_Under_the_Sea.flv">
<y:item rel="media:thumbnail media:image" resource="http://videofeedback.com/Marquis/20000_Leagues_Under_the_Sea_thumb.JPG"/>
<y:item rel="dc:license" resource="http://example.com/terms_of_service.html" />
<y:meta property="dc:title media:title">20000 Leagues Under The Sea</y:meta>
<y:meta property="dc:description media:description">Jules Verne's Epic tale of Adventure and the Notorious Captain Nemo</y:meta>
<y:meta property="media:height" datatype="xsd:integer">464</y:meta>
<y:meta property="media:width" datatype="xsd:integer">800</y:meta>
<y:meta property="media:region">us</y:meta>
<y:meta property="media:type dc:type">application/x-shockwave-flash</y:meta>
</y:type>
</y:item>
</y:adjunct>


I am trying to make the java based media wall "find" my website flash videos.
This as a workaround to loading the MySQL database my webhost provides, BECAUSE,
I want to provide these videos freely to the public and they are all in the public domain I believe.

So chaning the media browser code above to search either My Yahoo media, or one of the RSS feeds
is where I'd like to go with this.

If I am heading in the wrong direction let me know.
Thanks in advance for your help.
-CB

by
1 Reply
  • Hi there

    As this is a forum for Yahoo's Upcoming events service, you might find better success posting in one of the other YDN forums.

    -N

    -
    http://nikf.org ~ @nikf
    0
This forum is locked.

Recent Posts

in Upcoming API - General Questions