I am doing a tutorial website project. In this i hav a video player at the right side, and vertical menu at the left side of the page. I hav lots of videos to put in. I am trying to play the videos in the same video player in the same page. How to retrieve videos from database and play it onclick from menu?
I am using video tag for video player. Also i wanted to display the video name at th bottom of the video player in the page, that changes for every videos. Like youtube website!!. I am using Wamp local server. Below is the code for single static video and video name.
<div class="video" align="right"><video id="movie" class="video" width="800" height="520" title="franklin" data-uid="movie" controls poster="images/LMS.JPG"><source src="videos/Learning Management System.mp4" /></video></div>
<div id="video_heading"><p><b>Introduction to Learning Management System</b></p></div>
How to make use of database system to retrieve the video and name of the video using PHP. Please help. I am desperately in need of someone's help.
Use AJAX to send a request from JavaScript to your server to retrieve the correct video information from the database and return it in a format that you can use, like JSON. Then, using the response data, update your video object and other DOM elements accordingly.
Related
I can see the embed script for each video in the JW player dashboard. But i need to show the video list in my web application and play the video individually. I have only the media id for each video. How can i make it dynamic player with media id in the embedded script. I can't place each different embedded code in my application. I can integrate one embedded code with dynamic different media id. How can i configure it in php.
I have made a small html website which uploads your video onto my website, by saving the video reference in mySQL and displaying all files in the database on a website, I have done this successfully, but I am not able to play videos in realtime like YouTube, i need to download the video aand view it on my own desktop player... I wish to in a way stream the URl from the database playing on the website ... if that makes sense!
Thank you fellow Community Members.
Provide some more data please. Like what path do you use, etc.
Now, I am encountering some difficulties when I have to scan or crawl a video URL link. This web page is using the Flash-based technology to embed the video and stream video.
In order to understand more clearly, this is a link example:
http://vnexpress.net/gl/the-gioi/tu-lieu/2012/11/bai-phat-bieu-thua-nhan-that-bai-cua-romney/
The above link has below content (HTML code for Flash embedded video):
<div id="flashContent" style="text-align:center;width:100%;">
<span id="FlashPlayer79237" class="Normal" align="center">Bạn cần cài Flash Player để xem được Clip này.</span>
</div>
In this above article, there is a above video. However, when I tried to scan or crawl the content, the video could not run properly (because it could not load correct video link) and only show Install Flash Player plugin words (Certainly, the real web page needs to run some Javascript script or Flash script to obtain the real video link and stream this video for users)
Therefore, how can I render Flash and Javascript script through PHP or ASP.NET or Java? How can I get the correct video link when I crawl the web page? In this case, how can I obtain the correct Flash embedded video (HTML code)?
Thank you so much.
Before I answer, I want to make a note that if you need this information to do anything shady... please don't.
Disclaimer aside, for that particular site it is relatively easy.
The flashvars param (which is probably put there by Javascript) contains a value called xmlPath, which is a url encoded path (relative to their domain name). If you grab that and decode it, you get something like:
/Service/FlashVideo/PlayListVideoPage.asp?id=79237&f=108&t=1
which points to
http://vnexpress.net/Service/FlashVideo/PlayListVideoPage.asp?id=79237&f=108&t=1
If you read that, it's an XML file which contains the URL of the actual video.
I'm not quite sure where that value is generated from. If you needed to do this fully server-side, you could use a headless browser to process it.
I have my own video player, I've bought it from activeden. And im going to use youtube, dailymotion, video api with php. But i want to use my own video player. How can i do that? It takes list from a xml files like this;
<video_item>
<hd_video_path>.flv</hd_video_path>
<sd_video_path>.flv</sd_video_path>
<video_title>....</video_title>
<video_description>...</video_description>
</video_item>
You should write a script(PHP/.NET or whatever) that pulls in the correct video url for the videos you want to put in your player and assembles your playlist based on those.
I'm creating a site with a lot of embedded Youtube videos, but it seems the video players take a while to load. Is there a way I could speed things up?
If this is not possible, then how do you embed just the thumbnails and load the videos when a user clicks on the thumbnail?
About your first question:
You cannot control the load speed because the videos are not hosted on your server but on Youtube's one.
About your second question:
You can check this address in order to find out how to extract the thumbnails from the youtube videos: http://www.reelseo.com/youtube-thumbnail-image/
After that you can load the youtube video on onclick using Ajax or simple redirect to a separate page where video is positioned.