Closed (fixed)
Project:
D7 Media
Version:
7.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2012 at 15:47 UTC
Updated:
21 Jun 2012 at 19:40 UTC
Hello,
I would like to view items (video, sound) separately.
Could you give me the miracle function that takes care of that.
Here is a sample format for youtube:
( print_r($node->field_video['und'][0]) )
Array
(
[fid] => 157
[title] =>
[data] =>
[file] => stdClass Object
(
[fid] => 157
[uid] => 1
[filename] => Итоги недели. Выпуск 3 - с Игорем Белкиным
[uri] => youtube://v/RUU3P1PHV1I
[filemime] => video/youtube
[filesize] => 0
[status] => 1
[timestamp] => 1335634402
[type] => video
)
)
Desired result:
<iframe width="472" height="296" src="http://www.youtube.com/embed/RUU3P1PHV1I" frameborder="0" allowfullscreen></iframe>
or only :
http://www.youtube.com/embed/RUU3P1PHV1I
Thank you in advance for your help!
Comments
Comment #1
devin carlson commentedIf you need a URL to the video, you'll want to display the media using the "link" display and configure the file display to utilize the "URL to file" display.
You might be able to use file_create_url() to do this outside of Media.