MediaPlayer error() not marked as Qt signal?
Hello
Using the SDK 10.1.0.4828 and try to catch the mistakes of MediaPlayer. Momentics, the line below is reported as a bug and my slot is never called.
this->connect(&m_player, SIGNAL(error(bb::multimedia::MediaError::Type mediaError, unsigned int position)), this, SLOT(onPlaybackError()));
the error is:
MediaPlayer::error(bb::multimedia::MediaError::Type mediaError, unsigned int position) has not been tagged as a Qt signal; make sure all parameter types are fully qualified.
the application compiles and works very well, but if there is a mistake in the reading of the media, my onPlaybackError() function never fires.
How do I make this signal/slot connection to make it work?
THX,
J
Do not include the parameter names in the connect(), only to types. Also, your site must have parameters to your signal, even if you don't use them. If it is not the connection will fail.
Finally, it is common to save the return value of connect() function and then test it with Q_ASSERT(), so you are alerted to signal/slot connection issues when you run the application. This can save debugging headaches later.
oddboy wrote:
Hello
Using the SDK 10.1.0.4828 and try to catch the mistakes of MediaPlayer. Momentics, the line below is reported as a bug and my slot is never called.
this->connect(&m_player, SIGNAL(error(bb::multimedia::MediaError::Type mediaError, unsigned int position)), this, SLOT(onPlaybackError()));the error is:
MediaPlayer::error(bb::multimedia::MediaError::Type mediaError, unsigned int position) has not been tagged as a Qt signal; make sure all parameter types are fully qualified.the application compiles and works very well, but if there is a mistake in the reading of the media, my onPlaybackError() function never fires.
How do I make this signal/slot connection to make it work?
THX,
J
Tags: BlackBerry Developers
Similar Questions
-
Error() MediaPlayer does not?
Hey gang,
I am trying to connect the error() signal in the MediaPlayer to a location private in a custom class. The code is:
connect(&m_player, SIGNAL(error(bb::multimedia::MediaError::Type, unsigned int)), this, SLOT(onPlaybackError(bb::multimedia::MediaError::Type, unsigned int)));
and the slot is:
void Job::onPlaybackError(bb::multimedia::MediaError::Type mediaError, unsigned int position) { qDebug() << "Job::onPlaybackError(), mediaError: " << mediaError << ", and position: " << position; emit finished(m_taskName, 256); }
I can see in the console there is an error if there is no such thing as the mp3 that I'm playing, but my slot onPlaybackError() is never called. the application compiles and works very well, but the slot never fires.
I have an another slot defined that I connect to the playbackCompleted() signal in the MediaPlayer, and it works perfectly... Really there is not much difference between the two that I see. both are defined as private in the header file locations. that is to say:
private slots: void onPlaybackCompleted(); void onPlaybackError(bb::multimedia::MediaError::Type, unsigned int);
no idea why we could work and the other is not?
Thank you!
J
Yes, that would be my next suggestion. 'File not found' is not really an error in media, more like a system I/O problem, so maybe as you say that's not pulled the signal of error on MediaPlayer. I expected MediaError.SourceUnavailable to be triggered, but the docs do not provide a lot of details on this one. Maybe you need to use QFile to confirm the existence of the MP3 before submitting it again to MediaPlayer.
oddboy wrote:
Hello
I tried Q_ASSERT (result) on the connect line that bothers me, and the app does not end.
I also print the qDebug() 'Result' variable. Here is what says the console:
############# Q_ASSERT(result) is true
And yet, the signal never fires. I'm starting to wonder if error() signal is not pulled for the problem that I'm trying to catch - which is actually an mp3 player that does not exist.
My test is simple:
create a MediaPlayer
Set the source to a mp3 player that exists
Play() sound
result = everything is ok
Rename the mp3 and try to play the sound
result = sound is not played, but MediaPlayer::error() does not.
My onPlaybackError () handler is quite simple...
void Job::onPlaybackError(bb::multimedia::MediaError::Type mediaError, unsigned int position) { qDebug() << "Job::onPlaybackError(), mediaError: " << mediaError << ", and position: " << position; }
Here's the MediaPlayer debugging too...
.. puzzled even...
START 19 MediaPlayer::setSourceUrl MediaPlayer::setSourceUrl: url=QUrl("/accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3") START 19 MediaPlayerPrivate::detachInput START 19 MediaPlayerPrivate::setMediaState MediaPlayerPrivate::setMediaState: Attempting to change to same state. mediaState=Unprepared => END 19 ( 4 ms): => END 19 ( 9 ms): START 19 MediaPlayerPrivate::setMediaState MediaPlayerPrivate::setMediaState: Attempting to change to same state. mediaState=Unprepared => END 19 ( 4 ms): MediaPlayer::setSourceUrl: emit sourceChanged() MediaPlayer::setSourceUrl: url=QUrl("/accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3") => END 19 ( 26 ms): START 19 MediaPlayer::prepare START 19 MediaPlayerPrivate::generateAudioOutputUrl MediaPlayerPrivate::generateAudioOutputUrl: audioOutput=Default => END 19 ( 4 ms): START 19 MediaPlayerPrivate::generateVideoOutputUrl MediaPlayerPrivate::generateVideoOutputUrl: videoOutput=None MediaPlayerPrivate::generateVideoOutputUrl: windowId="" MediaPlayerPrivate::generateVideoOutputUrl: windowGroupId="" => END 19 ( 12 ms): START 1 MmrContextNotifier::onReadyRead START 19 MediaPlayerPrivate::updateAudioOutputParams MmrContextNotifier::onReadyRead: QMap(("@output0", PpsAttribute(Object, QFlags(0x4) , QMap() ) ) ) => END 19 ( 3 ms): => END 1 ( 5 ms): START 19 MediaPlayerPrivate::attachInput START 1 MmrContextNotifier::onReadyRead MediaPlayerPrivate::attachInput: url=QUrl("/accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3") MmrContextNotifier::onReadyRead: QMap(("@output0", PpsAttribute(Object, QFlags() , QMap(("type", PpsAttribute(String, QFlags() , "audio" ) ) ( "url" , PpsAttribute( String, QFlags() , "audio:default" ) ) ( "volume" , PpsAttribute( String, QFlags() , "100" ) ) ) ) ) ) MediaPlayerPrivate::attachInput: Attempting to attach input. url="file:///accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3", type="playlist" => END 1 ( 4 ms): START 19 MediaPlayerPrivate::lastError => END 19 ( 2 ms): MediaPlayerPrivate::attachInput: Attempting to attach input. url="/accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3", type="autolist" START 1 MmrContextNotifier::onReadyRead MmrContextNotifier::onReadyRead: QMap(("@play-queue", PpsAttribute(Object, QFlags(0x4) , QMap() ) ) ) START 1 MmrContextNotifier::onPpsPlayQueueChanged => END 1 ( 1 ms): => END 1 ( 10 ms): START 1 MmrContextNotifier::onReadyRead MmrContextNotifier::onReadyRead: QMap(("@play-queue", PpsAttribute(Object, QFlags(0x2) , QMap() ) ) ) START 1 MmrContextNotifier::onPpsPlayQueueChanged => END 1 ( 1 ms): => END 1 ( 5 ms): START 19 MediaPlayerPrivate::lastError => END 19 ( 2 ms): MediaPlayerPrivate::attachInput: Unable to attach source input. url="/accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3", e=SourceUnavailable => END 19 ( 43 ms): MediaPlayer::prepare: Error attaching input source, error=SourceUnavailable => END 19 ( 82 ms): START 19 MediaPlayer::play START 19 MediaPlayer::prepare START 19 MediaPlayerPrivate::generateAudioOutputUrl MediaPlayerPrivate::generateAudioOutputUrl: audioOutput=Default => END 19 ( 2 ms): START 19 MediaPlayerPrivate::generateVideoOutputUrl MediaPlayerPrivate::generateVideoOutputUrl: videoOutput=None MediaPlayerPrivate::generateVideoOutputUrl: windowId="" MediaPlayerPrivate::generateVideoOutputUrl: windowGroupId="" => END 19 ( 6 ms): START 19 MediaPlayerPrivate::updateAudioOutputParams => END 19 ( 2 ms): START 19 MediaPlayerPrivate::attachInput MediaPlayerPrivate::attachInput: url=QUrl("/accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3") MediaPlayerPrivate::attachInput: Attempting to attach input. url="file:///accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3", type="playlist" START 19 MediaPlayerPrivate::lastError => END 19 ( 1 ms): MediaPlayerPrivate::attachInput: Attempting to attach input. url="/accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3", type="autolist" START 1 MmrContextNotifier::onReadyRead MmrContextNotifier::onReadyRead: QMap(("@play-queue", PpsAttribute(Object, QFlags(0x4) , QMap() ) ) ) START 1 MmrContextNotifier::onPpsPlayQueueChanged => END 1 ( 2 ms): => END 1 ( 6 ms): START 1 MmrContextNotifier::onReadyRead MmrContextNotifier::onReadyRead: QMap(("@play-queue", PpsAttribute(Object, QFlags(0x2) , QMap() ) ) ) START 1 MmrContextNotifier::onPpsPlayQueueChanged => END 1 ( 1 ms): => END 1 ( 5 ms): START 19 MediaPlayerPrivate::lastError => END 19 ( 2 ms): MediaPlayerPrivate::attachInput: Unable to attach source input. url="/accounts/1000/appdata/com.oddelement.bron.testDev_lement_brondbbdfa23/shared/misc/sound.mp3", e=SourceUnavailable => END 19 ( 39 ms): MediaPlayer::prepare: Error attaching input source, error=SourceUnavailable => END 19 ( 58 ms): MediaPlayer::play: Unable to prepare the player. error=SourceUnavailable => END 19 ( 62 ms):
-
Error 2503 called RunScript is not marked in progress
Cannot add or remove programs, always get this - "error 2503 called runscript is not marked in progress" the date in Windows Vista SP2 is set correctly. In my view, that this error occurred initially during the installation of an upgrade of the program. I also set permissions of files to show the files hidden by a suggestion. I'm at a standstill, any help is appreciated.
Hi ALSJeff,
O which program are you trying to install or uninstall?
This problem occurs if the date is incorrect. Since you've already tried, try the following steps.
Step 1
Use the windows Cleanup utility to uninstall programs and then install the required programs.
http://support.Microsoft.com/kb/290301Step 2
Try to activate the built-in Administrator account and check if you are able to install or uninstall programs successfully.
http://support.Microsoft.com/kb/555910
Try these steps and let us know the result.
Bindu S -Microsoft Support
[If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.] -
I get an error trying to update the drive that is suggested by creative cloud. Error 2753. The file 'acrosup64.dll' is not marked for installation. I tried to uninstall and re - install drive, but when it's time to update again, I get the same error. Is there a solution or get around it?
Hi freddiebegood,
Please see this KB for the solution https://helpx.adobe.com/acrobat/kb/error-internal-error-2753-install.html.
Kind regards
Nicos
-
Hi all
In the course of implementing in place process with my computer window Mobile 7-64 bit, it was display error message "acrosup64.dll is not marked for installation" interrupt the process.
Someone help me overcome the question please. Thank you
Have you tried just download the EXE and install it from there instead of the web installer?
-
Error 2753. The file 'Dist_acrotray.exe' is not marked for installation
Hello
I tried for days understand this problem with the Adobe Acrobat X Pro update. Whenever I try to update the software, via slot help, or click the icon to update in the system tray, then proceed to download the update, but get the error 2753. The file 'Dist_acrotray.exe' is not marked for installation.
I tried to fix the software from the Control Panel, and I also reinstalled Acrobat as well. Help, please!
Thank you
Mike
Specifications of the computer: Win7 Ultimate 64-bit
Hi mobl11,
You may wish to consult the Doc KB: http://helpx.adobe.com/acrobat/kb/error-internal-error-2753-dist.html
-
error the file acrosup64.dll is not marked for installation
I'm having problems with adobe reader ease (79%) of the drive, he said "the file acrosup64.dll is not marked for installation ' I have a windows 8.1.
Try the following
- Update, unzip it, then run the cleaner tool http://labs.adobe.com/downloads/acrobatcleaner.html
- Download and run the Installer http://get.adobe.com/reader/enterprise/ offline
-
Dual monitor - not compatible with this signal TV
original title: dual monitor
Hello!
I connected my laptop to my LCD TV and chose the option to only display on the external monitor. Unfortunately I get the error message on my TV "not compatible with this signal. Because it does not work and I can't see I can't change all the options in the display configuration. How can I restore my original settings so that when I connect to my TV the picture is displayed on my laptop?
Thank you in advance for your help!
XO steph
Try typing the F8 key before Windows starts to appear in the start menu and select this option to start safe mode. Make the changes to the view that you need to save and restart. You can also try to plug an external monitor instead of your TV to see if you can see a picture then and make the necessary changes.
"scaro013" wrote in the new message: * e-mail address is removed from the privacy... *
Hello!
I connected my laptop to my LCD TV and chose the option to only display on the external monitor. Unfortunately I get the error message on my TV "not compatible with this signal. Because it does not work and I can't see I can't change all the options in the display configuration. How can I restore my original settings so that when I connect to my TV the picture is displayed on my laptop?
Thank you in advance for your help!
XO steph
-
I get this error message when I'm not working in code view (to the breast and the editable region of a template):
You have made changes to the code that is not marked as editable...
Even if it's breast and the editable region. When I work in design mode, I don't get this problem. What happens here?Thank you! I think that's the deal!
-
I have most of my emails containing the tag. I need to sort those not marked.
Are all of my emails in the Inbox and I tag them color. I need to find anyone who is not marked. Is there a way to sort them to show no marked ones all together?
Make a right-click any button of the column (the buttons at the top of the columns that you click to sort), activate the Tag column, and then click the Tag sort by tag button column.
-
After you apply a systematic update on Windows XP, I started having "not responding" to stop and had to cancel the task through the Task Manager. The error "not responding" moved to the selection of items on a screen and had to cancel via the Task Manager. I applied the updates and that did not fix the problem. The last update was 34.0.5 and FireFox would not start up. I noticed several people also had this same problem with Windows 7 (although my Windows 7 works ok - touch wood).
34.0.5 upward in safe mode but would not come otherwise. I did a Reset and FireFox started with Extensions disabled. The first expansion, I have activated was Norton 2014 Toolbar and FireFox did not come to the top. After application of all available newly INDEPENDENT States fixed, FireFox came upward with the NIS active 2014 and seems to operate normally in the present tense.
Some added addons toolbar and anti-virus are known to cause
Firefox issues. Disable all of them.Start Firefox in Safe Mode {web link}
While you are in safe mode;Type of topic: preferences #advanced< enter > in the address bar.
Under Advanced, select General.
Find and stop using hardware acceleration.Search web sites secure. Are there problems?
Then restart.
-
Pocket not mark as read and move on to the agenda
When I click the play tab something pocket on Firefox, it continues to display the same article again and again. It does not mark it as read and move to the next item on my list.
Hello if please contact directly the developers of extension by the way to their home page - they can probably give you more detailed advice and are the only ones who can fix bugs or make necessary adjustments in the addon. Thank you...
-
Does not mark the emails as unread - iOS 9.3 and Exchange account
Hello
It drives me crazy! I'm an iPhone user for many years since the first iPhone.
I use the mail with exchange account application.
Given that I have updated to iOS 9.3 I does not mark the emails as unread after they are read.
The status "unread" is constantly reset to 'read '.
I lose emails because of it!
Who can help on this?
Thank you
Oded
This isn't the behavior that I'm observing.
Have you tried a simple Reset by pressing the Home and Power buttons until the Apple logo appears.
-
How can I stop mail that is NOT marked as spam to be sent to my Junk folder?
How can I stop mail that is NOT marked as spam to be sent to my Junk folder? In some cases, it's the messages that were once reported as junk that I scored is NOT undesirable. in other cases, it's the messages that have never been reported as spam, but are sent to the junk e-mail folder. Same recipients over and over.
I'm running OS X 10.11.3
I can't find a way to mark a message in my junk as e-mail folder as not junk. Some versions of Mac OS x there is there a way to mark a message as "not junk". Every once in a while I find valid messages hidden in my Junk folder. There is no indication in the help on how to mark them "not junk" (usually help isn't much help!). I see that no one has replied to your message, Nix-649. Google talks about it, but nothing is very recent. I'm under El Capitan, 10.11.3.
-
Why my documents are not marking?
I notice I can only tag 1 document at once (excel spreadsheet) if I try to bulk mark them by selecting all the and apply a new label, the label appears in the list of tags, but on the selection tag, elements are not displayed as tag.
I find in bulk tagging works with some things, but not with others.
all these files/folders that I have tested on my mac (not an external drive) lie.
I don't have a projector set to hide (Privacy).
I posted in the wrong forum here
Re: why are my documents not marking?
Leonie gave a suggestion I tried (adding my drive to honor confidentiality tab then remove for re - index the reader)
not sure how long it will take for re-index, so far, no change to the situation.
fixed after a reboot.
Maybe you are looking for
-
How can I insert a new blank page immediately after a proposed page
I'm trying to change an iBook of 147 pages, and I want to add a new blank page immediately after page 73. I tried ctrl-click on the page, but the new page is added at the end of the chapter, which is obviously not where I want to.
-
Hello can anyone give solution to my problem. my iPhone touch 5 works not when it is in locked mode and it's time all incoming call came the touch works do not. other times, the touch works normally wat is the problem. ?
-
Skype reciveing not incoming calls
I use Skype 7.24 on win 10 I can't receive incoming calls if I get a group call, a conversation Untitled window appears and I can't join the call as it just keeps ringing at the other end This problem persists on the Office of Skype and Skype web How
-
Hello world There is limit in push notification in 100000 per day... so I would like to know, how, it will have to push them... If Rim send 1 pulse to 5 device has push 5 or 1 pulse?
-
remove objects created dynamically ImageView
I'm having a problem removing the ImageView objects I created during execution. I have an array of objects ImageView. bb::cascades::ImageView *m_imObj[20]; I have then create and manipulate objects while executing. m_imObj[m_counter] = ImageView::cre