I'm working on a new iPhone app which will feature an embedded youtube video. The video will need to be different everyday however the URL for the embedded video cannot be changed dynamically without updating the entire app binary which is a 6+ day process. My code uses a standard youtube URL like this http://www.youtube.com/watch?v=VQDsqJn5Zyw&feature=feedrec_grec_index I need to know if it's possible to replace an uploaded video with another one and yet still maintain the original URL provided? I'm looking at YouTube's built in video editor but it doesn't seem to let you do anything other than add music/sound to an existing video. It would be ideal if I could have an intro then never changes and maintains the URL and then just change the following footage after it's played. Anyone have any ideas as to what I can do? I've tried embedding the video on a blog but the YouTube API won't read from any page other than YouTube.
I do not believe there's any way to change the contents (video-wise) of a single YT url. This is an interesting problem, though. Hopefully someone has a clever solution; I'm quite curious.
I think the Youtube video editor may allow for extension of an existing video. I'm working on something else at the moment so hopefully if it does my problems are solved. It's a real pain in the ass.
Wow, that's stupid. Is that the same for any URL, or just embedded video? Couldn't you post a link to the youtube video on another website (not embedded though), have the app retrieve the URL from that website, and then play the video? If you click on a link to a youtube clip from any site in Safari it will open the youtube app and start playing the video. I should think you could do something similar with an app. As far as I know (and I've looked into it a bit) you cannot replace a youtube video once it has initially been posted. There are probably other sites that do, however. It could be rather complicated getting those to work within an iPhone app, though. Another idea; does it have to be a web-based, streaming video? If not you could have a video file (like h.264 or something) on a website and have that play within the app. I don't know if that's actually possible, just an idea.
It's just for a video, if I use the mplayer framework in xcode I can grab the URL first but playing an embedded video will exit the app and open safari. With the piece of code I'm using I can play a video in my app and then exit straight back to my app. I don't want to lose that functionality. It only works with YouTube because it's their API. There might be a way to load a file from a website in .m4v format and play it the same way but if there is I haven't found it yet. As per usual, on any iOS dev related forum nobody is willing to share what they know and Apple's documentation is outdated for this kind of stuff. The integrated YouTube API is relatively new and most people are quite amazed that apple allow it to load the video player without closing the app behind it.
You can't alter a video once it's uploaded, no. I would have thought you would be much better off using a video on your own site, where you can control such things. Must be possible, then! *EDIT* This any good? http://www.youtube.com/user/iBradapps#p/u/7/EJsyrdzpIbA As for iAd: http://www.youtube.com/user/iBradapps#p/u/6/cM9DqJmj45g And there's someone else who links the source code on their video, if it's any use.
Can't you just use another domain as your link and redirect it as and when you can be bothered to different YouTube videos? Most domain registrars allow you to do this... e.g. your app link will be twimfy.watchmyvideos.com twimfy.watchmyvideos.com redirects to youtube.com/videoa next day you log in to your provider and change it so twimfy.watchmyvideos.com redirects to youtube.com/videob Not the most ideal solution I admit but one that would probably work. IMO get those 6+ days under way. The sooner you start the sooner you finish.
Adding anything but a youtube URL to the code breaks it. A redirect would be perfect if I could get it working. The info Retro posted could be useful, thanks. Those 6 days aren't great as I need to update the video everyday with near enough live content.