Non è possibile riprodurre video su Samsung Stock player
-
26-12-2019 - |
Domanda
Intent i = new Intent(Intent.ACTION_VIEW);
Uri uriforintent = Uri.parse(uri);
i.setDataAndType(uriforintent, "video/*");
//startActivity(i);
startActivityForResult(i, 0);
.
Il video è un file locale Playable da Samsung Stock Player Vid Se chiamo STARTACTIVITÀ () . Non riesce solo a giocare con StartactivityForresult () .
I seguenti errori sono stati registrati:
06-02 19:07:12.742: E/MediaPlayer(23993): Error (1,-2147483648)
06-02 19:07:12.742: E/MoviePlaybackService(23993): TouchPlayer :: mErrorListener = 1<<<<<<<<<<<<
06-02 19:07:12.742: D/MoviePlayer(23993): onSvcNotification - action : 104
06-02 19:07:12.742: E/MoviePlayer(23993): createErrorDialog(action, intent). action = 104
.
Qualcuno affronta lo stesso problema con Samsung Stock Player ?
Soluzione
Poiché ACTION_VIEW
non è progettato per l'uso con startActivityForResult()
, e dal momento che non sarà effettivamente ottenuto un risultato, basta utilizzare startActivity()
.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow