I'm working with wordpress,and trying to paste video url to video player I have php script that get from I database video url.
$post_id = $_GET['post_id'];
global $wpdb;
$query = "SELECT * FROM wp_posts WHERE wp_posts.post_type = 'attachment' AND wp_posts.post_mime_type LIKE '%flv%' AND wp_posts.post_parent = $post_id";
$result = $wpdb->get_row($query);
$video = $result->guid;
Can someone help me with this,to finish this thing.
HTTPService id="video_url" resultFormat="text"
VideoPlayer x="10" y="10" width="384" height="308" source="HERE I NEED TO LOAD DINAMICLY VIDEO URL" id="videoDisplay" autoPlay="false"
Video url is pulled when page loads. Script that pull data from database and player are on the same page.
Can someone help me with this please.