Feature of live stream on app webworks

Hi guys,.

So I try to create an application that needs constantly to get data from a server at very regular intervals. Now I know everyone would jump to their feet and saying 'PUSH NOTIFICATION', but just before you do all this conclusion, pls take into account the following conditions.

1. each user should be logged in order to access the app and would receive the data according to different variables together (different users with different content)

2. There is a high volume of data received in one day so I'm a little afraid on the quota push push notification.

3. I need the application to work like the way work the twitter for blackberry customers. When new tweets are automatically responsible even when the user is not at the forefront of the application.

My biggest fear with the help of push notification is the various factors considered before determining what data a user receives. Also note that I've set up push notification in an earlier application and it works great but I am seriously looking at other options for this solution. Web Sockets would have been a great option but its only available on bb 0s 7 +.

You are right regarding the polling stations. Basically, the client sends an Ajax request to see if there is new data, and the server responds with the State or new data.

To activate Javascript and networking of execution, while the application is reduced (i.e. running, but not highlighted), you must ask the permission of run_when_backgrounded:
https://developer.BlackBerry.com/HTML5/documentation/rim_permit_element.html

If you include the blackberry.push, you get this feature by default as well.

That being said, if the application is closed, you won't be able to run polling stations and will be able to listen to the incoming push notifications.

Tags: BlackBerry Developers

Similar Questions

  • Live streaming and own HDMI output on camcorder SONY consumer (HDR-PJ650VE in my case)

    Hi all

    I'm trying to figure out how I can live streams, using my Camcorder HDR-PJ650VE. I managed to connect the camcorder to my TV by HDMI out and get the live stream, but the problem is that it also displays the superimposed onscreen. It would be a very useful feature, since it this way, you are able to capture the stream by a jury of consumers capture and share it on Youtube for example.

    I cannot find anything on the manual release of the stream HDMI output and get rid of overlapping info. Is there a key combination or a hidden menu to achieve?

    In addition, it seems very strange SONY would not offer such feature, as for example the PANASONIC offers this good enough consumption walked on models like HC-V520

    Please, let me know if it would be possilb esolving this annoying limitation

    Best regards

    Matteo

    I want to share my discovery because it seems to be valid for all SONY camcorders: to have a clean HDMI out, turn off on HDMI CTR.

    I'm very happy now and I'll start live broadcast!

  • Is there a way to do a live stream in windows now?

    I know that windows has Bill but I have not found a way to make this work...

    CH does not support live streaming on Windows yet, but it's on the list of future features.

    Would be something like work of beak for your needs?

  • Can I really work on videos with first Pro CC and export to Flash Media Live Encoder for live stream?

    I'm looking for a great coder with features like titling. Adobe first Pro CC has great features, but I can work with it and export my files for Adobe Flash Media Live Encoder for live streaming.

    You can not.

  • Audio IOS RTMP live stream

    Hi guys I hope that some of you will be able to help me.

    I'm trying to stream audio from a live RTMP stream using the NetConnection and NetStream classes. I managed to get my app works without problem on Android, but I have some major difficulty make him play the audio back on iPad. Interestingly, it works in the device emulators when you are debugging, but I guess this isn't really an accurate representation. I tried streaming RTMP in AAC and MP3, but without success to be. I check through debugging that there haven't connected to the stream, however I just get no audio playback.

    Everything I read on door to believe that this is possible on IOS that I'm only interested by audio and video not. Can anyone help?

    Code example below (it's quick and dirty! ).

    Thanks in advance!

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:View ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark" title = "Audio" creationComplete = "init ()" >

    < s:layout >

    < s:VerticalLayout paddingLeft = "10" paddingRight = "10".

    paddingTop = "10" paddingBottom = "10" / >

    < / s:layout >

    < fx:Script >

    <! [CDATA]

    import flash.media.Video;

    import flash.net.NetConnection;

    to import flash.net.NetStream;

    Import mx.core.UIComponent;

    private var vid:Video;

    private var videoHolder:UIComponent;

    private var nc:NetConnection;

    private var defaultURL:String = '[STREAM]. "

    private var streamName:String = '[STREAMNAME]. "

    private var ns:NetStream;

    private var msg:Boolean;

    private var intervalMonitorBufferLengthEverySecond:uint;

    private function init (): void

    {

    vid = new Video();

    VID. Width = 864;

    VID. Height = 576;

    VID. Smoothing = true;

    Join the video of the scene

    videoHolder = new UIComponent();

    videoHolder.addChild (vid);

    addEventListener (SecurityErrorEvent.SECURITY_ERROR, onSecurityError);

    grpVideo.addElement (videoHolder);

    Connect();

    }

    public void onSecurityError(e:SecurityError):void

    {

    trace ("error in security :");

    }

    public void connect (): void

    {

    NC = new NetConnection();

    NC.client = this;

    nc.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);

    nc.objectEncoding = flash.net.ObjectEncoding.AMF0;

    NC. Connect (defaultURL);

    }

    public void netStatusHandler(e:NetStatusEvent):void

    {

    Switch (e.info.code) {}

    case "NetConnection.Connect.Success":

    trace ("audio - connected successfully");

    createNS();

    break;

    case "NetConnection.Connect.Closed":

    trace ("audio - Connection closed");

    Connect();

    break;

    case "NetConnection.Connect.Failed":

    trace ("audio - connection failed");

    break;

    case "NetConnection.Connect.Rejected":

    trace ("audio - connection rejected");

    break;

    case 'NetConnection.Connect.AppShutdown ':

    trace ("audio - application shutdown");

    break;

    case 'NetConnection.Connect.InvalidApp ':

    trace ("audio - app connection not valid");

    break;

    by default:

    trace ("audio-" + e.info.code + "-" + e.info.description);

    break;

    }

    }

    public function createNS (): void

    {

    trace ("NetStream creation");

    NS = new NetStream (nc);

    NC. Call ("FCSubscribe", null, "live_production"); Do not use this option if your CA requires it

    ns.addEventListener (NetStatusEvent.NET_STATUS, netStreamStatusHandler);

    vid.attachNetStream (ns);

    OnMetaData and onCuePoint //Handle event reminders: solution to http://tinyurl.com/mkadas

    //See another solution to http://www.Adobe.com/devnet/flash/QuickStart/metadata_cue_points/

    var infoClient:Object = new Object();

    infoClient.onMetaData = function MDGs (): void {};

    infoClient.onCuePoint = function oCP (): void {};

    NS.client = clientside;

    ns.bufferTime = 0;

    NS. Play (StreamName);

    ns.addEventListener (AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);

    function asyncErrorHandler(event:AsyncErrorEvent):void {}

    trace (Event.Text);

    }

    intervalMonitorBufferLengthEverySecond = setInterval (monPlayback, 1000);

    }

    public void netStreamStatusHandler(e:NetStatusEvent):void

    {

    Switch (e.info.code) {}

    case "NetStream.Buffer.Empty":

    trace ("audio - buffer empty :");

    break;

    case "NetStream.Buffer.Full":

    trace ("audio - buffer full :");

    break;

    case "NetStream.Play.Start":

    trace ("audio - beginning of the game :"); ")

    break;

    by default:

    trace ("audio-" + e.info.code + "-" + e.info.description);

    break;

    }

    }

    public function monPlayback (): void {}

    Print the current length of the buffer

    trace ("audio - buffer length:" + ns.bufferLength);

    trace ("audio - FPS:" + ns.currentFPS);

    trace ("audio - delay Live:" + ns.liveDelay);

    }

    public function onBWDone (): void {}

    Do nothing

    }

    public void onFCSubscribe(info:Object):void {}

    Do nothing. Prevents the error if connection to CDN.

    }

    public void onFCUnsubscribe(info:Object):void {}

    Do nothing. Prevents the error if connection to CDN.

    }

    []] >

    < / fx:Script >

    < s:Group id = "grpVideo" >

    < / s:Group >

    < / s:View >

    Just an update on this for all of you who come along after me.

    I managed to get this working on the MP3 but not AAC (I guess just AAC is not taken in charge?).

    My problem was the buffertime. Docs seemed to indicate that it should be set to 0 for live streaming, however he switch to "1" has solved my problem on the particular flow I pointed at.

    So, essentially above the justchanged line:

    ns.bufferTime = 0;

    TO

    ns.bufferTime = 1;

    Would be nice to know if someone got AAFC works though...

  • Live Streaming of video static files

    Hello world

    I use Amazon Cloud & Flash MMedia Server 4.5.
    I would like to take one of my videos of outputs (a static file) and turn it into a live stream. People can view this video (synchronous). I use Flash Media Live Encoder 3.2, but it only capture video from devices like the camera...

    How can I do?

    See you soon.

    Hi Huy,

    Please find the attached zip file where I wrote scripts for you to deploy to your local FMS server, in the context of option 2:

    You may want to follow these steps:

    1. unzip the file.

    2 deploy FLVpublishonLoad (in which case your saved file is a case of use FLV) on your server for businesses

    3 deploy toPublish on your server remote aws

    4. make sure that correct the path for the AWS in application FLVPublishonLoad @ No. 19 line:

    Please mention your aws instead of localhost instance host name and the application name.
    NC. Connect ("rtmp://localhost/toPublish");

    5. go in the administration of your local development server console and load the instance of FLVPublishonLoad, as shown in the image of howtoLoadfromAdminConsole.png attached to effect refrence.

    6. it will automatically connect to the application of the "toPublish' on your remote server and start publishing your file local vod as a live stream on your aws instance

    7 start your subscriber application and subscribe to the feed you used in FLVPublishonLoad app for Stream.get () method, see line #29 and the file subscriberScreenExample.png to illustration.

    some things to note here:

    1. I removed the sample.flv and the 'sample1_1500kbps.f4v' to keep the zip size down.

    2. you need to put your data online #55 stream name where you call mystream.play)

    3. the name of the stream you specify in Stream.get () will be used by the subscribers.

    4. If your use case is mp4, please use "MP4PublishonLoad" instead of the "FLVPublishonLoad" application

    =============

    As I can't attach files here, then copy - paste the code for you and others to be reused:

    =======

    hand. CSA code for FLVPublishonLoad:

    --------------------------------------

    var nc;

    var ns;

    application.onAppStart = function()

    {

    trace ("client hello :");

    publishIt();

    }

    function publishIt()

    {

    trace ("Publishing");

    NC = new NetConnection();

    Please mention your aws instead of localhost instance host name and the application name.

    NC. Connect ("rtmp://localhost/toPublish");

    nc.onStatus = function (info)

    {

    trace (info.code);

    }

    NS = new NetStream (nc);

    Exact name of feed available to subscribers...

    myStream = Stream.get ("myvodfile");

    mystream.onStatus = function (Sinfonia)

    {

    trace ("mystream.onStatus:" + sinfo.code);

    If (sinfo.code is "NetStream.Publish.Start")

    {

    attach_retVal = ns.attach (mystream);

    if(attach_retVal==true)

    {

    trace ("stream attach succeeded...");

    startPublish();

    }

    on the other

    {

    trace ("the source of flow to NetStream connection attempt failed");

    }

    }

    }

    Please put here the name of the stream inside quotation marks you want to publish, and is it available in the streams/_definst_ folder...

    myStream.Play("sample",0,-1,true);

    }

    function startPublish()

    {

    NS. Publish (myStream.Name, "Live");

    }

    --------------------------------------

    hand. CSA code for MP4PublishonLoad:

    --------------------------------------

    var nc;

    var ns;

    application.onAppStart = function()

    {

    trace ("client hello");

    publishIt();

    }

    function publishIt()

    {

    trace ("Publishing");

    NC = new NetConnection();

    Please mention your aws instead of localhost instance host name and the application name.

    NC. Connect ("rtmp://localhost/toPublish");

    nc.onStatus = function (info)

    {

    trace (info.code);

    }

    NS = new NetStream (nc);

    Exact name of feed available to subscribers...

    myStream = Stream.get ("mp4:myvodfile.f4v");

    mystream.onStatus = function (Sinfonia)

    {

    trace ("mystream.onStatus:" + sinfo.code);

    If (sinfo.code is "NetStream.Publish.Start")

    {

    attach_retVal = ns.attach (mystream);

    if(attach_retVal==true)

    {

    trace ("stream attach succeeded...");

    startPublish();

    }

    on the other

    {

    trace ("the source of flow to NetStream connection attempt failed");

    }

    }

    }

    If please put the name of the workflow that you want to publish and is available in the streams/_definst_ folder...

    myStream.Play("MP4:sample1_1500kbps.) (F4V", 0, -1, true);

    }

    function startPublish()

    {

    trace ("#" + mystream.name);

    NS. Publish ("mp4:" + mystream.name, "live");

    }

    --------------------------------------

    hand. CSA code to app "toPublish.

    =====================

    application.onPublish = function (clientObj, streamObj)

    {

    trace ("published:" + streamObj.name);

    }

    =====================

    Please get back to me if additional query.

    Kind regards

    Shiraz Anwar

  • Live streaming with DVR on linux 64-bit platform

    Hello, everyone. I have deployed enterprise edition 4.0 FMS on my 64-bit linux platform. in the FMS applications folder, I create a subfolder "dvr" and at the same time to create a dvr.asc. the code is as follows:

    application.onAppStart = function()

    {

    trace ("app fme started!");

    };

    application.onConnect = function (p_c)

    {

    p_c.disconnectClient = function() {}

    trace ("-disconnectClient" + application.clients.length + "-");

    application. Disconnect (p_c);

    }

    this.acceptConnection (p_c);

    };

    application.onPublish = function (p_c, p_stream)

    {

    trace ("onPublish streams:" + p_stream.name);

    p_stream.record ();

    };

    application.onUnpublish = function (p_c, p_stream)

    {

    trace ("stream of onUnpublish:" + p_stream.name);

    p_stream.record (false);

    };

    I'm waiting for the live stream will be recorded on the FMS server, but unfortunately nothing has happened.

    But if I use my pc (xp 32 - bit windows platform), everything works fine. When I connect to my pc win_xp

    the fms server automatically created a file streams\_definst_\myVideo.flv under the folder of dvr.

    then the fms on linux 64-bit server cannot create the mavideo file. FLV?

    everything here can give me some advice?

    Thank you for your response. I am a new learner of linux, so I have a lot to learn linux technologies. your answer was referring to 'permissions', then I connect the linux server and use the command 'chmod' to make the directory writable for the video editor dvr.

  • Re-synchronization of the out of sync live stream

    Hi guys,.

    I'm testing an application I created. It's basically a 2-way A / V chat, with a text chat application on there also.

    Each user publishes a live feed, which is recorded on the server and the resentment then back down the other user.

    I tested it locally all right, so I registered at Influxis on their nitrous plan to give it a try on the Internet.

    Each stream publishes a 32 Kbps video + audio stream 8 Kbps. Each user has a fast connection to broadband, with around one 140 ping on the server.

    Over time, about 10 minutes or so, far enough out of sync live streams. It may take more than 20 seconds for the stream to reach the other person, do a chat 'live' completely useless.

    If I stop and start the stream, he brings everything online, so I consider this as a potential solution.

    I would really like to know why this kind of thing happens, how can I minimize and how to recover from him when that happens.

    Any help would be appreciated!

    Increase the rate of audio at 22. This will rid the latency app, not what you expect, but apparently it works.

  • Adobe 13.0.0.182 flash drive to stop all live stream on youtube channels. other videos here are ok.

    after update to adobe flash player for 13.0.0.182 version any live stream on youtube channels suddenly stopped working. other youtube videos play fine. I tried to uninstall and reinstalled flash drive 3 times of any new version in the cache of the flash drive previous and back, reset, mozilla reset to the default values. still does not work.
    I know that there is a problem with mac users but my operating system is Win 7

    today I downloaded the latest version of flash player 13.0.0.206 and everything works again... so problem was in adobe only... problem solved

  • Live streaming video issues

    I look after a small PC of old ladies in Australia, of the Canada.  She used to watch live webcams to the Canada video looking at snow & ice but now with a new HP PC it can not display the stream live... or to be more precise that she can see, but the site does not load properly and displays a still image.

    If the browser is refreshed the image updates, but is a still image.

    We can see the time, so we know there is a preview of the taken video, but it will not be updated with the live stream.

    I read the other posts about similar problems, but can't seem to find an answer.

    I updated its Windows media player, which is uninstalled then reinstalled both Shockwave & Flash to the latest versions, but still the video will not play correctly.

    She can watch other videos for streaming live, but it just seems to be a problem with this one in particular.

    I tried the same webcam feed other computers to the Canada and the United Kingdom with no problems.

    She has a HP610-1010 has Touchsmart with installed ATI Radeo HD5570 graphics card.

    Can anyone suggest anything else I can be on...?

    Thank you

    Malcolm

    Hi - Thanks for your help. I think I found the solution. I checked again in the United Kingdom and found that does not now by streaming video and just displaying still images. There must be an intellectual property sensor on the site of blocking live outside of North America. Bad luck!

  • How do you use the Sony NEX 5R as a webcam for live streaming?

    My computer does not recognize my camera as a source for Google Hangouts.

    Digital cameras from Sony, including the Sony NEX - 5R, are not compatible for use as a Webcam. If you are interested in a camera that can live streaming, then the HD camera live Bloggie MHS-TS55 is a good option. You can check it out by clicking on the link below:

    http://store.Sony.com/...ductId=8198552921666415574

    If my post answered your question, please mark it as an "accepted Solution".

  • Download live streaming video

    I want to download live streaming video on my computer (my daughter-in-law live sonogram) if my husband can view them later.  Any suggestions?

    This question is kind of vague, but I'll give you some suggestions. Just in case any of these help can provide you more information, such as this site is meant to be heard in the video and is there all programs used to display the video said.

    Method 1 - http://www.downloadhelper.net/install.php; It is an extension of the addon for firefox that works very well to video capture. If you're not using firefox, it can be easily downloaded Mozilla.

    Method 2 - http://www.fiddler2.com/fiddler2/; This is perhaps an exaggeration, but it has a ton of ability when it comes to download content on the web.

  • Live stream on Media player keep encountering the problem.

    I'm watching a live stream with Windows Media player and he continues to show the media connection, then error comes Windows Media Player encountered a problem while playing the file.  For assistance, click Web help.  When I clicked that show multpile things to try.  One is the windows media player C00D11B1 error message. I have Windows Vista Service pack 2. Any help or information?

    Hello

    I suggest you to refer to this link and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows7/C00D11B1

    It will be useful.

  • Can any can give Live or online app Development on QNX IDE support and setting the goal as device Bb10. run the application etc?

    Can any can give Live or online app Development on QNX IDE support and setting the goal as device Bb10. run the application etc?

    The best way is to start basic: https://developer.blackberry.com/cascades/documentation/getting_started/index.html

  • HTTP Live Streaming Audio MP3 in the Simulator 10.1

    Hello

    I'm working on an online radio application and I am very disappointed to see that the BB 10.1
    Simulator (10.1.0.1483) does not support the HTTP live streaming of multimedia files (MP3) M3U.

    I get the following message in the log of the device:

    MediaPlayer: prepare::Error attach the input source. URL: ""http://abc.xyzxyz.com:9156 / stream ', "
    error = UnsupportedMediaType

    and also when you try to navigate to the URL in the browser of the Simulator:

    The media file is from and not supported type or could not be loaded. It can not be played.

    I would like to know if the BB 10.2 Simulator supports HTTP live streaming of MP3 files, or do I have to buy a real device?

    Best regards

    burakk

    Hi @burakk,

    My apologies for the late reply. Unfortunately, for the OS versions on the market to date, support for media playback on the Simulator is very limited. This is mainly due to problems of codecs required license. There is a support very limited no playback video and audio (uncompressed audio files in the WAV only). In later versions of OS Simulator, we might have the software decoding - if that happens, your use case would be satisfied then.

    For a complete list of the formats supported on devices: https://developer.blackberry.com/devzone/develop/supported_media/bb10_media_support.html

    See you soon,.
    Rashid

    Applications development consultant | Relationships with developers

    BlackBerry @surashid

Maybe you are looking for

  • DVD - ROM is not on my computer

    Hello I have a little problem.If I start my noteboot the DVD device is not on the workstation.

  • Camcorders that can adapt to a lens wide angle?

    Can someone help me please? I'm looking for a camcorder wherein I can fit a lens wide angle to cover a wider area. can someone tell me what are the camcorders sony I can set a goal wide angle. Also I would like to know what lens wide angle correspond

  • WiFi and convertibles - HP envy 2 x and flag 2 x

    Hello My husband and I both have a x 2, a craving for x 2 Pavilion and HP. The problem is wifi connectivity. At home we have no problem, we can connect without any problems, we may also share with our little (operated by our mobile company) mobile wi

  • 2013 public folders Exchange mailbox move to a different database

    Hello Our messaging system is Exchange 2013 and we have three Public folder mailboxes in a database. As we know, unlike earlier versions of Exchange, public folders are as typical of the mailboxes in Exchange 2013, not a separate database. The volume

  • How to use and add a tableview?

    As mentioned on the subject. Can someone teach me how to add a tableview in qml? My goal is just to make a tableview with 100% width and height with 2 columns and each column with buttons with the width and height of 100%. How can I achieve that? Tha