• Post Reply Bookmark Topic Watch Topic
  • New Topic

Best Way to deal with videos in JSP

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

In my Application there is a option for video gallery page

I want to show and display values in JSP page and when user clicks
on any particular values then that video should display there

I am not asking WRITE CODE FOR ME

I want to know what approach I should use

1)Save Video Files in an External Directory and then save its address in the database.
2)Load that Videos files in the servlet and display on servlet with help of a video plugin

What approach I should use

Is there any better approach for this seneraio?


 
Dave Tolls
Ranch Hand
Posts: 2284
25
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kishor Joshi wrote:
I want to show and display values in JSP page...


No you don't.
You want to show it on the client browser, which is an HTML page.
That page will have some form of HTML or plugin (not done video, so no idea on that) that will reference a source on the server.

That source I suppose could be from a servlet streaming the video...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave is correct, there is no intersection with JSP here. While it's quite possible that the HTML page could be generated by JSP, the video aspects of the page will be created and managed with HTML5 and JavaScript.

Research into the HTML5 video element.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also need gallery of videos

What should I do should I use any JQuery Plugin for that?

And for Videos What should I do?

like for Images I just store their path in database and then servlet stream those path

Can I use same process for videos also?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Research into the HTML5 video element.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

@Bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!