Author Topic: Media template for dailymotion - no file extension problem  (Read 4605 times)

0 Members and 1 Guest are viewing this topic.

Offline didoman

  • Newbie
  • *
  • Posts: 32
    • View Profile
Media template for dailymotion - no file extension problem
« on: April 15, 2011, 08:32:04 AM »
I would like to embed Dailymotion videos using the media template method.

I have created a new media templete and called it /templates/default/media/dmt.html
I have put in the embed code that will play the dailymotion video

<!-- Template file for DailyMotion -->
<object width="425" height="355" />
<param name="movie" value="{media_src}"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" src="{media_src}" width="425" height="355" allowfullscreen="true" allowscriptaccess="always">
</embed>
</object>

My problem is when I add the "media_src" when adding a new image eg. http://www.dailymotion.com/swf/video/xhwuvu.dmt
It does not work, because Dailymotion does not need the file extension. Example .dmt
It only works if the file is like http://www.dailymotion.com/swf/video/xhwuvu --- without the .dmt file extension at the end.

is there a way to add new media that doesn't need a file extension?

Offline didoman

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Media template for dailymotion - no file extension problem
« Reply #1 on: April 21, 2011, 06:12:39 AM »
anyone know a way?

Rembrandt

  • Guest
Re: Media template for dailymotion - no file extension problem
« Reply #2 on: April 21, 2011, 06:47:18 AM »
Hi!
i think there is a simple *swf video.

mfg Andi

Offline Warrior

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Lawrence Family History
Re: Media template for dailymotion - no file extension problem
« Reply #3 on: April 21, 2011, 09:41:28 PM »
Maybe this will help... sounds like a similar situation.

http://www.4homepages.de/forum/index.php?topic=24054.0

(in fact, dailymotion is one of the listed formats!)