Streaming audio BlackBerry Cascades

Hello

I tried a few codes example on streaming:

Well, unfortunately, none of them work for me. This is the code that I put in place of the first link:

import bb.cascades 1.0
import bb.multimedia 1.0
// ...
Page {
Container {
// ...

attachedObjects: [
MediaPlayer {
id: player
sourceUrl: "http://198.50.238.203:7014"

// Set these properties for video
videoOutput: VideoOutput.PrimaryDisplay
windowId: fwcVideoSurface.windowId

onMediaStateChanged: {
switch (player.mediaState) {
case MediaState.Unprepared:
break;
case MediaState.Prepared:
break;

}
}
}
]
ForeignWindowControl {
id: fwcVideoSurface
windowId: "myVideoSurface"
visible: boundToWindow

updatedProperties: WindowProperty.Size |
WindowProperty.Position |
WindowProperty.Visible
}

// ...

Button {
id: btnPlay
text: "Play"
onClicked: {
if (player.play() != MediaError.None) {
// Your error handling code here.
}
}
}

Button {
id: btnStop
text: "Stop"
onClicked: {
player.stop();
}
}

Button {
id: btnReset
text: "Reset"
onClicked: {
player.reset();
}
}
}
}

I opened the file pls (http://198.50.238.203:7014 / 8400/listen.pls). So I get this url: http://198.50.238.203:7014 /
When I pressed the button to play from the first example, I got this message (I can't listen to music) in the console of QNX Momentics IDE:

START 1 MediaPlayer::play
START 1 MediaPlayer::prepare
START 1 MediaPlayerPrivate::generateAudioOutputUrl
MediaPlayerPrivate::generateAudioOutputUrl: audioOutput=Default
=> END 1 ( 1 ms):
START 1 MediaPlayerPrivate::generateVideoOutputUrl
MediaPlayerPrivate::generateVideoOutputUrl: videoOutput=PrimaryDisplay
MediaPlayerPrivate::generateVideoOutputUrl: windowId="myVideoSurface"
MediaPlayerPrivate::generateVideoOutputUrl: windowGroupId="mainWindow-174317799-36F3F97AA7224633-0"
=> END 1 ( 2 ms):
START 1 MediaPlayerPrivate::updateAudioOutputParams
=> END 1 ( 1 ms):
START 1 MediaPlayerPrivate::attachInput
MediaPlayerPrivate::attachInput: url=QUrl("http://198.50.238.203:7014")
UIToolkitSupport: Unrecognized scheme "http"
MediaPlayerPrivate::attachInput: Attempting to attach input. url="http://198.50.238.203:7014", type="playlist"
START 1 MediaPlayerPrivate::lastError
=> END 1 ( 0 ms):
MediaPlayerPrivate::attachInput: Attempting to attach input. url="http://198.50.238.203:7014", type="autolist"
START 1 MediaPlayerPrivate::lastError
=> END 1 ( 0 ms):
MediaPlayerPrivate::attachInput: Unable to attach source input. url="http://198.50.238.203:7014", e=UnsupportedMediaType
=> END 1 ( 503 ms):
MediaPlayer::prepare: Error attaching input source, error=UnsupportedMediaType
=> END 1 ( 508 ms):
MediaPlayer::play: Unable to prepare the player. error=UnsupportedMediaType
=> END 1 ( 508 ms):
START 1 MmrContextNotifier::onReadyRead
MmrContextNotifier::onReadyRead: QMap(("@play-queue", PpsAttribute(Object, QFlags(0x4) ,  QMap() ) ) )
START 1 MmrContextNotifier::onPpsPlayQueueChanged
=> END 1 ( 0 ms):
=> END 1 ( 1 ms):
START 1 MmrContextNotifier::onReadyRead
MmrContextNotifier::onReadyRead: QMap(("@play-queue", PpsAttribute(Object, QFlags(0x2) ,  QMap() ) ) )
START 1 MmrContextNotifier::onPpsPlayQueueChanged
=> END 1 ( 0 ms):
=> END 1 ( 0 ms):

The same problem has been resolved here http://supportforums.blackberry.com/t5/Native-Development/MediaPlayer-or-Media-Player-invoke-to-play...

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Smartphones Streaming Audio or internet radio

    Is it possible to listen to streaming audio on the BB pearl? What about Internet radio stations?

    And if possible, can someone give me some links so that I can try it on my phone?

    Thank you.

    Here are the 2 streaming radio stations

    Slacker - http://www.slacker.com/mobile/blackberry

    FlyCast - http://flycast.fm/bby/

  • BlackBerry Bluetooth of Q10 streaming audio question

    When my Q10 connects to my deck (shortly after I start the car) the phone connects to the car without problem. I can make calls, receive calls, etc. - works flawlessly... BUT when you use streaming audio, either through BB Media Player or neutrons MP (downlaoded another player to see if that solves the problem) the connection drops suddenly after about 40 to 80 seconds of game very well.

    Only happens 1 in every 2 - 3 times, it happened regularly during the last 2 months, since I have the phone. I use audio streaming via bluetooth minimum 2 x a day... and he abandoned the connection regularly. is going to play the song for a while, then suddenly the connection BT grave (stereo says no device connected). so I restart the phone, and then it connects / plays very well (it solves every time after a reboot). This never happened with my 9900.

    Among the previous updates OS (to Sept 2013) permanently fixed. I forgot to mention!

  • How to make a streaming audio and video on BlackBerry.

    Hi all

    Please someone help me.

    I must be a 3rd part java application that can stream audio and video server and can play only audio/video on my phone from BB.

    Please share me your ideas or related links to do the same as soon as POSSIBLE.

    Thanks in advance.

    Thanks Peter.

    It's really useful links

  • Audio files imported into iTunes shot in Streaming Audio

    I use iTunes to organize the audio files I've created with GarageBand and create my own albums.  iTunes game allowing to synchronize these albums to my four Macs without problems.

    It worked until I signed up for the trial of AppleMusic plus iTunes game.

    Suddenly the iTunes library on three of the four Mac Sync showed a number of my own songs like 'Apple Music Audio File'.

    When I create a smart playlist with the rule:

    • Artist contains Leonie and iCloud status is Apple music

    I find 17 of my own creations that are all of a sudden Apple music.

    And after the end of the trial of AppleMusic I couldn't play them any longer. When I tried, I got the prompt to renew the composition of Apple's music.

    turingtest2 helped me to clone a good library for my other four Macs and start over.

    This helped for a month or two, but now more and more my own audio songs are transformed into 'Streaming audio' for a change, is no longer Apple Audio music file with the iCloud status 'pending '.

    I use OS X 10.11.5 on every Mac, with the new iTunes.

    Should I try to restore the iTunes Library again on three Macs synchronized from a good copy master?

    EEK. I've seen iTunes decided to process the files on the local network who have been referred by a UNC path as internet stream before today. What I don't understand is how an internet stream is supposed to get loads of iCloud.

    I think back to a well known version of the library is the only way to solve. What do you see as the location on the tab file for one of the audio tracks?

    TT2

  • What is the best setting for streaming audio DAC output?

    Entire CD to 44.1 k production, other audio files can be defined above, according to the recording.  What streaming audio, for example KCSM jazz, or any other music station?  What is the best setting of the output of this situation?

    Check the flow rate of flow for the station (you can often check online). It is not anywhere near CD or higher.

  • Windows Media Player 11 continues to stream audio in the context of a video file even if I left the program.

    Windows Media Player 11 continues to stream audio in the context of a video file even if I left the program.  How to stop?

    Hello

    1 is there a problem with a particular video or videos?

    2 did you change on your computer before this problem?

    Follow the suggestions and see if it helps.

    Method 1

    a.Press CTRL + ALT + DELETE.

    b.Click start the Task Manager.

    c the process tab.

    d.Click the process of wmplayer.exe.

    e.Click end process and then click on complete the process.

    Method 2

    See the article and see if it helps.

    File Readme for Windows Media Player 11 for Windows XP

    http://Windows.Microsoft.com/en-us/Windows-XP/products/Windows-Media-Player/11/Readme

  • I tried to record some live audio. I downloaded Wondershare Streaming Audio Recorder I opened the program - but could not hear the audio I tried to play.

    original title: sound problems

    Hello!

    I tried to record some live audio. I downloaded

    Wondershare Streaming Audio Recorder

    I opened the program - but could not hear the audio that I tried to play. I don't know if downloading this program is related to the problem.
    I opened Skype - and everything worked fine. I could hear, etc. But if I run an MP3 in Windows Media Player - I hear nothing!
    My sound is at the top.
    In my Volume mixer, I see:
    1 output device digital (SPDIF) bounce up and down. (but I don't)
    2 but applications: sounds of Windows, Windows Media Player and Google Chrome will not move. (but they are at the top).
    Any suggestions?
    Jews

    I managed to get the results of work. I don't know where come the SPDIF.

    I downloaded a new driver Realtek for audio from the computer. This corrects the problem.
    But I still want to know what happened.
  • records streaming audio issues

    Can please indicate why the streaming audio on my laptop are of poor quality - with weakness, its thin and hail - any recording software I use? I tried Audacity, Free Hi-Q Recorder and others, and the result is the same (with Audacity, I have "Stereo mix" selected as my source audio, such as recommended). (NB: my old laptop Vaio with Win XP record audio streams perfectly, using the same recording software.) My laptop current is: Sony Vaio VGN-FW45G o/s: Windows Vista Home Premium 64 - bit sound card: Realtek High Definition Audio Driver Version: 6.0.1.5759 Driver Date: 17/12/2008 (Windows support advises it is the best driver available)

    Hi Franklinde Mesa,

    The problem is the absence of card its drivers and updated the same should solve the problem. I suggest you to update the sound card drivers by visiting the official website of Realtek. Download and install the latest drivers for Windows Vista and check if this solves the problem.

    See the links below for more details on the update of drivers:

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

     

    Update drivers: recommended links

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-drivers-recommended-links

    I hope this helps.

  • How to search for media streaming in blackberry

    Hi I use following code to send the streaming media. But it gives me not seeking exception not allowed on the media. Is it possible to ask the media streaming in blackberry?

    private void forwardPlayer() {}
    {if (isPlaying)}
    try {}
    prevTime long = player.getMediaTime () / 1000000;

    final long newTime = prevTime + 5;
    If (newTime<=>

    Thread t = new Thread (new Runnable() {}

    public void run() {}
    try {}
    player.setMediaTime(newTime * 1000000);
    } catch (final MediaException e) {}
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}

    public void run() {}
    Dialog.Inform ("before" + try ());
    }
    });
    }
    }
    });
    t.Start ();

    }
    } catch (final Exception e) {}
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}

    public void run() {}
    Dialog.Inform ("before" + try ());
    }
    });
    }
    }
    }

    Yes, but the research is not supported for all formats.  The error indicates it is not supported for the format that you use.

  • Unable to save the Streaming Audio / Creative xfi extreme audio/windows 7

    Creative xfi extreme audio and Windows 7.

    I tried everything and can not record audio streaming. tried to use hearing, audacity and in the audio recording window.
    Drivers day and are tired of all the configurations.
    A post I read online said that Creative didn't activate this option.
    Any suggestions or hacks that you can think...
    Scott

    You can save "what you hear" XP for sure.

    If you do not have this option in the Blender of W7 so you are right, its been disabled.

    However, there is a work around.

    You must create a virtual audio device on your PC. Google for "streaming audio" and you will find some solution, some software are free, others pay.

    Once you have chosen and installed the software, then use the virtual audio device to play the streaming audio and record its 'exit' in your Xfi.

    It is a different and more complicated using two sound devices - your audio device shipped along with your Xfi. Their implementation is not easy, but basically if you got theml work, you will need to connect a cable from the line from one to the line in the other. However, I do not recommend this at all. The software is much more simple.

    See you soon,.

    Jerry

  • Streaming audio button for each frame to play/Pause

    I have streaming audio on each frame that automatically starts and stops when the user clicks on the next or previous image. I need to add a pause button on each image. I created a play/pause toggle clip on my first image and it works very well. Frame we use mySound1 and myChannel1, frame both uses mySound2 and myChannel2, etc.

    I get errors when I try to add the code to the next section. What should I do to have a button on each image to stop the corresponding mp3? I appreciate your help!

    SoundMixer.stopAll ();

    var pP:Number = 0; playback position

    var playing: Boolean = false;

    var mySound1:Sound = new Sound();

    var myChannel1:SoundChannel = new SoundChannel();

    mySound1.load (new URLRequest ("Physiology Slide 01 INTRO.mp3"));

    myChannel1 = mySound1.play ();

    SoundMixer.stopAll ();

    PlayPause_btn.addEventListener (MouseEvent.CLICK, togglePlay);

    togglePlay (null);

    function togglePlay(event:MouseEvent):void {}

    play =! play;

    If playS() (play);

    of other pauseS();

    }

    function playS() {}

    myChannel1 = mySound1.play (pP);

    PlayPause_btn.gotoAndStop (2);

    }

    function pauseS() {}

    pP = myChannel1.position;

    myChannel1.stop ();

    PlayPause_btn.gotoAndStop (1);

    }

    you use the same function names (IE, the togglePlay, parts and breaks) on your key frames?  If so, you will see an error in dual function (1120, I think).

    address, use different function names or use a switch/case or if/else sequence in one of each function.

  • Z10 blackBerry a way to disable the bluetooth handset and use activate streaming audio only?

    I use bluetooth in my car to make or receive phone calls and it only allows you to stream Pandora.  On my previous BBs, I was able to disable the handset function and just use streaming, but I'm not find similar options on the Z10.  Does anyone know how to do this? Right now I just turn off my stereo when I receive a call, but this isn't a good solution.  Thanks for any comments.

    Hello oumiahamada and welcome to the community of BlackBerry Support Forums.

    Thank you for your question about Bluetooth.

    The Z10 BlackBerry doesn't have the option to edit what services are allowed with a Bluetooth connection.

    Depending on your vehicle, you will need to access your Bluetooth set up or the settings in the dashboard of your car to control what features are Bluetooth-enabled.

    If you don't know how to access these settings, contact your dealer or see your owner's manual.

    See you soon!

  • Is blackBerry smartphones there a way to stream audio through a BlueTooth device?

    I know there are! When I am responsible for several radio sets, they played via Bluetooth. Then, after a few uses, it doesn't happen again. After many attempts, I was able to load a third radio show, and again, he has played just in my ear via Bluetooth. Then, poof! He is gone again.

    Is this a problem of Blackberry, Bluetooth or radio app?

    Because I had so many problems with my phone, I'm curious to know if it is an application that I need to install/reinstall on my phone.

    It makes sense to play my music in my ear, where I only need to hear, rather than through the speakers where others can be disturbed.

    Help!

    Pax,

    Apryl

    [email protected]

    I got a response from the Pandora support team:

    By default, Bluetooth is turned off in the Pandora app. Here's how
    activate Bluetooth support:

    * To the screen "List of stations", press the "BlackBerry" button on your phone.
    * Select 'Options' from the menu that appears.
    * The value "Activé" Bluetooth

    Once activated, Pandora will attempt to use any Bluetooth connected
    device, preferably an A2DP device.

    If you add or delete a Bluetooth headset, while the music plays
    Pandora, you may need to put in pause/play the song for the audio OK
    routing for kick (or wait for the next song start).

    I followed these instructions and VOILA! I have people sing in my ear.

  • BlackBerry Z10 Bluetooth streaming audio question

    Since 10.3.1 on my Telus Z10 stl3

    When I first upgraded to 10.3.1 all associated BT seemed to work pretty well except for the phone should continue to play the song after I turned off the sync from Ford and opened the door. Normally he stopped at this stage.

    Then a week later I can not the audio out of the car system. BT connect, the phone works, I can launch the audio player via the voice command of the car, the song and I can jump forward and back with the buttons on the wheel, but not sound. It is as if the volume down (which is not)

    I have re-paired on the phone a couple of times, I did a boot cold on the phone with a hot couple starts.

    Any suggestions?

    Thank you.

    So, the solution was to use a link BB/preferences/charging device software. NOT FACTORY RESET, which is a security wipe.

    It is a soft brick, it wiped everything and reloaded the OS current carrier.

    Everything is good.

    I add still held apps of BBworld a little at a time to see if one of these were the reason messed Bluetooth.

Maybe you are looking for