Playing video in media player blackberry - blackberry

I am having problem in playing videos in media player using the direct URL in blackberry. guide me to solve the problem?

Here you go:
http://supportforums.blackberry.com/t5/Java-Development/Playing-Audio-in-Your-Application/ta-p/446826
There are a lot more tutorials in RIM's knowledge base.

Related

AVPlayer can't play Vevo Youtube video

I'm developing my youtube app on iOS and using AVPlayer to play video. But I don't know why my player can't play the Vevo video. Any idea for my problem? Thanks a lot.
You should use the iOS Youtube Helper library for playing youtube videos.
https://developers.google.com/youtube/v3/guides/ios_youtube_helper
I don't know if you can use the AVPlayer. I've seen some examples using MPMoviePlayerController on CocoaControls, like this one: https://www.cocoacontrols.com/controls/hcyoutubeparser or this one: https://www.cocoacontrols.com/controls/xcdyoutubevideoplayerviewcontroller
But I don't think using youtube's url directly in your player fits the ToS of the platform. So I will recommend you tu use the Youtube Helper Library if you are planning to publish your app.

Recording, Taking Snap Shot with HTTP Live streaming video running MPMoviePlayerController in iOS

I am working with an iOS application in which i have play HTTP Live streaming videos. So, i went through some tutorials in the internet and some how i have played HTTP live streaming videos in MPMoviePlayerController in iOS.
But I have another problem with that i have to take snap shot of running streaming video in iOS and i have to record the live streaming video. I searched in the internet. I really did not find any good tutorial. I have to finish it with this two days. So please help me with it.
When i was trying take screen shot, i tried with thumbnailImageAtTime:moviePlayerController.currentPlaybackTime
timeOption:MPMovieTimeOptionExact, but it is able to get a thumbnail only for the local files not for the streaming video. And i did not find any source to record live streaming video. please help me with this. I'll be really very grateful to you.
Thanks in Advance.

Playing a .mov file without UIWebView or MPMoviePlayer

I am trying to play a video file with the .mov extension. It is not playing the video in my MPMoviePlayerController. I need to play this type of file in my application. Is it possible to play a video file without using MPMoviePlayerController or UIWebView?
Please anyone suggest me in this issue.
Thanks in Advance
I've never used it directly before, but take a look at the AVPlayer Class Reference.
Under the "Overview", you'll see:
You use an AVPlayer object to implement controllers and user
interfaces for single- or multiple-item playback. The multiple-item
case supports advanced behaviors.
If you look at the AV Foundation Programming guide (linked here), you'll see Apple builds the Media Player upon AV foundation.

How to free memory on youtube flash player/swfobject?

I am developing a page with one youtube player using swfobject.
To this one, I am playing several video using the youtube player javascript api.
I want to display those videos on my tv using the samsung browser or the google tv.
The problem is that the flash player is using a lot of memory and is crashing randomly.
I would like to know if there was a way to free memory while loading videos.
Here is my testing page: http://jsfiddle.net/5Wkze/3/embedded/result/
Thanks in advance for your help.
Maxime.

Phonegap Video player plugin for iOS [duplicate]

I am using a Phonegap plugin for playing a video in my iOS app. I'm able to play a video with the URL format like http://easyhtml5video.com/images/happyfit2.mp4.
How do I play Youtube videos using the phonegap-videoplayer-plugin?
YouTube Terms of Service: "You agree not to access Content
through any technology or means other than the video playback pages of
the Service itself, the Embeddable Player, or other explicitly
authorized means YouTube may designate."
There are some methods that will give you direct link to youtube videos. Use "gdata" option to find all possible video formats.
Then parse the result to get desired link. Hope this might be useful
But everywhere I found the code to be edited in .m and .h files. None have explained how to use it.
That's because you can only directly use MPMoviePlayerController from native apps (written in Objective-C). For any other technology you'll have to have an intermediary layer in between.
From googling, I found this plugin for PhoneGap that claims to integrate with MPMoviePlayerController. I've no idea if it's any good, but it might do as a starting point.
try to give the youtube url in this format.
http://www.youtube.com/embed/jxXukpxNSx4
You will get the desired result. But Autoplay is not enabled, as Apple stopped supporting autoplay to save user's bandwidth

Resources