Parallel

8 views
Skip to first unread message

Efflam

unread,
Feb 21, 2011, 5:46:46 AM2/21/11
to reops
Hi,
I try to make an accessible player. So I have to play a mp3 audio-
guide synchronized with the video.
Can I use the parallel node to do that ? In this case, where can I
find some doc about that ?
Thx!
Efflam

Efflam

unread,
Feb 21, 2011, 12:12:04 PM2/21/11
to re...@googlegroups.com, turbidity
I tried to build my XML by following the sequence example. But that didn't work. I looked at the MediaElementConfigParser class to see if I had made something wrong writting the XML. It seems that the parseParallelElement method never parse mediaElements nodes.
I've just made some changes and i have now my two media playing in the same time
public function parseParallelElement( parallelXML:XML ):ParallelElement
        {
           
            var parallelElement:ParallelElement = new ParallelElement();
            var len:int = parallelXML.children().length(); // <--- add "()"

            for( var i:int = 0; i < len; i++ )
            {
                var child:XML = parallelXML.children()[i]; // i instead of 0
                if( child.name == "parallel" || child.name() == "sequence" )
                {
                    parallelElement.addChild( _parseChildren( child as XMLList ) );   
                }
                else  // <-- add the else statement
                {
                    parallelElement.addChild( parseMediaElement( child ) );   
                }

               
            }
            return parallelElement;
        }

I will see if i have some sync problems.
Thank you for your anwser (and excuse my english :S)




2011/2/21 turbidity <nils.th...@gmail.com>
The parallel element would be a possible way to do this, but it could
be tricky to keep the two media synched, especially if the user is
seeking around the video. Parallels are not an area I have much
experience with, but you should be able to take the config for REOPS
that has a serial element and change the node to be a parallel.

I did a quick search of the OSMF forums, and it sounds like people are
having synch issues with parallel audio/video. You might search there
(http://goo.gl/m0J2N) to see if you can find any suggestions.

Nils
--
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.


turbidity

unread,
Feb 21, 2011, 11:29:28 AM2/21/11
to reops
The parallel element would be a possible way to do this, but it could
be tricky to keep the two media synched, especially if the user is
seeking around the video. Parallels are not an area I have much
experience with, but you should be able to take the config for REOPS
that has a serial element and change the node to be a parallel.

I did a quick search of the OSMF forums, and it sounds like people are
having synch issues with parallel audio/video. You might search there
(http://goo.gl/m0J2N) to see if you can find any suggestions.

Nils

On Feb 21, 3:46 am, Efflam <efflam.dan...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages