02-16-2013 09:42 AM
Hi all
I want to open the video url in the default media player of BB10.
Please provide any suggestion for this.
Thanks in advance
02-16-2013 01:01 PM
MediaPlayer {
id: myPlayer
sourceUrl: "https://dl.dropbox.com/u/17458564/Nueva%20carpeta/ Video/lovingyou.mp4"
videoOutput: VideoOutput.PrimaryDisplay
windowId: myForeignWindow.windowId
property bool isPlaying: false
onBufferStatusChanged: {
if (myPlayer.bufferStatus == BufferStatus.Buffering) {
// Show the ProgressBar when loading started.
bufferIndicator.visible = true
bufferingLabel.visible = true
} else if (myPlayer.bufferStatus == BufferStatus.Playing) {
// Hide the ProgressBar when loading is complete.
bufferIndicator.visible = false
bufferingLabel.visible = false
} else if (myPlayer.bufferStatus == BufferStatus.Idle) {
bufferIndicator.visible = false
bufferingLabel.visible = false
}
}
}This my app for example
02-17-2013 11:31 PM
02-18-2013 01:10 AM
Thanks marcossit
It is working for me, but the default media player buttons like play, pause and seek bar of player is not coming.
How can i get these, please suggest.
Thanks in advance.
02-18-2013 01:36 AM
Thanks marcossit,
I am able to play your url, but in my case im getting some yputube url from the service dynamically for those videos are not playing . i.e only blank screen is appering nothing is comming. can you suggest me how to play these type of links.
Thanks in advance,
Regards,
Lakshman K
02-18-2013 02:16 AM
using MediaPlayer API you wll have to draw your own playback control. I think if you use QDesktopService API, then it will open video with default player. there you will have all playback control.
02-19-2013 01:30 AM