Closed (fixed)
Project:
Dash Media Player
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
21 Apr 2010 at 14:58 UTC
Updated:
24 Apr 2010 at 04:22 UTC
Hi
I am at the add content stage of the video tutorial
I added the video (ticked restrict)and tumbnail (not ticked restrict) section to content type
I uploaded a movie.flv clip and tumbnail image
I tryed to add that php code to my editor in the body section
$params[ 'node' ] = $node->nid;But when i save that it shows
nid; print dashplayer_get_player( $params ); ?>
And viewing the source for that shows:
nid; print dashplayer_get_player( $params ); ?>
Sorry i don't know what to do next
Comments
Comment #1
sounds commentedAlso i noticed when i add a filesize to the video it doesn't set it, it stays at 2mb limit
Comment #2
sounds commentedUsing the ckeditor
Comment #3
greywolfsspirit commentedSounds,
ok, I'll try to field this for you.. (Author is welcomed to adjust if needed)..
First, make sure your input format for the page your trying to create with the php code above is set to PHP. This is located under the text field for Body.. should show a area you can expand that says Input Format. You should see: Filtered HTML, Full HTML, PHP and Plain.. Select PHP.
Then, in the body field enter the following:
<?php
$params['node'] = $node-> nid;
$print dashplayer_get_player( $params );
?}
As for the filesize limit, that is going to be in your php.ini file. You need to search for the upload file size limit of 2M and increase it to something a bit bigger.. Try bumping it to say, 5M or so.. Which will allow posts up to 5 Megs. Should be adequate for most videos. Hope this helps.
Greywolf
Comment #4
sounds commentedHi,
Ok so i goto Content Management and select content and select the content i created which is Clip1
I click Edit for Clip1 and set the input format to php
I can see the file and image i uploaded above the body;
-
Video Upload: *
clip1.flv
955.22 KB
application/octet-stream
Help Info Here
Video Thumbnail:
Legion.2010.jpg
36.14 KB
image/jpeg
Upload a video thumbnail image for this video
-
I paste the code into the body (after setting the page to Source)
Did you mean ?> not ?}
I tryed both
Then i preview and see;
nid; print dashplayer_get_player( $params ); ?>
Must be doing something wrong
EDIT:
I have Clip1 published on the main page and this is how the info appear;
Video Upload:
clip1.flv
Video Thumbnail:
Legion.2010.jpg
Parse error: syntax error, unexpected T_STRING in /home/dfgsgd/public_html/main/includes/common.inc(1685) : eval()'d code on line 4
Comment #5
greywolfsspirit commentedoops yes, its supposed to be
Try this:
highlight and delete the content in your body area first.
then, select input format (php)
then paste the above code in the body. Some editors do not wrap the code and try to condense it, causing some of the issues your seeing when you clicked preview. (Known to happen with WYSIWIG editors like ckeditor and fckeditor).
Comment #6
sounds commentedI fixed it sort of
Can see the info for the video and image i uploaded, over the dashplayer?
-
Video Upload:
clip1.flv
Video Thumbnail:
Legion.2010.jpg
-
Can see the Dash Player on the main page, but video doesn't load.
I had to change the code to
Comment #7
sounds commentedI took out the $ in-front of print.
Also i'm trying to find the php.inc file you reffered to
I deleted Clip1 and gonna create a new content type/video
Comment #8
greywolfsspirit commentedOk, when you say your seeing the info, over the dashplayer, but dashplayer isn't playing the video.. lets check this info out to see if this fixes it:
What version of services are you running? Currently, there are varying results using services 6.x-2 branch, reccommended is services 6.x-0.15
Views 3.0 branch has issues with dashplayer as well.. reccommend using views 2.0
Jquery_Update: reccommend using 6.x-1.1 version.
try switching to these and see if it now works for you.
Comment #9
sounds commentedI had the services module installed for some other module,
But i removed it and installed the latest version when i installed dashplayer
Services 6.x-2.0
jQuery Update 6.x-1.1
Views 6.x-2.8
Downgraded to Services 6.x-0.15
I created a new content type called Video test
I log out and goto firefox this time and open the site again
I can see a link on the main page now called Video clip, i have to click that to goto the next page where i see the dashplayer
No video though, isin't the player supose to be visable on the main page?
Comment #10
greywolfsspirit commentedokay, make sure you run your update.php script, and then when it finishes, try re-opening the page you created and see if the player now works. That *SHOULD* be all you need to do to get it running again.
Only other thing I can think of is, are you running one of the beta players? or the 1.34 version. If it's one of the beta's, you might need to add one line of code to the php.
below the first $params, you may need to add in:
$params['api'] = '2';
This I'm not 100% sure on, Scott may have to chime in on that part. To tell it that you're using the older services module. But hopefully, this will straighten it out.. It took me a while to get it running straight on my site as well, but I also went about creating two players, one for videos and one for mp3's with playlists based on uploaded files to node posts, so my configuration is a little more custom than the "default" setup provided in the tutorial videos. Hopefully this gets you up and running now.
Jim
Comment #11
sounds commentedDo i need to be pasting that code into the body of the content type also
Or is that just needed in the content template
I see, when i paste that code in the Video test content type i get the player on the main page.
So i'm logged out of the site now while viewing.
I see the player on the main page, but no video plays and cant interact with the voting stuff yet.
Thanks for your help
More work on this tomorrow, or i'll just stay up till i get it
Maybe i have a path wrong somewhere in the setup.
My site is installed in a sub folder also caled main
So i set the base url in the dashconfig.xml to mysite.com/main
Comment #12
sounds commentedI finally got the video working also
Using the code below in the Body of the Content Template
And the Body section of Content Type i credted (Video 1)
Using all the module versions recommended and running all available updates in drupal.