How can I add a hyperlink in beamer so that while clicking on that hyperlink I can jump to a video or a program code in another pdf.

• You could use hyperref with file target or just the multimedia package with the externalviewer option for its macros. For the other pdf you need a hypertarget within it. – TeXnician Jun 26 '17 at 18:13
• should I include some package in the preamble – malu k raj Jun 26 '17 at 18:18

For opening a video:

\documentclass{beamer}

\begin{document}

\begin{frame}
\href{run:/path/nameofvideo.mp4}{Click for video}
\end{frame}

\end{document}


to open a pdf on a specific page:

\documentclass{beamer}

\begin{document}

\begin{frame}
\href[page=2]{file:test.pdf}{Click for pdf}
\end{frame}

\end{document}