Simple HTML example on how to display a live stream?

Hi all
Is there anyone who has a HTML example (or can give an URL with a page) that has the Adobe Flash player displaying a live stream (and not a file)?
There is one in the installation under "Flash Media Server Start Screen" but it was too complex for me to understand. I just need a simple example on how to display a live flash stream in Adobes own web player.
Thank you very much :-)

Hi,
Here is the html code.
<html>
<head>
<title>Flash Media Player</title>
</head>
<object width="550" height="400">
<param name="movie" value="player.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
</body>
</html>
And here is the action script code of player.swf.
import flash.net.NetConnection;
import flash.events.NetStatusEvent;
import flash.net.NetStream;
import flash.media.Video;
import flash.events.MouseEvent;
import flash.media.Camera;
startBtn.addEventListener(MouseEvent.CLICK,mouseHandler);
var nc:NetConnection;
var ns:NetStream;
var vid:Video;
var cam:Camera=Camera.getCamera();
function mouseHandler(evt:MouseEvent){
    nc=new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS,statusHandler);
    nc.connect("rtmp://localhost/sample");
function statusHandler(evt:NetStatusEvent){
    trace(evt.info.code);
    if(evt.info.code=="NetConnection.Connect.Success"){
        ns=new NetStream(nc);
        ns.addEventListener(NetStatusEvent.NET_STATUS,streamHandler);
        ns.play("LiveStream");
        vid=new Video();
        vid.attachNetStream(ns);
        vid.height=400;
        vid.width=600;
        addChild(vid);
function streamHandler(evt:NetStatusEvent){
    trace(evt.info.code);
Please do the following before using the actionscript code:
Add a button called start in fla and keep its instance name startBtn.
create an application called sample in FMS and publish a live stream called "LiveStream".

Similar Messages

  • [svn:osmf:] 15449: Add example showing how to inject a live NetConnection and/ or NetStream into a VideoElement.

    Revision: 15449
    Revision: 15449
    Author:   [email protected]
    Date:     2010-04-15 12:57:20 -0700 (Thu, 15 Apr 2010)
    Log Message:
    Add example showing how to inject a live NetConnection and/or NetStream into a VideoElement.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/AllExamples.as
    Added Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/netconnection/
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/netconnection/SimpleNet ConnectionFactory.as
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/netconnection/SimpleNet Loader.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • How to use Youtube Live Streaming API ??

    I want to make a WPF application that gets the video from my ip camera and sends it to my youtube channel live. I look around all of the websites but there's no example how can i live stream a video to Youtube with c#. There are examples in google's website
    but they were written with PHP, Java and Phyton but I don't know this programming languages so i couldn't use the API.
    I tried to write a little bit but it didn't work. Here's my code that i wrote looking through the Java example.
    string devkey = "AIzaSyCbxm6g9orAw9PF3MkzTb_0PGbpD3Xo1Qg";
    string username = "MyYoutubeChannelEmailAdress";
    string password = "MyPassword";
    YouTubeRequestSettings youtubereqsetting = new YouTubeRequestSettings("API Project", devkey, username, password);
    YouTubeRequest youtubereq = new YouTubeRequest(youtubereqsetting);
    LiveBroadcastSnippet broadcastSnippet = new LiveBroadcastSnippet();
    broadcastSnippet.Title = "Test Live Stream";
    broadcastSnippet.ScheduledStartTime = new DateTime(2015, 3, 12, 19, 00, 00);
    broadcastSnippet.ScheduledEndTime = new DateTime(2015, 3, 12, 20, 00, 00);
    LiveBroadcastStatus status = new LiveBroadcastStatus();
    status.PrivacyStatus = "Private";
    LiveBroadcast broadcast = new LiveBroadcast();
    broadcast.Kind = "youtube#liveBroadcast";
    broadcast.Snippet = broadcastSnippet;
    broadcast.Status = status;
    Google.Apis.YouTube.v3.LiveBroadcastsResource.InsertRequest liveBroadcastInsert = new Google.Apis.YouTube.v3.LiveBroadcastsResource.InsertRequest(service, broadcast, "");
    LiveBroadcast returnLiveBroadcast = liveBroadcastInsert.Execute();

    This article should get you going:
    https://developers.google.com/youtube/v3/code_samples/dotnet
    Also, questions on YouTube API issues should get the best service here:
    https://groups.google.com/forum/#!forum/google-api-dotnet-client

  • How to make delay Live Streaming ?

    Hi everybody,
    I follow this turorial make HTTP Live Streaming From Camera, using FMS 4.5, and FMLE 3.2, and I success.
    Now I need make delay (1~10 minutes) on HTTP Live Streaming. Example, current now my camera is capture, and client (end-user) can only see the signal (video) is obtained from the camera 10 minutes ago.
    P/s: I'm using Amazon Cloud, specify EC2 (include FMS 4.5)
    Can I do that ?
    Thanks,
    Huy Mai

    Hi Bharat,
    I read your link, and focus in MaxQueueDelay & MaxQueueSize.But its seem can not use in my case. I try config Application.xml follow it, and not success for my purpose , I think "MaxQueueDelay"  is specifies how to often the server will flush the message queue, in miliseconds.
    My puporse is client can view video, late 10 minutes than what is obtained current from camera
    Will I be missing anything?
    Mai Huy

  • How to copy recorded live stream to new drive

    I was wondering if anyone out there knows how to copy a recorded live stream to a new drive on the server?  I can copy the file within the virtual app directory but not to another drive.
    The only solution i found was to edit the application.xml:
    <StreamManager>
            <StorageDir>e:\Sync\</StorageDir>
        </StreamManager>
    But unfortunately i need to rename the file once its recorded, and i'm having a hard time accessing that drive/directory where the file is located.
    Any help is greatly appreciated.
    thanks

    Hi,
    What I understood from your query I am providing you a solution:
    1. You can use the below to copy recorded live stream to new drive/directory in Application.xml
    <StreamManager>
            <StorageDir>e:\Sync\</StorageDir>
    </StreamManager>
    2. By default, a script can access files and directories only within the application directory of the hosting application. A server administrator can grant access to additional directories by specifying virtual directory mappings for File object paths. This is done in the FileObject tag in the Application.xml file, as shown in the following example:
    <FileObject>
          <VirtualDirectory>/_definst_;e:\Sync\_definst_\</VirtualDirectory>
    </FileObject>
    3. Create one application folder suppose test and then create main.asc file inside that which will have the below code
    application.onConnect = function(client) {
    application.acceptConnection(client);
    var fileObj = new File("_definst_");
    var fl = new Array();
    trace("File name : " + fileObj.toString());
    if (fileObj != null)
      if (fileObj.isDirectory)
       fl = fileObj.list();
       for (i in fl)
        trace("Directory : " + fl[i].name);
        if (fl[i].isFile)
         trace("File : " + fl[i].name);
         trace(fl[i].renameTo("dvrstream"+i));
        }//if closes
       }// for closes
      }//if closes
    }//if closes
    }// application closes
    This server side application rename files but since the folder which we had to access was outside application directory of the hosting application we had to map it using step 2.
    If this solution does not answer your query please be more ellaborative on what exactly are you trying to achieve. That will help me to answer your query correctly.
    Regards,
    Amit

  • How can I do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder which does not have firewire out/input? it comes only with a component video output, USB, HDMI and composite RCA output?

    I need to do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder (http://store.sony.co...ber=HDRAX2000/H) ..this camcorder model does not have firewire out/input ..it comes only with a component video output, USB, HDMI and composite A/V video output..
    I wonder how can I plug this camcorder to the firewire port of my laptop? Browsing on internet I found that Grass Valley Company produces this converter http://www.amazon.co...=A17MC6HOH9AVE6 ..but I am not sure -not even after checking the amazon reviews- if this device will send the video signal through firewire to my laptop, in order to live streaming properly? ..anyone in this forum could help me please?
    Thanx

    I can't broadcast with the built in iSight webcam... how would I zoom in or zoom out? or how would I pan? I've seem people doing it walking with their laptops but that's not an option for me... there's nothing wrong with my USB ports but that's neither an option to stream video because as far as I know through USB you can't connect video in apple operating systems ..you can for sure plug any video cam or photo camera through usb but as a drive to transfer data not as a live video camera...  is by firewire an old interface developed by apple that you can connect all sorts of cameras to apple computers... unfortunately my new sony HDR-AX2000 camcorder doesn't have firewire output...
    thanx

  • How can I do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder ..that doesn't have firewire out/input?

    I need to do live streaming with a Mac Book Pro 2011, using a new model of Sony HD camcorder (http://store.sony.co...ber=HDRAX2000/H) ..this camcorder model does not have firewire out/input ..it comes only with a component video output, USB, HDMI and composite A/V video output..
    I wonder how can I plug this camcorder to the firewire port of my laptop? Browsing on internet I found that Grass Valley Company produces this converter http://www.amazon.co...=A17MC6HOH9AVE6 ..but I am not sure -not even after checking the amazon reviews- if this device will send the video signal through firewire to my laptop, in order to live streaming properly? ..anyone in this forum could help me please?
    Thanx

    I can't broadcast with the built in iSight webcam... how would I zoom in or zoom out? or how would I pan? I've seem people doing it walking with their laptops but that's not an option for me... there's nothing wrong with my USB ports but that's neither an option to stream video because as far as I know through USB you can't connect video in apple operating systems ..you can for sure plug any video cam or photo camera through usb but as a drive to transfer data not as a live video camera...  is by firewire an old interface developed by apple that you can connect all sorts of cameras to apple computers... unfortunately my new sony HDR-AX2000 camcorder doesn't have firewire output...
    thanx

  • How to publish http live stream

    When I use Adobe Flash Media Server 4.5  publish http live stream. I found a message from Server Log of Manage Servers of Adobe Flash Media Administrator Console. It says that "Failed to record live stream (disk quota exceeded)."  How can I do to solve the question?

    I didn't get your query. Are you looking for the restrictions/time limits on different versions ?
    http://www.adobe.com/products/flashmediaserver/compare/

  • How to play http live streaming with VLC using FMS 4.0

    Hello,
    i'm using FMS 4 and i need to play my http live streaming event with VLC
    I have had the following result with firefox using the url : http://myip:8134/live/events/livepkgr.old/events/_definst_/liveevent.f4m
    <manifest>
    <id>
                        livepkgr.old/events/_definst_/liveevent
              </id><mimeType>
              </mimeType><streamType>
                        live
              </streamType><duration>
                        0
              </duration><media streamId="livestream1" bitrate="100" url="../../../../streams/livepkgr.old/streams/_definst_/livestream1/livestream1" bootstrapInfoId="bootstrap7580"><metadata>
                                  AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAFd2lkdGgAQHQAAAAAAAAABmhlaWdodABAbgAAA AAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAU0AAAAAAAAAIYXZjbGV2ZWwAQD8AAAAAAAAADnZ pZGVvZnJhbWVyYXRlAP/4AAAAAAAAAAl0cmFja2luZm8KAAAAAgMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlA ECPQAAAAAAAAAhsYW5ndWFnZQIAA2VuZwAACQMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlAECPQAAAAAAAAAh sYW5ndWFnZQIAA2VuZwAACQANc21wdGVUaW1lSW5mbwMAC3NtcHRlT2Zmc2V0AAAAAAAAAAAAAAAJAAdjdXN0ZGVmC gAAAAAAAAk=
                        </metadata></media><media streamId="livestream2" bitrate="200"><metadata>
                        </metadata></media><media streamId="livestream3" bitrate="350"><metadata>
                        </metadata></media><bootstrapInfo profile="named" url="../../../../streams/livepkgr.old/streams/_definst_/livestream/livestream.bootstrap" id="bootstrap3136">
              </bootstrapInfo><media streamId="livestream" url="../../../../streams/livepkgr.old/streams/_definst_/livestream/livestream" bootstrapInfoId="bootstrap3136"><metadata>
                                  AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAFd2lkdGgAQHQAAAAAAAAABmhlaWdodABAbgAAA AAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAU0AAAAAAAAAIYXZjbGV2ZWwAQD8AAAAAAAAADnZ pZGVvZnJhbWVyYXRlAP/4AAAAAAAAAAl0cmFja2luZm8KAAAAAgMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlA ECPQAAAAAAAAAhsYW5ndWFnZQIAA2VuZwAACQMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlAECPQAAAAAAAAAh sYW5ndWFnZQIAA2VuZwAACQANc21wdGVUaW1lSW5mbwMAC3NtcHRlT2Zmc2V0AAAAAAAAAAAAAAAJAAdjdXN0ZGVmC gAAAAAAAAk=
                        </metadata></media><bootstrapInfo profile="named" url="../../../../streams/livepkgr.old/streams/_definst_/livestream1/livestream1.bootstrap " id="bootstrap7580">
              </bootstrapInfo>
    </manifest>
    How can i play that event with VLC?
    Regards,

    Problem solved  - thanks to JayCharles. I forgot to set the live attribute. Here's the working code:
    <?xml version="1.0"?>
    <!-- controls\videodisplay\VideoDisplayFMS.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:HBox>
             <mx:VideoDisplay
                 live="true"
                 autoBandWidthDetection="false"
                 source="rtmp://localhost/live/livestream"/>
         </mx:HBox>
    </mx:Application>

  • Please provide an example of how to display the system time in CNiNumEdit.

    I need to display elapsed time in a numeric edit control. The value must be a double. Using MFC, please show me an example that displays the system time in a CNiNumEdit control.

    The trick is to set the FormatString of the num edit control to a format that displays dates/times and to use the COleDateTime class to handle converting the date/time to a double. COleDateTime encapsulates time stored as a DATE, which is a typedef for double. COleDateTime uses the same conversion factor for date/time as what the num edit expects, and since it supports a conversion operator to a DATE, which is really a double, and the num edit Value property is a double, displaying the current time in a num edit can be as simple as this:
    // Assuming you have a member variable called m_numEdit for a CNiNumEdit
    m_numEdit.FormatString = _T("hh:nn:ss");
    m_numEdit.Value = COleDateTime::GetCurrentTime();
    Hope this helps.
    - Elton

  • How to package multibitrate live stream as audio-only for Apple compliance

    Hi
    From AMS documentation, I can package vod content as audio-only by appending "audio-only" to url for instance:
    http://<ams server ip>/hls-vod/audio-only-aac/vod.m3u8
    Similarly I can package live content (single bitrate) as audio-only for instance:
    http://<ams server ip>/hls-live/audio-only-aac/livepkgr/_definst_/liveevent/livestream1.m3u8
    In my case, I have 3 bitrates being published for a live audio-video event. The variant playlist for this event is created by hls_http module by refering to Manifest.xml.
    I could not figure out a way to insert an audio-only stream to this variant playlist created by hls_http module for live stream.
    Please let me know if I am missing something because this seems to be a pretty obvious requirement for live streaming to IOS devices.
    Thanks,
    Nitin

    who can answer my question?Is the question a difficult one?

  • How to setup X1 live stream to iPad using Router

    I have the SMC Gateway SMCD3GNV. If I connect wifi to it, I can stream all my channels just fine using the TV app. When I connect my Netgear Router Model: WNDR4500v2 to the SMC,I can not stream while connected to the Netgear wifi. It says "Out Of Home". I called comcast and they verified the SMC is in bridge mode. Is there a step I over looked. Comcast keeps wanting to transfer to the X1 department. What am I missing here?Thanks in advance.  Reno

    I'm assuming you want to use your Netgear router because it has better wifi capabilities than the SMC gateway.  Is that correct?  If so, then yes it is correct that you had it put into bridge mode.  I just think the "Out of Home" issue is related to the link I put in my previous post. I too am getting the "Out of Home" error, and am using the SMC gateway in regular mode.  I get the error using both wifi and a direct ethernet connection to the gateway. If you want to make sure the issue is definitely the problem that I stated in the link, just remove the Netgear router from the SMC and hook a computer directly to the ethernet port on the SMC gateway. Then open a browser window to https://xtv.comcast.net.  If you still get the "Out of Home" error then you know it's most likely not your setup.

  • How do I capture live streaming MP3s?

    I'm wanting to capture (record) the following:
    http://www.resistancemp3.org.uk/m2008/afterthe_whitewash_-_who_are_the_real_worknig_class-martinsmith.mp3
    then put it onto my ipod. Can anyone suggest a suitable way of doing this please.
    Message was edited by: Gary Leeds

    If the song is only provided as a stream, it may be that the rights holders don't want it to be disseminated any other way.
    Applications such as Audacity are able to capture the sound output from your computer.
    Best of luck.

  • How to play rtmp live streaming through VideoElement??

    Hi , i'm trying to play live streaming by using VideoElement
    like this :
    <s:VideoElement>
    <s:StreamingVideoSource serverURI="rtmp://192.168.0.136/tv" live="true">
    <s:StreamItem streamName="stream" />
    </s:StreamingVideoSource>
    </s:VideoElement>
    but nothing occurred ........did i use the wrong syntax @@a  or....?

    Anyone?

  • How to display html document returned by utl_http package (POST method)

    I am using oracle forms 10g, data base version is 10g.
    I have written a database procedure that calls utl_http package POST method and request returns an html document. How do display this html document from oracle form?
    Thank you
    Hema

    Here you have...
    A Full Web Browser Java Bean - Oracle Forms PJCs/Java Beans
    http://forms.pjc.bean.over-blog.com/article-26251949.html

Maybe you are looking for

  • Sony xr200 no longer being recognized by imovie

    I have been using this camera for the past 2 years with no problems on my imac.  Then just a couple of weeks ago I went to connect the camera to make a movie.  Now imovie is not recognizing it as being connected.  The computer recognizises that it is

  • Page Nos In script

    Hi, I have data in the following format. kunnr      vertn      dmbtr 1000    70       300 1000    70       400 1000    70       300 1000    71       800 1000    71       500 1000    65       900 1000    65       100 2000    43      450 2000    43    

  • DW8 hangs at 'loading site cache'

    I have been running DW8 on a Vista successfully for several months. Last night I ran DW8 and it got as far as 'loading site cache' and just hung. I've tried rebooting and reinstalling and still it hangs. There was another thread here about deleting f

  • TS1702 My IPod Nano is synched to my ITunes library, but when I click on the Device name, all of the music is "grayed out" and I can't click on anything.

    My IPod Nano is synched to my ITunes library and shows up under Devices, but when I click on the Device name, all of the music is "grayed out" and I can't click on anything.

  • UCM bootup error: Err 14: Automatic removal of fake floppy failed

    I need help in figuring out why I'm getting this error on bootup. I started getting this error after updating the OS to 2000.4.6sr9. The previous OS ver was 2000.4.4asr7. The server is an MCS-7815-I2-IPC1. CM ver 4.1.3sr8a. The error is the following