Hi,
Thank you for this great module - I managed to get it to upload a clip to YouTube successfully.

In the README it says "The action returns the youtube id of the clip. You can get the url of the clip by appending the id to 'http://youtube.com/watch?v='."

How do you envisage people accessing the youtube ID?

I can see that it has been stored and is accessible on after a node_load() in two places.

$node->media_mover[2][0]['storage_file']
$node->media_mover[2][0]['complete_file']

What I really want to happen is that the ID gets stored in an emfield on the same node, so that the video can be played back and integrated views views etc. I can't find a way to save that YouTube ID anywhere as part of the mm configuration? Is this currently possible? How do you go about using the data?

Thanks again,
Tom

CommentFileSizeAuthor
#6 757212-mm_youtube-to-emfield.patch1.5 KBmrfelton

Comments

kingman1016’s picture

I would like to store the uploaded video to an emfield on the same node too. I tried setting save to emfield as the 'complete' configuration in media mover but there was an error.

'Failed to parse [youtube id] for provider media to attach to the Embedded Media Field for MM file X.'

If it is possible to append 'http://youtube.com/watch?v=' in the return value, maybe it would work?

mrfelton’s picture

@kingman1016: Do you mean that you tried using the mm_cck complete action? I don't think that would work as it is designed to save a file to a filefield.

kingman1016’s picture

no there is mm_emfield in the current dev release of media mover. Looks like it would work if mm_youtube returns a full youtube link. Judging by my limited understanding of the error message...

mrfelton’s picture

ok ok, didn't know about mm_emfield and just wrote my own implementation of the mm api to allow storage of the youtube video URL to an emfield! I'll have to check out mm_emfield then.

mrfelton’s picture

hmm. I'm not seeing mm_emfied. I'm using DRUPAL-6--3 - you?

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new1.5 KB

Ok, so this simple patch does the job then.