Newbie
Hello,
I just got an invite and started working on a couple of mashups. I got one working so far, it gathers pictures from any website that a user enters and displays them. it is called get_pics.http://www.popfly.ms/users/WadeH/get_pics Anyone know how to change the default color of the text for the user input?
I have been trying to get a video search working but seem to be having trouble, I am using the user input going to yahoo video and then from that to the video player. When I preview it I can search for a band and get thumbnails up, but cannot seem to get the video to play and when I just open it from my page I get an error that says it is unable to get data from...
It is called video_search.http://www.popfly.ms/users/WadeH/video_search
Any comments would be appretiated.
Thanks,
[1064 byte] By [
WadeH] at [2008-1-5]
Hi,
First answer: You can change any of the styling by adding your own CSS to the custom HTML for your mashup. For example,
1. Edit your mashup
2. Click on View Custom HTML
3. Enter CSS to affect the elements in your mashup. For example, you can change the input control like this:
<style type="text/css"><!--
input
{
background-color: blue;
color: red;
border: blue;
}
--></style>
Hope that helps!
I'll addess the second question in another response.
--Michael
Second answer: I tried just Yahoo Video with Video Player (using "cat" as search term). It seems that Yahoo Video's are not playing in Video Player, even though if one grabs the URL for the video it plays fine. I have logged a bug on this.
On the other issue of not retrieving data when running the mashup, I see the same problem when I try to run your mashup. Would you double check that your developer key is correct?
Yours,
Michael
You're welcome.
With respect to your question about clearing out the list of videos each time, it seems like this should be easy. I tried the following things:
First
1. (in another browser tab) Go into Create a Block and rip the VideoPlayer block. Looking at the block I see that there is an initialize method.
2. Back at the mashup, click the wrench for VideoPlayer and inside the block click Advanced.
3. Call the initialize method just before the first "for" loop.
videoPlayer.initialize();
4. Preview the mashup.
5. Unfortunately this gives an error message. It seems that we can't re-initialize this way.
Second
1. Inside the VideoPlayer block I see that the block is building up a list of videos in a global variable _videos
2. Try to clear this variable inside the mashup just like I tried initialize above:
_videos = new Array(0);
3. Preview the mashup
4. Unfortunately this gives another error message.
Hmmm
Now I'm starting to think that clearing the list of videos isn't just a trivial one-line fix. Perhaps we need a new operation for the VideoPlayer block called clearVideos. We could base this on the existing operation addVideo.
If anybody takes this further or has any other suggestions please post here. 
--Michael