dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Simplest way to stream an FLV

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Location
    Nashville, Tenn.
    Posts
    11

    Simplest way to stream an FLV

    I'm fairly new to actionscript and externals but extremely new to streaming them from a server.

    I've been running into problems with externally loading an FLV file. I can get the FLV to load from my computer, but when i try to link it to an HTTP server and play a swf from another computer--i have no dice. Not sure if I'm using the wrong, playback device or what. I'd appreciate any help. thank you

    this is what code im using

    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    videoInstanceName.attachVideo(ns);
    ns.play("http://site_address_filename.flv");

    thanks again

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Location
    London
    Posts
    361
    Are the swf and flv uploaded to the same server?

    Some server hosts don't allow some file types including .flv, which wont play in that case, so it's worth checking.

  3. #3
    Junior Member
    Join Date
    Aug 2006
    Location
    Nashville, Tenn.
    Posts
    11
    yeah, i'm new to this whole thing. i thought that i could at least access the flv files from a swf even tho the swf wasn't uploaded to any server. am i wrong there?

    I also just learned that im not streaming from a flash communication server, i'm progressively downloading from an http server

    Should i be exporting as flash 7

    thanks for your reply
    Last edited by brocborn; 01-08-2007 at 04:22 PM. Reason: needed to add more info

  4. #4
    Senior Member
    Join Date
    Jan 2001
    Location
    London
    Posts
    361
    You do need to publish as flash player 7.
    The FLV should load locally, no problems.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center