News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

help with an aray

Started by nay27uk, November 02, 2008, 10:04:09 AM

Previous topic - Next topic

nay27uk

hi im new to php and do not even consider myself to be even somwhat clued up.
what i would like to know is from the bellow pices of code what yould i need to put in the arays to play the asociated file type


array(
  'id' => 'local_wmv',
  'plugin' => 'divx',
  'embed-pattern' => '({local}[a-z0-9/_ &;%-.]+.wmv)',
  'embed-movie' => '$2',
  'embed-width' => '500',
  'embed-height' => '360',
  'embed-nolink' => false,
),


As you can see the file type is .wmv but the plugin is divx, now i know divx will not play .wmv so it needs to be windows media player. do i just alter  'plugin' => 'divx', to  'plugin' => 'windows media player', what would be the corect term to use so it opens in media player.
I also need this for quicktime

nay27uk

ok i worked that out but how would i stop autoplay

[SiNaN]

Never seen such a code in SMF before. Is this a mod?
Former SMF Core Developer | My Mods | SimplePortal

nay27uk

yeah its the avec mod auto embed thingy but the bloke that made the mod has left smf and the forum and its got bugs im trying to fix

[SiNaN]

Unfortunately I've never used that mod, so won't be able to help you. Hope someone else familiar with it sees this topic.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: