目前我正在下載一個「.mp4」視頻並將其保存在一個文件夾中。我想從畫廊中隱藏它。我知道如何隱藏文件夾。目前我正在將它保存在一個不同的擴展名爲ex。像「.sss」,它正在保存正常。現在,我該如何在我的應用程序中播放該視頻。我們可以更改視頻的擴展名並播放它嗎?
我試着改擴建和文件,並嘗試玩它,但它不能正常工作,這裏是我的代碼
File extStore = Environment.getExternalStorageDirectory()+"/"+"downloadFolder"+"/"+"video1.sss".replace(".sss",".mp4");
JCVideoPlayer mJcVideoPlayerStandard = (JCVideoPlayerStandard) findViewById(R.id.videoplayer);
mJcVideoPlayerStandard.setUp(extStore.getPath(),JCVideoPlayerStandard.SCREEN_LAYOUT_NORMAL, "Normal");
mJcVideoPlayerStandard.showContextMenu();
我使用這個路徑來播放視頻,我usign播放視頻JcVideo球員lib下,這裏是它
compile 'fm.jiecao:jiecaovideoplayer:5.4'
當我節省了名爲」 .mp4" 格式的文件我能夠播放視頻的gradle產出。但是當我使用不同的格式時,我無法播放它。任何幫助將更可取
一般應用程序開發者使用應用程序專用文件夾來存儲他們不希望顯示在畫廊的圖片和視頻。 –