Using own video player for youtube, dailymotion,vimeo etc - php

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.

Related

MP3 Search results to audio player

I operate a website that searches soundcloud for music results and I'm trying to have an audio player play the search results, however I'm having a little trouble.
For each search result I use this {$mp3_search[mp3].mp3_url} which is the direct link to the song. But just putting that line of code into a standard open source audio player does not work.
Any ideas?

How to retrieve videos from server and play it onclick?

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.

MediaElement.js - Multiple players, can't play videos after one player has already started playing one

I'm trying to track down a tricky issue with MediaElement.js players. I'm using the player in multiple locations on a page, all of which are video files. These video files all point to the same url, which is a file download script that streams the file given an id. Each file has a unique id, which means the url given to the MediaElement player is of the type "/fileDownload.php?fileId={some file id}"
When I press play on one of the videos, it loads fine and starts streaming the video. However, when I pause the video and try to play another one of the videos, it won't load them at all, and will just spin forever like it's loading them. The videos won't play until the page is refreshed.
I'm not tremendously familiar with the implementation of the MediaElement players. Is it possible this occurs because MediaElement.js can't handle files coming from the same URL but with different GET parameters?

Extract Album Art Image of MP3 URL

I am trying to extract album art image from mp3 URLs. I am basically having several MP3 URLs set, and I am playing them on a website, but I do not have album art of the songs. How can I get it? Is it possible to parse ID3 tags to get album art?
How do the window media player, vlc player and winamp player show album art of songs even if there is no such image in the songs directory?
I implemented the website using php and js.
Please help me out, thanks.
Kevindra
I know VLC uses freedb.freedb.org to get his info, you could google for a API or build one to get the data through freedb.freedb.org:8880/~cddb/cddb.cgi

Embedded Youtube videos slowwww things down

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.

Categories