11-29-2012 09:20 PM
Thank you very much, I have figure it out.
11-30-2012 06:26 AM
Is it possible to put overlay qml element on top of invoked card?
Thanks
Dio
11-30-2012 12:07 PM
@diorahman
Unfortunately, no. At this point, you cannot edit or put QML elements on top of an invoked card. When you invoke a card, you are essentially just putting another application on top of yours (it animates/slides in like a *Sheet* or *NavigationPane* Page) and your app loses control. So you are limited to the implementation of whatever app you invoked to be on top of yours. Feel free to browse some of the BB Jam presentation materials (public info: videos, PDF slides etc) on the invocation & share framework, to learn more about what you can and cannot do.
http://www.blackberryjamconference.com/
That being said, it is not too difficult to implement your own media previewer/player, simply using QML.
Cheers,
Rashid
12-06-2012 01:44 PM - edited 12-06-2012 10:44 PM
is there a working sample for this yet would love to see how it works on the sim thanks
12-07-2012 12:36 AM
Hi Guys,
Could you please tell me where can I writetechnical articles on BB community site.
12-14-2012 07:04 AM
Hello, cause the sdk up to the gold version, I found the Invocation about Media Player have some thing change. So my code is going wrong when call the card to play vedio.
my code is like this:
void Myapp::invokeBoundMediaPlayer(QString uri) {
InvokeRequest cardRequest;
cardRequest.setTarget("sys.mediaplayer.previewer") ;
cardRequest.setUri(uri);
InvokeManager invokeManager;
invokeManager.invoke(cardRequest);
}and in qml file:
attachedObjects: [
FilePicker {
id: picker
property string selectedFile
title: qsTr("File Picker")
mode: pickerMode.selectedValue
type: pickerType.selectedValue
viewMode: pickerViewMode.selectedValue
sortBy: pickerSortBy.selectedValue
sortOrder: pickerSortOrder.selectedValue
onFileSelected: {
selectedFile = selectedFiles[0]
myClass.invokeBoundMediaPlayer(selectedFile);
}
}
]
so when I run my application, It said "Cannot assign [undefined] to QString".
I need your help, thank you very much.
01-10-2013 07:26 AM
Thank you !!!!!! its working. Do you know how to provide automatic controls for it. like progress bar. play and pause
01-13-2013 01:09 AM
Awesome! BTW, Why don't we have QtMultimediaKit compatibility?
Thx
02-14-2013 01:24 PM - edited 02-14-2013 01:25 PM
I got this working but I am seeing that the card closes as soon as the video stop playing instead of waiting for the user to hit back .... so the user can't share the video if they want. Is anyone else seeing this or am I doing something wrong. Thanks.
02-14-2013 01:27 PM
Yes, this is probably by design. Can you please make a quick feature request regarding this on the JIRA site? We can try to push it to the product/dev team from there.
Thanks,
Rashid