media

Access ordered images and video in same Cursor

人盡茶涼 提交于 2019-12-17 08:23:31
问题 I'm using the android.content.CursorLoader class to create two Cursor objects to access media stored on the user of my app's device. I'd like to give the user a grid view of their stored images and video which preserves order from the Android Gallery app. Currently I'm using one Cursor to access Images and one to access Video. With this approach, all images precede all videos (i.e. they are in two separate groups). Is there a way to access both Images and Video from the same Cursor ? If not,

Phonegap Sound stops playing after calling playAudio() 30 to 40 times

点点圈 提交于 2019-12-14 03:47:00
问题 In my app i have given sound response on mouse click. This is how i have done i have called the function like this <center><input id="click_flip" type="button" value="Click Me" class="clickme" onclick="callplay()"></center> here is the function <script type="text/javascript" charset="utf-8"> function callplay() { if(voice=="male") playAudio('/android_asset/www/Mobile/sound/Male/'+rand1+'.mp3'); else playAudio('/android_asset/www/Mobile/sound/Female/'+rand1+'.mp3'); } // Audio player // var my

Sitecore Media Library MaxSize

谁说我不能喝 提交于 2019-12-14 02:34:18
问题 In Sitecore, I'd like to set Upload MaxSize only for image files. We can update Media.MaxSizeInDatabase to set the MaxSize, but this setting includes all files in Media Library. Is there any way to set MaxSize only for image files? Or, can I create any validation for this?? Thank you in advance!! ========= Update ========== I tried to use all code and setting, but it was not working. I think Code is fine, but I might have to make sure the place of configurations. When I add "xmlns:patch"

How to Play Web Address URL to Media Player in android?

白昼怎懂夜的黑 提交于 2019-12-13 22:18:22
问题 My URL contains number medial related URLs which we have to play in media player. When i am passing my any media url with extension .mp3 or .mp4. it plays but whn i am passing any url that holds list of URLs then it is not playing in medi payer. Please tell me how can i resolve this issue ? 回答1: this will help you: private void PlayOnlineUrl() { String url = "http://www.gaana.mp3"; // your URL here MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM

How do you compress captured video in Silverlight?

荒凉一梦 提交于 2019-12-13 19:08:48
问题 One of the big deals in Silverlight v4 is audio/video capture... but I haven't found an example yet that does what I want to do. So: How do you capture audio/video with Silverlight (from a webcam), and then save it as a compressed format (WMV or MP4)? The idea here is to upload it after compression. Have already looked at this blog post for the capture piece, but need to find a way to compress audio/video for upload. 回答1: Silverlight does not support video encoding and more likely this won't

Create player (which doesn't play file)

喜你入骨 提交于 2019-12-13 17:56:23
问题 I have a class that create video player (code is attached below), this class work only with video file. I want to show the player without a video file, and when I send to the object, by public method " setFile ", it's will start to play. I tried to send "null", instead of a file to this class, but I got an error (" java.lang.NullPointerException "). VideoPlayer player = new VideoPlayer(null, videoWidth, videoHeight); And the error: Exception in Application start method java.lang.reflect

android.media.MediaExtractor. Anyone got this beast to work? “Failed to instantiate extractor” exception

核能气质少年 提交于 2019-12-13 16:56:40
问题 Trying to run this (example code from developer.android.com) MediaExtractor extractor = new MediaExtractor(); extractor.setDataSource("/sdcard/myvideo.mp4"); Getting "Failed to instantiate extractor" exception on the second line. Tried to place the file in internal storage, tried to access via FileDescriptor, nothing helped. Anyone?? I/MonoDroid( 6802): UNHANDLED EXCEPTION: Java.IO.IOException: Exception of type 'Java.IO.IOException' was thrown. I/MonoDroid( 6802): at Android.Runtime.JNIEnv

is there an open source social media/network site framework?

爷,独闯天下 提交于 2019-12-13 16:41:59
问题 I have an app that is made already, but thought of also bringing in social media/network elements like sharing widget, creating widget, creating certain widget social groups, ability to write their own modified widgets and publish it....etc 回答1: Is Mugshot from Redhat what you are looking at? 来源: https://stackoverflow.com/questions/2643277/is-there-an-open-source-social-media-network-site-framework

How to Display time of videoview in android

六月ゝ 毕业季﹏ 提交于 2019-12-13 16:14:38
问题 I have a VideoView for Play Video and MediaControler for it I want Display time of video in textview and change it per time of video I use this code for Playing video : private void play(String uri) { _player.setVisibility(View.VISIBLE); _player.setVideoURI(Uri.parse(uri)); MediaController mc = new MediaController(this); _player.setMediaController(mc); _player.start(); Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight();

Save pictures to custom folder in media library

ⅰ亾dé卋堺 提交于 2019-12-13 14:11:34
问题 WhatsApp now saves pictures to a custom folder named "WhatsApp" in the media library. Is WhatsApp using a undocumented API or is this possible for every developer? Right now I am only aware of the possibility to save pictures to the "Camera Roll" or to the "Saved Pictures". 回答1: It appears WhatsApp has special permission to do that as no current APIs for Windows Phone 8 (with GDR3) allow you to specify a folder name. The hope is that Windows Phone 8.1 will introduce new APIs for both saving