playback/player: ios: Extract online media into plist

https://github.com/sdroege/gst-player/pull/20
This commit is contained in:
Jan Berkel 2015-04-22 14:43:07 +01:00 committed by Sebastian Dröge
parent 7638d52c47
commit 109e63d7d7
3 changed files with 35 additions and 30 deletions

View file

@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
19A17EFC8D41A75E8D3DB72E /* OnlineMedia.plist in Resources */ = {isa = PBXBuildFile; fileRef = 19A176455D27298FE4041DC3 /* OnlineMedia.plist */; };
AD2B881F198D631B0070367B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD2B881E198D631B0070367B /* Foundation.framework */; };
AD2B8821198D631B0070367B /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD2B8820198D631B0070367B /* CoreGraphics.framework */; };
AD2B8823198D631B0070367B /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD2B8822198D631B0070367B /* UIKit.framework */; };
@ -26,6 +27,7 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
19A176455D27298FE4041DC3 /* OnlineMedia.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = OnlineMedia.plist; sourceTree = "<group>"; };
AD2B881B198D631B0070367B /* GstPlay.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GstPlay.app; sourceTree = BUILT_PRODUCTS_DIR; };
AD2B881E198D631B0070367B /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
AD2B8820198D631B0070367B /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
@ -113,6 +115,7 @@
AD2B885F198D65780070367B /* VideoViewController.h */,
AD2B8860198D65780070367B /* VideoViewController.m */,
AD2B8827198D631B0070367B /* Supporting Files */,
19A176455D27298FE4041DC3 /* OnlineMedia.plist */,
);
path = GstPlay;
sourceTree = "<group>";
@ -206,6 +209,7 @@
AD2B8835198D631B0070367B /* Ubuntu-R.ttf in Resources */,
AD2B8833198D631B0070367B /* fonts.conf in Resources */,
AD2B882B198D631B0070367B /* InfoPlist.strings in Resources */,
19A17EFC8D41A75E8D3DB72E /* OnlineMedia.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View file

@ -130,36 +130,7 @@ static NSString *CellIdentifier = @"CellIdentifier";
[entries addObject:[NSString stringWithFormat:@"file://%@/%@", docsPath, e]];
}
self->mediaEntries = entries;
/* Hardcoded list of Online media files */
entries = [[NSMutableArray alloc] init];
// Big Buck Bunny
[entries addObject:@"http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi"];
[entries addObject:@"http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov"];
[entries addObject:@"http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.ogg"];
[entries addObject:@"http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi"];
// Sintel
[entries addObject:@"http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.480p.DivX_Plus_HD.mkv"];
[entries addObject:@"http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/sintel_trailer-480p.mp4"];
[entries addObject:@"http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/sintel_trailer-480p.ogv"];
[entries addObject:@"http://mirrorblender.top-ix.org/movies/sintel-1024-surround.mp4"];
// Tears of Steel
[entries addObject:@"http://blender-mirror.kino3d.org/mango/download.blender.org/demo/movies/ToS/tears_of_steel_720p.mkv"];
[entries addObject:@"http://blender-mirror.kino3d.org/mango/download.blender.org/demo/movies/ToS/tears_of_steel_720p.mov"];
[entries addObject:@"http://media.xiph.org/mango/tears_of_steel_1080p.webm"];
// Radio stations
[entries addObject:@"http://radio.hbr1.com:19800/trance.ogg"];
[entries addObject:@"http://radio.hbr1.com:19800/tronic.aac"];
// Non-existing entries (to debug error reporting facilities)
[entries addObject:@"http://non-existing.org/Non_Existing_Server"];
[entries addObject:@"http://docs.gstreamer.com/Non_Existing_File"];
self->onlineEntries = entries;
self->onlineEntries = [NSArray arrayWithContentsOfURL:[[NSBundle mainBundle] URLForResource:@"OnlineMedia" withExtension:@"plist"]];
}
@end

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<!-- Big Buck Bunny -->
<string>http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi</string>
<string>http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov</string>
<string>http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.ogg</string>
<string>http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi</string>
<!--Sintel-->
<string>http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.480p.DivX_Plus_HD.mkv</string>
<string>http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/sintel_trailer-480p.mp4</string>
<string>http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/sintel_trailer-480p.ogv</string>
<string>http://mirrorblender.top-ix.org/movies/sintel-1024-surround.mp4</string>
<!--Tears of Steel-->
<string>http://blender-mirror.kino3d.org/mango/download.blender.org/demo/movies/ToS/tears_of_steel_720p.mkv</string>
<string>http://blender-mirror.kino3d.org/mango/download.blender.org/demo/movies/ToS/tears_of_steel_720p.mov</string>
<string>http://media.xiph.org/mango/tears_of_steel_1080p.webm</string>
<!--Radio stations-->
<string>http://radio.hbr1.com:19800/trance.ogg</string>
<string>http://radio.hbr1.com:19800/tronic.aac</string>
<!--Non-existing entries (to debug error reporting facilities)-->
<string>http://non-existing.org/Non_Existing_Server</string>
<string>http://docs.gstreamer.com/Non_Existing_File</string>
</array>
</plist>