Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 8    Views: 176

trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
11/07/12 06:18 PM (13 years ago)

YouTube Videos Not Shutting Off Back Button Problem

Well, after several weeks of tweaking with this particular problem I feel as if I'm close to a solution. But that may be just an illusion. What I have tried to do is solve the problem by using the commercial JWPlayer hosted on my web server with this code (pasted into a Custom HTML/Plain text screen on BT) to play the YouTube video. <iframe frameborder="0" height="270" scrolling="auto" src="http://sedonavideos.com/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf?file=http://www.youtube.com/watch?v=kcwzUZcbAjs" width="480"></iframe> What this does (I think...) is let me use the JW player to play the video yet use YouTube to serve up whatever video is appropriate, depending on speed of connection and the device. The problem is it doesn't work. I can see and play the video in the custom screen on BT but it will not show up in the app. Keep in mind I've tried everything else (that I am capable of doing) to solve this problem. (YouTube iframe code, native screen (but I don't want the user to leave the app) etc...) Anyone out there no why the video will not play in the app? Bruce
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
11/07/12 08:00 PM (13 years ago)
If you are using BT-2.0 the only thing that I have found that works is the Custom URL with the YouTube Link. Nothing I tried with iframes and YouTube worked for me. With the Custom URL Plugin the video plays inside the app. When you press Done you are still in your app. Mike
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/08/12 03:04 AM (13 years ago)
This is the key: player.swf (in the URL you posted above). It looks to me like this player is using Flash for playback. I could be wrong but I don't know any other reason to load a .swf file (Flash media). iOS does not support flash. Some older Android devices do, newer ones don't Adobe scrapped Flash for mobile in '11. I visited the JW player website and it looks like they say JS player is HTML5 based. It states this clearly for Android but makes no mention of it for iOS (that I could find). It does state the HTML5 player will load if Flash isn't supported on the device. But, if Flash isn't support, why does the URL have a .swf file loading? Not sure about this. Could it be that you cna set an option somwhere to NOT try flash? Like force an HTML5 implementation? http://www.longtailvideo.com/bits-on-the-run/faq/#do-you-support-html5
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
11/08/12 03:44 PM (13 years ago)
Thanks for the response David. I've got a thread going on the longtail site. I've had it going for weeks trying to figure this out and to see if it's possible. If it works I assume anyone could use the method by using the free player. One caveat is that one would have to upload an H.264 or MP4 video to YouTube for this to work. b
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
11/08/12 05:41 PM (13 years ago)
Here's the response I got from longtailvideo.com In the standalone JW Player, you can use a feature called modes, and only specify html5 - http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18508/jw-embedder-modes However, this configuration block doesn't work with the WordPress plugin. With the WordPress plugin, it will do the player's default failover - Flash > HTML5 > Download. Luckily I have an old html website with a commercial player on it...Back to the drawing board!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/11/12 02:51 AM (13 years ago)
OK, then my suspicion what right, it was using Flash (or trying too). It seems to me that you don't even need a website to do this. Have you tried pasting some very very basic HTML in the Custom HTML / Text screen? This basic HTML would be not much more than a head, body, embed tag. The embed tag would hold the config info like it's explained in the link you posted above. The head would include the javascript include from the JW player site (also explained in the post). 1) make a custom html page 2) Paste the most minimum HTML possible in the box. This html would be marked up like the explanation in the link above. 3) Run the phone. If it doesn't work like that, I would be surprised. HTML5 is well supported on iOS and the bare minimum implementation (as a test) should surely work. Nothing else in the HTML would be "in the way" or conflicting or anything because you only used the minimum HTML required to mark-up the player.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/11/12 02:53 AM (13 years ago)
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
11/11/12 10:15 AM (13 years ago)
Thanks David, I hope to get back to work on this tomorrow. I'll try what you suggested and see if it works. I promised Mark I would make a tutorial if I can get this to work. Save a lot of people some time. Bruce
 
DannyH
Apple Fan
Profile
Posts: 122
Reg: Nov 30, 2011
location unknow...
2,220
like
11/02/13 09:56 PM (12 years ago)
Any news on this, please. Have a similar issue.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.