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

TOPIC:

RichMedia annotation not working 3 years 10 months ago #15082

  • MaxM
  • MaxM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
Good afternoon, Radaee, I had a problem playing the sound annotation which is saved as page.AddAnnotRichMedia ("/ player / AudioPlayer.swf", newFile.getPath (), 1, document.NewImage (BitmapFactory. decodeResource (context.getResources (), R.drawable.ic_mic_white_circle_blue_), true), pt2); Everything works well if I transfer a PDF document between the clients of our application, but if the client wants to save it, for example, to a computer and open it using Adobe Acrobat Reader, Text and graphic are highlighted and read, then the sound does not work. .. Maybe for opening in another application I need to save additional information or fill in additional fields?

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

RichMedia annotation not working 3 years 10 months ago #15085

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
not understand, i tested AddRichMediaAnnot(), the annotation can play music in Acorbat.
the file is: www.radaeetz.com/123.pdf
i using following codes to add sound annotation:
			PDF_IMAGE dimg = m_doc.DocNewImageJPEG("f:\\img.jpg", false);
			RDRECTF rect;
			rect.left = 100;
			rect.top = 100;
			rect.right = 436;
			rect.bottom = 566;
			m_doc.Page_AddRichMediaAnnot(page->page, "E:\\workspace\\output\\AudioPlayer.swf", "F:\\Seaside.mp3", 1, dimg, rect);
			m_doc.DocSave(NULL);
The following user(s) said Thank You: mrsmrd

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

RichMedia annotation not working 3 years 10 months ago #15086

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
this path: "/player/AudioPlayer.swf", maybe a problem.
all file path shall be absolute path.
also newFile.getPath() may return relative path.
The following user(s) said Thank You: mrsmrd

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

RichMedia annotation not working 3 years 10 months ago #15088

  • mrsmrd
  • mrsmrd's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
I don’t know why but blocked my account from which I asked this question.
I'll try to change the path
Attachments:

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

RichMedia annotation not working 3 years 10 months ago #15089

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
the PDF file you attached, has not embed file "VideoPlayer.swf" to PDF file.
so, "/player/AudioPlayer.swf" is not exists.
next time, you can check file exists, before this method invoked.

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

RichMedia annotation not working 3 years 10 months ago #15090

  • mrsmrd
  • mrsmrd's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
1. Tell me how you look that the file does not contain a player ("VideoPlayer.swf").
2. What needs to be done to play sound in www.radaeetz.com/123.pdf on windows 10, Adobe Reader is installed

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

Powered by Kunena Forum