Separating wma and wmv formats

EL34

  • Posts: 16
Separating wma and wmv formats
« on June 15th, 2011, 02:22 PM »
I mention this only because I know Aeva is built into Wedge
This is a feature request, if the authors think it would be useful to others also

I use wma audio files on my web sites to stream local files.
Usually these are recording of meetings, no music, just voices.
wma files work better for me than other formats like mp3.

Anywho, I noticed that Aeva creates a large video player for wma and wmv files
I don't need the upper video area for audio only files.

I edited the aeva 1.4w source file so that it treats each file type separately.
I have a slim player for wma audio files and a full sized player for wmv video files.
The meeting recordings may have 10 or more audio files in one post and so a slim player keeps the post size much smaller

This screen shot shows the difference between wma and wmv players.



This is the code that I altered to create different players for each file type

Code: [Select]
// This is the stock Aeva code for wma and wmv files
array(
'id' => 'local_wmp',
'plugin' => 'wmp',
'pattern' => '({local}[\w/ &;%\.-]+\.wm[va])(?=")',
'movie' => '$2',
'size' => array(500, 360),
'show-link' => true,
),

// This is my code to separate the two file types
array(
'id' => 'local_wmv',
'plugin' => 'wmp',
'pattern' => '({local}[\w/ &;%\.-]+\.wmv)(?=")',
'movie' => '$2',
'size' => array(500, 360),
'show-link' => true,
),
array(
'id' => 'local_wma',
'plugin' => 'wmp',
'pattern' => '({local}[\w/ &;%\.-]+\.wma)(?=")',
'movie' => '$2',
'size' => array(300, 30),
'show-link' => true,
),


Anywho, just throwing out some info in case anyone finds it useful
Thanks
Doug

Nao

  • Dadman with a boy
  • Posts: 16,079

EL34

  • Posts: 16
Re: Separating wma and wmv formats
« Reply #2, on June 15th, 2011, 03:55 PM »
Hmm, not on the two forums I have Aeva lite installed on.

Both file types are parsed out using the same code and player
This is the stock pattern that is used to parse both file types
Code: [Select]
'pattern' => '({local}[\w/ &;%\.-]+\.wm[va])(?=")',

I just uninstalled aeva lite 7 and smf media this morning on one forum and installed Aeva media 1.4w
Avea 1.4w plays wma's in a full sized player and uses the same code as lite did.

Just thought that treating the two files types differently would be something that others find usefull also.

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Separating wma and wmv formats
« Reply #3, on June 15th, 2011, 05:56 PM »
If you look closely-- the MP3 player has a large area as well, being mainly used to show the icon and a spectrum analyzer ;)

EL34

  • Posts: 16
Re: Separating wma and wmv formats
« Reply #4, on June 15th, 2011, 06:09 PM »
Hmm, the .mp3 player in 1.4w on my site looks like the screen shot below
I prefer the slim players for audio

Mainly because the meetings I record have many segments and so there ends up being 10 or more media players in one post.

📎 mp3player.gif - 6.69 kB, 447x62, viewed 271 times.


Nao

  • Dadman with a boy
  • Posts: 16,079

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Separating wma and wmv formats
« Reply #6, on June 15th, 2011, 07:04 PM »
It might be nice to be able to offer both small and large+spectrum visualiser options through the media bbcode.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

EL34

  • Posts: 16
Re: Separating wma and wmv formats
« Reply #7, on June 15th, 2011, 07:05 PM »
Yes, the wma and wmv files are embedded players.
I am streaming the files locally on my servers
All I am doing is making it so each type of file can have a different player style

I have set the wma audio files to use a player this size
'size' => array(300, 30),

I have set the wmv video files to this size
'size' => array(500, 360),

I like the slim player for audio, no need to have the upper video screen

As it is now, wma and wmp files are parsed and handled the exact same way.

EDIT: Here is a forum link if you want to see a testing post with the players
http://www.transylvanianow.com/forum/index.php?topic=177.0

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Separating wma and wmv formats
« Reply #8, on June 15th, 2011, 07:12 PM »
Yeah, I see where you're coming from - which is why I'm suggesting making it be optional for the player type.

EL34

  • Posts: 16
Re: Separating wma and wmv formats
« Reply #9, on June 15th, 2011, 07:14 PM »
Cool,
Wasn't sure if anyone else would like this option or not

But when I have 10 audio files in one post, the slim players keep the post size small.

10 full sized video players just to play audio files is a bit much.

Nao

  • Dadman with a boy
  • Posts: 16,079

EL34

  • Posts: 16
Re: Separating wma and wmv formats
« Reply #11, on June 15th, 2011, 08:33 PM »
Thanks, yes I have done that.

The multiple wma audio files I post are of meetings and someone may only want to play file #4

Most people I deal with have no idea how to operate their computers, much less a playlist.  :lol: