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

Notification

Icon
Error

html template for avi files
yuda022
#1 Posted : Saturday, 21 February 2009 7:11:46 PM(UTC)
Rank: Newbie

Joined: 21/02/2009(UTC)
Posts: 2
Location: israel

Hi!

can anybody tell me how to configure an html template for avi files??

i understand that i have to configure this section :

<mediaObject mimeType="video/*">
<browsers>
<browser id="default" htmlOutput="&lt;object type=&quot;{MimeType}&quot; data=&quot;{MediaObjectUrl}&quot; style=&quot;width:{Width}px;height:{Height}px;&quot; &gt; &lt;param name=&quot;src&quot; value=&quot;{MediaObjectUrl}&quot; /&gt; &lt;param name=&quot;autostart&quot; value=&quot;{AutoStartMediaObjectInt}&quot; /&gt;&lt;/object&gt;" />
<browser id="ie" htmlOutput="&lt;object type=&quot;{MimeType}&quot; data=&quot;{MediaObjectUrl}&quot; style=&quot;width:{Width}px;height:{Height}px;&quot;&gt; &lt;param name=&quot;src&quot; value=&quot;{MediaObjectUrl}&quot; /&gt; &lt;param name=&quot;autostart&quot; value=&quot;{AutoStartMediaObjectText}&quot; /&gt;&lt;/object&gt;" />
</browsers>
</mediaObject>

Thanks.
Roger Martin
#2 Posted : Sunday, 22 February 2009 3:36:47 AM(UTC)
Roger Martin

Rank: Administration

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

The next release of GSP will have the .avi template removed, which will cause the default video template to take effect. See this thread for more info.

You can make this change now by deleting this section in galleryserverpro.config:

Code:
<mediaObject mimeType="video/x-ms-wvx">
<browsers>
<browser id="default" htmlOutput="&lt;a href=&quot;{MediaObjectAbsoluteUrlNoHandler}&quot;&gt;Click to open video&lt;/a&gt;" />
</browsers>
</mediaObject>


You are also welcome to edit the template to provide specific HTML rendering behavior for avi files. The Admin Guide has an entire chapter on this subject.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
yuda022
#3 Posted : Tuesday, 24 February 2009 2:03:55 AM(UTC)
Rank: Newbie

Joined: 21/02/2009(UTC)
Posts: 2
Location: israel

Hi rogger thank u for your answer.

i build a html template for avi its look like this :

<browser id="ie" htmlOutput="&lt;object classid=&quot;clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616&quot; codebase=&quot;http://go.divx.com/plugin/DivXBrowserPlugin.cab&quot; style=&quot;width:{Width}px;height:{Height}px;&quot;&gt; &lt;param name=&quot;src&quot; value=&quot;{MediaObjectUrl}&quot; /&gt; &lt;param name=&quot;autoplay&quot; value=&quot;{AutoStartMediaObjectText}&quot; /&gt; &lt;param name=&quot;controller&quot; value=&quot;true&quot; /&gt; &lt;param name=&quot;pluginspage&quot; value=&quot;http://go.divx.com/plugin/download/&quot; /&gt;&lt;/object&gt;" />
i having some security problem with the files but i think i suppose to work can u have look ?

this is a divx web player instead windows media player...
Roger Martin
#4 Posted : Wednesday, 25 February 2009 12:00:30 PM(UTC)
Roger Martin

Rank: Administration

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

Check out this thread where I describe the new DIVX support in the next release, along with a tip on how you can add it in the current version. That thread refers to playing .divx files only. You can use the same template for .avi files by copying it and changing "video/divx" to "video/x-ms-wvx". Repeat for any additional file types you want to play in the DIVX player.
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.