Closed (fixed)
Project:
Video
Version:
8.x-1.1
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2017 at 21:04 UTC
Updated:
26 Jun 2020 at 19:07 UTC
Jump to comment: Most recent
Hello,
Any tips on saving a youtube video url programmatically?
I tried $node->set('video_field','url-of-video') but it does not work.
Comments
Comment #2
deaom commentedIt is a little hacky solution, but it should work.
and then in the node create
Comment #3
hypertext200Comment #5
leopathu commented#2 Seems a good approach but have small correction in that.
Don't need to save real youtube data locally. Just save empty content as file then set mime type and fileUri will handle the rest of things.
importantly have save file finally.