- Jun 6, 2020
- 11,559
- 4,422
I am using Exoplayer in a new project to play audio and video files.
In the detail page I have put a button to play the file. The content string comes from a database field that was filled earlier using the content chooser.
When i press the play button i catch the Permission Denial error in the Exoplayer error event.
On the same detail page i have placed another button to start the content chooser. I press that button.
In the content chooser i tap on the same file.
Back in the detail page i check the filename again and it is the same string. Only now the exoplayer is ready to play.
I press the play button again and the exoplayer plays the file.
What does the content chooser do more that i don't do in the first instance?
Or in other words: how can i obtain access to the file?
Log details:
*** detail: B4XPage_Created [mainpage]
*** mainpage: B4XPage_Disappear [mainpage]
*** detail: B4XPage_Appear [mainpage]
content://com.android.providers.media.documents/document/audio%3A1624
Error...
In the detail page I have put a button to play the file. The content string comes from a database field that was filled earlier using the content chooser.
When i press the play button i catch the Permission Denial error in the Exoplayer error event.
On the same detail page i have placed another button to start the content chooser. I press that button.
In the content chooser i tap on the same file.
Back in the detail page i check the filename again and it is the same string. Only now the exoplayer is ready to play.
I press the play button again and the exoplayer plays the file.
What does the content chooser do more that i don't do in the first instance?
Or in other words: how can i obtain access to the file?
Log details:
*** detail: B4XPage_Created [mainpage]
*** mainpage: B4XPage_Disappear [mainpage]
*** detail: B4XPage_Appear [mainpage]
content://com.android.providers.media.documents/document/audio%3A1624
Error...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید