This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:$.getScript('//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js', function(){ | |
audioVolume = $.cookie('audioVolume'); | |
$('audio').each(function(){ | |
if (audioVolume) { | |
this.player.setVolume(audioVolume); | |
} | |
$(this).on('volumechange', function(){ | |
$.cookie('audioVolume', this.player.getVolume(), {expires: 100, path: '/'}); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SampleBufferDisplayLayerView.swift | |
// SampleBufferDisplayLayer | |
// | |
import UIKit | |
import AVFoundation | |
class SampleBufferDisplayLayerView: UIView { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"NSBadge1&2", | |
"NSBadge3", | |
"NSBadge4", | |
"NSBadge5", | |
"NSBottomBevel", | |
"NSBottomLeftCorner", | |
"NSBottomLeftCornerMask", | |
"NSBottomRightCorner", | |
"NSBottomRightCornerMask", | |
"NSClosedHandCursor", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Require "Run in Full Simulator" in Playground Settings. | |
// On first execution, iOS Simulator will show request authorization for Photo Library. | |
// Only a video without audio track can be played. | |
import UIKit | |
import AVFoundation | |
import Photos | |
import XCPlayground | |
class PLayerView: UIView { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xcrun swift | |
import Cocoa | |
extension NSURL { | |
var isDirectory: Bool { | |
return resourceValue(NSURLIsDirectoryKey) | |
} | |
var isExcludedFromBackup: Bool { | |
return resourceValue(NSURLIsExcludedFromBackupKey) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xcrun swift | |
import Cocoa | |
extension NSURL { | |
var isDirectory: Bool { | |
return resourceValue(NSURLIsDirectoryKey) | |
} | |
var isExcludedFromBackup: Bool { | |
return resourceValue(NSURLIsExcludedFromBackupKey) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/SimpleGaplessPlayer/HKLGaplessPlayer/AssetReaderFragment.swift b/SimpleGaplessPlayer/HKLGaplessPlayer/AssetReaderFragment.swift | |
index 9fdd89d..2d41bf4 100644 | |
--- a/SimpleGaplessPlayer/HKLGaplessPlayer/AssetReaderFragment.swift | |
+++ b/SimpleGaplessPlayer/HKLGaplessPlayer/AssetReaderFragment.swift | |
@@ -121,7 +121,7 @@ internal class AssetReaderFragment: NSObject { | |
// 注意点: | |
// - このビデオトラックにはコンポジション上のビデオトラックを指定すること | |
// - IOSurfaceで作成しなくても再生できるが、念のため付けておく | |
- let compoVideoTracks = composition.tracksWithMediaType(AVMediaTypeVideo) | |
+ let compoVideoTracks = asset.tracksWithMediaType(AVMediaTypeVideo) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section __TEXT,__text,regular,pure_instructions | |
.section __DWARF,__debug_info,regular,debug | |
Lsection_info: | |
.section __DWARF,__debug_abbrev,regular,debug | |
Lsection_abbrev: | |
.section __DWARF,__debug_aranges,regular,debug | |
.section __DWARF,__debug_macinfo,regular,debug | |
.section __DWARF,__debug_line,regular,debug | |
Lsection_line: | |
.section __DWARF,__debug_loc,regular,debug |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sil_stage canonical | |
import Builtin | |
import Swift | |
import SwiftShims | |
// indexof.a : Swift.Array<Swift.Int> | |
sil_global indexof.a : [Swift.Int] : $Array<Int> | |
// indexof.c (Swift.Int) -> Swift.Bool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sil_stage canonical | |
import Builtin | |
import Swift | |
import SwiftShims | |
// indexof.a : Swift.Array<Swift.Int> | |
sil_global indexof.a : [Swift.Int] : $Array<Int> | |
// indexof.c (Swift.Int) -> Swift.Bool |