Detect if the media runs on BB10 using webworks

It is possible to detect the status of the media service using webworks (I use cordova)? Or I write a plugin?

My requirement is I have to check status of media service device, if the device is not currently play any audio/video files, then only, I need to play a video in my application.

Hi sunilmnaik,

This type of functionality is not supported in WebWorks. For now, there may be a single audio/video source, so if there is a video playing in another application, it will be suspended if the video/audio is played in the WebWorks app.

We are currently working on a plugin audio API cordova in low latency, which behave differently from the audio implementation current. The new API will allow you to play audio at the same time while having the video plays in the background.

The only way to detect media player status (if possible at all), or by writing a native extension (aka the plugin).

Here are the native code that will tell you if the media is currently playing:

http://developer.BlackBerry.com/Cascades/reference/bb__multimedia__nowplayingconnection.html#propert...

Kind regards

Anzor

Tags: BlackBerry Developers

Similar Questions

  • How to apply http with the string parameter in the development of BB10 using WebWorks.

    Hi all

    I'm developing an application BB10 Webworks setting, I want to make an http request by adding a string parameter. What type of http request, I'll use. any help of code base.

    Thank you all

    Use the JavaScript XmlHttpRequest object to make a GET request to a remote URL.

    https://github.com/BlackBerry/WebWorks-community-samples/BLOB/master/kitchenSink/js/browser/XHR.js

    Here is an example:

    var url = "http://www.yourwebsite.com/index.asp?foo=bar"
    var xhr = new XMLHttpRequest();
    
    xhr.open('GET', url, true);
    
    xhr.onreadystatechange = function(e) {
        if (xhr.readyState === 4) {
            if (xhr.status === 200 || xhr.status === 0)  {
                console.log(xhr.responseText);
            }
            else {
                console.log("Error (" + xhr.status + "): " + xhr.statusText);
            }
        }
    };
    
    xhr.send(null);
    
  • I chose the media player by accident using a format of the ACADEMY. Now Midia Player will automatically appear. How can I change this back.

    I'm trying to download books from the ACADEMY to the format of My Media Mall on a old MP3 players (Zune) and accidentally picked Media Player as the download format.  It is not compatible, but it comes back automatically whenever I try a download. How can I get rid of Media Player the default format and return to the right format?

    How can I get rid of Media Player the default format and return to the right format?

    Select a file of the Academy, that you have already downloaded... and go to properties and then go to the general tab... change open with option and select the program sought to open with

  • Video clips on BB10 using WebWorks

    Hello everyone, I have a question for Webworks for bb10 before that, I create an application for the live broadcast for playbook. and it works. When I try to package in the bb10 webworks. It seems can not do any streaming. and the player does not appear. is the webworks playbook not even bb10 webworks? If not even. can anyone help me to a good reference? TIA

    Hello

    There are a few differences between the implementation of the WebKit PlayBook and BlackBerry 10 WebKit application, but to base 10 BlackBerry should have a majority of the same support available. Can you please confirm that you test on 10.0.9.388 for BlackBerry 10?

    In addition, you are able to create a basic example of JSFiddle and JSBin that you can share in your answer? This will allow us to analyze the sample and display/change source while studying.

    If it ends up being feature that should be supported, but is broken, then a bug at the FOLLOWING report might be the best way:

    https://github.com/BlackBerry/BB10-WebWorks-framework/issues?State=open

  • Transfer to warm CVP - keyword 'media' for the IP address of the Media Store?

    Greetings,

    There is a nice feature in the microapp normal CVP scripts where the ECC user.microapp.media_server as the 'media' string variable is defined, and inserted the expressions 'ip host media a.b.c.d' and "ip host media-backup l.m.n.o" on the catwalks.

    This committed an automatic retry mechanism should files WAV is not found on the first server of Media Store.

    When the heat via a queue transfer is set up, the route on CallManager point triggers a script through the number dialed, which performs a translation of a Type 2 CVP course. That VB CVP is added to CallManager as a H323 gateway with game media endpoints. VB should be configured to talk with the guard to solve the second agent phone when they are targeted by the ICM router. It took a little while to get this working, and I'm not sure that I completely understand who does what in this system (the CVP Blues).

    But I have a question.

    If I use 'media' here to play the music on hold in the queue there are poor extraction. Substituting the IP address of the media store has solved the problem.

    Am I right in thinking that the VXML to this action takes place outside of the voice browser CVP on Type 2 (and not the bridge) and therefore 'media' does not solved?

    Is it a framework (pair of parameters) can be done in the CVP speech browser to allow the 'media' keyword must be used in routing ICM scripts and get the retry system that seems to be the gateway? I looked at all the parameters of VB in VBAdmin, but none of them seem suited look.

    I have observed with the script normal microapp instructions to try again come in fact the application server when fetch the first bad happens. The application server seems so be sure that the pair meets and promotes this one as the first to try. I see a similar behavior with TTS.

    I wish I could have the hot transfer working with redundancy with normal microapps regarding media stores. Is this possible? Is the standard answer to use a content Services switch?

    Kind regards

    Geoff

    Geoff,

    You are right that in this case, the voice browser CVP will play guests. To enable failover of media server in this mode, simply set the 'media' host name in DNS (or in etc/hosts if you don't have DNS) to have two IP addresses for the two media HTTP (do a "ipconfig/displaydns") servers. The voice browser CVP will try all of the IP addresses that the 'media' hostname resolves to in case one fails. There will be a little late at the beginning of each call, then the voice browser tries to access the main media server, however, for the rest of the call, the voice browser will continue to use the backup there will be no further delay in the call. See 'ShowMediaServerTimeout' and 'ShowMediaServerTries' in the Setup Guide & Admin CVP. Note that the host name does not need to be 'media' - there just need match everything that was put in the ICM media_server ECC script variable.

    The CVP voice browser cannot use CSS to load balancing media server or failover for two reasons:

    o CVP Voice Browser does not support the implementation of cache or HTTP redirect and would therefore require the CSS to the proxy the media stream for all audio files for each call.

    o the CSS has been con¸u to serve Web pages, not large amounts of voice traffic in packets. A steady stream of audio files would have an impact on the serious performance on the CSS.

  • I get the "No. Drive Detected" message when I try to use the media Sonic program in XP?

    With this message, I get no choice of reader to choose the player not to "read" cd or dvd?

    Hi Mr. Benjamin,.

    1. don't you make changes before the show?
    2 do only when you use the media Sonic?

    We recommend that you download and run the Microsoft Fix and check if the problem persists.
    See your CD drive or DVD drive is missing or is not recognized by Windows or other programs

    If the problem is only with the sonic program, then try to reinstall the program and check the result.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Digital Cable Set Top Box connected to the Media Center computer, forced to keep MC on the use of channels 3-cant TV Guide in Media Center to record

    I have to keep the center of the media on channel 3, and the decoder controls the channel I want to watch or record.  For example if I want to record channel 631 21:00 to 23:00 I would say the MC to record channel 3 for as many programs they broadcast between 9 and 23:00.  This process does not allow registration of the MC - guide as it was planned. I have to use the channels on the cable box only and always have the Media Center on channel 3. Is it possible to come back with the MC TV Guide and record by this guide as it was designed to do, while still using the cable set top box or some other Descrambler for replacement by the cable operator?  Basically, the decoder is a decoder which makes us put all our TV on channel 3.  But the cable ready TV I hear do not need the box, they can use another device.  The computer can do the same?  Nobody seems to have no answer to this problem.  Help!?

    I read your question. I asked you what happened when running
    TV Setup and specifically want to know if the TV Setup detected your set top
    Box/decoder and it happened. If Media Center does not automatically detect your decoder,
    have you tried the manual method to learn codes? I'm trying to help you
    features of Media Center EPG.
     
    You must ask the FIOS people if they have the equivalent of a DTA
    offered in the world of cable and OTA.
     
     
    Barb
     
    MVP - Windows/entertainment and connected home
     
     
    Please mark as answer if that answers your question
     
     
     
     
  • Formatting of bone, not detected in the model dv6 recovery media

    Hi, I use lap dv6-3052tx model. I tried to format my only c drive and install a fresh copy of the operating system. but after restart I pressed the key "esc" and after that, I pressed "f11". but the screen goes straight to the login screen instead of going to the screen.i format tried to use start-> Recovery Manager after looging in, but it shows the message "recovery partition not found. but I have a disk partition. The last time I formatted using recovery media only and I made a change I moved partition drive inside another partition. Is that the reason why his watch is not partiton found unside the Recovery Manager. Give me some suggestions please.

    Thank you

    -Raj.

    Hello

    If you have moved a partition that was on the hard drive, this is the reason why you no longer have the option to access the recovery with the F11 key Manager after powering.

    If you want to return to this capability, then you will need to use the set of recovery disks or USB recovery you media created during the installation of your laptop to access the Recovery Manager.  This time, choose factory Image recovery. Commit to recovery and let it run until the end. The completeion of the recovery, check device manager to make sure that all devices have drivers loaded.

    When you are done with the recovery, do not change the configuration of the partitions unless you don't mind not being able to access the Recovery Manager after turning on your laptop again.

  • Cannot run the media player 11 when getting video e-mail

    After the opening of media player to run my e mail I got, message box appears and it says the following "Windows Media Player cannot access the file. The file may be in use, you won't have access to the computer on which the file is stored, or your proxy settings are may not be incorrect. »

    How can I fix it? On my other computer I can open and launch media player very well, and download the video that was sent to me. It is XP and running media player Number 10.  Please notify * address email is removed from the privacy *.

    Hello

    Try the steps listed in the following thread. It deals with sound, no video, but the steps to resolve this issue should work for you as well. http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-sound/error-when-trying-to-play-audio-files-Windows/16fb2a9a-f6ef-4907-bf45-c6ddf15183df

    Good luck. I hope this helps.

  • Using the media update for windows 7 (from vista), can I now re - install 7 via the clean install option, even if it is the path I have chosen when first installing 7 first?

    With a 7 upgrade version (not the full version) I could not use the upgrade option to install 7 on Vista, because it asked me to uninstall 2 programs that would not work in 7 with installation before you begin.  I couldn't do it because my Windows Installer is missing on my computer. (In fact, I couldn't even run the Windows Upgrade Advisor before proceeding with the installation because this program must be installed on your computer before you can run) So, I chose to use the custom installation and it worked fine, except that my computer is now worse than with vista. Thinking that it was because he kept all the vista files (windows.old) I deleted this file, but he did that give back me my hard drive space. I would like to make a re-install using this same version upgrade disc, but I've heard that I can not do a clean install, if the original operating system is not currently on the computer (using the version upgrade 7, not the full version), and I guess that's is more on my computer with the exception of fragments which I affect 7 performance. If this is true, what should I do? If I have to go to the full version, is there a way I can just pay the difference between what I already bought and version complete, or will lose money that I spent on the upgrade version, and buy the full version outright? Bottom line is this:  I want to just Vista on my computer for GOOD!  I don't want something that looks even left of Vista on my computer. I'm sacrificing all my programs to do it with a clean install, but it's better than all the headaches, I got Vista! Thanks in advance for all you can give me advice.

    If your computer comes with a qualifying previous license such as Windows Vista or Windows XP and the certificate of authenticity is still attached to the machine in good condition, then the COST is reason enough to represent the compliance to the software license agreement. No previous required software installation, which means you can do a clean install with Windows 7 Upgrade disk.

    How to do a clean install with upgrade disc:

    Boot from the Windows 7 DVD

    Click Install now

    Accept the license agreement

    When the option is displayed to select a type of installation, click (Custom advanced)

    Click on drive Options

    Select the disc/s click on Delete

    Click new

    Click on apply

    Click OK

    Click Format, and then click next to proceed with the installation

    Skip entering your product key Windows 7 and complete the installation.

    When you reach the desktop, click Start, right-click on computer

    Click on properties

    Scroll down to the Windows Activation

    Click the link x days before activation.

    Click on the link that says: "show me other ways to activate.

    Enter the product key

    Click next

    Select the Activation of the phone

    Click Next when you enter your key page

    Select your country

    Click Next, call the number listed

    Be sure to explain your situation to the Appeals Officer.

    Provide the installation generated when ID requested by the call agent

    They give a confirmation ID in return, enter it

    Click next to complete the activation.

    However, the requirements for the media upgrade is that you have an operating system already eligible such as Windows XP or Vista installed to use it. Since the Windows 7 end user license agreement.

    15 UPDATES. To use upgrade software, you must first be licensed for the software that is eligible for the upgrade. After the upgrade, this agreement takes the place of the agreement for the software that you upgraded. After upgrade, you can no longer use the software that you upgraded.

    So, if you are always denied, you will just have to reinstall Windows XP or Vista and let it do the verification of eligibility.

  • Unable to take backup on Windows 7 get error code 0 x 81000019 and message backup Windows found errors on the media during a backup on it and can't use it for additional backups.

    Original title: backup Windows found errors on the media during a backup.

    original title: backup errors

    Whenever I try to do my monthly backup I get the following messages

    Backup Windows found errors on the media during a backup on it and can not use it for additional backups.

    Pleas write the following label on a blank media and insert it into D: /.

    I did and then he asked me to get in shape, I say OK and I get the same message on the media errors and I put another disc and get the same problems again. I can't find out what the problem is, what can I do to fix this problem and get a new backup?

    I now have an error 0 x 81000019

    Hello

    You did changes to the computer before the show?

    Method 1: Check if the shadow copy volume is running
    (a) click Start.
    (b) in the search box, type Services.msc.
    shadow copy Volume c) right-click and go to properties.
    (d) select Auto (Delayed) in the start menu type in the menu drop-down.

    Method 2: Clean boot
    When the computer starts to boot, programs non-Microsoft will not be started and would avoid any interruption of their share.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.microsoft.com/kb/929135.

    Note: Once you are done with the boot, follow step 7 of article to reset your computer to normal startup.

    Method 3:

    Check all your drives to NTFS.

    This problem may occur if the drive is not NTFS format.

    Please follow the steps mentioned below to convert the reader:

    Using the Convert command

    1. click on the "Start" button, click "all programs" and click on "Accessories".

    2. right click on "command prompt" and click "run as administrator".

    3. in the window "Administrator: command prompt", type the following command and press ENTER.

    CONVERT %Drive% letter: / FS: NTFS

    letter of %Drive% is the driver that you want to convert. For example, type the following command to convert drive F to NTFS:

    CONVERT F:/FS: NTFS

    4. when the following message appears in the command prompt window, type the volume label of the drive that you are converting, and then press ENTER:

    The type of the file system is FAT.

    Enter the name of the current volume of reader letter %Drive%:

    Type any string of characters for the Volume name. If you simply press ENTER, it will affect 'Local disk' as the default Volume name.

    5. when the conversion to NTFS is complete, the following line appears in the command prompt window:

    "Complete conversion".

    6. restart the computer and check the result.

    Hope this information is useful.

  • distortion sound when using the media player but not any other media suite e.g., be able to go

    I have a new samsung 305th and sound playback for the media player is distorted on the helmet and built in speaker, but all the others like suite of media and power go her crystal clear. makes all kinds of settings and checked sound card, what is the problem? Fix, it has found a problem but says to contact the manufacturer.

    Hello

    1. what fixit did you run?
    2 were there any hardware or software changes made on the computer before this problem?

    Carry out the methods to solve the problem.

    Method 1
    Run the troubleshooting windows media player setting and check if the problem persists. Follow the steps described in the following link:
    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

     

    Method 2

    Try disabling audio enhancements and check if that helps.

    (a) open her by clicking the Start button, then Control Panel. In the search box, type sound, and then click sound.

    (b) on the playback tab, click speakers, and then click Properties.

    (c) click the enhancements tab, and then select the checkbox disable all improvements .

    If you do not see the enhancements tab in the speakers properties dialog box, these features are not available for your speakers, and this procedure is not applicable to your computer.

    If disabling audio enhancements solves the audio problem you are having, this indicates usually that your audio driver needs to be updated.

    Also remove the audio codec in Windows Media Player.

    (a) open windows media player, and then press Alt key.

    (b) click on Tools, select plug-in and click on the option.

    (c) select plug-ins tab, and then under category, click Audio DSP.

    (d), select all the files in the DSP Audio box and click Remove.

     

    Method 3: Check if the problem persists in the boot.

    To help resolve the error and other messages, you can start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to solve the problem by running the clean boot in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: Once you have completed troubleshooting, perform the steps in the step 7: to reset the computer as usual.

    See the help article
    Tips for solving common audio problems.
    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    Let us know the status of the issue.

  • Detect when the native player of iOS is closed using StageWebView

    Currently I'm building an application that uses StageWebView to launch a live stream. I wonder if there is a way to detect if the user clicks done, so I can eliminate the WebView.

    I don't think it's too much of a big deal because it is currently 0.0 to Dim but wise resource, I wonder if it is the best thing to have running waiting for a video link.

    So it doesn't look like this is really possible. We found that the LocationChange event is raised after the button makes hit for us are going to use it as a short term solution before build us a DONKEY in the short term.

    For someone else, read this and comes to face the question of the recovery of video if you close the native player during loading. We found LocationChange listening and calling. stop() helps prevent this from happening.

  • Satellite A300 and WIn7 - cannot use the media buttons

    I have laptop Satellite A300.

    Recently, I have reinstalled my Windows 7 Pro x 64 using the update (not clean install) option. So I kept my program and settings. But in the player Panel multimedia (or whatever it's called) that allows me to play, stop the music, changing songs etc does not work completely. I can't use 2 "buttons": one that allows me to toggle the highlighting and the other who turns on the media player.
    I need their work. I got tired of Toshiba button support, but I don't know what to do here.

    Hello

    You need to install is Toshiba Value added Package. I use Win7 on my A300 and all buttons work perfectly. But I use the 32-bit version.
    I put t know if your A300 is supported for Win7 64 bit, but you can try to use THIS version.

    Before you begin installation remove old version, if exist, restart the laptop and install this version.

    I hope this will help you.

  • Qosmio G30-163: bad reception TV using the media library

    Very fuzzy TV reception gives my Qosmio G30-163. I use the Saudi Arabia country setting in the media library. I tried to connect to another air outlet that I know my TV works with the classic but that was still fuzzy, so is not the antenna for sure Jack. Any help appreciated.
    Thank you and best regards.

    Have you chosen the right settings to PAL/NTSC?
    Please check this box.

    For the most part these incorrect settings are responsible for bad reception of the TV signal.

    One question;
    Have you tried to update the TV tuner driver? Should do!

Maybe you are looking for

  • How to install the Windows Service Pack to run TurboTax 2013

    My computer? crashed? and I had to reboot. Now cannot install Turbotax 2013, re: "unable to install. need Windows XP Service Pack installed. Tried, tried. Failed to install. Nothing works. I found on my C: / drive a Microsoft.net folder which contain

  • Cannot open files from a disk

    original title: I received a DVD of an ebay seller with files jpg and pdf to this topic.  My XP Home Edition with service pak 3 do not read the files.  Is there and upgrade? My original disk Windows XP Home Edition is service pak 2.  I upgraded to se

  • Upgrade of RAM for Del Inspiron 15R SE 7520

    Hello This will be my first post on this forum please excuse if I miss some information to get out information. Information system 8.1 window Intel Core i7-3632QM, 2.20 Ghz RAM 4 GB Chart 2 GB AMD Radeon 7730M I think to upgrade the RAM that I starte

  • How can I reinstall loose 13?

    How can I reinstall loose 13?

  • As separations output channels

    HelloI want to the output of the channels of Photoshop CC2014 files pdf separated. I make time to another screenshot for t-shirts.I tried to export as files DCS2 and placing in InDesign and Illustrator. The test of Illustrator was best and works very