Hi,
I've tried using flashy as a player of 3rd party videos (youtube more precisely) and I couldn't get it to work at all.
First, I wanted to create a CCK field with the flashy link module, but it wouldn't show at all in the list. I had to change the name of the function "flashy_link_field_formatter_info" to "flashy_link_widget_info" for it to appear. Then it wouldn't show into my node/edit. I copy/pasted the link_widget function from the link module (and renamed it of course), but it didn't change anything so I stopped there.
Next, I tried to render the player directly with a fixed url using the following code:
$link = 'http://blip.tv/file/3057538';
$flashy = flashy_create()
->addMedia($link)
->flashVar('volume', 50)
->flashVar('loop', TRUE)
->flashVar('autoPlay', TRUE)
->flashVar('uiControls', 'PlayPause|Prev|Next|Seek|Volume|FullScreen|MuteUnmute')
->param('allowFullScreen', 'true')
->noFlash('Flash is not working :-(');
print $flashy->render();
as I reckoned from the theme_flashy_link_formatter_videoplayer function that this should be enough.
The player shows, and I see into firefox's status bar that it's transfering content from youtube.com, but it's hopeless playing any video. After some time firefox just stops transfering content.
Would you know what's wrong with what I'm doing here?
Thanks,
saipas
Comments
Comment #1
saipas commentedPS $link refers to blip in my code, as I've tried with other 3rd party providers as well, but the same issue would araise.
Comment #2
Crell commentedFlashy doesn't support 3rd party video services. It only supports externally hosted FLV and similar files. YouTube et al don't give you direct access to those files on their servers.
What you want is the emfield module, which is designed to embed 3rd party video services rather than just raw files.