- Posts: 69
- Thank you received: 0
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
How to add videos and audio (.mp4 and .mp3)?
- rachnasagar
- Topic Author
- Offline
- Senior Member
-
Less
More
9 years 8 months ago #11646
by rachnasagar
Replied by rachnasagar on topic How to add videos and audio (.mp4 and .mp3)?
I don't want to open video in video-view or video player. I just want to play video in pdf reader only
I want to play video and it start play in reader only..
I want to play video and it start play in reader only..
- adminjugaad
- Offline
- Administrator
-
Less
More
- Posts: 12
- Thank you received: 1
9 years 8 months ago #11647
by adminjugaad
Replied by adminjugaad on topic How to add videos and audio (.mp4 and .mp3)?
I suggest you to better look at
www.radaeepdf.com/support/knowledge-base...component&kbartid=68
my colleagues already suggested you.
The second part of the KB article is about including in your reader the proper multimedia player.
It will be integrated within your application.
The second part of the KB article is about including in your reader the proper multimedia player.
It will be integrated within your application.
- rachnasagar
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 69
- Thank you received: 0
9 years 8 months ago #11649
by rachnasagar
Replied by rachnasagar on topic How to add videos and audio (.mp4 and .mp3)?
In your project pdf reader it works but I have several problem like it only work for single video because
public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);
}
Because whenever i Click on DO button it play the same video , if I add more than 1 then it only play same video.
Second it didn't work in RDPDF reader sample. I have checked but it didn't play video.
only toast came todo:play movie.
Also i want to play multiple video how I will play it. .
One Video easily run and i write the code
public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);
}
For another video how could and where i write the code?
public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);
}
Because whenever i Click on DO button it play the same video , if I add more than 1 then it only play same video.
Second it didn't work in RDPDF reader sample. I have checked but it didn't play video.
only toast came todo:play movie.
Also i want to play multiple video how I will play it. .
One Video easily run and i write the code
public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);
}
For another video how could and where i write the code?
9 years 8 months ago #11651
by nermeen
Replied by nermeen on topic How to add videos and audio (.mp4 and .mp3)?
i cannot understand well your request, Can you please send us the pdf your are using for test?
9 years 8 months ago #11655
by support
Replied by support on topic How to add videos and audio (.mp4 and .mp3)?
The property "path" should contain the name of the video embedded in the annotation of your PDF file.
You might substitute the const "video.mp4" with the variable "path".
That way you will maintain each extracted file in the storage and will be able to play them.
By the way, even maintaining the same "video,mp4" file name, every time you touch the "do button" from our project, the application should overwrite the video file called "video.mp4" then execute it through system intent or thought application intent as per our KB.
If I'm misunderstanding your needs, as my colleague was asking, send us one of your pdf files: we will record a movie explaining what we understood and send it back to you.
You might substitute the const "video.mp4" with the variable "path".
That way you will maintain each extracted file in the storage and will be able to play them.
By the way, even maintaining the same "video,mp4" file name, every time you touch the "do button" from our project, the application should overwrite the video file called "video.mp4" then execute it through system intent or thought application intent as per our KB.
If I'm misunderstanding your needs, as my colleague was asking, send us one of your pdf files: we will record a movie explaining what we understood and send it back to you.
- rachnasagar
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 69
- Thank you received: 0
9 years 8 months ago #11656
by rachnasagar
Replied by rachnasagar on topic How to add videos and audio (.mp4 and .mp3)?
See For the first video I used the code
public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);
}
What code should I put for second video Suppose its name is Video1.mp4?
and Where I put the code ?
In OnOpenMovie(String path) i had just put for video.mp4 .
Can you please send me codes for 2 videos in Pdf reader( OnOpenMovie(String path)) method?
public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);
}
What code should I put for second video Suppose its name is Video1.mp4?
and Where I put the code ?
In OnOpenMovie(String path) i had just put for video.mp4 .
Can you please send me codes for 2 videos in Pdf reader( OnOpenMovie(String path)) method?
Time to create page: 0.381 seconds