Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Silverlight
jeb1217
#1 Posted : Sunday, 13 March 2011 1:49:42 PM(UTC)
Rank: Member

Joined: 22/09/2010(UTC)
Posts: 4
Location: Florida

I have been playing around with GSP and Silverlight v3 and v4. I did get Smooth Streaming with Variable Bit Rates to work and it turned out to be pretty easy. I used a v4 XAP file for the media player and mapped the .ismc file as a MIME type (text/xml) and then went to the BroswerTemplate table and mapped the MIME to the HTML Template (no Script Template was needed). I can just place the encoded files into a directory and they sync it to GSP. I do need to manually assign the thumbnail but that is no big deal.

I then went on to 'Deepzoom'. I have a XAP for that also and it uses XML files for mapping the images to resolutions. That is where I ran into problems. Its MIME type is also text/XML but I need to map it to a different HTML Template. Any suggestions on how to do this? Maybe assign one to text/plain and the other to text/xml?
Roger Martin
#2 Posted : Sunday, 13 March 2011 6:39:43 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

DeepZoom - cool. I've been wanting to play around with adding that but haven't yet found the time. If you end up with something that you think would be a good addition as a core GSP feature, consider sharing it.

Let me see if I understand the issue: You have two file types (.ismc and .xap) that are both text/xml and you want a different HTML template for each. Is that right?

Since browser templates are keyed off of MIME types, you will have to map each file type to a different MIME type (like you suggested). You may have to edit the IIS settings to map the new MIME type to whatever behavior is associated with text/xml.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.