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

More
IP: 111.196.242.40 5 years 9 months ago #15091 by radaee
for normal richmedia annotation, GetRichMediaItemAsset(0) shall return "AudsioPlayer.swf".
otherwise, the player is not embed to PDF file.
More
IP: 178.120.36.106 5 years 9 months ago #15092 by mrsmrd
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
More
IP: 178.120.36.106 5 years 9 months ago #15093 by mrsmrd
UBFV20200601-005121-SUP
More
IP: 111.196.245.40 5 years 9 months ago #15094 by radaee
sorry, what issue?
are you sure you player file is exists on storage? and the player file can be read on storage?
More
IP: 111.196.245.40 5 years 9 months ago #15095 by radaee
i have tested on Android as following codes:
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();
and after invoked, the PDF file can play the music in Acrobat.
More
IP: 37.214.59.176 5 years 9 months ago #15096 by mrsmrd
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
Powered by Kunena Forum