Skip to main content
Participant
July 5, 2010
Question

Publishing and Viewing Gallery Advice

  • July 5, 2010
  • 1 reply
  • 326 views

Hi,

I'm looking for some advice on the best way to set up my application. I currently have a working app but the work flow doesn't feel right at all. Here are the basic steps involved:

  1. Sign in (connection made to FMS using username+unique id)
  2. Publish webcam stream to FMS
  3. Preview own stream
  4. View gallery of other users recorded streams

The problem I'm having is once a user is connected, they are unable to view other users recorded streams in the gallery. The way I got around this was to copy the finished stream to a different folder 'library' and then when entering the gallery sign-out then back in using 'library' as the instance name. This doesn't feel right and I'm sure there must be a better way to structure this process.

The app uses most of the code that was in the livestreams demo.

Connection uri:

rmtp://locahost/livestreams/username_uniqueId

Folder structure:

published to

livestreams / streams / username_uniqueId / video.flv

which get copied to for viewing

livestreams / streams / library / username_uniqueId.flv

So my question is what's the best way for users to be able to record their own stream, then view others.

Many thanks

Tristian

    This topic has been closed for replies.

    1 reply

    Petro_O__Bochan
    Inspiring
    July 5, 2010

    HI, it looks like you've hit the namespacing issue. Read this chapter, this will really help you out in terms of organizing your user's media namespacing: http://www.adobe.com/devnet/flashcom/articles/comm_components.html