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
CrystalBullet
Posts: 19
Registered: ‎02-14-2013
My Device: Red Z10
My Carrier: WIND Mobile
Accepted Solution

MediaPlayer cannot stream in Work mode

I have a few apps that stream SHOUTcast audio and HLS video using a MediaPlayer

Both from C++ and QML

They work fine in Personal mode, but when distributed via a BES and ran in Work mode they cannot stream content.

 

I get a MediaError::smileyfrustrated:ourceUnavailable error when calling play()

 

From what I've seen, the Nobex app http://appworld.blackberry.com/webstore/content/132152/ has the same issue.

 

Anyone as seen this, or have ideas on how to fix?

 

The only IT policy that I have set on the BES is to require a Work mode password

--
Martin Larochelle
Macadamian
http://bb10ize.me
Please use plain text.
BlackBerry Development Advisor (Retired)
s_rashid
Posts: 127
Registered: ‎02-27-2012
My Device: Bold
My Carrier: Rogers

Re: MediaPlayer cannot stream in Work mode

Hi @CrystalBullet,


Are you making your "Personal" to "Work" mode change WHILE the app is still running? That is, if you exit the app(s) and restart it again (after the "Work" transition has finished) does the issue fix itself?

 

Also, can you try to see if all the other network communcations is working as expected, after this *Work* mode transition? For example, what about the Browser app? What about the HUB? Any other apps which requires internet connectivity?

We haven't seen this issue previously but if you can provide enough data, logs, OS/SDK versions, we can try to track it down. You can also just file a bug through DIT and paste the link here; we can take that item and escalate to the respective development teams.

 

Cheers,

Rashid 

Please use plain text.
Contributor
CrystalBullet
Posts: 19
Registered: ‎02-14-2013
My Device: Red Z10
My Carrier: WIND Mobile

Re: MediaPlayer cannot stream in Work mode

The changing of modes does not affect it, it is only about how I distribute and start the app.

 

If the app is sideloaded, or installed from BlackBerry World, it works file.

 

The issues is when the app is distrubuted using the BES, or installed from "BlackBerry World - Work" and started in work mode, I cannot have media.

 

YouTube in the Work mode Browser can stream video, and when we do we see the traffic go trough the BES even if I only have 3G connection on the phone. The App is also making HTTP request using QNetworkAccessManager and 

QHttp without problem. So the connection to the BES and Internet connection seems to be up as expected. 

 

Our IT do not have any filter rules that should be blocking specific traffic from the phones, and if I Wifi connect the phone on the Network of the BES, the app works in Personal mode. So it does not seem to be a firewall issue.

 

I see this on OS Version 10.0.10.672, and it was also the same on the version versions.

I am using Cascades SDK 10.0.9.1673

 

--
Martin Larochelle
Macadamian
http://bb10ize.me
Please use plain text.
BlackBerry Development Advisor (Retired)
s_rashid
Posts: 127
Registered: ‎02-27-2012
My Device: Bold
My Carrier: Rogers

Re: MediaPlayer cannot stream in Work mode

Just a quick comment for now:

* Any particular reason why you are using an older SDK? You should be able to upgrade to at least 10.0.10.261 SDK (through the IDE, after you install the latest SDK from the developer.blackberry.com sites). Not sure yet if that will help your situation but it definitely always advisable to be updated to the latest OS/SDK versions.

Please use plain text.
Contributor
CrystalBullet
Posts: 19
Registered: ‎02-14-2013
My Device: Red Z10
My Carrier: WIND Mobile

Re: MediaPlayer cannot stream in Work mode

I am now using SDK 10.0.10.672 which matches the OS load on the phone, and I have the same issue.

--
Martin Larochelle
Macadamian
http://bb10ize.me
Please use plain text.
BlackBerry Development Advisor (Retired)
s_rashid
Posts: 127
Registered: ‎02-27-2012
My Device: Bold
My Carrier: Rogers

Re: MediaPlayer cannot stream in Work mode

Thanks. Would you able to provide some logs? Also, if you can quickly create a DIT issue here: https://www.blackberry.com/jira/secure/Dashboard.jspa

..Then we can take that and escalate it internally ASAP.

 

You can just copy/paste the details you provided in this thread and possibly some logs, if possible (for example: output from "slog2info", in the terminal, after you SSH into the device; you can also just copy the log file output from the app sandboxed area.

Please use plain text.
Contributor
CrystalBullet
Posts: 19
Registered: ‎02-14-2013
My Device: Red Z10
My Carrier: WIND Mobile

Re: MediaPlayer cannot stream in Work mode

Created: https://www.blackberry.com/jira/browse/BBTEN-986
--
Martin Larochelle
Macadamian
http://bb10ize.me
Please use plain text.
BlackBerry Development Advisor (Retired)
s_rashid
Posts: 127
Registered: ‎02-27-2012
My Device: Bold
My Carrier: Rogers

Re: MediaPlayer cannot stream in Work mode

Thanks. We already took the issue and made a corresponding internal bug report for it. If the issue does get resolved, you will be notified via that particular DIT issue. You can make comments on that particular DIT issue as well and continue the conversation from there, if needed.

Cheers,
Rashid

Please use plain text.