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
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

MediaPlayer unsupported media format

are Videos from YouTube not supported ?

per ex. this BB Video doesnt work:

 

"http://www.youtube.com/watch?v=7LE_3SVRYx4&feature=youtu.be"

 

trying to invoke MediaPlayer with Target "sys.mediaplayer.previewer"

 

getting error  "This file contains an unsupported media format"

if using "Open in Browser" from the previewer card the Browser could open and play

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30
My Carrier: T-Mobile

Re: MediaPlayer unsupported media format

I don't think MediaPlayer (or WebView) supports Flash, only the actual "Browser"... would imagine this will be updated in the future.
---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: MediaPlayer unsupported media format


bcs925 wrote:
I don't think MediaPlayer (or WebView) supports Flash, only the actual "Browser"... would imagine this will be updated in the future.

yep

WebView fails

invoking sys.browser with bb.action.OPEN works

 

so question is: will this be supported at launch from WebView and MediaPlayer ?
 if not I would change some Actions to OPEN Browser instead of Invoking PreviewerCard or using WebView

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: MediaPlayer unsupported media format


ekke wrote:

are Videos from YouTube not supported ?

per ex. this BB Video doesnt work:

 

"http://www.youtube.com/watch?v=7LE_3SVRYx4&feature=youtu.be"

 

trying to invoke MediaPlayer with Target "sys.mediaplayer.previewer"

 

getting error  "This file contains an unsupported media format"

if using "Open in Browser" from the previewer card the Browser could open and play


That URL doesn't point to a video file, but to an HTML page embedding the video. The mediaplayer can't play HTML pages if course. You'll need to obtain a link to the underlying MP4 video. However, be aware that the Youtube terms of service forbids this...

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: MediaPlayer unsupported media format

thx....

 

but WebView should be able to view it like the browser itself does

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: MediaPlayer unsupported media format


Innovatology wrote:

.....You'll need to obtain a link to the underlying MP4 video. However, be aware that the Youtube terms of service forbids this...

so we have to wait for BB10 - YouTube App with Invoke-Card-Functionality to integrate YouTube Videos

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Contributor
Posts: 16
Registered: ‎04-05-2009
My Device: Bold 9930, PlayBook, and Dev Alpha
My Carrier: Verizon Wireless

Re: MediaPlayer unsupported media format

Back in November I was told by RIM that WebView would support flash/HTML video and would behave "exactly like the browser".  Also stated that this was still a fluid discussion so nothing is final.  I am attempting to reopen the discussion now.  Will let u know if I get any response.

Developer
Posts: 135
Registered: ‎04-25-2009
My Device: Z30
My Carrier: AT&T

Re: MediaPlayer unsupported media format

Well, BB10 has been launched at this point and I am unable to watch youtube videos in a webview in my app.

Any word on this?

Highlighted
Retired
Posts: 127
Registered: ‎02-27-2012
My Device: Bold
My Carrier: Rogers

Re: MediaPlayer unsupported media format

Hi @, (and everyone else here)

Starting with 10.1, the Cascades WebView component does support HTML5 video tags (previously, it didn't). That means, if you load a YouTube URL, the YouTube servers automatically choose the HTML5 version of the video and lets you play it. You can take a look at some of other apps which have already been using this, starting with 10.1 (e.g. Nobex Radio, SoundHound). By default, the playback takes over the full screen and goes to the default webkit media player Page (exactly like the browser's media player Page).

Hope this helps and let us know what you think.

Cheers,
Rashid

Application Development Consultant | Developer Relations

BlackBerry
@surashid