AboutContactLogin

Index

Playing Videos

Playing Videos Using Zenfolio Flash-based Player

You can utilize the Zenfolio Flash-based video player in your Web application. This player provides all the same video playing experience as available on Zenfolio pages, including a selection of video resolutions and automatic bitrate switching to accommodate audiences with varying Internet connection speeds.

To use the Zenfolio Flash-based player, the application needs to invoke the GetVideoPlaybackUrl method with the mode parameter set to Flash. The application should use the returned URL in the src attribute of an EMBED tag as shown in the example below:

<embed type="application/x-shockwave-flash"
       src="<playback-url>" width="400" height="240"
       quality="high" allowfullscreen="true" wmode="opaque">
</embed>

Playing Videos on iOS Devices

Applications on iOS devices can take advantage of the built-in iOS video player. This player also supports automatic bitrate switching for smooth video playback experience in changing network conditions.

To obtain a URL playable by the built-in iOS video player, the application should call the GetVideoPlaybackUrl method with the mode parameter set to iOS.

Playing Videos with Custom Players

Applications can use any other video player capable of playing H.264 video streams. To obtain a URL to an MP4 video file, the application should call the GetVideoPlaybackUrl method providing Http in the mode parameter and the video player dimensions in the width and height parameters. The method will return a single bitrate stream with the resolution most suitable for the provided player dimensions.