Music Collection - The Music Management System for Joomla! 1.5.x

Login Form






Forgot login?
No account yet? Register

Community demo tools

Search music albums

Random albums


Invoice Manager for Joomla

Top rated (users)

Bad Bad
1987 5 out of 55 out of 55 out of 55 out of 55 out of 5
Some Girls Some Girls
1978 5 out of 55 out of 55 out of 55 out of 55 out of 5

Who's Online

We have 88 guests online

Contribute to our project making a donation! Tell us what would you like to destinate your contrubution to. Read more...

Home Forum
Please read this before posting!

There are thousands of posts on this forum, so please try to use our search facility before posting anything new: there's probably someone else who asked the same question as you, so give "search" a chance.

If you still can't find what you were looking for, feel free to post. Please remember this forum is for Music Collection verified customers only. Support will be only given to verified users. If you are not still a customer and have some "pre buy" questions, please use this category to post

Support topics are usually answered by admins in 24-48 hours. However, on August, forum support by admins will be limited due to team vacation

Music Collection
Welcome, Guest
Please Login or Register.    Lost Password?
Playing videos in the JWplayer
(1 viewing) 1 Guest
Go to bottom
TOPIC: Playing videos in the JWplayer
#6564
srzx
Senior Boarder
Posts: 72
graphgraph
User Offline Click here to see the profile of this user
NOT verified customer
This is NOT a verified customer. If you have pre-buy questions, please remember to use the Pre-buy Forum category to post.
Re:Playing videos in the JWplayer 1 Year, 11 Months ago Karma: 0
Thank you very much Germi,

I uploaded the new player.swf (5.1), the associated yt.swf released in the same directory, and SWFObject.js (looks the same [v1.5] but uploaded anyway), and don't see the video. I get the error #2048 and after the search, it might be related to the crossdomain access and crossdomain.xml file. I added the following lines to the main crossdomain.xml file for the site and it did not help:

Code:


LT allow-access-from domain="*.youtube.com" /GT
LT allow-access-from domain="*.ytimg.com" /GT



I also put a new crossdomain.xml file in the plugin directory in case the main one is not seen by it, and it does not help either. There is a playlist_functions.js in the plugin directory, could that also be involved? I looked briefly, I have to look closer.

I'll send an email to longtail developer in this regard, maybe he can point out some info further. I'll post back any new info. I gather.

Thanks again.
 
Logged Logged
 
Last Edit: 2010/05/31 21:08 By srzx.
  The administrator has disabled public write access.
#6568
srzx
Senior Boarder
Posts: 72
graphgraph
User Offline Click here to see the profile of this user
NOT verified customer
This is NOT a verified customer. If you have pre-buy questions, please remember to use the Pre-buy Forum category to post.
Re:Playing videos in the JWplayer 1 Year, 11 Months ago Karma: 0
Hi Germi,

Sorry that I had to work on this on and off. I played with the crossdomain.xml file location a bit more (no result), and looked into the content of the playlist XML file. I found a site:

Code:


http://validator.xspf.org/



that validates playlists. After checking the playlist with it, I found some errors that I fixed in the name of the images in the album that were using spaces. There are also errors for the link tag that do not have any content, but I don't think the error is there. I still haven't checked with longTail (I will). I wanted to understand the details a bit more before doing so. I also found the issue/solution for the thumb image for videos. The image for videos at youTube can be found at the following address:

Code:


http://img.youtube.com/vi/#####/2.jpg

Where ##### is the video id.
For this video id, the video can be found at:

http://www.youtube.com/v/#####



So I changed the following code to fix it:

Code:


=========================================================
website.com/components/com_muscol/views/playlist/view.feed.php
around line 63
=========================================================

else{ // http://www.youtube.com/v/6hzrDeceEKc OR 6hzrDeceEKc
        $youtube_video_id = str_replace("http://www.youtube.com/v/", "", $song->video);
}
$youtube_video_url = "http://www.youtube.com/v/" . $youtube_video_id ;

$item->location = $youtube_video_url ;

if($comp_params->get('loadimagesplayer')) $item->image     = $youtube_video_url ;
$item->annotation = $song->artist_name . " - " . $song->album_name;

// loads item info into rss array
$document->addItem( $item );
=========================================================
VVVVV  Replace with  VVVVV
=========================================================
else{ // http://www.youtube.com/v/6hzrDeceEKc OR 6hzrDeceEKc
        $youtube_video_id = str_replace("http://www.youtube.com/v/", "", $song->video);
}
$youtube_video_url = "http://www.youtube.com/v/" . $youtube_video_id ;
$youtube_video_image_url = "http://img.youtube.com/vi/" . $youtube_video_id . "/2.jpg" ;

$item->location = $youtube_video_url ;

if($comp_params->get('loadimagesplayer')) $item->image     = $youtube_video_image_url ;
$item->annotation = $song->artist_name . " - " . $song->album_name;

// loads item info into rss array
$document->addItem( $item );
=========================================================



I'll report more info. when I have some.
 
Logged Logged
  The administrator has disabled public write access.
#6579
germi
Admin
Posts: 5679
graph
User Offline Click here to see the profile of this user
Gender: Male Location: Barcelona Birthday: 05/08
Verified customer
This is a verified customer
Re:Playing videos in the JWplayer 1 Year, 11 Months ago Karma: 71
yes, you're right about the YOUTUBE image. good work!
hope you can find a definitive solution..

question: can you give me url of that playlist checker? thanks! it could be very useful
 
Logged Logged
 
Germinal Camps
Chief Software Engineer
Joomla Music Solutions

Follow me on Twitter
  The administrator has disabled public write access.
#6605
srzx
Senior Boarder
Posts: 72
graphgraph
User Offline Click here to see the profile of this user
NOT verified customer
This is NOT a verified customer. If you have pre-buy questions, please remember to use the Pre-buy Forum category to post.
Re:Playing videos in the JWplayer 1 Year, 11 Months ago Karma: 0
Hi Germi,

LongTail looked at it (They are also great help), and recognized the issue was using the following format:

Code:


http://www.youtube.com/v/



Instead of this:
Code:


http://www.youtube.com/watch?v=



So I changed the code in
Code:


=========================================================
www.website.com/components/com_muscol/views/playlist/view.feed.php
line 66
=========================================================

From:
$youtube_video_url = "http://www.youtube.com/v/" . $youtube_video_id ;

To:
$youtube_video_url = "http://www.youtube.com/watch?v=" . $youtube_video_id ;



Now, in the 'if' clause before that line, there is a redundancy for the case of the original string being in the form of watch?v= ,but the 'if' clause still covers all three cases of strings allowable in the input field for the video.

Also here is the link to the playlist validator site again in code blocks:
Code:


http://validator.xspf.org/

 
Logged Logged
  The administrator has disabled public write access.
#6606
germi
Admin
Posts: 5679
graph
User Offline Click here to see the profile of this user
Gender: Male Location: Barcelona Birthday: 05/08
Verified customer
This is a verified customer
Re:Playing videos in the JWplayer 1 Year, 11 Months ago Karma: 71
ok!! so all works fine for you now?

(yes, longtail support is great, too!)
 
Logged Logged
 
Germinal Camps
Chief Software Engineer
Joomla Music Solutions

Follow me on Twitter
  The administrator has disabled public write access.
#6622
srzx
Senior Boarder
Posts: 72
graphgraph
User Offline Click here to see the profile of this user
NOT verified customer
This is NOT a verified customer. If you have pre-buy questions, please remember to use the Pre-buy Forum category to post.
Re:Playing videos in the JWplayer 1 Year, 11 Months ago Karma: 0
Hi Germi,

Thanks. The selection and play of both the video and music are working fine now. The issue of item 'type' being video in the list and when deleted, that stays in the database still there. I had to go back and fix the database after my client was done editing. If you can tell me where in the code it is, I can maybe play with it. Thanks again.
 
Logged Logged
  The administrator has disabled public write access.
Go to top


 
© 2009 - 2012 Joomla Music Solutions