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

TOPIC:

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11671

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
One more serious issue I have faced in this reader that I have to pass the video path for different pdf to different reader.

Please check ezpdf reader trial. It is playing the video in the reader only I dont have to give path for the videos,

In your reader I have to buy the licence for different books because I have to put path in the reader only for that book?

or there is any option for it to play video in ur reader for multiple pdfs?

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

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11673

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
I want to open index.html an attachment how could i will open on button click in pdf


How treat attachment will open?
In which method I have to put my code to do so ?

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

Last edit: by rachnasagar. Reason: Update

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11674

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
The license depends on the platform and the application(package name), not the book open.

In this video (own.mobiles.it/index.php/s/4dfjCVwdZdjtf23), you can see that we can open different videos from different documents in the same session, without changing the code.

For attachment, you mean attached to the pdf, or added as annotation? can you send us a pdf?

For url (link annotation), you need to implement the method OnPDFOpenURI, which is already implemented in PDFViewAct as follows:
check also the video: own.mobiles.it/index.php/s/U1Qu6ioJdTVks7h
public void OnPDFOpenURI(String uri)
	{
		try
		{
	        Intent intent = new Intent();
	        intent.setAction("android.intent.action.VIEW");
	        Uri content_url = Uri.parse(uri);
	        intent.setData(content_url);
	        startActivity(intent);
		}
		catch(Exception e)
		{
			Toast.makeText(PDFViewAct.this, "todo: open url:" + uri, Toast.LENGTH_SHORT).show();
		}
    }

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

Last edit: by nermeen.

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11676

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
I have also done that only
For the link ---I want to open in my webview .
When I click on button it will open my link in my web view

Suppose I want to open some html file in webview on button ,So I will attach the button in pdf and when i click the button it will open ?

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

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11678

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
I want to open the url in my own webview.

Also want to know what is attachment ?
What refer to attachment in your point of view ?

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

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11679

  • adminjugaad
  • adminjugaad's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 12
  • Thank you received: 1
Dear user, I should invite you to split your questions in more than a single topic.
Using the forum as it is a chat is becoming not useful for other users who won't be able to find useful information in actual messages exchange.

Later I will moderate your last post removing questions about links and attachments.
Let's open to more threads.

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

Powered by Kunena Forum