Avatar

Level 3

Hi guys:

Updated the code and tested the new application with the most recent swc.  I'm still having the same issue with seeking.  I made sure to clear my browser cache, and I know the code is running the updated version.  Do I have to record my archives again to get them to seek correctly?  This is my Playback Code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               xmlns:rtc="http://ns.adobe.com/rtc"
               xmlns:currentDir="*" applicationComplete="loadComplete()">
    <fx:Script>
        <![CDATA[
            [Bindable] var archiveId:String = "session";
            [Bindable] var roomURL:String = "URL";
           
            function loadComplete():void
            {
                var flashVars = this.loaderInfo.parameters;
                try
                {
                    if(flashVars.hasOwnProperty("room"))
                    {
                        roomURL = "URL" + flashVars.room;   
                    }
                    else
                    {
                        roomURL = "URL";   
                    }
                }
                catch(error:Error)
                {
                    teamLabel.text = "Error: Invalid Room Specified.";
                    roomURL = "URL";
                }
               
                try
                {
                    if(flashVars.hasOwnProperty("archiveId"))
                    {
                        archiveId = flashVars.archiveId;
                    }
                    else
                    {
                        archiveId = "session";   
                    }
                }
                catch(error:Error)
                {
                    teamLabel.text = "Error: Invalid archive specified.";
                    archiveId = "session";
                }
            }
           
            function sessionComplete():void
            {
                //playbackBar.subscribe();
            }
        ]]>
    </fx:Script>
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
        <rtc:PlaybackAuthenticator id="auth" />
    </fx:Declarations>
    <s:Label id="teamLabel" text="TEAM Video Playback 2" />
    <rtc:ConnectSessionContainer id="cSession" authenticator="{auth}" width="100%" height="100%"
                                 roomURL="{roomURL}"
                                 archiveID="{archiveId}" creationComplete="sessionComplete()">
        <mx:HBox top="10" right="10" left="10" bottom="10" verticalGap="6" horizontalAlign="center">
            <mx:VBox width="100%" height="100%">
                <rtc:WebCamera width="80%" height="80%"  />
                <rtc:AudioSubscriber />
                <s:HSlider width="80%" maximum="{cSession.archiveManager.totalTime}"
                           value="{cSession.archiveManager.currentTime}" id="slider"
                           change="{cSession.archiveManager.seek(slider.value)}" />
                <!-- <mx:Button id="seekButton" label="Seek to 50%" click="{cSession.archiveManager.seek(cSession.archiveManager.totalTime/2)}" /> -->
                <!-- <currentDir:PlaybackBar id="playbackBar" width="90%" height="200" /> -->
            </mx:VBox>
        </mx:HBox>
    </rtc:ConnectSessionContainer>
</s:Application>