开发者

In their new layout, How does youtube keep the flash video playing when you go to a users profile page from the video page?

开发者 https://www.devze.com 2023-04-01 02:27 出处:网络
In the cosmicpanda update for youtube, you can go from a video page to the video creators profile page while your video is still playing in flash.

In the cosmicpanda update for youtube, you can go from a video page to the video creators profile page while your video is still playing in flash.

Does anyone how Youtube accomplishes this? I would like to know if it's possible to keep the flash state of a site constant while moving from page to page on a site.

It doesn't seem as if the flash is reloading, so I don't think that they are just saving cookies for the current video time and starting the video at that point when they refresh.

I would assume that they're using ajax, but the application of this feature is really clean. The URL gets correctly changed to the users' profile page's URL. The back button still works as it should. (I can press back and forward between video page and user profile p开发者_JAVA技巧age and the video continues going clean and never drops.)


This appears to be an application of HTML5 history. Mozilla has another more accessible example. Major libraries are starting to support this functionality and YUI is building a client side MVC framework using it.


It is like making the browsers back and forward buttons work with ajax! You can find more details on the given link http://ajaxhistory.com/ And example link is http://ajaxhistory.com/example/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号