Flash Video - Probs with NetStream.onMetaData

So i have created a video player and have noticed something
about the onMetaData function. I have a path to the videos as a
relative path to my .swf file ( myPath = 'media/'; ) and when i
test my movie, the onMetaData function does not get called.
However, when everything is online, or being pulled from an
absolute path ( myPath = '
http://www.mydomain.com/media';
) it is called.
I was just curious as to why that is...?

ewon15,
> well i'm using actionscript 2.0 ... i have not had a
chance
> to dive into AS3.
No worries. :) It just makes a difference in regard to
whatever
snippets or samples would be helpful to you.
> i'm not sure what you mean when you ask me if there is
> metadata in my FLV...
When the FLV file is encoded, it may or may not have
additional
information -- the metadata -- embedded into it. MP3 files,
for example,
mainly contain audio recordings, but they have the capability
of also
containing metadata a such as copyright date, the recording
artist's name,
etc. If your FLV has no metadata, then the
NetStream.onMetaData event won't
be prompted to do anything.
> but the way i know the onMetaData method of the
NetStream
> class was not being dispatched was by the timer and
scrubber
> i set up...plus i put a trace in the method and it was
not outputting
> anything...
Sometimes it helps to trace more than just the value of a
given object.
It's possible, for example, that the trace() is indeed
putting content to
the Output panel, but maybe that content is an empty string.
> here's the gist of my code:
> [lots of code ...]
Aha. So your trace is "hello," which should certainly be
visible in the
Output panel -- provided the FLV file has metadata. That's
good. And
you're saying that everything works with absolute paths, but
not relative
paths? That makes me wonder if the relative path is hitting
the video file
at all. (Of course, it would presumably be obvious if not,
because you
wouldn't see the video at all.)
A quick glance at your code doesn't reveal to me anything
outright
wrong. Some of that code looks like it was suggested by one
of my blog
articles, but I can't be sure of that. (I was going to refer
you to my
blog, but I didn't want to send you on a wild goose chase, if
you'd already
come from there.)
My general approach, when I run into something baffling like
this, is to
isolate the problem area in a separate FLA, so I can study it
without the
distraction of the rest of the code. Here's a quick snippet
from the Help
docs, for example ...
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.onMetaData = function(infoObject:Object) {
for (var propName:String in infoObject) {
trace(propName + " = " + infoObject[propName]);
ns.play("
http://www.helpexamples.com/flash/video/water.flv");
Paste that into a new FLV, test the SWF, and see if you get
output in
your Output panel. You should. Then save that new FLA into
the same folder
as your existing work and change the absolute path of that
Adobe file to the
absolute path of one of your own. See if the same sort of
output appears in
your Output panel. It should. If it doesn't, that means your
FLV doesn't
have metadata. If it does, remove the URL portion and see if
it still works
locally for the same FLV (your FLV), but with a relative
path.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Third party Flash Video player with DRM

    Hello,
    we would like to embedd into our application which is running in DirectX player of Flash video stream protected with DRM. Is it possible to buy library as for Microsoft DRM? Or is there any other solution?

    No, but you are able to create webkit browser environment and embed flash player plugin and playback protected content.

  • CHOPPY FLASH VIDEO PLAYBACK WITH ADOBE FLASH VERSION 10-11

    I'm  having a problem as described in a previous post re: Choppy flash videos, pictures, etc.. Youtube, megavideo any videos viewed online appear fine at first and then after 10-15 mins, start showing choppy. The audio was not a problem before, but I have noticed that it is being affected as well. I saw some posts on another forum a few days ago that recommended disabling flash player 11 in my chrome browser plugins and enabling verion 10 (which was available, but has since upgraded) and version 10 was working fine until it upgraded to 11 again. Now I have no options to revert to version 10 again.
    My system info is below:
    Sony:
    OS - Windows 7
    64 bit
    Browser Chrome 16.0.912.77
    Browser FireFox   9.0.1
    Browser IE 9
    Browser Safari 5.1.2
    Flash Player 11,1,102,55
    McAfee (came with the upgrade of flash player)
    This is very frustrating. I've tried uninstalling and re-installing, rebooting the browser, my pc, deleting cache files and cookies...NOTHING IS WORKING. CPU usage is between 20-35% when a video is active in my browser. I think that is normal, but I know that the choppy playback is not and it's only getting worse. Please HELP!
    I hope this NEW POST will suffice as per your requirements.

    When the video is choppy, how much CPU and RAM usage is occurring?  Do you have a graphics control panel that shows how much video RAM is in use when the video is choppy?
    Do you have a list of sites and videos where the video is choppy?
    If you don't want the McAffee add-on, remove it.

  • [AIR to iOS] Reading 'included' video file with NetStream, possible?

    Hey all,
    During publishing of the app you have a chance to include extra files. I'd like to include a f4v flash video that I'd like to play via the Video class. I'm having a bit of trouble figuring out how to get these two connected.
    I can get a full reference to the file ala the usual and use .url or .nativePath:
    var videoFile:File = File.applicationDirectory.resolvePath("some.f4v");
    When I try to pass that into a NetStream such as:
    var myVideo:Video = new Video();
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVideo.attachNetStream(ns);
    ns.play(videoFile.url);
    This never works for me. Nor using:
    ns.play(videoFile.nativePath);
    Anyone ever get a class like Loader or NetStream, etc to load included files in AIR for iOS or Android projects? See anything wrong here? Thanks for tips!

    I got this to work (exactly as mentioned above) in Android but on iOS I get issues. I also need to use .url as .nativePath doesn't seem to be friendly.
    The performance is another thing. Trying to play a 800x480 video on a HTC EVO 4G (single 1ghz snapdragon) was a painful 1-2fps mess. I encoded the video in f4v H.264 and also mp4 H.264. They were both 1-2FPS.
    Clearly waiting for StageVideo in AIR3.0 is going to be the fix for this whole mess.
    ns.play("videofile.f4v") ... I don't think that your first 3 lines are needed or appropriate here, are they?
    You're in AIR for Android/iOS so you have the flash.filesystem package you should look at, specifically the File class. It helps AIR load files you package that are located in your applicationDirectory.

  • Flash videos playing with audio echo on initial load.

    I have been having issues playing Flash videos in the current version of Firefox (10.0) as well as the previous version (unknown) over the past few months.
    When I open a page with a video it will begin playing with an echo as if two videos are playing at the same time with a slight delay on the second video causing an audio echo effect. So basically one video with echoing audio. The websites that I experience this the most are yahoo sports (happens practically every time) and gamespot (happens occasionally). If I refresh the page the echoing effect goes away.
    I am running Windows 7 64-bit.
    I have updated video drivers on my ATI Radeon HD 5800 series.
    My flash player / shockwave is 11,1,102,55 (updated) but I know I have experienced the same problem with previous versions.
    I have the following plug-ins enabled:
    1. Adobe Acrobat 10.1.2.45
    2. Current version of Ad-Block
    3. Divx Plus Web Player 2.2.0.52
    4. Divx VOD Helper Plug-In 1.1.0.6
    5. Microsoft Windows Media Player Firefox Plug-In 1.0.0.8
    6. Quicktime Plug-In 7.7.1 / 7.7.1.0
    7. Real Player 32 Bit Plug-Ins (4 total plug ins) 15.0.0.198
    8. Veetle Plug-Ins (3 total plug ins) 0.9.17.0
    I have some others as well but I thought these were the only relevant ones.
    Can anyone help me with my problem?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Flash video hesitates with Firefox 9.0.1

    Hello,
    I'm new to Firefox so just installed it the other day, latest ver 9.0.1. Found that running flash videos embedded in a web page has a jerky, hesitating apperance with the sound working fine but doesn't always match people talking. If I scroll it forward with the slider bar, it hangs for awhile. Flash works fine with IE8. I've tried all the usual fixes I've read about;
    Uninstalled Flash with the Flash Removal tool, reinstall Flash for Firefox (several times)
    Turned off Hardware Acceleration in Flash
    Updated Java according to Firefox's plugin check screen
    I have a Windows XP sp3 system with 3g memory
    ATI AllInWonder 9600 with latest drivers
    Any other ideas? It's funny as Firefox runs faster bringing up web pages but then dies on Flash.
    Thanks

    Turns out that Firefox became a little more fussy about standards than IE. (Imagine that!!) Code created hidden inputs of type="text" , then called a javascript function and passed the values in the hidden inputs as parameters. The original code just passed the name of the input as a variable. The Firefox Webconsole then complained that the variable was not declared. Once I passed the variable.value, then the error went away, Firefox was happy, didn't break IE, so I'm happy.

  • Flash video help with DW CS3

    I am trying to put a flash video on a website. I have the
    .flv file encoded. I followed the instructions to
    Insert>Media>Flash Video. Got the .flv file in the root
    folder, picked a skin, etc. When I view the page in the browser
    from Dreamweaver, it works just fine. So I uploaded the site to the
    server and tried to view it straight from the browser (rather than
    through local files). No flash video. The page appears as I
    designed it, only in the middle where the video is supposed to be
    it is just blank (black, just like the background). Any help would
    be greatly appreciated as its frustrating when you have it working
    all the way through the "preview in browswer" and when you upload
    to server it still doesn't work. I upoaded the html page and all
    dependent files as well. Thanks in advance.
    URL posted below:
    www.spottedtailproductions.com/videos/Upstream_flash.html

    You need to upload the SWF file referenced in your html code.
    http://www.spottedtailproductions.com/videos/FLVPlayer_Progressive.swf
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "STPfilms" <[email protected]> wrote in
    message
    news:ffr2u6$a2u$[email protected]..
    > I am trying to put a flash video on a website. I have
    the .flv file
    encoded. I
    > followed the instructions to Insert>Media>Flash
    Video. Got the .flv file
    in the
    > root folder, picked a skin, etc. When I view the page in
    the browser from
    > Dreamweaver, it works just fine. So I uploaded the site
    to the server and
    tried
    > to view it straight from the browser (rather than
    through local files). No
    > flash video. The page appears as I designed it, only in
    the middle where
    the
    > video is supposed to be it is just blank (black, just
    like the
    background). Any
    > help would be greatly appreciated as its frustrating
    when you have it
    working
    > all the way through the "preview in browswer" and when
    you upload to
    server it
    > still doesn't work. I upoaded the html page and all
    dependent files as
    well.
    > Thanks in advance.
    >
    > URL posted below:
    >
    >
    www.spottedtailproductions.com/videos/Upstream_flash.html
    >

  • FLash video problem with flvs?

    Hello I am having a problem with the 4 videos on
    http://www.websconsult.com/cuthbert/site/case-profiles.asp
    SOme, but not all, videos do not have the little playback
    triangle underneath the seek portion, where you can scrub through
    the videos to the part you want.
    THey are swf files, into which flvs have been imported, with
    the progressive stream option and the the built-in Flash skin
    selected for them. I am using the latest FLash CS3. THe flvs were
    converted from quicktime mov files., which I had brought in into
    Final Cut Pro and edited some of the frames and then re-exported as
    quicktime files, which were then encoded with the FLash CS3 Encoder
    app.
    Any ideas? THanks!

    Installed flash lite 3 onto my n95 hoping to watch porn from
    my browser!
    I guess that isn't possible yet coz it aint working or do i
    have to replace the flash lite 2 i already have on there.
    I say this because it was installed into applications, next
    to the existing version , rather than overwriting it...
    Will it just not work yet coz the phones aren't powerfull
    enough (with or without FL3) or have i just installed it
    incorrectly??

  • Firefox crashes after Flash videos play with black screen

    Whenever I'm playing a video with Flash, the screen is black although the sound is playing. Then Firefox is crashing.
    I'm using the newest Firefox Version (28.0) on Mac OS 10.9.2 (newer Macbook Air) and the newest Flash version. I tried Safe mode and deactivated my plug-ins to make sure it's Flash.
    I re-installed Flash and installed but it didn't help.
    My Firefox crash reports say "hang | libsystem_kernel.dylib@0x15a3a" under signature and "EXC_BREAKPOINT / 0x00000002" under crash reason.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Exporting flash video made with swift 3d to animated gif help

    I know there is a new grounds link about setting your publishing settings to get animated gifs to work with flash.
    I am using CS4 and when I go to publish the gif works in the html document. But when I export to an animated gif it is still a still picture.
    I have also tried to export to a quicktime file and it's is a still picture there too and distorted.
    Can anyone help me out? Should exporting to png or gif sequence work as well?

    turns out the swift 3d tutorial has you put the animation in a single keyframe within layer one.
    so only one frame is shown or created. there go it stays static
    now if someone could help me wiht resizing a gif for fireworks i would be the happest person

  • Video probs with QT

    audio plays on .mov files shot on iphone, but vid doesn't play or skips. I'm using XP--uninstalled itunes and QT, reinstalled and have QT set for safe mode.  I can play the vids on my ipod, but not the hard drive. MPEG-4 files play fine. ideas? thanks.

    the inspector reads, in part:
    Format: AAC, Mono 16,000 kHz
                   H.264, 0 x 0, millions
    does the 0x0 refer to the size of the video content?  Would the phone have put the video in a separate file?  I just copied the mp4 file from the phone when connected with a USB.

  • SMIL File / Flash Video Object / Netstream

    Hi all!
    I have build a streaming video player bassed on the flash Video Object and netstream. The company that provides the streaming have now gone over to Dynamic Streaming and uses SMIL files. Usually this is not a problem if i had used a FLVPlayback component, But now that my player is a Video Object i just can't get it to work.
    I don't want to rebuild the entire player based on FLVPlayback component since the current play have many functions.
    Have anyone built a Dynamic player based on Video object? Anyone that can help me with this?
    Oh yeay. I use AS2  I know i'm going over to AS3 but this player in built in as2
    Looking forward to see how this can be solved

    Hi,
    I don't think there is a direct way of using SMIL files with Video Object like it can be used with FLVPlayback component.
    Also its much easier to accomplish dynamic streaming using AS3 than AS2.
    With the current AS2 implementation you might have to parse the contents of smil file store the details of different bitrate media available in the FMS app.
    Some amount of coding would be needed to leverage the QoS metrics which can be accessed from NetStream object when Flash Player 10 is used. And then based on what the metrics indicate pick an appropriate bitrate file to switch to.
    This article mentions how to use AS2 for dynamic streaming : http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_actionscript.html
    Hoping to see if anyone else have tried to do it already so that it may prove helpful to you.
    In case you are looking to port your video player to AS3 , here are some useful links:
    http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_advanced_pt1.html
    Now there is also an Open Source Media Framework which you can leverage to build media players easily.
    http://www.adobe.com/devnet/flash/articles/video_osmf_streaming.html
    Regards
    Mamata

  • Flash Video Player Need Help

    Hello everyone I am hoping someone here can help me.  I am going to school and I have an action scripting class.  For my final project we have to make a flash video player with a custom skin to upload to our websites. We did something similar to this with our first project which we made a player where the movies where embedded in the file itself but this is supposed to be a youtube like flash player where we can call in the files from another source.   
      We kind of got pressed for time and were not able to go into detail with this project so the teacher gave us the code and I put it in exactly how it should be but im pretty sure i have something misplaced or I am missing a step. I get 8 different errors when I go to test the movie. and nothing works.  Can someone please tell me what I am doing wrong or can you point me in the direction of a tutorial on this  as I have been searching for tutorials on this with no luck. 
    Here is my Action Script 3.0 CODE:
    import fl.video.FLVPlayback;
    import fl.controls.List;
    var vid:FLVPlayback = new FLVPlayback();
    vid.source= "fashion.flv";
    addChild(vid);
    vid.skin="SkinOverPlayStopSeekMuteVol.swf";
    vid.x=100;
    vid.y=300;
    vid.skinAutoHide="true";
    vid.width=500;
    vid.height=280;
    var vidList:List = new List();
    vidList.x= vid.x+10;
    vidList.y= 200;
    vidList.width=200;
    vidList.height=100;
    vidList.addItem({label:"Bathroom Behavior",data: "bathroom.flv"});
    vidList.addItem({label:"Chase Scene",data: "chase.flv"});
    vidList.addItem({label:"VMCAD Fashion Design Commercial",data: "fashion.flv"});
    addChild(vidList);
    vidList.addEventListener(Event.CHANGE,playVid);
    function playVid(e:Event):void{     
    vid.source=e.target.selectedItem.data;
    Here is a screenshot of the errors I am receiving.
    Please help me 
    thanks
    Message was edited by: BTwardy

    I don't know if what you posted is all that is in that as file, but you need to declare a package, then call the import statements, then declare the class name.  Like this:
    package {
         import flash.display.Sprite;
         import flash.events.Event;
         import fl.video.FLVPlayback;
         import fl.controls.List;
         public class Main extends Sprite {
              public function Main() {
                   var vid:FLVPlayback = new FLVPlayback();
                   vid.source= "fashion.flv";
                   addChild(vid);
                   vid.skin="SkinOverPlayStopSeekMuteVol.swf";
                   vid.x=100;
                   vid.y=300;
                   vid.skinAutoHide="true";
                   vid.width=500;
                   vid.height=280;
                   var vidList:List = new List();
                   vidList.x= vid.x+10;
                   vidList.y= 200;
                   vidList.width=200;
                   vidList.height=100;
                   vidList.addItem({label:"Bathroom Behavior",data: "bathroom.flv"});
                   vidList.addItem({label:"Chase Scene",data: "chase.flv"});
                   vidList.addItem({label:"VMCAD Fashion Design Commercial",data: "fashion.flv"});
                   addChild(vidList);
                   vidList.addEventListener(Event.CHANGE,playVid);
              function playVid(e:Event):void{     
                   vid.source=e.target.selectedItem.data;
    Then click on your stage in Flash, then open the properties window, and fill the Class text field with:   Main
    Make sure the as file is saved in the same folder as the flv.

  • Compressing for flash video setting

    Anyone out there building content for flash video? I have a client who is shooting all their footage on a sony HD cam. All footage comes to me as 1080i60. They have requested all content be converted or embedded into flash at a 400X300 canvas size.
    I have tried some differant setting but most comes up somewhat pixilated. Any ideas?
    Thanks in advance for any ideas.
    Ron Nava

    Maybe this is helpful: Flash 8 Pro comes with a Flash 8 Video Encoder. It automatically converts Quicktime files into a .flv flash video file WITH a .swf AND a playback skin.
    The cool thing about this is how Flash then plays this back as a "progressive download," therefore less waiting time for it to start playback and smoother playback and very nice quality.
    I have a sample of this at size 540x400, larger than I have made in the past with other programs, just to see how it would look. I'm still playing with the dimensions. Thinking of making it smaller, actually; but the quality really holds up, I thought. http://web.mac.com/bfkproductions/HomeOne/PowWowSample.html

  • Flash Video Exporter plugin for FInal Cut Pro

    Does anybody know how to install the Flash Video Exporter
    plugin for Final Cut Pro so it shows up as an option in FCP?
    I want to create FLVs directly from FCP.
    Thanks

    http://www.adobe.com/devnet/flash/articles/flv_exporter_03.htm
    Scroll Down - its about mid page
    This is on the intro page:
    Note: You must have Flash MX Professional 2004 installed on
    your machine to use the Flash Video Exporter with your video
    editing application. The only exception is using the exporter in
    Demo Mode.

Maybe you are looking for