Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-6022

AS3: Video doesn't play if contentPath is changed and VideoDisplay.play() is called.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • mx: Video
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Reproduction:
      1. Compile the bug file or following code & run.

      <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
      <mx:Script>
      function playVideo(url)

      { mediaPlayer.contentPath = url; mediaPlayer.play(); }

      </mx:Script>

      <mx:VideoDisplay id="mediaPlayer" autoSize="true" aspectRatio="true" contentPath="" autoPlay="false"/>

      <mx:HBox>
      <mx:TextInput id="url1_ti" text="rtmp://agilra02/videodisplay/ball.flv" width="250" />
      <mx:Button label="Play this Video" click="playVideo(url1_ti.text)"/>
      </mx:HBox>

      <mx:HBox>
      <mx:TextInput id="url2_ti" text="http://agilra02/streams/matrix-FLV-1-1.flv" width="250" />
      <mx:Button label="Play this Video" click="playVideo(url2_ti.text)"/>
      </mx:HBox>

      </mx:Application>

      2. Click on first "Play this Video" to play the video from the mentioned url.
      3. When video starts playing, Click on second "Play this Video" button.

      Actual Results: Video blinks (black) and freezes at current video frame.

      Expected Results: VideoDisplay should start playing the video from second url or current contentPath.

      Workaround:

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: