media

Uri on Activity.onActivityResult(int requestCode, int resultCode, Intent data)

こ雲淡風輕ζ 提交于 2019-12-12 05:39:18
问题 I have some doubts on the reliability of content providers in Android. 1 - Is it possible for different Document s having the same Uri? For instance. A user has 2 images in the device: content://com.android.providers.media.documents/document/image%AAAAA and content://com.android.providers.media.documents/document/image%BBBBB Supposing a scenario where AAAAA would point to a file, then the user erases that file. User then creates a new file in the system, and that new file receives the AAAAA

How to dub a video with audio in android

陌路散爱 提交于 2019-12-12 04:59:50
问题 I want to make a dubbing app in Android. Flow of the app is: Get video and audio from the gallery. Reduce the original sound of Video file. And mix (Dub) the selected audio on this video file. After mixing the audio on this video file save it in to external memory. I am using MediaMuxer for this, but m not success. Please help me regarding this. Regards, Prateek 回答1: even i was looking for the same to dub my video with an audio using mediaMuxer, MediaMuxer was a little difficult concept for

Windows Media Player ctlcontrols.play and URL don't work

丶灬走出姿态 提交于 2019-12-12 04:44:28
问题 private void mediaPlayer_Enter() { string path = Path.GetFullPath(currentTrack.Text); System.Diagnostics.Debug.WriteLine(path); mediaPlayer.URL = path; mediaPlayer.Ctlcontrols.play(); } This is the piece of code which is being called when the state of the media player turns to "media ended". I know that it does execute that line of code but it still doesn't play. It takes the item out of the listbox (which is the playlist) and loads it into the mediaPlayer but does not Automatically play the

Media Controller in fragments

烂漫一生 提交于 2019-12-12 04:33:41
问题 I'm trying to make a media controller in Android studio but using a fragment instead of an activity, I'm using the code below, but it gives me the following error : public class Tab1Helloworld extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.tab1helloworld, container, false); return rootView; VideoView video = (VideoView)rootView.findViewById(R.id.videoView); video

SoundPool crashes in two scenarios. Code for first scenario crashes

帅比萌擦擦* 提交于 2019-12-12 04:18:00
问题 @Ian G. Clifton Here is the code for the first type of soundpool I tried. when the button to load the activity the program FCs back to the previous activity. code starts here but it doesn't transfer over:::::: public class SoundManager { private SoundPool mSoundPool; private HashMap<Integer, Integer> mSoundPoolMap; private AudioManager mAudioManager; private Context mContext; public SoundManager() { } public void initSounds(Context theContext) { mContext = theContext; mSoundPool = new

Does AVPlayer support DVB Bitmap subtitles?

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:05:33
问题 I currently work at a cable TV provider in Brazil which requires DVB Bitmap for some of its assets. I've searched quite alot on Google and Stackoverflow and haven't found any denial or confirmation about this. Does AVPlayer support DVB Bitmap subtitles? If not, which subtitle types does it support? 来源: https://stackoverflow.com/questions/46077711/does-avplayer-support-dvb-bitmap-subtitles

why are only the last two #html, #media query breakpoint, #links working?

放肆的年华 提交于 2019-12-12 03:50:10
问题 Hello my question is simple. I want link to multiple css stylesheets from my html but when i list the stylesheets only the last two links are being shown in my browser. All of the links, css work individually. But when i link all 5 from my html only the last two links work. <head> <title></title> <meta charset="UTF-8" > <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" media="(max-width: 319px)" href="css/minimum.css"> <link rel="stylesheet" media="

play the video content in Android without having uri and path to file

北城余情 提交于 2019-12-12 03:35:24
问题 I have a video file. i open the file and reading it. how can i play that file in android by direct pushing the content. i can not give the file path or path URI. we can assume that i am getting the video content by some protocol. that guy has opened the file and sending me the content in form of chunks. now i need to play those chunks. as i dont have path and URI. how can i push the data to Android player. i heared there is some way like we can store the data in some buf and than make that

Stagefright media delay in 2.2 after setting data source?

本秂侑毒 提交于 2019-12-12 01:44:49
问题 My first post here. This website has been very useful for learning Android programming, thanks to everyone. I have a simple app that loads an MP3 stream and plays it. It works fine on 1.6 and 2.1 but on 2.2 it doesn't quite work right. It seems my service is having a problem starting, it's giving my an ANR and the dialog where I have to tap "Wait", and then finally the service starts. Why is the service taking a long time to start up? Here's my simple code that sets the source and plays the

CakePHP 1.3 Media view not downloading ZIP file correctly

孤人 提交于 2019-12-11 19:42:27
问题 I recently migrated my site from CakePHP 1.1 to 1.3. I am now using media view to download files, however, I have a major problem. When I download a zip file through media view, and try to extract it, windows claims the file is empty. If I try to preview it, it says it is invalid. The file size is correct, same size as on server I can download the exact same file from the server via FTP, and it is correct I can download a pdf file through media view, and IT works correctly (but ZIP files do