Author Topic: Windows Media Template?  (Read 13422 times)

0 Members and 1 Guest are viewing this topic.

Offline boxer101

  • Newbie
  • *
  • Posts: 14
    • View Profile
Windows Media Template?
« on: November 07, 2002, 05:21:40 AM »
Does anyone know if windows media .wmv files can be uploaded and viewed?  If so what is the format of the template?

This is the plugin I use on my web pages...

<embed id="VideoVIDEO" name="VideoVIDEO" pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp" src="http://www.MYSITE.com/hcblive.asx" width="360" height="270" type="application/x-mplayer2" EnableFullScreenControls="1" AUTOREWIND="0" SHOWSTATUSBAR="1" AnimationatStart="false" SHOWDISPLAY="0" AUTOSIZE="0" ENABLECONTEXTMENU="1" SHOWCONTROLS="0" PLAYCOUNT="0"> </p>
 
Thanks!

Offline sprokop

  • Newbie
  • *
  • Posts: 25
    • View Profile
Windows Media Template?
« Reply #1 on: November 07, 2002, 05:35:08 AM »
Try this:

1)Add the .wmv file extensions in the admin panel under the section allowed media type.

2)create a new media template under >templates>default>media>
and call it wmv.html

3)In that template put your embed tag as such:

<embed id="VideoVIDEO" name="VideoVIDEO" pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp" src="{media_src}" width="360" height="270" type="application/x-mplayer2" EnableFullScreenControls="1" AUTOREWIND="0" SHOWSTATUSBAR="1" AnimationatStart="false" SHOWDISPLAY="0" AUTOSIZE="0" ENABLECONTEXTMENU="1" SHOWCONTROLS="0" PLAYCOUNT="0"> <br />

4)upload the media tou your server or call it from a fully qualified URL, both methods are allowed within the admin panel.

5) Test



Keep in mind that the directory path I gave you in step 2 is only if you are using the regular set of templates! if you use something else please adjust that path


Also I have NOT tried this myself, but by looking at how it is done for the other media types (movies in particular) it makes sense to do it like that.


-----
Please back up!! :wink:
-----

Good Luck
Sam
--
   __O
 _-\<,_     Why drive when you can bike?
(_)/ (_)

Offline boxer101

  • Newbie
  • *
  • Posts: 14
    • View Profile
Thanks Sam
« Reply #2 on: November 07, 2002, 06:47:01 AM »
I tried so many different ways and keep geting the same error message...

"Invalid file type (wmv, video/x-ms-wmv)"

I added wmv in the control panel with a coma and no space and uploaded a wmv.html  I also changed the permissions to rw like the other html templates

I'm lost!  hahaha!

Any other suggestions?

Offline sprokop

  • Newbie
  • *
  • Posts: 25
    • View Profile
Windows Media Template?
« Reply #3 on: November 07, 2002, 07:07:40 AM »
It may not be a real fix but rather a quick fix, but can you re-encode these files using another format? one that we now is supported? mpg?

Sorry maybe somebody else knows! or maybe it's just Microsoft/Linux probrlem?

Good Luck!
Sam
--
   __O
 _-\<,_     Why drive when you can bike?
(_)/ (_)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Windows Media Template?
« Reply #4 on: November 07, 2002, 09:58:32 PM »
In "includes/upload_definitions.php" add this line:

$mime_type_match['wmv'] = array("video/x-ms-wmv");

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline boxer101

  • Newbie
  • *
  • Posts: 14
    • View Profile
That worked but...
« Reply #5 on: November 08, 2002, 12:32:32 AM »
Thanks Jan that worked but now the thumbnail is an X.  I know I can upload a thumb myself bit is there any way to show a default thumb?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Windows Media Template?
« Reply #6 on: November 08, 2002, 10:11:23 AM »
Upload an default icon to the icon-directory in your template folder called wmv.gif

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline tootall

  • Pre-Newbie
  • Posts: 3
    • View Profile
    • http://www.tootall.net
Windows Media Template?
« Reply #7 on: January 24, 2003, 06:44:04 PM »
ok, i have all of this stuff changed but when i go to upload a wmv file, i get
Fatal error: Maximum execution time of 30 seconds exceeded in H:\hshome\tootallw\tootall.net\4images\admin\images.php on line 25

I've check images.php and there is nothing that i can see about a timeout, am i just blind or what?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Windows Media Template?
« Reply #8 on: January 24, 2003, 10:28:21 PM »
this is PHP settings, u can not change it. ask your host about it.
and u can run this script to see PHP configuration on your host:
Code: [Select]
<?php
phpinfo
();
?>
« Last Edit: March 14, 2005, 04:06:53 PM by Jan »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Michael_Jim

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Windows Media Template?
« Reply #9 on: March 14, 2005, 03:19:31 PM »
big thx it's working great.

Michael_Jim

Offline hotvins11

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Windows Media Template?
« Reply #10 on: March 18, 2005, 08:21:49 AM »
WMV script worked extremely well

thanks to all the team

my site http://dhost.info/hvg4u/content/