Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
somnathbanik
Posts: 19
Registered: ‎05-21-2012
My Device: Bold
My Carrier: Vodafone

Re: Playing Streaming Video

As I said I can play Streaming video if there is no special/space characters in the URl.

For special/space character is used

QUrl url = QUrl::fromEncoded("http://mydomain.com/new%20video/sample.wmv");
cardrequest.setUri(url);

But not working :-(
Please use plain text.
Contributor
somnathbanik
Posts: 19
Registered: ‎05-21-2012
My Device: Bold
My Carrier: Vodafone

Re: Playing Streaming Video

[ Edited ]

Hi,

 As I said I able to play Streaming video if there is no special/space character in the URL.

 

For special/space is used the below code;

 

QUrl url = QUrl::fromEncoded("http://mydomain.com/new%20video/sample.wmv");
cardrequest.setUri(url);    

 

But its not working :-( get the same Error 13

 

Though the error comes while trying to play the file in the default media player, but I am play huge file if there is not space in the url, also if I put the same file in a location where there is no space in the url then it plays perfect,

Please use plain text.
Developer
Developer
lew
Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha
My Carrier: -

Re: Playing Streaming Video

error 13 = OutOfMemoryError

 

how big is that file?

Please use plain text.
Contributor
somnathbanik
Posts: 19
Registered: ‎05-21-2012
My Device: Bold
My Carrier: Vodafone

yes Re: Playing Streaming Video

Yes, the MediaError list says that its OutOfMemoryError , but when I put the video file in an other remote location which doesn't have any space(%20) in the video link then its wokring perfect.

Please use plain text.
Developer
Algorithmus
Posts: 16
Registered: ‎09-17-2012
My Device: Developer

Re: Playing Streaming Video

The media player not being able to play remote URLs with spaces is actually a bug. A possible workaround for this is to put the link in a playlist .m3u file on your device and use that instead. Works for both videos and music, but it would be nice if they fixed this anyways.

Please use plain text.
BlackBerry Development Advisor (Retired)
s_rashid
Posts: 127
Registered: ‎02-27-2012
My Device: Bold
My Carrier: Rogers

Re: Playing Streaming Video

 

Hello,

 

Yes, the Qt MediaPlayer API currently has a few big bugs:
1) 
 URLs with spaces don't play properly

2) .m3u URLs may not work properly

 

I have already escalated both of these issues internally - trying to get the solution in for the next SDK update(s).

 

Also, the simulator, Unfortunately, has very limited supported on multimedia playback at the moment. This is due to the fact that the simulator doesn't have enough decoders (proprietory reasons). Feel free to open up a feature request through JIRA : https://www.blackberry.com/jira/secure/Dashboard.jspa regarding this. I have actually been trying to convince some teams for getting more codec support in the simulator; more public requests will help.

Please use plain text.
BlackBerry Development Advisor (Retired)
s_rashid
Posts: 127
Registered: ‎02-27-2012
My Device: Bold
My Carrier: Rogers

Re: Playing Streaming Video


@somnathbanik (and everyone else in thread)

Just like the Qt MediaPlayer API, the Media previewer also has some bugs right now with respect to URLs with spaces. And your URL seems to have spaces (encoded).

Your code:  

QUrl url = QUrl::fromEncoded("http://mydomain.com/new%20video/sample.wmv");

 

While we try to get all these fixes in (in the next SDK releases - I have already escalated the following issues), these are my own testing results.

I am sharing it here so that everyone knows what works and what doesnt;

These are the known results for the media previewer (paths with spaces):


"/accounts/1000/shared/music/My Track.mp3" <-- works
"file:///accounts/1000/shared/music/My Track.mp3" <-- works
"file:///accounts/1000/shared/music/My%20Track.mp3" <-- works
"file:///accounts/1000/shared/music%25My%20Track.mp3" <-- does NOT work

 

For the Qt MediaPlayer API:

 

// local file with spaces

                sourceUrl: "/accounts/1000/shared/music/name with spaces.mp3"  <-- Works

 

// local file with %20, instead of spaces

                sourceUrl: "/accounts/1000/shared/music/name%20with%20spaces.mp3" <-- Works

 

// URL with spaces

                sourceUrl: http://www.stephaniequinn.com/Music/Allegro from Duet in C Major.mp3 <-- Doesn’t Work in both the MediaPlayer API and mm-renderer API (if I directly use the C mm-renderer API in a native app)

 

// URL with %20 instead of spaces

                sourceUrl: http://www.stephaniequinn.com/Music/Allegro%20from%20Duet%20in%20C%20Major.mp3  <-- Doesn't work in Qt MediaPlayer API
.(works in a native app with mm-renderer API C API but DOESN’T work with Qt MediaPlayer API)

Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Playing Streaming Video

Will i be able to test this in the sim or only on the dev

 

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.
Contributor
girish_bb10
Posts: 12
Registered: ‎12-15-2012
My Device: BB 10 Alpha
My Carrier: Blackberry

import bb.multimedia 1.0 issue

Hi,

I am trying to 

import bb.multimedia 1.0 but ndk is not giving me intallegence in the qml view. due to which i am unable to acess the properties of MediaPlayer 

Please use plain text.
Regular Contributor
shupor
Posts: 65
Registered: ‎08-29-2010
My Device: Z10
My Carrier: T-Mobile USA

Re: Playing Streaming Video

I know this post is like 2 years old but if you still have the code, could you please post the code that worked succesfully with playing audio from an http source?

Please use plain text.