Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

RichMedia annotation not working 4 years 10 months ago #15091

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
for normal richmedia annotation, GetRichMediaItemAsset(0) shall return "AudsioPlayer.swf".
otherwise, the player is not embed to PDF file.
The following user(s) said Thank You: mrsmrd

Please Log in or Create an account to join the conversation.

RichMedia annotation not working 4 years 10 months ago #15092

  • mrsmrd
  • mrsmrd's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

RichMedia annotation not working 4 years 10 months ago #15093

  • mrsmrd
  • mrsmrd's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
UBFV20200601-005121-SUP

Please Log in or Create an account to join the conversation.

RichMedia annotation not working 4 years 10 months ago #15094

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
sorry, what issue?
are you sure you player file is exists on storage? and the player file can be read on storage?
The following user(s) said Thank You: mrsmrd

Please Log in or Create an account to join the conversation.

RichMedia annotation not working 4 years 10 months ago #15095

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
i have tested on Android as following codes:
		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.
The following user(s) said Thank You: mrsmrd

Please Log in or Create an account to join the conversation.

RichMedia annotation not working 4 years 10 months ago #15096

  • mrsmrd
  • mrsmrd's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum