Upgrading services module from 6.x-2.0 to 6.x-2.1 the Dash Media Player does not work any more: it pops up but it does not display playlist and does not play music. I have configured a view as playlist and I have used the 'playlist' param in php embedded code. I am using the Dash Media Player v135 and I have got it on http://www.mediafront.org/project/dashplayer (http://github.com/mediafront/dashplayer). I have tested, using services admin page, the dasplayer.getView, it works fine. I am using Drupal 6.16 and dashplayer module 6.x-1.7. I appreciate your suggestions. Estenat

Comments

marcingy’s picture

Title: Service does not work with Dash Media Player » Dash Media Player no longer works with current version of services
Project: Services » Dash Media Player
Version: 6.x-2.1 » 6.x-1.7

Moving to dash media player queue as it looks like they need to upgrade their module.

estenat’s picture

Title: Dash Media Player no longer works with current version of services » Service does not work with Dash Media Player
Project: Dash Media Player » Services
Version: 6.x-1.7 » 6.x-2.1
Assigned: estenat » Unassigned
marcingy’s picture

Project: Services » Dash Media Player
Version: 6.x-2.1 » 6.x-1.7

cross post

estenat’s picture

OK, marcingy, I will check. Thank you

gdd’s picture

There was an API change in the way services are defined in the 2.1 version of Services. I have written a summary of the change at

http://drupal.org/node/800590

Basically Dash Media Player is going to have to specify some access permissions for the Services it implements. I'm happy to help put together a patch for this.

travist’s picture

Status: Active » Fixed

This should not be fixed. Also, please read the comments made on the project page regarding the latest services.

greywolfsspirit’s picture

Tried going to services 6.x-2.2 and still wont work with it.. so, still stuck with services 0.15 if I want dash player to work on my site.. has any progress been made to get this fully working with the newer service modules? If so, when can we expect to see an updated documentation on how to install it properly so that it works as it should? Just curious...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

estenat’s picture

Finally I solved the trouble: as reported in issue
'PHP 5.3 and Services Issues with call_user_func_array'
the call to call_user_func_array (function services_method_call inside services.module) has a problem assigning value to $access_arguments at row 423:
$access_arguments = $method['access arguments'];
because this assignement makes $access_arguments a simple string variable, instead of an array variable.
The following row:
$access_arguments = array($method['access arguments']);
load an effective array...

This solved my problem accessing services by dash media player.

chauhanps61’s picture

Version: 6.x-1.7 » 6.x-1.8
Status: Closed (fixed) » Active

I can't get it working even after trying to change
$access_arguments = array($method['access arguments']);

services 6.x-2.2 wont work with it.

Media player wouldn't load video

travist’s picture

Status: Active » Fixed

Please see the following.

http://www.mediafront.org/documentation/drupalmediafront-osm-cms-integra...

I hope this helps.

Travis.

chauhanps61’s picture

It is exactly same and followed every letter of tutorial. Installed and reinstalled.
My case something else may be broken as I tried with old version of services as well and still can't get video loading.

http://www.balpreet.com

Can you suggest any thing which i may try to pinpoint the cause of problem?
I tried charles program but it would not tell me cause of not loading video file in player.

Parminder

chauhanps61’s picture

Status: Fixed » Active
greywolfsspirit’s picture

What API setting should be used with services 6.x-2.2? 2 or 3?

I still can't get it to work with the new services module. the 0.15 worked just fine. On the documentation site, I followed what is said about the updated for the newer services module, and got to the last part, about making sure access services permissions is turned on. I just looked in my permissions, and I don't have a access settings permission listed in there.. Help!

greywolfsspirit’s picture

Would this have anything to do with the problems?

From the Services 2.1 handbook:

As of 2.1, if you have not specified an '#access callback' key in your service, then the service will default to using Drupal's user_access() function. This function requires a permission string to be specified. Access is checked against this permission, which is passed by your service in the '#access arguments' key. This '#access arguments' key is required by user_access(), and thus services that do not have either '#access callback' or '#access arguments' specified will throw a PHP error.

There are two solutions to this.

1. Add an '#access arguments' key to your services, containing the string of a permission to check. If the user accessing your service has the appropriate permissions, then the service will run. Otherwise Services will return Access Denied. For instance

'#access arguments' => array('administer nodes')

Will allow any user with the 'administer nodes' permission to access this service. Note that if you are using API Keys without user sessions, then all your services are running as the anonymous user.

This is the recommended solution for most modules. In many cases you will not be able to use internal Drupal permissions, because you are using API Keys and don't want to allow anonymous users access to a permission like 'administer nodes' or 'administer taxonomy'. In this case you should create a new permission for your each of your services using hook_perm() and give anonymous users access to that permission. This will allow you to protect your services via API Keys but prevent unauthorized users from having access to any other protected content on your site.

I have not done this, yet, but am getting set to try it to see if it goes anywhere.

greywolfsspirit’s picture

Not sure what I just did, but, I set my key up to use ALL available methods. Then removed the API argument from my config .xml file.. and what do ya know.. it came up.. Going to backtrack a little and see if I can find the point where it stops working again so I have a better clue as to what exactly caused my problems.. Sorry for all the posts, but perhaps if someone else is having the same issue, this will help them narrow in on the problem as well.

EDIT: Ok, I am now using the following for my Method Access (admin/build/services/keys)

dashplayer.getView
dashplayer.getDrupalVersion
dashplayer.incrementNodeCounter
system.connect
node.get
views.get
user.get
vote.getVote
vote.getUserVote
vote.setVote
vote.deleteVote

and I have removed the 2 from my dashconfig.xml

The player now appears to be working fully again..

One other area for others to watch.. if you have added that api section into any of your $params in your page templates.. remove it!

example:

<?php
$params['api'] = 2;  // <----------** THIS LINE HERE MUST BE REMOVED **
$params['width'] = 450;
$params['height'] = 405;
$params['disableplaylist'] = 'true';
$params['id'] = 'dashplayer';
$params['connect'] = 'hplaylist';  //These are vplaylist.swf and hplaylist.sfw - located in your /skins folder
print dashplayer_get_player($params);
?>

I know in the past this was mentioned to be added to previous versions of the player to identify what version of services you were using, but it appears that is no longer needed. Whether this works for your situations or not, I don't know, but if this has helped anyone else, then I have made myself a bit useful again :-)

greywolfsspirit’s picture

Just wondering if my suggestions have helped anyone who was still having problems with Dash and Services 6.x-2 branch..

chauhanps61’s picture

Yes, by removing $params['api'] = 2; at least it started working and loaded video.
Now it started playing audio but still no video.

greywolfsspirit’s picture

did you download the newest player from the link I posted earlier? Both audio and video work fine for me by making the changes I noted.

I have my site set up with 2 separate player pages... one for audio and one for video, not having it display both at the same time.

Here's my setup..

dashconfig.xml

<params>
	<gateway>http://moonlightway.homeip.net/?q=services/amfphp</gateway>
	<apiKey>65711db178a09a990574ad564396532e</apiKey>
	<baseURL>http://moonlightway.homeip.net</baseURL>
	<flashvars>
		<drupalversion>6</drupalversion>		
		
	</flashvars>
</params>

Audio Player Page:

<div style="float:left;">

<?php
$params['width'] = 450;
$params['height'] = 405;
$params['disableplaylist'] = 'true';
$params['id'] = 'dashplayer';
$params['connect'] = 'vplaylist';  //These are vplaylist.swf and hplaylist.sfw - located in your /skins folder
print dashplayer_get_player($params);
?>

<?php
$params = array();
$params['width'] = 200;
$params['height'] = 530;
$params['playlistonly'] = 'true';
$params['playlist'] = 'audio';     // my node type name for audio files
$params['arg1'] = 'audio';  //Telling this playlist to only list 'audio' (content type)
$params['id'] = 'vplaylist';
$params['pagelimit'] = 20;
$params['connect'] = 'dashplayer';
$params['autostart'] = 'false';
print dashplayer_get_player($params);
?>
</div>

Video Player Page:

<div style="float:left;">

<?php
$params['width'] = 450;
$params['height'] = 405;
$params['disableplaylist'] = 'true';
$params['id'] = 'dashplayer';
$params['connect'] = 'hplaylist';  //These are vplaylist.swf and hplaylist.sfw - located in your /skins folder
print dashplayer_get_player($params);
?>

<?php
$params = array();
$params['width'] = 450;
$params['height'] = 150;
$params['playlistonly'] = 'true';
$params['playlistskin'] = 'hplaylist';
$params['vertical'] = 'false';
$params['playlist'] = 'videos'; // My node type for videos
$params['arg1'] = 'video';  //Telling this playlist to only list 'video' (content type)
$params['id'] = 'hplaylist';
$params['connect'] = 'dashplayer';
$params['autostart'] = 'false';
print dashplayer_get_player($params);
?>
</div>

Hopefully with this, you will get video and audio working...

mnsmithuk’s picture

I have already rebuilt my website from scratch three times trying to get dashPlayer.swf to work. I have followed the installation tutorial and also read the media player install guide along with the documentaion available for using Services 2.x but I can't see what I am doing wrong. Is it a known bug with the versions that I am using?

Incedently the access services permission does not exist which I'm guessing is why its not working but I don't know how to get it in the list of user permissions.

I'm using :

Drupal 6.16, Dash Media Player v1.38, Dash Media Player Module 6.x-1.8, Services 6.x-2.2

I am very new to Drupal so any kind of guidance in the right places to look would be very helpful

greywolfsspirit’s picture

Travis,
I'm going to defer this to you.. You helped me get my site straight in the beginning, so I'll let you step in here on this one.. I'm wondering if person in #20 has afmphp set up correctly, or has set the player in a wamp/www/player directory correctly. But, as I have to run out the door, I don't have time to work on this at the moment.

travist’s picture

Status: Active » Postponed (maintainer needs more info)

Jim,

Thanks for your help on this one. The best thing that I suggest to do to debug a services issue is to download Charles along with the browser plugin. Then, when you load up that application and then refresh your browser, you will see all communication between the media player and the site within the "services" folder. You should see the commands being sent. Click on the one that says "dashPlayer.getView" and then click on the tab that says "Results".

Copy and paste those results in your response to this issue and that will give me some guidance.

Thanks,

Travis.

greywolfsspirit’s picture

No Problem, Travis. I did what I could to help, but as they say, when you run out of ideas, drop back and punt. lol.

I do want to say that I have gotten a lot of positive feedback on my site with the way we set it up with 2 separate views (one for audio one for video). Thanks again for the help on that. I am just shocked at myself for figuring out the services 6-2 compatibility with the new player. Who would have thought that the api call would have been the cause for the hung loading screens. But, at least we can put that issue to bed. I just kept what I had installed from the install pre-service update, then deleted my old key out from the AMFPHP key setup, and re-created it under the updated version. Remove the api param out of the config file.. and it worked. So, it definately can be done, my advice to the ones still struggling, hang in there.. take a breath, and double check behind yourself carefully. For me, my site is set up under a c:\Wamp\www directory. My Player directory is set as c:\Wamp\www\Player I am running all the most recent devel. versions of my modules, and the alpha 6.x-2 services module. JQuery Update v6.x-1.1, not 6.x-2!! There is a problem with compatibility with the 6.x-2 branch of Jquery update!! THIS MIGHT BE 90% of the issues going on out there currently, and maybe 5% the API call in the dashconfig.xml file. I truly hope this helps a lot of you out there having problems still.

Greywolf

greywolfsspirit’s picture

For those wanting to know what all I am running (version wise) here is my installed modules to compare against.

Current Installed Modules as of 8/4/2010

addanother version = "6.x-1.6"
admin_message version = "6.x-1.x-dev"
advanced_forum version = "6.x-2.x-dev"
advanced_forum_more_styles version = "6.x-2.0-beta1"
advanced_help version = "6.x-1.2"
advanced_profile version = "6.x-1.x-dev"
allperms version = "6.x-1.x-dev"
amfphp version = "6.x-1.0-beta2"
apc v 3.68.2.2
arcade version = "6.x-0.9-beta1"
author_pane version = "6.x-2.x-dev"
autoload version = "6.x-1.4"
better_formats version = "6.x-2.x-dev"
better_messages version = "6.x-1.13"
better_perms version = "6.x-1.0-beta1"
birthdays version = "6.x-1.0"
boost version = "6.x-1.18"
bowob version = "6.x-8.14"
brilliant_gallery version = "6.x-4.x-dev"
cacherouter version = "6.x-1.0-rc1"
calendar version = "6.x-2.2"
cave version = "6.x-1.0-beta5"
cck version = "6.x-3.x-dev"
checkall version = "6.x-2.4"
checkbox_validate version = "6.x-2.1"
colorpicker version = "6.x-2.0"
contemplate version = "6.x-1.2"
content_display_order version = "6.x-1.0"
content_profile version = "6.x-1.0"
countdown version = "6.x-1.0"
ctools version = "6.x-1.7"
customerror version = "6.x-1.x-dev"
dashplayer version = "6.x-1.8"
date version = "6.x-2.4"
emfield version = "6.x-2.x-dev"
event version = "6.x-2.x-dev"
extlink version = "6.x-1.11"
favorite_nodes version = "6.x-1.x-dev"
filebrowser version = "6.x-2.x-dev"
filefield version = "6.x-3.7"
filemime version = "6.x-1.1"
filter_perms version = "6.x-1.1"
flashnode version = "6.x-3.1"
flashvideo version = "6.x-1.5"
flowplayer version = "6.x-1.0-beta1"
front version = "6.x-1.2" (Front Page)
getid3 version = "6.x-1.4"
http_request_fail_reset version = "6.x-1.0"
iconizer version = "6.x-1.1"
image version = "6.x-1.0-beta5"
imageapi version = "6.x-1.8"
imagecache version = "6.x-2.0-beta10"
imagecache_profiles version = "6.x-1.3"
imagefield version = "6.x-3.7"
job_queue version = "6.x-3.1"
jquery_ui version = "6.x-1.3"
jquery_update version = "6.x-1.1"
lightbox2 version = "6.x-1.9"
link version = "6.x-2.9"
location version = "6.x-3.1"
mailhandler version = "6.x-1.11"
media_archive version = "6.x-1.x-dev"
media_youtube version = "6.x-1.1"
menu_editor version = "6.x-2.1"
messaging version = "6.x-4.0-beta7"
mimedetect version = "6.x-1.3"
mimemail version = "6.x-1.0-alpha4"
module_filter version = "6.x-1.4"
nice_menus version = "6.x-2.1-beta2"
nodecomment version = "6.x-2.0-beta6"
node_export version = "6.x-2.21"
notifications version = "6.x-4.0-beta7"
onepageprofile version = "6.x-1.9"
panels version = "6.x-3.7"
pathauto version = "6.x-2.x-dev"
pcp version = "6.x-2.1" (Profile Complete Percentage)
pending_user_notification version = "6.x-1.0"
pirate version = "6.x-1.0"
poormanscron version = "6.x-2.2"
potx version = "6.x-3.2" (Translation template extractor)
print version = "6.x-1.11-beta1"
privatemsg version = "6.x-2.x-dev"
profile_location version = "6.x-1.3"
services version = "6.x-2.2"
service_links version = "6.x-2.x-dev"
settings version = "6.x-1.1-alpha3"
smtp version = "6.x-1.0-beta4"
statistics_advanced version = "6.x-1.5"
subform_element version = "6.x-1.x-dev"
swftools version = "6.x-3.0-beta4"
switchtheme version = "6.x-1.1"
taxonomy_multi_edit version = "6.x-1.1"
theme_editor version = "6.x-1.4"
token version = "6.x-1.13"
transliteration version = "6.x-3.0"
troll version = "6.x-1.x-dev"
upload_image version = "6.x-1.0"
user_relationships version = "6.x-1.0-rc4"
video version = "6.x-4.x-dev"
videochat version = "6.x-2.4"
views version = "6.x-2.11"
views_bonus version = "6.x-1.1"
views_bulk_operations version = "6.x-3.x-dev"
views_php_extension v1.5
votingapi version = "6.x-2.3"
weather version = "6.x-5.13"
webform version = "6.x-3.0-beta6"
wysiwyg version = "6.x-2.1"
wysiwyg_spellcheck version = "6.x-1.2"

mnsmithuk’s picture

Travis and Greywolf,

Thanks for your help. I now can see the media player. :) Charles helped me identify the problem immediatley. I was putting my api key between a pair of rightangled brackets < > and I guess whoever is having the problem to check for simple typos like that.

I created some video content by converting avi file to flv using ffmpegX and uploaded it and the thumbnail to my site but it doesn't play. the problem seems to be in the URL.

Charles is reporting

URL http://http//www.mysite.com/sites/default/files/MVI_1471.jpg
Status Failed
Failure UnknownHost: http
Response Code -
Protocol HTTP/1.1
Method GET
Content-Type -
Client Address /127.0.0.1
Remote Address -

Any ideas why the URL would have http://http before my link to the video thumbnail?

Matthew

greywolfsspirit’s picture

go to admin/settings/dashplayer

check to make sure your player url is set like this:
http://www.yoursite.com/player/dashPlayer.swf

then, check your dashconfig.xml file in your www\player\config directory and make sure they are configured correctly..

<gateway>http://www.yoursite.com/?q=services/amfphp</gateway>
<baseURL>http://www.yoursite.com</baseURL> 

I'm probably missing one other location to check (doing this off the top of my head at the moment).. Travis, any other suggestions on this problem?

mnsmithuk’s picture

Greywolfsspirit,

That worked. Thank you. I had my player in my sites/default/files directory. I read somewhere that it was better to be there if I intended to use flashvideo. Now that I have placed it back in the base directory it works like a dream. Thanks guys for all your help concerning this. It's taken me days to get here but now I know I can do this in minutes.

Thanks again until the next time.

Matthew

greywolfsspirit’s picture

Glad we were able to get ya straightened out.. Trust me, I know how frustrating it can be to get it squared away. Took me quite a while to get it working with the services 2.0 branch, you can even ask Travis, we we're pulling our hair out on several issues with why it wouldnt work.. From services 2.0, to Jquery update, and several other issues, until on a whim, I reinstalled services 2.0 and decided to remove the api call in the $params function. And suddenly, it works. I'm sure once all the fine tuning is done, Travis will update the documentation to reflect the changes needed from the 6.1 branch installation to get it to work with the 6.2 branch to make it easier for all future users.

Currently, I'm trying to tweak my page code to allow me to do a play list made up of albums (mp3). I have a few ideas and need to write them down, and get with Travis about how to code the php up to do this. an example of what I would like to have is:

Playlist showing all the tracks for a particular mp3 album that is available, say, Van Halen - Best of Both Worlds.
It would search for playlist: audio
filter by: album name
if album name = target_album_name then add that file to the playlist

Not quite sure how to go about doing this yet.. but, I'm sure Travis and I can come up with something.
Have fun with the Dashplayer!
Greywolf

swamptrunk’s picture

UPDATE: I got the video to work!! Basically, I enabled EVERY module under Services ->services and then under Site Building -> Services -> Key -> edit I checked and enabled ANYTHING that has the word "get". Then, finally, I created a new video content and uploaded the file again. Not exactly elegant, but the video works and I'm totally stoked I got this working instead of spending the entire day on it (which is what I planned on happening.)

---------------

Hey, all

I'm having the same problem as many people above. I've followed the advice and still cannot get it to work. When logged in as admin, I can see the preview thumb and can vote successfully, but the video never loads.

I'm using all the most updated versions of the necessary modules and do not have jQuery update installed.

I ran Charles and cannot see a "dashPlayer.getView"; however, I did find an error under the amfphp "node.get":

Target: String Body Part
Response: String null

description: String Access Denied
details: String /public_html/dev/sites/all/modules/amfphp/amfphp.inc
level: String Unknown error type
line: Number 74
code: String AMFPHP_RUNTIME_ERROR

BUT, when I go to /amfphp it says everything is configured correctly and running.

***************Also, when reviewing and trying to repeat this error, I no longer see this error.

Any help, would be awesome. I feel like I'm really close! I just need the videos to play. :)

Dmullenix’s picture

Status: Postponed (maintainer needs more info) » Active

I am having the same problem as all above. I have installed services 2 and I can get the player to show up but the video never loads. I have tried all of greywolfsspirit's advice.

I deleted the api key i had previously set up, enabled the key authentication, made a new api key, put it in the config file, but still no dice. I have ried charles but I cant seem to find any errors. I am really lost here, and I am just pissed beyond believe at myself that I cant figure it out.

cooleyn’s picture

I am also having the same issue as macandpc, I see the player but the video never loads. my website can be found at www.tobaccofreemichigan.org and the video specific page can be found at: http://www.tobaccofreemichigan.org/tfmDrupal/?q=node/34
I have services 2 installed, with key authentication enabled, I have set up the config file to look like this:

<params>
<gateway>http://www.tobaccofreemichigan.org/tfmDrupal/?q=services/amfphp</gateway>
<apiKey>a25f5e10d54debf3f6952a1a36e5a514</apiKey>
<baseURL>http://www.tobaccofreemichigan.org</baseURL>
<flashvars>
<drupalversion>6</drupalversion>
</flashvars>
</params>

I checked with the Charles program and strangely enough, there does not see to be a services folder when I load up the page?

Dash Player Path:
http://www.tobaccofreemichigan.org/tfmDrupal/player/dashPlayer.swf

My Video Template Settings:

<?php
$params['disableplaylist'] = 'false';
$params['id'] = 'dashplayer';
$params['connect'] = 'hplaylist';  //These are vplaylist.swf and hplaylist.sfw - located in your /skins folder
print dashplayer_get_player($params);
?>

Any help you guys could give me would be great.
Thanks!

APCI LLC’s picture

Same situation. Player loads but playlist (audio) never plays. Been through every tutorial and posting to no avail, and this is far from my first rodeo. Had two other seasoned developers go through everything as well...all seems to be in order, but it just doesn't work.

drupal core 6.19
dash media player module 6.x-18
dash media player 1.39
amfphp module 6.x-1.0-beta2
amfphp 1.9
services 6.x-2.2
plus a dozen other typical modules, all up to date

apache 2.2.3 on centos 5.5
php 5.2.10 with 512M memory limit
mysql 5.0.77

Travis, perhaps you could attempt to get dash player up and running on a test site with these same "latest and greatest" module/distribution versions and document the steps and results...

estenat’s picture

Hi,
I had a lot of 'niet' before to run videos on dashplayer, my method to go forward was to cut the whole trouble into small distinct operations. For example: if swamptrunk notes a trouble about amfphp, this should be solved apart, before to go forward.
I tested separately a flv video, then I tested it without using views, but using a straigth URL to flv file:
$params['file'] = 'http://www.whatyouchoose.org/system/files/myvideo.flv';
Then I verify the publication options (for normal users flv node must be published!), role and permission, ecc.
The trouble about Access denied on amfphp was solved on #9 (maybe casting could be better than force an array()).
Every upgrade of modules needs to be verified.
Actually I am using dashplayer135 on drupal 6.19

It is not like drink a coffe ... but step by step...

APCI LLC’s picture

We fixed it in our implementation. Don't cut/paste the player PHP code snippet from the documentation. You'll end up with invalid single quotes in your params statements.

<?php
$params[‘skin’] = ‘audiopro’;
$params[‘playlist’] = ‘audio’;
$params[‘autostart’] = ‘true’;
print dashplayer_get_player($params);
?>

That's what's posted in the documentation and it won't work if you cut/paste it. The player will load but none of the params will be passed. It should look like this instead:

<?php
$params['skin'] = 'audiopro';
$params['playlist'] = 'audio';
$params['autostart'] = 'true';
print dashplayer_get_player($params);
?>
masu0105’s picture

Hi!

I am also having problems getting the dash player to display video. The player is showing up but i can't se any video. When i look at the the node.get request in Charles i can se that i have an "Invalid API key". But i can't understand why. I have checked the boxes for all the service related permissions for all users and also checked all methods for the generated api key but it still doesn't work. The domain for the key is set to localhost/mySite wich is the location of my drupal installation. Is there anyone who has an idea of what the problem might be?

I have spent many hours trying to figure it out with no luck. Any help would be much appriciated.

Ftegg’s picture

I had Dash Player working for both video and audio on my site. I haven't made any changes or updates, but now, although my playlists are all still working, the media won't load in the player directly from the node any more (ie. just using $params['node'] = $node->nid; print dashplayer_get_player( $params ); ). I tested the player by using $params['file'] = 'http://path_to_file.mp4'; but that wouldn't work either.

Presumably, I could set up a new Views playlist with arguments to create individual playlists for each single node, but that seems like a long winded work around for something that should just be working.

Can anybody please shed some light on what might be causing this issue? Like I said, I had it working and made no changes to anything on the site.

Pav-2’s picture

I can't get the preset to set up with my playlist of videos from Youtube using Dash. I'm getting
* user warning: Table 'whatnois_drup508.dr_services_keys' doesn't exist query: SELECT * FROM dr_services_keys in /home/whatnois/public_html/drupal/sites/all/modules/mediafront/players/osmplayer/osmplayer.module on line 648.
* user warning: Table 'whatnois_drup508.dr_services_keys' doesn't exist query: SELECT * FROM dr_services_keys in /home/whatnois/public_html/drupal/sites/all/modules/mediafront/players/osmplayer/osmplayer.module on line 648.

Any help would be much appreciated. I think I'll just go back to FlowPlayer.

esmm3’s picture

Hey greywolfsspirit,

I am using your code from above for my dash media player for the video only. I was able to get the playlist to show up, but the problem is now that I can't get the media player to play anything form the play list. Now if I go to the node it's self then the video plays no problem, or if I go to the playlist node they play. The code for the playlist node is simple it is as follows:

$params['playlist'] = 'videos'; 
print dashplayer_get_player($params);

but when I use the code you posted it doesn't seem to work. Do you have any suggestions on how to fix this issue? I am fairly new to all this so my knowledge is limited, please let me know if you need any further info as I am sure you will.

Thanks,
Esmm3

UPDATE:

Ok this seems to be working in IE but not in Firefox or Chrome, any ideas on how to solve this would be great.

Thanks

kenneth001’s picture

Travis I am creating a website and would love to use your dash player. It looks different from most players out there. But I’m also having trouble installing the plays I have tried a failed three time starting over from scratch all three times I have seen your tutorials and been on drupal.org everything works my playlist loads the title for the video file loads as well. I have real player and it pops up over the dash player and I can download the video with the real player. But the video don’t play in the dash player I too have followed all your steps, step by step all there times I know its something on my end what it is I don’t know. The first time the real player couldn’t download the file but the second time around it wants too and I have created a key and followed your services documentation. I don’t know what to do I would like to use your player on my site but if I can’t get it to work I will have to move on. If there is anything you can do to help please let me know. I have read what some have to say on the drupal website I would like to had you did a great job with the videos and it is much appreciated

travist’s picture

Status: Active » Fixed

This should be fixed with version 1.9. You can now use the latest Services. Sorry for the delay on getting this done. There has been a lot going on.

esmm3’s picture

Status: Fixed » Active

Hi Travis,

I have installed 1.9 but I still can't get it to work in chrome or firefox. Here is the code I am using.

$params['width'] = 450;
$params['height'] = 405;
$params['disableplaylist'] = 'true';
$params['id'] = 'dashplayer';
$params['connect'] = 'hplaylist';  
print dashplayer_get_player($params);
$params = array();
$params['width'] = 450;
$params['height'] = 150;
$params['playlistonly'] = 'true';
$params['playlistskin'] = 'hplaylist';
$params['vertical'] = 'false';
$params['playlist'] = 'videos'; 
$params['id'] = 'hplaylist';
$params['connect'] = 'dashplayer';
$params['autostart'] = 'false';
print dashplayer_get_player($params);

you can go to my site and take a look. www.mycashcite.com then click on Test in the menu. That will take you to the broken player that only works in IE. If you click on Videos you will see the player that works in all browsers.

kenneth001’s picture

Version: 6.x-1.8 » 6.x-1.9

Travist thanks for your reply. But unfortunately 6.x1.9 did not work. The problem is the same but what I did do is I tried to load dashplay in internet exploreer and it loaded and showded the player but still would not play the video. I am having the same problem with your mediafront player also the play show up in IE and firefox but doesn’t play videos. If I load a image with the mediafront the image loads in side the player but that’s all I have followed all steps to the best of my knowledge. In IE i get a error on webpage

'JSON' is undefined
38 line: 418
code:0 char: 6
URI: http://testing.localhost:8082/node/38

i dont know too much about code, so i dont know what this means or what to do to fix it i know JSON needs to be defined cause it is being called.

i dont know if this is the reason firefox wont load the player or not and also i followed all the dashplay install video i got the audio player to work and it played one song but then that was it after that i couldnt getthe player to show back up i saw that someone had the same issue so i'll check to see if they got it fixed