Skip to main content
Participating Frequently
June 9, 2008
Question

Streaming live content

  • June 9, 2008
  • 4 replies
  • 542 views
I'm looking to stream videos that are already on the server in a playlist but stream them live, I mean how can I set the time of start of a video, I'm currently using the streams application from adobe. I want those videos start at certain time and then stop, not as VOD
    This topic has been closed for replies.

    4 replies

    Participant
    October 21, 2008
    We have this currently working, but the developer is not available. What we would like to do is setup a scheduler. Are there any available?
    Participant
    October 14, 2008
    Ok JayCharles

    and where I have to write this code ? in which file?
    As you see I am not expert in AS
    Thanks
    October 14, 2008
    What you need to do is write a function that calculates the time of day in correlation to the time in the video.

    You can use the Date class to calculate the time of day.

    var d = New Date();
    var hours = d.getHours()
    var minutes = d.getMinutes();

    Once you have that, it's just a matter of working out what point the video should start at.

    In the case of the 2:00/2:30 example, you'd need to start playing the file 30 minutes in. You can do that with the play method of the stream class, using the second argument in the play constructor

    MyServerSideStream.play("myFlvFile", 180, -1, false);
    June 10, 2008
    custom server side app will be required for it.
    you can create a server-side playlist and publish that to all clients as a live stream name. Reference server side API to look for are
    - Stream.play() & Stream.get()
    http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000788.html
    satvaderAuthor
    Participating Frequently
    October 8, 2008
    Thanks for your help I read that link that you post and it helps me a lot to understand more about playlist, but I looking for something that controls the real time start of a stream, for example I have a file named streamtest1.flv and I want to start streaming that at 2:00pm every day it's duration is about an hour, so that if some body open that stream at 2:30pm they will get half of it, not at the begining of the file.
    Participant
    October 14, 2008
    Hi

    I want to do the same, someone have a solution ?
    Regards