- Posts: 1123
- Thank you received: 73
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
RichMedia annotation not working
IP: 111.196.242.40
5 years 9 months ago #15091
by radaee
Replied by radaee on topic RichMedia annotation not working
for normal richmedia annotation, GetRichMediaItemAsset(0) shall return "AudsioPlayer.swf".
otherwise, the player is not embed to PDF file.
otherwise, the player is not embed to PDF file.
IP: 178.120.36.106
5 years 9 months ago #15092
by mrsmrd
Replied by mrsmrd on topic RichMedia annotation not working
I changed the way I saved the path to the player and the sound file, but I still can’t play it in Adobe Acrobat Reader.
Could you read my annotations at home?
Thank
Could you read my annotations at home?
Thank
IP: 178.120.36.106
5 years 9 months ago #15093
by mrsmrd
Replied by mrsmrd on topic RichMedia annotation not working
UBFV20200601-005121-SUP
IP: 111.196.245.40
5 years 9 months ago #15094
by radaee
Replied by radaee on topic RichMedia annotation not working
sorry, what issue?
are you sure you player file is exists on storage? and the player file can be read on storage?
are you sure you player file is exists on storage? and the player file can be read on storage?
IP: 111.196.245.40
5 years 9 months ago #15095
by radaee
Replied by radaee on topic RichMedia annotation not working
i have tested on Android as following codes:
and after invoked, the PDF file can play the music in Acrobat.
Code:
File fplayer = new File("/sdcard/AudioPlayer.swf");
File fcontent = new File("/sdcard/Seaside.mp3");
File fimage = new File("/sdcard/player.jpg");
if(fplayer.canRead() && fcontent.canRead() && fimage.canRead()) {
DocImage dimg1 = m_doc.NewImageJPEG("/sdcard/player.jpg");
page.AddAnnotRichMedia("/sdcard/AudioPlayer.swf", "/sdcard/Seaside.mp3", 1, dimg1, new float[]{100, 200, 100 + 275, 200 + 50});
}
else
Toast.makeText(this, "invalid parameters", Toast.LENGTH_LONG).show();
IP: 37.214.59.176
5 years 9 months ago #15096
by mrsmrd
Replied by mrsmrd on topic RichMedia annotation not working
Thanks for the answer, you were right. I checked everything and it really works with ordinary songs in mp3 format, but my problem is a little different ... The problem is that I use sound recording in android through a microphone ("MediaRecorder"), and I can’t play this sound recording in Adobe Acrobat Reader Maybe you have any advice or recommendations in this regard. Thank.
Time to create page: 0.371 seconds