mp3 ?

2 views
Skip to first unread message

Efflam

unread,
Feb 22, 2011, 5:33:43 AM2/22/11
to reops
Hi !
Can Reops plays mp3 ?

I tried this :
<mediaElement>
<id>audioguide</id>
<mimeType>audio/mpeg</mimeType>
<streamType>recorded</streamType>
<deliveryType>progressive</deliveryType>
<media url="{path to my mp3 file}" />
</mediaElement>

but i got this error :
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou
à la méthode d'une référence d'objet nul.
at REOPS/_initMediaElement()[REOPS.as:329]

In fact _mediaElement is null ...

Thx

turbidity

unread,
Feb 22, 2011, 11:02:29 AM2/22/11
to reops
Yes,

It can play MP3. We have run into issues with the MIME type causing
confusion, especially if the audio file doesn't match it exactly. If
you remove the MIME type, OSMF will figure out what type of file it
is. So try removing the MIME type and see if that works.

Nils

Efflam

unread,
Feb 22, 2011, 11:51:59 AM2/22/11
to re...@googlegroups.com, turbidity
Ok, I'll try.
thank you !

2011/2/22 turbidity <nils.th...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "reops" group.
To post to this group, send email to re...@googlegroups.com.
To unsubscribe from this group, send email to reops+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reops?hl=en.


Efflam

unread,
Feb 22, 2011, 12:32:45 PM2/22/11
to re...@googlegroups.com, turbidity
Hi,
in fact, I met another problem. My mp3 is synchronized with a flv via a ParallelElement. But I need to be able to mute the mp3 only.
I have to use a ProxyElement. I had looked a little in REOPS code and decide to rebuilt an new player directly based on OSMF.
REOPS is a very good player but maybe my needs were too much specific this time.
Let me know if I'm wrong and if REOPS can handle that.
thank you.

2011/2/22 Efflam <he...@efflam.com>

turbidity

unread,
Feb 22, 2011, 12:53:04 PM2/22/11
to reops
Unfortunately REOPS doesn't support muting one element and not another
out of the box. You could extend REOPS to add this functionality in,
though. I'm not sure what the process would be, but you could listen
for your user muting the MP3, then drill down into the media element
and access perhaps an AudioTrait to directly mute that element and not
the other.

Nils

On Feb 22, 10:32 am, Efflam <he...@efflam.com> wrote:
> Hi,
> in fact, I met another problem. My mp3 is synchronized with a flv via a
> ParallelElement. But I need to be able to mute the mp3 only.http://forums.adobe.com/message/2794614
>  <http://forums.adobe.com/message/2794614>I have to use a ProxyElement. I
> had looked a little in REOPS code and decide to rebuilt an new player
> directly based on OSMF.
> REOPS is a very good player but maybe my needs were too much specific this
> time.
> Let me know if I'm wrong and if REOPS can handle that.
> thank you.
>
> 2011/2/22 Efflam <he...@efflam.com>
>
>
>
>
>
>
>
> > Ok, I'll try.
> > thank you !
>
> > 2011/2/22 turbidity <nils.thingv...@gmail.com>

Efflam

unread,
Feb 22, 2011, 1:25:39 PM2/22/11
to re...@googlegroups.com, turbidity
Yes I've done something like in my new player.

I keep a reference to the audioElement :
_audioElement:ProxyElement = new AudioGuideProxyElement(new AudioElement(audioResource));

and when the user clicks the audio guide button :
private function _onAudioGuideClick(e:MouseEvent):void 
{
_audioGuideEnabled = !_audioGuideEnabled;
var audioTrait:AudioTrait = _audioGuideElement.proxiedElement.getTrait(MediaTraitType.AUDIO) as AudioTrait;
audioTrait.muted = !_audioGuideEnabled;
}





2011/2/22 turbidity <nils.th...@gmail.com>
Reply all
Reply to author
Forward
0 new messages