Check if a stream is live via PHP?

Hi all!
Is there any way to check if a certain RTMP stream is live,
via PHP?
The homepage of my site (which is built with PHP) will change
depending on what streams are live (there are multiple streams).
It's not enough to be able to check in a swf file as I can't then
use the information to change the homepage or do other cool stuff
like add to an RSS feed, or notify people via SMS/IM.
Is there any way to check this?
Thanks!

Unfortunately, the applications running on the FMS Vhost (the
FMS Core) can't listen for anything other than RTMP requests, so it
means that your FMs app has to make the request.
What you might want to try is building a little socket server
in PHP, and program your FMS application connect to it when it
starts up. That way, you can keep a stateful connection between PHP
and the FMS app instance, and PHP can make requests over the
socket.

Similar Messages

  • Strobe Media Playback, how to check if playing stream is live (from dynamic plugin)

    Can someone guide me how to check if stream is live or not? I check Media Player class, but cannot find anything related.
    Edit:
    I now check it be flash variable streamType = "live", but id there is better way will be good,

    Hello,
    I'm not sure there is a good solution to your problem on Windows Phone 8.1 (WP8.1). I think your problem is due to the background audio subsystem in WP8.1 doesn't use Zune for playback but instead has a new media manager service that controls what
    background audio task is currently playing. If you are writing a Runtime app you can us the
    BackgroundMediaPlayer to get this information but this object does not have the concept of a music queue.
    Here is more information on background audio for Runtime apps:
    http://blogs.msdn.com/b/mediasdkstuff/archive/2014/12/26/backgroundmediaplayer-architecture-on-windows-phone-8-1.aspx
    Thanks,
    James 
    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

  • How to check whether a stream a live or recorded video in FMS?

    I don't find such API to indicate whether a stream is live or not.
    Anyone knows how to judge this,either by client side or server side actionscript?

    According to the definition of stream.time, I don't think we can distinguish a live stream from a recorded stream by that.
    Stream.time
    myStream.time
    Read-only; the number of seconds the stream has been playing. This value is the timestamp of the latest frame that flowed out of the stream.
    That said,in both cases,myStream.time will keep increasing.

  • Problem with FMIS 4 and streaming of live events

    We have a problem on our platform and its driving us nuts... no seriously... NUTS.
    We have triple checked every possible component from a hardware level up to a software configuration level.
    The problem :  Our platform consists of 2 origin servers with 6 edges talking to them (really beefy hardware).  Once we inject a live stream into our two origins... we can successfully get the stream out via the edges and stream it successfully via our player.  Once we hit around 2200 concurrent connections, the FMIS servers drops all the connections busy with streams.   From the logs the only thing we can see is the following - Tons of disconnects with the Status code 103's which according to the online documentation means Client disconnected due to server shutdown (or application unloaded).
    We simulated the scenario with the FMS load simulator utility... and we start seeing errors + all connections dropped around the 2200 mark.
    The machines are Dell blades with dual CPU Xeons (quad cores) with around 50 gigs of ram per server... The edges are all on 10 Gb/s ethernet interfaces as well. 
    We managed to generate a nice big fat coredump on the one origin and the only thing visible from inspecting the core dumps + logs is the following :
    2011-10-05 
    15:44:10   
    22353   (e)2641112 
    JavaScript runtime is out of memory; server shutting down instance (Adaptor:
    _defaultRoot_, VHost: _defaultVHost_, App: livestreamcast_origin/_definst_). Check the JavaScript runtime size for this application
    in the configuration file.
    And from the core dump :
    warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff9ddfc000
    Core was generated by `/opt/adobe/fms/fmscore -adaptor _defaultRoot_ -vhost _defaultVHost_ -app -inst'.
    Program terminated with signal 11, Segmentation fault.
    #0  0x00002aaaab19ab22 in js_MarkGCThing () from /opt/adobe/fms/modules/scriptengines/libasc.so
    (gdb) bt
    #0  0x00002aaaab19ab22 in js_MarkGCThing () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #1  0x00002aaaab196b63 in ?? () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #2  0x00002aaaab1b316f in js_Mark () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #3  0x00002aaaab19a673 in ?? () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #4  0x00002aaaab19a6f7 in ?? () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #5  0x00002aaaab19ab3d in js_MarkGCThing () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #6  0x00002aaaab19abbe in ?? () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #7  0x00002aaaab185bbe in JS_DHashTableEnumerate () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #8  0x00002aaaab19b39d in js_GC () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #9  0x00002aaaab17e6d7 in js_DestroyContext () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #10 0x00002aaaab176bf4 in JS_DestroyContext () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #11 0x00002aaaab14f5e3 in ?? () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #12 0x00002aaaab14fabd in JScriptVMImpl::resetContext() () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #13 0x00002aaaab1527b4 in JScriptVMImpl::postProcessCbk(unsigned int, bool, int) ()
       from /opt/adobe/fms/modules/scriptengines/libasc.so
    #14 0x00002aaaab1035c7 in boost::detail::function::void_function_obj_invoker3<boost::_bi::bind_t<void, boost::_mfi::mf3<void, IJScriptVM, unsigned int, bool, int>, boost::_bi::list4<boost::_bi::value<IJScriptVM*>, boost::arg<1>, boost::arg<2>, boost::arg<3> > >, void, unsigned int, bool, int>::invoke(boost::detail::function::function_buffer&, unsigned int, bool, int) ()
       from /opt/adobe/fms/modules/scriptengines/libasc.so
    #15 0x00002aaaab0fddf6 in boost::function3<void, unsigned int, bool, int>::operator()(unsigned int, bool, int) const ()
       from /opt/adobe/fms/modules/scriptengines/libasc.so
    #16 0x00002aaaab0fbd9d in fms::script::AscRequestQ::run() () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #17 0x00002aaaab0fd0eb in boost::detail::function::function_obj_invoker0<boost::_bi::bind_t<bool, boost::_mfi::mf0<bool, fms::script::AscRequestQ>, boost::_bi::list1<boost::_bi::value<fms::script::IntrusivePtr<fms::script::AscRequestQ> > > >, bool>::invoke(boost::detail::function::function_buffer&) () from /opt/adobe/fms/modules/scriptengines/libasc.so
    #18 0x00000000009c7327 in boost::function0<bool>::operator()() const ()
    #19 0x00000000009c7529 in fms::script::QueueRequest::run() ()
    #20 0x00000000008b868a in TCThreadPool::launchThreadRun(void*) ()
    #21 0x00000000008b8bd6 in TCThreadPool::__ThreadStaticPoolEntry(void*) ()
    #22 0x00000000008ba496 in launchThreadRun(void*) ()
    #23 0x00000000008bb44f in __TCThreadEntry(void*) ()
    #24 0x000000390ca0673d in start_thread () from /lib64/libpthread.so.0
    #25 0x000000390bed44bd in clone () from /lib64/libc.so.6
    From what it looks like above, FMS is hard crashing when trying to use clone(2) (basically it means when its trying to spawn a new/another process).
    I am really hoping there is someone out there who can guide us in the right direction with regards to how we can pinpoint why our platform cannot cope with a pathetic 2200 connections before the FMIS daemon drops all connected streams.
    There has to be someone out there that has run into this or a similiar problem like this...  HELP !!!!
    Any feedback / ideas would be greatly appreciated.

    Thank you very much for the reply :-)
    We have been fiddling with the platform on many levels yesterday, and one thing we did do was bump that value up from 1024 to 8192... This made a HUGE improvement in ensuring the platform now holds the live streaming connections. (up to 8000 per edge)
    I think for other future reference and to aid other people that might run into this problem in the future, its a good idea to increase this value.  From what we have seen, read and heard, that default value is fairly conservative, its suppose to grow when the load demands it, however, if you have a large scale of connections coming in at once from multiple locations, it can happen that it grows too quickly which can result in the application to be reloaded (which disconnects all users, i.e. all edge servers connected to this origin).
    Another option we were recommended to modify was the following :
    In adaptor.xml you currently have this line:
    <HostPort name="edge1" ctl_channel="localhost:19350" rtmfp="${ADAPTOR.HOSTPORT}">${ADAPTOR.HOSTPORT}</HostPort>
    You can set this to
                    <HostPort name="edge1" ctl_channel="localhost:19350" rtmfp=":80">:80</HostPort>
    <HostPort name="edge2" ctl_channel="localhost:19351" rtmfp=":1935">:1935</HostPort>
    This will create two edge processes for both ports 80 and 1935. Currently both ports are served from the same fmsedge process.
    Of course this is not a huge performance improvement, but should further distribute load over more processes which is a good thing. Especially when there are that many connections.
    This setting can be made on all machines (origin + edge)
    Hopefully this could help other people also running into the same problems we have seen ...

  • Topic: Microsoft's Silverlight for Mac. I wanted to video stream a movie via Verizon FIOS. It demanded Silverlight.dmg Macbok Pro refused to download from 3rd party supplier (CNET). How can I get this?

    Topic: Microsoft's Silverlight for Mac. I wanted to video stream a movie via Verizon FIOS. It demanded Silverlight.dmg.  Macbok Pro refused to download from 3rd party supplier (CNET). How can I get this from Apple?  The Verizon FIOS video website was churning on the error message, "Checking device registration status."  It got stuck in a loop. Verizon tech support never came on. Was on terminal "Hold."  Any recommendations?

    Never download anything from CNET. The site is untrustworthy and is known to distribute Windows spyware intentionally.

  • While streaming internet radio via itunes, the music hangs up and stalls whenever i do anything online

    While streaming internet radio via itunes, the music hangs up and stalls whenever i do anything online

    Rode32 wrote:
    this issue just arose over the last month or so and no changes have been made to my bandwidth.
    Except for the following possibiblites:
    Your bandwidth might be being throttled by your internet provider.
    Your internet may have a fault.
    Perhaps your Wi-Fi security has been breached by someone nearby.
    Perhaps the other services (Grooveshark and Spotify) use a lower bandwith (I don't know).
    For numbers 1 & 2, try a speed check to see if your internet connection is as fast as it's supposed to be.
    For number 3, change your password to your Wi-Fi.
    For number 4, check the Bit Rate of each stream.
    On the other hand, if this new information that you added is fact ( it actually occurs if I even listen to music from my iTunes library, not just internet radio ), then perhaps iTunes is at fault and the best fix may be to repair iTunes.
    To repair iTunes, download the iTunes installer and when you run it, use the Repair option.            

  • Can I stream a live camera to Apple tv?

    Is it possible to stream a live video camera to Apple TV?  I want to be able to easily send a feed from a video camera when I videotape a musical to a remote room with a TV where the actors and director will be.  There will be wireless network and I can possibly get a hard wired ethernet connection.  Could I hook up the camera to a MAC and have it send to Air Play for Apple TV to see it?

    You can Airplay from a Mac to the Apple Tv, and you can mirror the Mac's screen through airplay Mirroring.  so whatever is on the MAcs screen can be seen through the Apple Tv.
    If you have the Camera feed on the Mac's screen, then you should be able to see it.
    How you connect the camera to the Mac, will likely depend on the camera and whether or not there is software to directly allow this over say USB or Thunderbolt for the camera you'll be using. You'll have to contact the camera manufacturer to find out.
    Alternatively a video capture card would also work depending on the camera's possible output connections.
    http://store.apple.com/us/product/H1832VC/A?fnode=61

  • How can i stream some files via my macbook pro

    how can i stream some files via my macbook pro and my WD TV LIVE

    Which email client are you using & which version?   Your emails are not appearing in the email trashcan? 

  • How do you stream a live video to a website

    OK - Again I'm feeling smart enough to be real dumb.
    How do you stream a live video to a website. I use GoDaddy to host a website. I can plug a video camera into my Mac so I can run the video through whatever program works best. I even have a .mac account (now its mobile me I guess) and could use that. I have read several threads but can't really find a starting point. Any help is appreciated.
    I want to video a basketball game and stream it to our schools website.
    Thanks again.
    CD

    You may not be able to embed VideoLobby into your existing website, but this article appears to have some useful links:
    _VideoLobby Wants To Help You Create Your Own Custom-Branded Live Webcasts_
    Also these for the Mac:
    http://www.telestream.net/wire-cast/overview.htm
    http://www.apple.com/quicktime/broadcaster/
    t4tennessee wrote:
    I want to video a basketball game...
    Be aware of what you're videoing:
    http://www.dothetest.co.uk/basketball.html

  • How do I stream a live website from MacBook to Apple TV?

    How do I stream a live website from MacBook to Apple TV?

    If you have Mountain Lion, turn on AirPlay mirroring, then put Safari into Full Screen mode.

  • No longer have my photos in iCloud. Where did they go? From iphone5--checked and photo stream

    No longer have my photos in iCloud. Where did they go? From iphone5--checked and photo stream is turned on.

    goa1889 wrote:
    In icloud? Didn't realize there was a time limit for my icloud storage.
    Photostream is separate from iCloud backups.  Were the photos part of the backup, or only part of Photostream?
    If they were part of the backup, then restore your device from the iCloud backup.
    If they were only part of Photostream, then that is, again, temporary storage, for up to 30 days.  After 30 days, the photos may or may not be available.

  • Discovery web services in java uddi registry via php-pear

    I have published my web service in java uddi registry and I want to discovery this web services via php-pear.
    The pear code has not the setting about this uddi registry. The pear code for IBM and Microsoft registries are:
    'IBM' =>
    array(
    'Inquiry' =>
    array(
    'url' => 'www-3.ibm.com/services/uddi/testregistry/inquiryapi',
    'port' => 80),
    'Publish' =>
    array('url' => 'https://www-3.ibm.com/services/uddi/testregistry/protect/publishapi',
    'port' => 443)),
    'Microsoft' =>
    array(
    'Inquiry' =>
    array(
    'url' => 'test.uddi.microsoft.com/inquire',
    'port' => 80),
    'Publish' =>
    array(
    'url' => 'https://test.uddi.microsoft.com/publish',
    'port' => 443))*/);
    I add the code below for java registry but the code don't work.
    'JAVA' =>
    array(
    'Inquiry' =>
    array(
    'url' => 'localhost/soar/registry/soap',
    'port' => 8080),
    'Publish' =>
    array('url' => 'http://localhost/soar/registry/soap',
    'port' => 8080))
    The error from php code is :
    <rs:StackTrace xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0">javax.xml.registry.JAXRException: Unable to Unmarshall request
         at org.freebxml.omar.common.BindingUtility.getRequestObject(BindingUtility.java:355)
         at org.freebxml.omar.server.interfaces.soap.RegistrySOAPServlet.onMessage(RegistrySOAPServlet.java:184)
    Can anyone help meeeeeeeeeeeee?
    Message was edited by:
    paixtis

    Hello
    It means what it sais, your J2EE_ADMIN user doesn't have enough authorization.
    Chech if the appropriate authorization is assigned in your abap stack which belongs to the java stack you logon to:
    Role SAP_J2EE_ADMIN should be assigned to user J2EE_ADMIN.
    Kind regards
    Tom
    Edited by: Tom Cenens on Dec 17, 2010 2:55 PM

  • Live stream not live- plays like VOD

    Hi All,
    I'm not sure if this belongs in the AS3 forum or the streaming forum, but here it is.
    I wrote a pair CS3/AS3 players to send and receive a live video stream (webcam) from a browser.  The first is called broadcaster.  It makes a NetConnection to my server, publishes a stream and attaches the camera and microphone.  This works fine. The stream is live.
    The second is originally called receiver.  Using an instance of flash.media.video on the stage it also makes a NetConnectin, attaches a stream and calls play.  This also works, BUT the receiver stream is not live.  It starts playing at time=0 like a VOD.
    --- broadcaster.swf ---
    var connection:NetConnection = new NetConnection()
    connection.connect(connect_url);  // my server/application/instance
    var stream = new NetStream(connection);
    stream.publish("mass", "live");  // live means stream live without recording on the server
    stream.attachCamera(Camera.getCamera());
    stream.attachAudio( Microphone.getMicrophone() );
    --- receiver.swf---
    connection.connect(connect_url);
    var stream = new NetStream(connection);
    video1.attachNetStream(stream); // video1 is on the stage (flash.media.video not FLVPlayback)
    stream.play("mass", -1, -1, true); // -1 means play live stream only, -1 means start at 'wherever the live stream is'
    How can the receiver not obey the -1, -1 parameters especially if the broadcaster is not recording on the server.  How can i see the beginning of the stream!
    I believe I read that the flash plugin 9.0+ uses the on2 codec, and I also saw some discussion about on2 not able to stream live -- or not live from the browser plugin, only the flash media encoder.
    Can anybody tell me what is going on?
    Thanks
    Ted

    I tried streaming with the Adobe Flash Media Live Encoder3 instead of my Broadcater.swf.  This connects fine and pushes h.264 no problem.
    But the reciever is still seeng VOD not Live video.
    Is there something wrong with my receiver?

  • Accessing a JD Edwards database via PHP

    Hi,
    Would anyone be able to tell me if it is possible to access a JD Edwards installation via PHP? Our web interface requires JD Edwards integration. If this is possible, where would I find documentation about this?
    Thanks,
    Geoff

    We used IBM DB2Connect software which allows you to use AS400/iSeries native commands. The web developer handled the setup on the application server so I don't have any details on the setup, but your IBM representative should be able to help you or get you in touch with someone who can help you.

  • List group members via PHP

    I need to query NDS via PHP to get the member list of a group. I would
    like to do this via an anonymous bind, but can provide credentials if
    necessary. Any help would be appreciated.
    JM
    jmoseby
    jmoseby's Profile: http://forums.novell.com/member.php?userid=35190
    View this thread: http://forums.novell.com/showthread.php?t=387219

    jmoseby;1861509 Wrote:
    > Nevermind - figured it out:
    >
    > >
    Code:
    > > <?php
    >
    > function getMembers($group){
    > $ldap_server='10.1.10.200';
    > $ldap_user='admin';
    > $ldap_pw='notreallytheadminpassword!';
    >
    > $ldap = ldap_connect($ldap_server);
    > @ldap_start_tls($ldap);
    > @ldap_bind($ldap,"cn=$ldap_user,o=GSO", "$ldap_pw");
    > $results = ldap_search($ldap,"o=GSO", "cn=$group");
    > $user_info = ldap_get_entries($ldap, $results);
    >
    > foreach($user_info[0][member] as $member){
    > $member_exp=explode('=',$member);
    > $member_exp=explode(',',$member_exp[1]);
    > if($member_exp[0]!=''){$members[]=$member_exp[0];}
    > }
    > ldap_close($ldap);
    > return $members;
    > }
    >
    > $members=getMembers('BalanceOnOrder');
    > echo '<pre>';print_r($members);
    >
    > ?>
    > >
    Corrected code: removed single quotes around $ldap_server variable in
    ldap_connect() line.
    jmoseby
    jmoseby's Profile: http://forums.novell.com/member.php?userid=35190
    View this thread: http://forums.novell.com/showthread.php?t=387219

Maybe you are looking for