Problem stopping flv file

Hi all,
I'm using a MediaPlayer instance and a VideoElement to load and display (play | stop | pause) a video. Each time I try to "stop" the video, it doesn't go back to beginning of the video. I checked the video's metadata and it has a proper duration property.
I wanted to know if any of you had seen this issue before and if there was a workaround.
Thanks in advance,
Julien

Calling MediaPlayer.stop() should cause the media to auto-rewind, unless the media isn't seekable.  If this isn't the case for you (sounds like it isn't), can you post a small, runnable sample with source to demonstrate the problem?  Thanks!

Similar Messages

  • How to play and stop flv files through NetStream in AIR Application

    Hi,
    In a folder I have 'n' number of flv file, which are DRM protected. when the user try to play those files for the first time through my AIR application, it will prompt for username and password and gets the license/voucher from the server and store it in AIR Runtime. so that from the next time onwords it won't prompt for username and password as because it already has license/voucher.
         My problem is assume there are 500 files, such that for each file the user has to enter his credentials[username and password]. which is a stupid thing. I want to avoid this process by implementing this process internally/programetically. By playing/accessing each file through netstream from the folder and setDRMAuthenticationCredentials for that file and stop the stream. Here I am able to play each file but I am failed to stop it. I mean to say I will get the license for all the flv files internally[while loading my AIR application], such that user should not be interrupted for his credentials for each file.He should play as if he is accessing/playing a non-DRM protected file. I will be very thank full if any one help me out in this.
    public function init():void {
          connectStream();
          getLicenseForAllFiles();
          videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE, drmAuthenticateEventHandler);
          ppt_videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE, ppt_drmAuthenticateEventHandler);
            private function getFilesRecursive(rootFolderPath:String):void {
                //the current folder object
                var currentFolder:File = new File(rootFolderPath);
                //the current folder's file listing
                var files:Array = currentFolder.getDirectoryListing();
                //iterate and put files in the result and process the sub folders recursively
                for (var f = 0; f < files.length; f++) {
                    if (files[f].isDirectory) {
                        if (files[f].name !="." && files[f].name !="..") {
                            //it's a directory
                            getFilesRecursive(files[f].nativePath);
                    } else {
                        //it's a file
                        fileList.push(files[f].nativePath);
                        //Alert.show(""+files[0].nativePath);
                        var fileName:String = files[f].name;
                        if(fileName.indexOf("PPT_")!=-1){
                            ppt_videoStream.play(files[f].nativePath);
                            ppt_videoStream.pause();
                        videoStream.play(files[f].nativePath);
                        videoStream.pause();
                private function connectStream():void {
                    videoConnection = new NetConnection();
                    videoConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    videoConnection.connect(null);
                    ppt_videoConnection = new NetConnection();
                    ppt_videoConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    ppt_videoConnection.connect(null);
                    videoStream = new NetStream(videoConnection);
                    videoStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    video.attachNetStream(videoStream);
                    ppt_videoStream = new NetStream(ppt_videoConnection);
                    ppt_videoStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    ppt_video.attachNetStream(ppt_videoStream);
             private function netStatusHandler(event:NetStatusEvent):void {
                switch (event.info.code) {
                    case "NetConnection.Connect.Success":
                        //connectStream();
                        break;
                    case "NetStream.Play.StreamNotFound":
                        trace("Unable to locate video: " + videoURL);
                        break;
                private function drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void {
                    videoStream.setDRMAuthenticationCredentials("adobe", "adobe", "drm");
                private function ppt_drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void {
                    ppt_videoStream.setDRMAuthenticationCredentials("adobe", "adobe", "drm");
    Thanks
    Sudheer Puppala

    Hi,
    Please go through following links..this will help you:
    http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zin c-or-air-flex-or-flash/
    http://forums.adobe.com/thread/753959
    http://blog.unthinkmedia.com/2008/09/05/exporting-pdfs-in-flex-using-alivepdf/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • E5: black screen problem with FLV file

     give solution.....when i play FLV there is option for  pause, stop but black screen.what may the problem .other file plays normal .help me plzzzz
    Solved!
    Go to Solution.

    The only solution is likely to get a newer phone.  The Flash player on your phone (and mine) is based on Flash 8, which is several years out of date.  Also note it's called Flash Lite, which to me suggests that certain features have been removed.  Your FLV file must be trying to do something the player doesn't support.

  • Problem inserting flv file in template generated page

    http://www.jdcdemo.com/blf8/video.html
    I am attempting to add a page with flv videos of a client's
    tv commercials. I want to use the template I have used to create
    most of the other pages on the site. It works well and I have had
    no problems. When I attempt to add the flv file to the page, I get
    this error: "Making this change would require changing code that is
    locked by a template or translator. The change will be discarded."
    Just for grins, I tried dragging a jpeg onto the page and
    that worked fine with no error. I use the Lynda dot com tutorials
    and as far as I can tell, I am following the correct procedure.
    Being now at my wits end, I will appreciate comments from those who
    know much more than I.
    TIA,
    Joie

    The problem is that when you are putting the flv in a child,
    when your
    dialog box pops up, uncheck "Prompt useres to download Flash
    Player if
    neccasary"
    That should do it.
    Gary
    "camelbreath" <[email protected]> wrote in message
    news:gd023l$2dn$[email protected]..
    >
    http://www.jdcdemo.com/blf8/video.html
    > I am attempting to add a page with flv videos of a
    client's tv
    > commercials. I
    > want to use the template I have used to create most of
    the other pages on
    > the
    > site. It works well and I have had no problems. When I
    attempt to add the
    > flv
    > file to the page, I get this error: "Making this change
    would require
    > changing
    > code that is locked by a template or translator. The
    change will be
    > discarded."
    >
    > Just for grins, I tried dragging a jpeg onto the page
    and that worked fine
    > with no error. I use the Lynda dot com tutorials and as
    far as I can tell,
    > I am
    > following the correct procedure. Being now at my wits
    end, I will
    > appreciate
    > comments from those who know much more than I.
    > TIA,
    > Joie
    >
    >
    >
    >

  • Problem with FLV file

    Hi All
    I have an FLV file having video codec svc1 (screen video codec). When I try to playback this file in my media player developed using Flex , it does not play well and jumps regularly after few seconds. For example if I start play this file, playing first few seconds it will jump to 1min., then playing  few seconds of video, it will jump to an interval between 2 to 3 min....like that.This happens continously till the file ends.
    Other files are playing well in this player.
    This file plays smoothly (without any jump) in other media players like VLC etc.
    Plz help as I have searched a lot on internet for the solution and have made all efforts in creation of this file and making corrections in my media player but nothing work.Plz provide a solution.
    Thanks

    The only solution is likely to get a newer phone.  The Flash player on your phone (and mine) is based on Flash 8, which is several years out of date.  Also note it's called Flash Lite, which to me suggests that certain features have been removed.  Your FLV file must be trying to do something the player doesn't support.

  • I cannot encode .flv files from CS4 using AME

    I’m having a problem encoding .flv files from Adobe Media Encoder CS4. All the jobs in the encoder encode for a period of time then stop about a ¼ of the way through the file.
    I am encoding from a Matrox preset project at 1280x720p 59.94fps. Some clips have a luma corrector effect on them. After rendering, some clips will come up completely black on the timeline so I have decided to leave them unrendered. I don’t know if that is related to why I cannot encode a .flv file or not.
    The settings I’m using for the .flv are:
    .flv file, 720p, CBR, 3000kbps.
    What’s strange is that I have encoded other .flv files from these same timelines but all have been smaller in screen resolution. That is the only difference. I can also encode .flv files from other projects without issue.
    I don’t know why this is not working?  Who can Help?!!!

    OK, so if you do a quick SAVE AS to a new project, and remove the luma corrector, can you encode all the way through?
    I have no experience with Matrox so I won't "go there".
    MP

  • Trouble viewing .flv files in cs3

    Hi everyone,
    I am just starting out using dreamweaver. I am trying to follow a tutorial on how to use it and am running a problem displaying .flv files. When I click on the file directly in the files panel i get an error that states "cant find a valid editor for this file extension". Does any one know how to correct this issue. I am using dreamweaver cs3 on  mac os x.

    CR2 files are raw Canon files. If you can open them, it means your OK as far as the installation of the proper version of the ACR Plugin.
    If you can't see the thumbnails of the TIFFs but you can open the files themselves in Photoshop by double-clicking on them, then all you may have to do is Purge the Cache for the offending folder(s) through the Tools menu of Bridge Tools > Cache > Purge cache for folder "name_of_folder".
    Note that I am flying blind here as you haven't provided any sensible, meaningful and detailed information about your setup.
    If you gave some sensible, complete and detailed information, someone may be able to help you, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, etc.
    There are no clairvoyants or mind readers here.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • FLV files exported with Alpha have extra frames after end of sequence.

    Sequence is 588w x 486h Animation+ codec, talent chroma-key (Conduit) on track 2 with no background on track 1. Flash 8 is installed. When I export using the QuickTime Flash export component using On2 VP6 with Alpha Channel settings, the resulting FLV has additional frames up to around 20 seconds for a 2 minute sequence. These additional frames are a freeze of the last frame in the sequence. I tried several different sequence codecs/Spark codec with same result. Even setting an In and Out on the sequence does not help.
    One symptom I have noticed, is that when I click in the timeline beyond the last frame of video, I still see the last frame of video in the Canvas (But not in the BlackMagic video card output). Normally I would see black or checkerboard.
    Anybody heard of any conflicts with the Flash Export component dircect from the timeline or via a batch export.
    Exporting an Item Settings QuickTime (Animation+) files and then using Flash Encoder does work, but I am trying to avoid the extra steps. (250 sequences to export)
    I suspect I have an issue with the export component, but I wanted to see if anybody else has experiences this before I reinstall FCP and Flash software.

    I have found what I believe the cause of the extra frames issue here, so I thought I would post it for others.
    This appears to be caused by a problem between the Adobe FLV Export Component and QuickTime 7.2.  Adobe's website says that Flash encoder has issues with non 44.1 kHz audio.  Changing the sequence settings to 44.1 and rendering the audio solves the problem and FLV files exported from the timeline or via batch export are the correct length.
    Exporting FLV files using either Spark or On2 VP6 with alpha, used to be a breeze with awesome results.  I do this all day to support our Flash developers.  The audio issue is easy to work around, but I also get random errors in the alpha channel of these movies now.  These single frame errors appear as black flashes.  There is nothing in the timeline that would appear to cause this.  Re-exporting sometimes fixes it, or simply moves the error somewhere else in the timeline.    This may also be related to QuickTime 7.2, but I don't know.
    If anyone has experience these flashes in the alpha channel of exported FLV files please let me know how you resolved it.  This is a major productivity killer.
    Thanks....

  • Inserting a FLV file into CS5.5 project

    Hello,
    If anybody is able to help me with my question I would be forever grateful.
    1. I use CS5.5 and I have published a captivate demonstration as a MP4 - then converted it to a FLV file using Adobe Media Encoder. 
    2. I have then inserted the FLV file into another captivate CS5.5 project and published the file as a flash file.
    Problem - The FLV file plays when previewing in web browser, and also plays on a public file location.  Problem occurs when I load the published file onto a web server I get a connection error when I get to the slide with the FLV file.
    I am really stumped with this one.  Has anybody any ideas?
    Thanks
    ali

    Hi Rod,
    Attached is a screen dump.  I can understand why when I publish the final flash version to a web server that it does not recognise the path of the FLV file as it is on my local drive.  However when I attempt to place the file name of the file sitting on the web server I get another error message (Refer to screen dump 2).  Obviously I am missing something
    I am missing here.  Thanks ali

  • Starting and Stopping FMLE from command line yields corrupt .flv files

    I am using FMLE to record and live stream TV content. In order to this I am remotely calling FMLEcmd in order to start and stop encoding processes. The problem that I am running in to is that the .flv files generated are corrupt. The odd thing is that if I use the exact same profile XML from the GUI, then the encoding process works just fine and results appear as intended.
    Here is the way my workflow works:
    I start the process by calling
    FMLEcmd /p C:\lighttpd\htdocs\xml\default.xml /l C:\lighttpd\htdocs\logs\log.txt
    then at the conclusion of the recording I call
    FMLEcmd /s "C:\lighttpd\htdocs\files\default.flv"
    When I attempt to open the files using FFmpeg I get a codec error saying that no codecs were detected. When I attempt to open the files in VLC I get a error saying that the media types are "Undf". When I attempt to open or modify the files with flvtool2 I get an end-of-file error. My guess is that my stop command is incorrect and somehow abruptly stopping the stream, but I don't know another way to stop the stream. Do I need to specify a specific stream duration in the XML and make sure to call the stop command *after* the duration has been reached? What would cause this codec corruption when the same profile works properly from the GUI?
    Here is the profile I am attempting to use.
    <?xml version="1.0" encoding="UTF-16"?>
    <flashmedialiveencoder_profile>
        <preset>
            <name>Custom</name>
            <description></description>
        </preset>
        <capture>
            <video>
            <device>Osprey-440 Video Device 1A</device>
            <crossbar_input>0</crossbar_input>
            <frame_rate>20.00</frame_rate>
            <size>
                <width>640</width>
                <height>480</height>
            </size>
            </video>
            <audio>
            <device>SigmaTel Audio</device>
            <crossbar_input>0</crossbar_input>
            <sample_rate>22050</sample_rate>
            <channels>1</channels>
            <input_volume>75</input_volume>
            </audio>
        </capture>
        <process>
            <video>
            <preserve_aspect></preserve_aspect>
            <deinterlace></deinterlace>
            </video>
        </process>
        <encode>
            <video>
            <format>VP6</format>
            <datarate>650;</datarate>
            <outputsize>640x480;</outputsize>
            <advanced>
                <keyframe_frequency>5 Seconds</keyframe_frequency>
                <quality>Best Quality - Lower Framerate</quality>
                <noise_reduction>None</noise_reduction>
                <datarate_window>Medium</datarate_window>
                <cpu_usage>Dedicated</cpu_usage>
            </advanced>
            <autoadjust>
                <enable>false</enable>
                <maxbuffersize>1</maxbuffersize>
                <dropframes>
                <enable>false</enable>
                </dropframes>
                <degradequality>
                <enable>false</enable>
                <minvideobitrate></minvideobitrate>
                <preservepfq>false</preservepfq>
                </degradequality>
            </autoadjust>
            </video>
            <audio>
            <format>MP3</format>
            <datarate>48</datarate>
            </audio>
        </encode>
        <restartinterval>
            <days></days>
            <hours></hours>
            <minutes></minutes>
        </restartinterval>
        <reconnectinterval>
            <attempts></attempts>
            <interval></interval>
        </reconnectinterval>
        <output>
            <file>
            <limitbysize>
                <enable>false</enable>
                <size>10</size>
            </limitbysize>
            <limitbyduration>
                <enable>false</enable>
                <hours>0</hours>
                <minutes>60</minutes>
            </limitbyduration>
            <path>C:\lighttpd\htdocs\files\default.flv</path>
            </file>
        </output>
        <metadata>
            <entry>
            <key>author</key>
            <value></value>
            </entry>
            <entry>
            <key>copyright</key>
            <value></value>
            </entry>
            <entry>
            <key>description</key>
            <value></value>
            </entry>
            <entry>
            <key>keywords</key>
            <value></value>
            </entry>
            <entry>
            <key>rating</key>
            <value></value>
            </entry>
            <entry>
            <key>title</key>
            <value></value>
            </entry>
        </metadata>
        <preview>
            <video>
            <input>
                <zoom>100%</zoom>
            </input>
            </video>
            <audio></audio>
        </preview>
        <log>
            <level>100</level>
            <directory>C:\Documents and Settings\Administrator\My Documents\My Videos</directory>
        </log>
    </flashmedialiveencoder_profile>

    If issue of corrupt file after cmd line not in GUI mode. Are you using some automation to copy/paste output flv to someother location?
    AFAIK, after placing stop command, FMLE took some time to write proper EOF in FLV. wait ~10 sec for FMLE to complete file writing process and than play in FLV PLayer.
    I tried manually with steps you mentioned and it's working fine for me.I playerd file in Applian Flash PLayer. "http://www.applian.com/flvplayer/"

  • Problem Inserting Flash Video (flv) File into Site

    Hi -
    I'm having problems inserting a Flash Video (.flv) into my webpage.  I'm using Dreamweaver 8.
    I'm going to: Insert -  Media - Flash Video, browsing to the .flv file that's in my local site folder, entering the settings.
    In Dreamweaver, there's a big gray box w/ flv icon in the middle.  But when I go to preview, the screen is empty, no video.
    I'm creating the .flv file w/ Screen Mimic (a screen capture recording software).  This could be a problem w/ the Screen Mimic file because I have no problem inserting other flv files supplied to me by others.  This is the first video that I've made that I'm trying to insert. 
    If anyone has any suggestions, I would be most appreciative.
    thanks!
    Stacey Stanley

    This could be a problem w/ the Screen Mimic file because I have no problem inserting other flv files supplied to me by others.
    That would my guess too. Here are few other things to consider:
    1)  Does your FLV filename contain any spaces or special characters?  If so, rename it without spaces as these can cause problems.
    2)  Output Screen Mimic project to a QuickTime MOV file.  Then use Adobe Flash Encoder to convert the MOV to FLV.
    3)  When you tested your page, was it a live page on remote server?  Did you upload the page and all supporting files to server (Scripts folder, SWF, FLV...)?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Question about stopping an flv file

    I have created a .flv file from a wmv file using Flash Video
    Encoder
    CS3. I didn't see a way in the encoder settings nor in
    Dreamweaver CS3
    to stop the video on the last frame. How could I accomplish
    that?
    Thanks,
    David

    Settings/cue points.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development

  • Problems with embedding .flv files in DW CS4....

    I inserted an .flv file into my DW CS4 html page. I previewed it in my browser, and it worked for a little bit, but now it's not working in any browser, I'm not sure what happened. I included a screen shot in the attachments of what was happening in all the browsers.
    Thanks for any help,
    Thank you,
    Aza

    Not sure if that was meant for me
    You can tell who was the intended recipient by looking at the header of the message -
    6. Sep 10, 2010 6:50 AM in response to: FordGuy48 <<----
    Re: Problems with embedding .flv files in DW CS4....
    A link to the page would help us diagnose your problem.
    Safari tells me that this file -
    FLVPlayer_Progressive.swf
    is not where you have told the page to expect it.  Did you upload it?

  • WebCam Uploaded FLV File Problems

    Hello,
    I have a Flash project in which the user records a video with
    their webcam in Flash. The video is transmitted to Flash
    Communications Server as an FLV file, and I leave it there to be
    played later.
    1. Because I have the quality set high (90), the file is huge
    (~80 KBytes/sec). Is there any way that I can compress the video
    either client-side while it uploads or server-side when it gets
    there?
    2. One idea that I had was to transcode the video server-side
    to another format in hopes of improving the compression.
    Unfortunately, none of the transcoding or compression engines
    recognize the FLV as a valid file. I tried On2, ffmpeg, Riva,
    Sorenson, etc. The FLV does play ok and seems valid, but these
    tools fail when trying to convert it.
    Thanks very much for any help.

    To decrease the bitrate, see the docs for camera.setMode,
    camera.setRate, and camera.setQuality.
    Transcoding flv files created by FMS is a tough one. The
    problem is that the audio is encoded with Nellymoser's Asao codec,
    with is closed and proprietary. At the moment, the only way to
    leagally obtain the codec is to buy Nellymoser's conversion
    utility, whick comes with a hefty price tag.
    See this site for links to flv to XXX conversion discussions:
    http://nellymoser.codec.googlepages.com/

  • I need to stop the sound in an .flv file I'm streaming

    Is there any param value... or anything else I can use to stop the sound in an .flv file I'm streaming from the server?
    I do not have the original video that the flv was created with... otherwise this would be a no brainer.
    I want to keep the video up but take away the sound.  Thanks much!

    AFAIK there's nothing in the server side API that would support that. You can, on the client side use NetStream.receiveAudio(false), but that won't prevent the server from serving audio... it just stops a particular client from subscribing to the audio
    Alternately, you can use FFMPEG to strip the audio channels out of the FLV.

Maybe you are looking for

  • How do i get mac app store for my new macbook air

    How do i get mac app store?

  • Payment method decliened

    Hello all i use iphone 4s Recently my debit card(visa) was expired and i got new card from the bank and now when i am updating it in my phone i get error like mentioned in the subject i tried to change the card but still same problem i would be very

  • Hp office jet pro 8610

    How to get the printer to scan from the top several pages at the same time?

  • Subscriber Message Import Cobras

    Im having an issue with a few accounts.  I have about 800-900 accounts to import.  Everything is going fine, but a few are failing on message imports.  Im not sure if its because im doing too many at once or what.   I can select 3 for testing and the

  • Dbora auto start and stop

    Hi all: This is on HP-UX 11.11 .I have created the dbora script under /sbin/init.d/ and linked as below. /sbin/rc2.d/S900oracle -> /sbin/init.d/dbora /sbin/rc1.d/K100oracle -> /sbin/init.d/dbora I tested the script manually as ./dbora start and ./dbo