Open vicmosin opened 4 years ago
I am facing the issue while creating new instance and playing raw resource.. Somehow player gives me Content not found for an existing resource..
Content not found
val session = mediaPlayerFactory.createMediaPlayer() val assetFileDescriptor = context.resources.openRawResourceFd(resourceId) session.setDataSource(assetFileDescriptor.fileDescriptor) assetFileDescriptor.close() session.prepare() session.start()
I am facing the issue while creating new instance and playing raw resource.. Somehow player gives me
Content not found
for an existing resource..