Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to Replace the steps Section 9 AudioPlayer #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MiladZarour
Copy link

I am getting this error

I/zygote ( 9419): Do partial code cache collection, code=17KB, data=21KB
I/zygote ( 9419): After code cache collection, code=17KB, data=21KB
I/zygote ( 9419): Increasing code cache capacity to 128KB
D/EGL_emulation( 9419): eglMakeCurrent: 0xdc304780: ver 2 0 (tinfo 0xdc3038e0)
V/MediaPlayer( 9419): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer( 9419): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer( 9419): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null

I am getting this error 

I/zygote  ( 9419): Do partial code cache collection, code=17KB, data=21KB
I/zygote  ( 9419): After code cache collection, code=17KB, data=21KB
I/zygote  ( 9419): Increasing code cache capacity to 128KB
D/EGL_emulation( 9419): eglMakeCurrent: 0xdc304780: ver 2 0 (tinfo 0xdc3038e0)
V/MediaPlayer( 9419): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer( 9419): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer( 9419): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null
@MiladZarour
Copy link
Author

MiladZarour commented Dec 10, 2022

I have tried a lot other solutions as well
and I am getting in the end the same error

I am getting this error

I/zygote ( 9419): Do partial code cache collection, code=17KB, data=21KB
I/zygote ( 9419): After code cache collection, code=17KB, data=21KB
I/zygote ( 9419): Increasing code cache capacity to 128KB
D/EGL_emulation( 9419): eglMakeCurrent: 0xdc304780: ver 2 0 (tinfo 0xdc3038e0)
V/MediaPlayer( 9419): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer( 9419): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer( 9419): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 9419): cleanDrmObj: mDrmObj=null mDrmSessionId=null

and this is the code I am using :

import 'package:flutter/material.dart';
import 'package:audioplayers/audioplayers.dart';
 
void main() => runApp(XylophoneApp());
 
class XylophoneApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: SafeArea(
          child: Center(
            child: TextButton(
              onPressed: () async {
                final player = AudioPlayer();
                await player.play(
                  AssetSource('note1.wav'),
                );
              },
              child: Text("Play me"),
            ),
          ),
        ),
      ),
    );
  }
}

@MiladZarour MiladZarour changed the title Request to delete the steps , it is not working Request to Replace the steps Section 9 AudioPlayer Dec 11, 2022
@MiladZarour
Copy link
Author

MiladZarour commented Dec 11, 2022

import 'package:flutter/material.dart';
import 'package:audioplayers/audioplayers.dart';

void main() => runApp(XylophoneApp());

class XylophoneApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final player = AudioPlayer();

    return MaterialApp(
      home: Scaffold(
        body: SafeArea(
          child: Center(
            child: TextButton(
              onPressed: () async {
                await player.play(AssetSource('note1.wav'));
              },
              child: Text("Click me"),
            ),
          ),
        ),
      ),
    );
  }
}

Today I tried to run this code, and it works ! but before that , I went to the folder asset/note1.wav , and I double click on that
then I run flutter , and clicked , and PINNNNNNNN , it works !!!!!

that update it worked with me today
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant